Hi all,

I generated some stubs using WSDL2java tool. Here is the kind of command I used:
WSDL2Java -uri wsdlPath -p stub-d adb -s -uw -o outputDir

Now when I compare the generated stub and the wsdl, I see the order of parameters has changed:

WSDL:
<message name='Vpn_groupAccessService_help'>
 <part name='Vpn_group_1' type='ns1:Vpn_group'/>
 <part name='String_2' type='xsd:string'/>
 <part name='int_3' type='xsd:int'/>
</message>

stub:
public stub.Vpn_groupStub.HelpResponse help(
   int param1,
   stub.Vpn_groupStub.Vpn_group param2,
   java.lang.String param3)

In that case, the int parameter is switched to the first place. By reading the code I see the parameters are mapped to the wsdl values in 'toEnvelope" methods. I need to automate the call to web services based on these stubs. My application knows the order of parameters in the wsdl so I'd like to know how the parameters are reordered in the stub to call the methods by reflection. (Of course, that case is simple because all parameters have different types, but it is not always as obvious). I've searched the web without finding much info about this. An old thread says something about alphabetical order, but it doesn't seem to be the case here.

Thanks for your help or suggestions,

Best regards,

Maxime




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to