axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zakaria ghandour <zghand...@pentalog.fr>
Subject call WS taking complexeType
Date Thu, 12 Jul 2007 07:48:42 GMT

Hi,
how can i call web service taking complexetype using call.invoke(..)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
try
{
   Service service = new Service();
   Call call = (Call) service.createCall();
   call.setTargetEndpointAddress( new java.net.URL(uri) );
   call.addParameter(new QName("http://www.intalio.com/", "start"), new
QName("http://www.w3.org/2001/XMLSchema", "string"), String.class,
ParameterMode.IN);
   call.setOperationName(method);
   call.setOperationStyle(org.apache.axis.constants.Style.DOCUMENT);
   call.setOperationUse(org.apache.axis.constants.Use.LITERAL);
   call.setReturnType(org.apache.axis.Constants.XSD_STRING);
   this.result = (String)call.invoke( obj ); 

   System.out.println("Got result : " + this.result);
}
catch(Exception Ex)
{
   System.out.println(Ex.toString());
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
thanks
-- 
View this message in context: http://www.nabble.com/call-WS-taking-complexeType-tf4066579.html#a11555203
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message