Forum Discussion

Tim_Arp_112576's avatar
Tim_Arp_112576
Icon for Nimbostratus rankNimbostratus
Aug 17, 2004

query_pool_associations No mapping found

Hello Again,

 

 

I'm trying to use the function query_pool_associations with JAVA and SOAP. My code is like this below. I'm getting the following exception.

 

 
 if (sPool.length() != 0) { 
 DisplayPool (out,sPool); 
 } else { //Investigate the rule 
 urn= "urn:iControl:ITCMLocalLB/Rule"; 
 initCall(); 
  
 String[] TheRules = {sRule}; 
 Vector RuleParams = new Vector(); 
 RuleParams.addElement(new Parameter("rule_names", String[].class,TheRules, null)); 
 call.setParams(RuleParams); 
 call.setMethodName("query_pool_associations"); 
  
 resp = call.invoke(destURI, urn); 
  
 if (resp.generatedFault()){ 
 Fault fault = resp.getFault(); 
 throw new SOAPException(fault.getFaultCode(), fault.getFaultString()); 
 } else { 
 String[][] ThePools = (String[][]) resp.getReturnValue().getValue(); 
 for (int i=0; i out.println ("
Pool Name "+ThePools[0][i]); 
 } 
 } 
  
 } 
 

 

 

No mapping found for &http://schemas.xmlsoap.org/soap/encoding/:Array& using encoding style &http://schemas.xmlsoap.org/soap/encoding/&.
  • I've looked into this some more and I think you've hit a limitation of Apache SOAP. I ran a similar method off our 9.0 code base and found the following error

     

     

    "[SOAPException: faultCode=SOAP-ENV:Client; msg=Arrays of arrays are not supported ..."

     

     

    The signature for query_pool_associations is:

     

     
     String[][] query_pool_associations( 
         in String[] rule_names 
     );

     

     

    Which looks like Arrays of Arrays to me. If you find a workaround, please let us know and we can post a solution for it.

     

     

    -Joe