Skip navigation
Mind Conflicts 3 posts
Jan 20, 2013
Currently Being Moderated

XML request in Flex WebService using ActionScript

Jan 23, 2013 12:24 PM

Tags: #flash #flex #wsdl #xml #actionscript #request #operation #soap #send

Hi,

 

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;

wsOperation.send();

 

Result: <faultstring>The path is not of a legal form. ---&gt; 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,

MC

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points