Web Services/SOAP(I think) question...

  • Thread starter Bryan Dickerson
  • Start date
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!
 
C

Cor Ligthert [MVP]

Bryan,

As you use a thirth party component, than I have seen that it is as to seek
a neeldle in a haystack to find an answer here in these dotnet newsgroups.

Almost all advices ends than in "why don't you contact the maker of that
3-rd party product".

Therefore I do it direct.

Cor
 
B

Bryan Dickerson

A decent night's rest will often do wonders for your perspective, as it did
for mine. I went back over the code and found the problem--part typo and
part intelli-sense. Thanx anyway!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top