SOAP web service

SOAP web service
0

#1

So I’m trying request data from SOAP web service. Im simply using jQuery’s ajax request but it’s not working. I know it returns XML but I would expect a console.log() would at least show me the XML data.

Any ideas how to consume a SOAP web service?


#2

Not sure I can help, but any chance you can give us a link, even temporarily?


#3

Thanks for the reply, but I managed to solve it :smile:


#4

I have the same problom could you help me figure it out


#5

Set processData to false, it’s probably trying to read the XML as a string. Example (lifted from Stack Overflow answer):

$.ajax({
    url: someWebServiceURL, 
    type: "POST",
    dataType: "xml", 
    data: soapMessage, 
    processData: false,
    contentType: "text/xml; charset=\"utf-8\"",
    success: OnSuccessCallback, 
    error: OnErrorCallback
});

Edit: you have my sympathies re using SOAP though, I’ve had only horrifically bad experiences of using it (hi, SalesForce!)


#6

Hey @DanCouper Thank you! i understand that part, for the most part now, im a little confused on what to do with all the executable files that came with the api itself now any pointers?