Can i make a JQuery call to WCF service using SOAP and WSHttpBinding?
If so, how? (any examples on the web?) If not, why not?
As you can see from this post, i cannot get it to work.
I need to be able to use WSHttpBinding so i can support SAML and WS-Security. It is my understanding that basicHTTPBinding does not support ws-Security.
All other examples on SO either use json (which i can get to work easy) or basicHttpBinding.
I am required to use SOAP and ws-Security to comply with OGC 07-118r8 standards.
With something like WS-* and the complexity of WCF, wouldn't it be easier to create a simple jQuery async callback to another page on your site that can leverage the .NET built-in WS-Security Libraries? From there you can fire off a call to the WCF endpoint, process the result, and return it back to the jQuery function as an easily readable response.
I found some articles that mention what you're trying to do. It sounds like you would essentially have to write your own WS-Security jQuery library before this would work straight from JavaScript (and I imagine that's probably impractical for you):
"A service exposed with “wsHttpBinding” binding implements WS-Security of WS-* family of web service specifications. As the binding uses security, the request will be rejected. The service cannot be called without implementing WS-Security at JQuery end. So, in order to call the service method, we have to compromise with the security."
http://www.codeproject.com/Articles/311908/Calling-WCF-service-exposed-with-different-binding
"...wsHttpBinding, which is a SOAP binding that won’t work with AJAX."
http://www.west-wind.com/presentations/jquery/jquerypart2.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With