doedje / jquery.soap

This script uses $.ajax to send a SOAP:Envelope. It can take XML DOM, XML string or JSON as input and the response can be returned as either XML DOM, XML string or JSON too.
352 stars 148 forks source link

Setting timeout possible? #116

Closed ghost closed 7 years ago

ghost commented 7 years ago

Thanks alot for the great framework! It works very well for me.

I would like to set the timeout of the soap request, and faced that setting

$.soap({
            url: that.host,
            data: xml.join(''),
            timeout: 100,  //<<<<<<<<<<<<<<<<<<<<
            success: function (soapResponse) {
                // do stuff with soapResponse

            },
            error: function (SOAPResponse, msg) {
              console.error("Response: %o, msg: %o", SOAPResponse, msg);
            }
        });

did not help. Is there another way to achieve this?

Thanks!

doedje commented 7 years ago

Thanx for adding the timeout feature!