Your supposed to let Axis create the serializer and deserialzer classes,
and then use the Stub class to make the calls, It's a lot easier than
the DII way your using.
But, to answer your question, assuming your complexType can be mapped
to, say, a PurchaseOrder Java class, for example, then you would:
..
PurchaseOrder po = new PurchaseOrder("NCC-1701", Calendar.getInstance(),
new Address("Sam Ruby", "Home", "Raleigh", "NC", "27676"));
String receipt = (String) call.invoke( new Object[] {po} );
...
So, you essentially build your Java object and place it into a new array
of type Object.
-jeff
-----Original Message-----
From: zakaria ghandour [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 12, 2007 3:49 AM
To: [email protected]
Subject: call WS taking complexeType
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#a115552
03
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]