0 Replies Latest reply on Nov 21, 2012 9:14 AM by Thomas-69

    Problem with WSDL Type Definitions

    Thomas-69

      Hi all,

       

      I try to use the WSDl Webservice Assistent from Flah Builder to connect to an Webservice.

       

      Now I run to an problem where I need some help!

       

      The WSDL have one Operation with following definition:

       

      <s:element name="SetWMObjectValues">

           <s:complexType>

                <s:sequence>

                     <s:element minOccurs="1" maxOccurs="1" name="hWMObject" type="s:int"/>

                     <s:element minOccurs="0" maxOccurs="1" name="Columns" type="tns:ArrayOfString"/>

                     <s:element minOccurs="0" maxOccurs="1" name="Values" type="tns:ArrayOfAnyType"/>

                </s:sequence>

           </s:complexType>

      </s:element>

       

      the webservice generate the following XML:

       

      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <SOAP-ENV:Body>

          <tns:SetWMObjectValues xmlns:tns="http://www.windream.com/WebService1">

            <tns:hWMObject>10</tns:hWMObject>

            <tns:Columns>

              <tns:string>Inhalt</tns:string>

            </tns:Columns>

            <tns:Values>

              <tns:anyType>test</tns:anyType>

            </tns:Values>

          </tns:SetWMObjectValues>

        </SOAP-ENV:Body>

      </SOAP-ENV:Envelope>

       

       

      The server give me a fault, that the Type of the Values are wrong, so Ithink he want to know real Type of the value (string,int,boolean).

      Because I can not modify the webservice I search for a solution to do it in Flex.

       

      For my opinion there are 2 possible solution:

       

      1. hook in the geneation of the XML to make the Type correkt

      2. edit the Asynktoken with the XML befor it is send

       

       

       

      But I dont know which is the best solution, and how can I managed that!

       

      Hope someone can give me a tipp

       

      Best regards

       

      Thomas