Issue With Schema hosted as WCF Service

Hi All

I have exposed request response schema as a WCF service and also used Relay binding to expose it outside premises of my company.

The service is working fine if I use IIS url i.e. http://servername/VD/a.svc, but it fails if I try to hit the endpoint of service bus. Error is-

The adapter "WCF-CustomIsolated" raised an error message. Details "System.ServiceModel.CommunicationException: The envelope version of the incoming message (Soap12 (http://www.w3.org/2003/05/soap-envelope)) does not match that of the encoder (Soap11 (http://schemas.xmlsoap.org/soap/envelope/)). Make sure the binding is configured with the same version as the expected messages.
Parameter name: reader ---> System.ArgumentException: The envelope version of the incoming message (Soap12 (http://www.w3.org/2003/05/soap-envelope)) does not match that of the encoder (Soap11 (http://schemas.xmlsoap.org/soap/envelope/)). Make sure the binding is configured with the same version as the expected messages.
Parameter name: reader
   --- End of inner exception stack trace ---
   at System.ServiceModel.Channels.StreamedMessage..ctor(XmlDictionaryReader reader, Int32 maxSizeOfHeaders, MessageVersion desiredVersion)
   at System.ServiceModel.Channels.Message.CreateMessage(XmlDictionaryReader envelopeReader, Int32 maxSizeOfHeaders, MessageVersion version)
   at System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.ReadMessage(Stream stream, Int32 maxSizeOfHeaders, String contentType)
   at Microsoft.ServiceBus.MessageWrapper.UnwrapMessage(Message message)
   at Microsoft.ServiceBus.RelayedHttpUtility.ConvertSoapRequestToWebRequest(MessageEncoder webEncoder, Message soapRequest, Boolean& isSoapRequest, MessageWrapper wrapper)
   at Microsoft.ServiceBus.RelayHttpTransportReplyChannel.RelayHttpTransportRequestContext..ctor(RequestContext innerContext, IDefaultCommunicationTimeouts defaultTimeouts, MessageEncoder encoder)

1) I am using Custom_isolated based Receive location.

2) On client side , I have used HttpRelay Binding as there is no customRelaybindinfg in Service Bus

Please

July 1st, 2013 10:26am

Hi Deepak,

It is because SOAP 12 message coming in are not accepted by your service ( It only accepts SOAP 11 message).

Please refer below link(It should help you):

http://social.msdn.microsoft.com/Forums/vstudio/en-US/fd5e46ff-9b93-4665-85af-e2941e68f2ad/soap11-and-soap12-servi

July 1st, 2013 5:58pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics