Subject:X14 Enterprise - Web Services call is failing Author:Yitzhak Khabinsky Date:18 Nov 2011 09:10 AM Originally Posted: 16 Nov 2011 11:17 AM
I am trying to call a Web Service method that returns XML data type.
The service is implemented using .NET.
The method returns data type that is System.Xml.Linq.XElement
The Service is using WS2007HttpBinding binding.
The error message is here:
---------------------------
Stylus Studio X14 XML Enterprise Suite
---------------------------
System.Net.WebException: The remote server returned an error: (415)
Cannot process the message because the content type 'text/xml' was not the expected type 'application/soap+xml; charset=utf-8'..
at System.Net.HttpWebRequest.GetResponse()
at WebServiceClient.Send(Void* pSoapRequest, Int32 nSize, IStylusSoapBuffer* pBuffer)
at __send(IWebServiceHost* pWebServiceHost, Void* pSoapRequest, Int32 nSize, IStylusSoapBuffer* pBuffer)
at send(IWebServiceHost* pWebServiceHost, Void* pSoapRequest, Int32 nSize, IStylusSoapBuffer* pBuffer)
---------------------------
OK
---------------------------
Subject:X14 Enterprise - Web Services call is failing Author:Yitzhak Khabinsky Date:16 Nov 2011 06:58 PM Originally Posted: 16 Nov 2011 06:45 PM
Unfortunately, we cannot modify the Service configuration. It is out of our control.
It would be very beneficial to introduce support for the WS* bindings to the Stylus Studio.
The WSHttpBinding is based on the draft version of the standard from OASIS.
The WS2007HttpBinding is a binding based on the final version from Organization for the Advancement of Structured Information Standards (OASIS). It supports ReliableSession, Security, and TransactionFlow protocols.