| Author |
AXIS : call.setReturnType( )
|
Kai Unewisse
Greenhorn
Joined: Nov 10, 2002
Posts: 10
|
|
Hi all, I am playing around with different client types. Right now, I want to use a server method public String[] getAppointments(Date lookAt, int id ) I want to use the axis-Call-Object and not WSDL2Java. So far it is : Call call = (Call) service.createCall(); call.setTargetEndpointAddress(new URL (SERVICE_URL) ); call.setOperationName(new QName("Calendarium", "getAppointments")); call.addParameter("date", org.apache.axis.Constants.XSD_DATE, javax.xml.rpc.ParameterMode.IN); call.addParameter("id", org.apache.axis.Constants.XSD_INT, javax.xml.rpc.ParameterMode.IN); call.setReturnType( org.apache.axis.Constants.??? javax.xml.rpc.ParameterMode.OUT); resp = (String) call.invoke( new Object[] { date, id } What do I have to write for the Returntype? What do I have to do, if I don�t want to wrap my int into a Integer ? This is a snippet from the wsdl file : <complexType name="ArrayOf_xsd_string"> - <complexContent> - <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" /> </restriction> </complexContent> </complexType> ... - <wsdl:message name="getAppointmentResponse"> <wsdl art name="getAppointmentReturn" type="impl:ArrayOf_xsd_string" /> </wsdl:message>
|
 |
Marek Lapin
Greenhorn
Joined: Sep 19, 2004
Posts: 15
|
|
Hi should be enough bye
|
 |
 |
|
|
subject: AXIS : call.setReturnType( )
|
|
|