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