File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes AXIS : call.setReturnType( ) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS : call.setReturnType( )" Watch "AXIS : call.setReturnType( )" New topic

AXIS : call.setReturnType( )

Kai Unewisse

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"));
org.apache.axis.Constants.XSD_DATE, javax.xml.rpc.ParameterMode.IN);

call.setReturnType( org.apache.axis.Constants.???

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[]" />
- <wsdl:message name="getAppointmentResponse">
<wsdl art name="getAppointmentReturn" type="impl:ArrayOf_xsd_string" />
Marek Lapin

Joined: Sep 19, 2004
Posts: 15

should be enough

It is sorta covered in the JavaRanch Style Guide.
subject: AXIS : call.setReturnType( )
jQuery in Action, 3rd edition