Expand my Community achievements bar.

Problem constructing a web service request wich does not include namespace

Avatar

Former Community Member
Hi!

I'm evaluating Flex 3 for a web development.

I'm having problems with a web service invocation.



This is the soap request made with Soap UI:



<soapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:open="
http://www.openuri.org/">

<soapenv:Header/>

<soapenv:Body>

<open:querySoftware>

<open:imei></open:imei>

<open:groupId></open:groupId>

</open:querySoftware>

</soapenv:Body>

</soapenv:Envelope



<mx:WebService id="giService" wsdl="
http://..." result="onResult(event)">

<mx:operation name="querySoftware">

<imei>1<imei>

</mx:request>

</mx:operation>

</mx:WebService>



When invoking operation I get this error:



[RPC Fault faultString="HTTP request error"
faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
type="ioError" bubbles=false cancelable=false eventPhase=2
text="Error #2032: Error de secuencia. URL: ]

at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\...

at
mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]

at
mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]

at
DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/redirectEvent()



I see that Flex is making the request like the following
wichi is not correct according to Soap UI request:



<querySoftware>

<imei></imei>

<groupId></groupId>

<querySoftware>



How could I construct the request to include the open:
namespace?



Thanks a lot.
1 Reply