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 Sr...@gxs.com on 2008/04/22 23:15:20 UTC

Client Values not transmitting properly

My web services is using Axis 2.



Some of the operations in the web services, take a complex object (obj1) as an input argument.  This input object in turn contains another object (obj2).



Signature looks something like:



      String operation1(Object1 obj1)



Definition of Object1 :

      String name;

      Object obj2;



Definition of Object2:

      String id = "";



The client code is generated using xml binding.  The client code has something like

      Obj1.obj2.setId("ID");



Then the service is invoked, the operation1 receives empty string (which is the default value) for the id element.



In the Soap Monitor, it shows that the server (entry point) is getting the value of "ID" for the objcet2's id element; but when it comes to the operation1 method, it is empty string.



Has anyone seen such a behavior? Is there any workarounds?



================================

Sai (Srinivasan Sairamachandran)

GXS http://www.gxs.com<http://www.gxs.com/>

Srinivasan.Sairam@gxs.com<ma...@gxs.com>

(248)879-0691

================================