Closed duncanhan closed 7 years ago
I fixed this by viewing the xml request which is built at around line 166 in soapclient.js, I and formatting it to what my server expected. All parameters are now submitted.
var sr = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + "<soap:Envelope " + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" " + "xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " + "xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\">" + "soap:Body" + "<" + method + " xmlns=\"" + ns + "\">" + parameters.toXml() + "</" + method + ">/soap:Body/soap:Envelope";
Which resolved to <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> soap:Body
/soap:Body
/soap:Envelope
yet my server was expecting
// Expected
<?xml version="1.0" encoding="UTF-8"?>
I add the parameters to my post but on the server I do not receive them...
.factory("testService", ['$soap',function($soap){
}])
on server I get msisdn = null
Please help