Highlighted

web service call problem with complex types input

LEHHEL

19-11-2008

We are trying to call a web service and pass as parameter
some complex types. When invoking the web service everything works
well on flex side, but on the server side the input parameters we
get from flex are not correct - complex type is removed and the
elements of the complex type are sent. See the example:



<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">

<mx:WebService id="ws_id" wsdl="link" useProxy="false"
fault="wsFault(event)">

<mx:operation id="op_id" name="op"
result="wsResult(event)">

<mx:request>

<parameters>

<parameter1>{value1}</parameter1>

<parameter2>{value2}</parameter2>

<parameter3>{value3}</parameter3>

<parameter4>

<parameter4_1>{value4_1}</parameter4_1>

<parameter4_2>{value4_2}</parameter4_2>

<parameter4_3>{value4_3}</parameter4_3>

</parameter4>

</parameters>

</mx:request>

</mx:operation>

</mx:WebService>

</mx:Application>





on server side we get this:



<parameters>

<parameter1>{value1}</parameter1>

<parameter2>{value2}</parameter2>

<parameter3>{value3}</parameter3>

<parameter4_1>{value4_1}</parameter4_1>

<parameter4_2>{value4_2}</parameter4_2>

<parameter4_3>{value4_3}</parameter4_3>

</parameters>



Instead of :



<parameters>

<parameter1>{value1}</parameter1>

<parameter2>{value2}</parameter2>

<parameter3>{value3}</parameter3>

<parameter4>

<parameter4_1>{value4_1}</parameter4_1>

<parameter4_2>{value4_2}</parameter4_2>

<parameter4_3>{value4_3}</parameter4_3>

</parameter4>

</parameters>



Any idea how is it possible to send complex type as web
service input from flex ?