Hi,
Can someone tell me why, when I use:
<mx:HTTPService contentType="application/xml" headers="{{SOAPAction:
'MySoapAction"'}}" method="POST" result="handlePlain(event);"
fault="handleFault(event);" id="plainRPC" resultFormat="xml"
url="http://server:8080/webservice/url"
useProxy="false">
<mx:request xmlns="">
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://rts.splwg.com/webservices/"
xmlns:ns2="http://rts.splwg.com/webservices/packets"
xmlns:ns3="http://rts.splwg.com/webservices/fields">
<SOAP-ENV:Body>
<SomeMessage>
</SomeMessage>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
</mx:request>
</mx:HTTPService>
And when I sniff the message between the .swf and the webservice, the
XML posted looks like:
<Envelope>
<Body>
<SomeMessage />
</Body>
</Envelope>
i.e.) it strips my namespace information. This causes a version error
at the AXIS webservice.
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<soapenv:Upgrade
soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="0">
<soapenv:SupportedEnvelope qname="soapenv:Envelope"/>
</soapenv:Upgrade>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:VersionMismatch</faultcode>
<faultstring>Version Mismatch</faultstring>
<detail>
<ns1:hostname
xmlns:ns1="http://xml.apache.org/axis/">atldev15</ns1:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I know this may be an un-conventional way to call a webservice.... Any
ideas or suggestions are appreciated.