You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anton Pirker <he...@gmiatlich.net> on 2007/04/10 16:30:19 UTC

wsdl2java parameter order in adb stub

Hello List!

I generated Java Code for my WSDL-File with wsdl2java batch file. (I use 
the nightly Snapshot from today (10th apr): 
http://people.apache.org/dist/axis2/nightly/)

The generated SOAP-XML-Request hast an other order of the message-parts 
as specified in the WSDL, so the server rejects my request.

Here's the WSDL:

  <message name="ssoLoginRequest">
    <part name="ssoLoginUser" type="typens:ssoLoginUser"/>
    <part name="c_login"    type="xsd:string" />
    <part name="c_password" type="xsd:string" />
    <part name="c_client"   type="xsd:string" />
  </message>



and here the generated xml:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
   <ns1:ssoLogin xmlns:ns1="urn:ssoService">
      <c_password>test1234</c_password>
      <c_login>user1</c_login>
      <c_client>client1</c_client>
      <ssoLoginUser xmlns="">
         <login>a.pirker</login>
         <password>test1234</password>
         <client>we</client>
         <client_title>we</client_title>
         <force_migration>0</force_migration>
         <perm_login>0</perm_login>
         <ipuser>62.99.267.58</ipuser>
      </ssoLoginUser>
   </ns1:ssoLogin>
</soapenv:Body>
</soapenv:Envelope>


is there a possibility to say axis2 to use the same order as in the wsdl?

i generate the java-stub with following command:

[axis2-dir]\bin> wsdl2java.bat -uri Authentification.wsdl -p at.ignaz.sso -d adb -s -o sso



any help is greatly appreciated!

thanks in advance,
Anton





---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: wsdl2java parameter order in adb stub

Posted by Anton Pirker <he...@gmiatlich.net>.
Hi again!

I found the solution. (I am all new to the big world of SOAP)

I just had to add a parameterOrder-Attribute to the Operation, and 
everything works now.
(Except that i now get an "Unexpected subelement" but this is another 
story, i think)


sorry for the noise,
Anton



Anton Pirker wrote:
> Hello List!
>
> I generated Java Code for my WSDL-File with wsdl2java batch file. (I 
> use the nightly Snapshot from today (10th apr): 
> http://people.apache.org/dist/axis2/nightly/)
>
> The generated SOAP-XML-Request hast an other order of the 
> message-parts as specified in the WSDL, so the server rejects my request.
>
> Here's the WSDL:
>
>  <message name="ssoLoginRequest">
>    <part name="ssoLoginUser" type="typens:ssoLoginUser"/>
>    <part name="c_login"    type="xsd:string" />
>    <part name="c_password" type="xsd:string" />
>    <part name="c_client"   type="xsd:string" />
>  </message>
>
>
>
> and here the generated xml:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
>   <ns1:ssoLogin xmlns:ns1="urn:ssoService">
>      <c_password>test1234</c_password>
>      <c_login>user1</c_login>
>      <c_client>client1</c_client>
>      <ssoLoginUser xmlns="">
>         <login>a.pirker</login>
>         <password>test1234</password>
>         <client>we</client>
>         <client_title>we</client_title>
>         <force_migration>0</force_migration>
>         <perm_login>0</perm_login>
>         <ipuser>62.99.267.58</ipuser>
>      </ssoLoginUser>
>   </ns1:ssoLogin>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> is there a possibility to say axis2 to use the same order as in the wsdl?
>
> i generate the java-stub with following command:
>
> [axis2-dir]\bin> wsdl2java.bat -uri Authentification.wsdl -p 
> at.ignaz.sso -d adb -s -o sso
>
>
>
> any help is greatly appreciated!
>
> thanks in advance,
> Anton
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org