Forum Discussion
Tim_Arp_112576
Nimbostratus
Aug 12, 2004Handling returned parameters with SOAP and Java
Hi, I have been working on some code to basically mimic the b virtual command line. I'm trying to display the pool members status (up or down) . According to the SDK , the function is like this.
...
Aug 12, 2004
You need to use the getParams() method on the Response object. This is illustrated in the following sample apps in the SDK.
System\ConfigSync.java
System\SystemInet.java
System\SystemServices.java
Here's basically what it looks like
Response resp = call.invoke(...);
Vector params = resp.getParams();
Parameter member_state_list_param = params.elementAt(0);
MemberState[] member_state_list = (MemberState[])member_state_list_param.getValue();
-or-
MemberState[] member_state_list = (memberState[])((Parameter)resp.getParams().elementAt(0)).getValue();<
You use the elementAt() member to extract the correct out variable starting at 0.
Let me know if this works for you.
-Joe
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects