• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AXIS : call.setReturnType( )

 
Kai Unewisse
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi


should be enough

bye
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic