1 Reply Latest reply on Feb 21, 2006 2:08 AM by anders.hedstrom

    webservice arguments are need to be in order ?

    slickbeans

      hi,

      I m using jboss [5.0.0alpha check out at 20060214] version and using Macromedia Flex Beta 2 client to call webservice.

      My question is webservice arguments are need to be in order ?

      following is the part of schema from jboss webservice

      <complexType name="login">
       <sequence>
       <element name="enterpriseId" type="long"/>
       <element name="locale" type="int"/>
       <element name="password" nillable="true" type="string"/>
       <element name="user" nillable="true" type="string"/>
       </sequence>
      </complexType>


      when Flex send the request to webservice. webservice args are not in order and i got the error - javax.xml.rpc.JAXRPCException: org.jboss.ws.binding.BindingException: javax.xml.bind.JAXBException: Failed to parse source
      I corrected the order of args in tcpmon - resend and so i get the result now.

      soap request from flex,

      <SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <SOAP-ENV:Body>
       <login xmlns="http://com.application.account/LoginLogin">
       <ns0:enterpriseId xmlns:ns0="http://com.application.account/LoginLogin">1</ns0:enterpriseId>
       <ns0:user xmlns:ns0="http://com.application.account/LoginLogin">aungzay</ns0:user>
       <ns0:locale xmlns:ns0="http://com.application.account/LoginLogin">1</ns0:locale>
       <ns0:password xmlns:ns0="http://com.application.account/LoginLogin">secret</ns0:password>
       </login>
       </SOAP-ENV:Body>
       </SOAP-ENV:Envelope>



      Thanks
      -AZ-