I'm having a problem with dumping the request XML. When I send XML request to a web service with soapUI, it gives me normal results, but when I try to do the same thing in Flash using Flex, the web sevice responds with a SOAP fault. This is basically what I'm doing:
var xml = XML('<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://some.web-sr.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:SomeOperation><ns1:data></ns1: data></ns1:SomeOperation></SOAP-ENV:Body></SOAP-ENV:Envelope>');
wsOperation = getWsOperation('SomeOperation');
wsOperation.resultFormat = 'e4x';
wsOperation.request = xml;
Result: <faultstring>The path is not of a legal form. ---> The path is not of a legal form.</faultstring>
How can I dump the request xml which was actually sent to the web service by Flex? Or what am I doing wrong here?
Thanks in andvance,
At last, after three days of reading the WHOLE INTERNET and posting this I have managed to dump the request data
var assetToken = wsOperation.send();
Hope this helps anybody else.