I’m trying to call a WCF service using soap in IE8 and I can’t seem to get my head around how xdr’s work. Can they be used to pass xml to a soap endpoint?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We are basically talking about a POST request with a properly formatted XML SOAP payload and you can sure do that with the XDomainRequest object. Here is a basic example:
The payload in the example is for a web service exposing this contract. You could create a mock web service based on that WSDL on a server that responds with the
Access-Control-Allow-Originheader. Then, if all goes well you should see a response like this:You can then parse the response to extract the data you need instead of printing the raw string.
For troubleshooting also have a look at the following post: XDomainRequest – Restrictions, Limitations and Workarounds.