Forum Discussion
arkus_10691
Nimbostratus
Jul 08, 2005multii-dimension array SOAPException
I'm using the SOAP api for iControl v9 within IBM's Rational Application Developer. Things have been going pretty well. (Your XTrustProvider is great!)
Problem: Attempting to invoke LocalLB.VirtualServer.get_default_pool_name() results in the following exception:
[SOAPException: faultCode=SOAP-ENV:Client; msg=Arrays of arrays are not supported 'urn:iControl:Common.IPPortDefinition[][1]'.; targetException=java.lang.IllegalArgumentException: Arrays of arrays are not supported 'urn:iControl:Common.IPPortDefinition[][1]'.]
at org.apache.soap.rpc.Call.invoke(Unknown Source)
at MyBigIP.VirtualServer_get_default_pool_name(MyBigIP.java:335)
Code:
String urnPool = new String("urn:iControl:LocalLB/Pool");
String[] pool_name_list = new String[] {"somename"};
Call call = updateConnectionInfo(urnPool);
Vector params = new Vector();
params.addElement(new Parameter("pool_names", String[].class, pool_name_list, null));
call.setParams(params);
call.setMethodName("get_member");
Response resp = call.invoke(m_endpoint, urnPool);
Can you please enlighten?
- Thanks for the kudos on the XTrustProvider, but they should really go to user 'Exnihilo' for contributing that piece of code to the DevCentral community.
public static Object getNewArray( String inScopeEncStyle, Element arrayEl, QName arrayItemType, XMLJavaMappingRegistry xjmr) throws IllegalArgumentException { ... if (componentTypeName.endsWith("]")) { throw new IllegalArgumentException("Arrays of arrays are not " + "supported '" + arrayTypeValue + "'."); } ... }
- arkus_10691
Nimbostratus
Ouch. If using WS-SOAP, that appears to drasticly limit the number of usable APIs. - Axis is a completely different package so the two should play very nicely together. I've built applications using both and there is no known issues doing so.
- arkus_10691
Nimbostratus
Joe, - I don't have WebSphere to test this on but I did find a few hits on google with respect to Axis, WebSphere and SAAJ.
- Also, this article describes how to the the Sun JCE provider from within WebSphere
- Sunit_Tailor_11
Nimbostratus
Hi bmcgoven, - arkus_10691
Nimbostratus
The ibmjsse.jar file contains that package. - Sunit_Tailor_11
Nimbostratus
Thanks bmcgoven, - arkus_10691
Nimbostratus
If you are running a command-line app, ensure that you are using the WebSphere JRE. (Launch configuration)
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