Hi,

 

My web service implementation class has a method which returns a VO say
"TestVO"

This TestVO contains a Hashmap with some key/values.

When I deploy this web service in Axis 2 & in the wsdl , I have the
following:

 

<xs:complexType name="TestVO">

  <xs:sequence>

  <xs:element minOccurs="0" name="age" type="xs:int" /> 

  <xs:element minOccurs="0" name="currency" nillable="true"
type="xs:anyType" /> 

  <xs:element minOccurs="0" name="name" nillable="true" type="xs:string"
/> 

  </xs:sequence>

  </xs:complexType>

 

 

When I generate the client-side code, I have the following in the stub

 

public static class TestVO implements
org.apache.axis2.databinding.ADBBean{

 

protected org.apache.axiom.om.OMElement localCurrency;

 

 public org.apache.axiom.om.OMElement getCurrency() {

                        return localCurrency;

        }

 

}

 

Now, in the client application,

OMElement curmap = param1.getCurrency();

 

Now, how do I retrieve the structure of curmap?

 

I tried with following methods, but I am getting null

 

curmap.getChildElements()

curmap.getFirstElement()

 

Could you please help?

 

Thanks,

Ajit

 



DISCLAIMER:
This message contains privileged and confidential information and is intended 
only for an individual named. If you are not the intended recipient, you should 
not disseminate, distribute, store, print, copy or deliver this message. Please 
notify the sender immediately by e-mail if you have received this e-mail by 
mistake and delete this e-mail from your system. E-mail transmission cannot be 
guaranteed to be secure or error-free as information could be intercepted, 
corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The 
sender, therefore,  does not accept liability for any errors or omissions in 
the contents of this message which arise as a result of e-mail transmission. If 
verification is required, please request a hard-copy version.

Reply via email to