B
Bryan Dickerson
I'm trying to test a web service that I wrote and I'm getting this
exception:
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.web.services.dll
Additional information: Client found response content type of '', but
expected 'text/xml'.
The Studio points the error to be in "Web References\localhost\Reference.vb"
at the "Dim results()..." line
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.source.com/webservices/CreateSourceOrder",
RequestNamespace:="http://www.source.com/webservices/",
ResponseNamespace:="http://www.source.com/webservices/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped),
MimeAttachmentExtension()> _
Public Function CreateSourceOrder(ByVal xmlPO As String) As String
Dim results() As Object = Me.Invoke("CreateSourceOrder", New
Object() {xmlPO})
Return CType(results(0), String)
End Function
BTW, the "MimeAttachmentExtension()" is part of a 3rd-party product called
Alotsoft MIME SOAP with Attachments Extensions.
Anyone got any ideas?? TIA!
exception:
An unhandled exception of type 'System.InvalidOperationException' occurred
in system.web.services.dll
Additional information: Client found response content type of '', but
expected 'text/xml'.
The Studio points the error to be in "Web References\localhost\Reference.vb"
at the "Dim results()..." line
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.source.com/webservices/CreateSourceOrder",
RequestNamespace:="http://www.source.com/webservices/",
ResponseNamespace:="http://www.source.com/webservices/",
Use:=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped),
MimeAttachmentExtension()> _
Public Function CreateSourceOrder(ByVal xmlPO As String) As String
Dim results() As Object = Me.Invoke("CreateSourceOrder", New
Object() {xmlPO})
Return CType(results(0), String)
End Function
BTW, the "MimeAttachmentExtension()" is part of a 3rd-party product called
Alotsoft MIME SOAP with Attachments Extensions.
Anyone got any ideas?? TIA!