Answered by:
Can i make my wsHttpBinding to be compatible to SOAP1.1 protocol

Question
-
Hi,
I have a WCF service written which has a wsHttpBinding. Now i want this binding to use SOAP 1.1 protocol.
Can i achieve this by any means.
Thanks in advance.
Regards,
Rajesh
Thursday, October 7, 2010 4:02 PM
Answers
-
Rajesh
You should convert your WSHttpBinding to a customBinding which you can customize for Soap1.1. See here:
http://webservices20.blogspot.com/2009/08/bindingbox-convert-wcf-bindings.html
http://webservices20.blogspot.com/
WCF Security, Interoperability And Performance Blog- Proposed as answer by Steven Cheng - MSFT Monday, October 11, 2010 3:37 AM
- Marked as answer by Steven Cheng - MSFT Monday, October 18, 2010 2:13 AM
Friday, October 8, 2010 5:36 PM
All replies
-
Hi
wsHttpBinding is based on Soap 1.2.
You can use BasicHttpBinding which is based on Soap 1.1
Thanks
Thanks, Pankaj BadoniThursday, October 7, 2010 4:56 PM -
Hi Pankaj,
Thanks for the reply. I know that we can use BasicHttpBinding. But i want to use wsHttpBinding with support to SOAP 1.1
Regards
Rajesh
Thursday, October 7, 2010 5:09 PM -
As Pankaj mentioned, you can't. WSHttpBinding only supports SOAP 1.2. You can, however, add a new endpoint to your service using basicHttpBinding, which would support SOAP 1.1.Thursday, October 7, 2010 8:35 PM
-
Hi Rajesh ,
It's very true that WSHttpBinding only supports SOAP 1.2 and it can't be changed.
But if it is required to use the protocol Soap 1.1 with WSHttpBinding , then you can change the schema for the SOAP envelope in SOAP responses generated by WCF using WCF extensibility model.Refer To:
http://msdn.microsoft.com/en-us/library/ms751420%28VS.90%29.aspx
Thanks, Pankaj BadoniFriday, October 8, 2010 5:31 PM -
Rajesh
You should convert your WSHttpBinding to a customBinding which you can customize for Soap1.1. See here:
http://webservices20.blogspot.com/2009/08/bindingbox-convert-wcf-bindings.html
http://webservices20.blogspot.com/
WCF Security, Interoperability And Performance Blog- Proposed as answer by Steven Cheng - MSFT Monday, October 11, 2010 3:37 AM
- Marked as answer by Steven Cheng - MSFT Monday, October 18, 2010 2:13 AM
Friday, October 8, 2010 5:36 PM