RE: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag
First, change your resultFormat to use e4x. xml is the legacy object. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of anonauser Sent: Friday, December 05, 2008 5:49 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag 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 http://server:8080/webservice/url useProxy=false mx:request xmlns= SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/ xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/ http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance xmlns:xsd=http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema xmlns:ns1=http://rts.splwg.com/webservices/ http://rts.splwg.com/webservices/ xmlns:ns2=http://rts.splwg.com/webservices/packets http://rts.splwg.com/webservices/packets xmlns:ns3=http://rts.splwg.com/webservices/fields 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/ http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance soapenv:Header soapenv:Upgrade soapenv:actor=http://schemas.xmlsoap.org/soap/actor/next http://schemas.xmlsoap.org/soap/actor/next soapenv:mustUnderstand=0 soapenv:SupportedEnvelope qname=soapenv:Envelope/ /soapenv:Upgrade /soapenv:Header soapenv:Body soapenv:Fault faultcodesoapenv:VersionMismatch/faultcode faultstringVersion Mismatch/faultstring detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/ 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.
Re: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag
Thanks Tracy. I'll try that, but the issue has more to do with the request than the response. From: Tracy Spratt [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, December 8, 2008 9:47:51 AM Subject: RE: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag First, change your resultFormat to use “e4x”. “xml” is the legacy object. Tracy From:[EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf Of anonauser Sent: Friday, December 05, 2008 5:49 PM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] mx:httpservice and/or mx:request strips namespace information from posted messag Hi, Can someone tell me why, when I use: mx:HTTPService contentType= application/ xml headers={{SOAPActi on: '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:mustUnderst and=0 soapenv:SupportedE nvelope qname=soapenv: Envelope / /soapenv:Upgrade /soapenv:Header soapenv:Body soapenv:Fault faultcodesoapenv: VersionMismatch /faultcode faultstring Version Mismatch/faultstri ng 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.