Webservice Problem.

Webservice Problem.

  
Hi everyone,

I'm having some trouble calling a webservice because I receive this message:

"The request failed with HTTP status 415: Cannot process the message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'.."

Is there any way that I can change the way the request is made so I can send the 'application/soap+xml' instead of 'text/xml'?

Thanks a lot,

Hugo Pereira
Hi Hugo,

I googled your error and it seems like what you have there is an incompatibility between client and server - The client is using SOAP 1.1 and the server SOAP 1.2 . Is the Web Service you are consuming implemented over Windows Communication Foundations? If so, it seems like that might be the issue.

I found this post of a person with a problem with the same simptoms you have.

I also found some other resources on this: I looks like reconfiguring the web service is a possible solution.

Hope this information is helpful.

Best Regards,
Daniel Lourenço
Hi Hugo,

There is updated information about the OutSystems compatibility with WCF web services in the forum topic WCF vs ASMX WebServices.

Version 5.0 of the OutSystems Agile Platform can seamlessly import WCF-generated Web References.

Best Regards,

Daniel Lourenço