wood burning stoves 2.0*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS : call.setReturnType( )" Watch "AXIS : call.setReturnType( )" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AXIS : call.setReturnType( )
 
Similar Threads
AxisFault: could not find deserializer for type ...
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
How to invoke a webservice in .net from servlet application
Problem with Java Client
question on client side soap binding stub on wsdl complext type element