Hello,

I am using Apache Axis with Java 1.5.

I want to invoke a web service and pass an array of Strings to it through
one variable.

I have my sample code below my signature. However, what XMLType do I use
with the addParameter function? I have this marked as ??? in my code below.
My array name is inputList.

Thanks for looking.

Cheers,

Chris

//sample code
System.out.println("<!>findNeighborsUsingOrfList:");
String inputList[] = {"YAL001C", "YAL012W"};
ps = "mipsSvm";
scoreThreshold = "0.5";

myCall = (Call) service.createCall();
myCall.setTargetEndpointAddress( new java.net.URL(serviceURL) );
myCall.setOperationName("findNeighborsUsingOrf");
myCall.addParameter( "inputList", ???, ParameterMode.IN );
myCall.addParameter( "scoreThreshold", XMLType.XSD_STRING,
ParameterMode.IN );
myCall.addParameter( "ipsArg", XMLType.XSD_STRING, ParameterMode.IN );
myCall.setReturnType( XMLType.XSD_STRING);
result = (String)myCall.invoke( new Object [] { inputList, scoreThreshold,
ips});

//output the results in lines
resultPieces = result.split(";");
for(int r=0; r<resultPieces.length; r++) { System.out.println("><p>" +
resultPieces[r] + "</p>"); }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to