Webservice returning bean

Advertisement
Hello All, I have one web service which returns java bean,
this bean internally incorporated different beans so my response is
like this:
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GetConfigResponse xmlns:ns2="
http://service.nms.satpath.com/">
<configuration>
<subnet>
<ncsGatewayIP>50000</ncsGatewayIP>
<ncsID>1</ncsID>
<ncsIPAddr>192.168.1.1</ncsIPAddr>
<ncsSignallingPort>255.255.0.0</ncsSignallingPort>
<ncsSubnetMask>192.168.0.2</ncsSubnetMask>
</subnet>
<groups>
<groupID>1<groupID>
<groupName>myStar<groupName>
<groups>
<resources>
<ID>3<ID>
<Desc>mytransponder</Desc>
<resources>
</configuration>
</ns2:GetConfigResponse>
</S:Body>
</S:Envelope>
I have to pass different beans to different components like I
have sub net component in which I want to pass information from
<subnet> ... </subnet>
how can I do that?
Thanks in advance for all the help and support.
Advertisement

Replay

Hello All, I have one web service which returns java bean,
this bean internally incorporated different beans so my response is
like this:
<S:Envelope xmlns:S="
http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:GetConfigResponse xmlns:ns2="
http://service.nms.satpath.com/">
<configuration>
<subnet>
<ncsGatewayIP>50000</ncsGatewayIP>
<ncsID>1</ncsID>
<ncsIPAddr>192.168.1.1</ncsIPAddr>
<ncsSignallingPort>255.255.0.0</ncsSignallingPort>
<ncsSubnetMask>192.168.0.2</ncsSubnetMask>
</subnet>
<groups>
<groupID>1<groupID>
<groupName>myStar<groupName>
<groups>
<resources>
<ID>3<ID>
<Desc>mytransponder</Desc>
<resources>
</configuration>
</ns2:GetConfigResponse>
</S:Body>
</S:Envelope>
I have to pass different beans to different components like I
have sub net component in which I want to pass information from
<subnet> ... </subnet>
how can I do that?
Thanks in advance for all the help and support.