Interface IService
<OperationContract(Action:="urn:abc")> _
<WebInvoke(BodyStyle:=WebMessageBodyStyle.Bare, Method:="POST")>
Function abc(a as String) As String
Method Service
Public Function abc(a as String) As String Implements IService.abc
'Method
End Function
Web.Config
<services>
<service name="Service.IServices">
<endpoint address="" binding="customBinding" contract="Service.IServices" bindingConfiguration="httpSoap12">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<customBinding>
<binding name="httpSoap12">
<textMessageEncoding messageVersion="Soap12" />
<httpTransport />
</binding>
</customBinding>
Request Message
POST http://localhost/Services.svc HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/soap+xml;charset=UTF-8;action="urn:abc"
Content-Length: 1230
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Error
Error in deserializing body of request message for operation 'abc'. OperationFormatter encountered an invalid Message body. Expected to find node type 'Element' with name 'abc' and namespace 'http://tempuri.org/'. Found node type 'Element' with name 'typ:abc' and namespace 'http://tem.com/'
I facing this error few days, and I find many solution on web but still facing this error. Got any advice or solution to solve it? Isn't I no yet get the action?