Title: Nachricht

Hi Christoph,

������������ I created a Service object using the endpoint and then from that generated the call object. Like so: -

 

String endpoint ="http://localhost:8080/jboss-net/services/Diagnosis”;

����������� Service service = new Service();

����������� Call call = (Call) service.createCall();

���������������

String methodName = "diagnosePatient";

����������� call.setOperationName(methodName);

�����������

call.addParameter("patientID",org.apache.axis.Constants.XSD_STRING,ParameterMode.IN);

����������� call.addParameter("condition",org.apache.axis.Constants.XSD_STRING,ParameterMode.IN);

 

����������� //Here’s the problem line. Neither

call.setReturnType(null)

���������������

//or

 

��������������� call.setReturnClass(void.class);

 

 

 

I’ve tried leaving out the line altogether and indeed in the case where I’ve a webservice that neither takes nor returns datatypes

e.g. public void induceDelay(); for arguments sake, it all works fine.

 

����������� I keep getting the error :

 

[comment]�� Testing Diagnosis service...

0 [main] ERROR client.Call- No returnType was specified to the Call object!You must call setReturnType() if you have called addParameter().

�����������

 

Thanks Christoph,

Mark.

 

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. Christoph
Sent:
24 March 2003 07:51
To: '[EMAIL PROTECTED]'
Subject: AW: [JBoss-user] Webservice call

 

what did you do in your client code? Use a wsdl-generated stub (most-recommended), use a reflection-based proxy+client-side axis-engine (a bit complicated because of client-side deployment requirements)? or did you programmatically try to invoke the ServiceClient directly (then you have to add meta-data about the call by yourself, I guess, and that seems to be your problem)?

 

CGJ

 

-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 21. M�rz 2003 20:27
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] Webservice call

HI folks,

����������� My client throws the following error,

 

 

Testing Diagnosis service...

 

0 [main] ERROR client.Call- No returnType was specified to the Call object!You must call setReturnType() if you have called addParameter().

Call made to Diagnosis service

DiagnosisClient error: java.lang.NullPointerException

***************************************

 

Which effectively means I have to set the return type for a call if I set a parameter in the call?

Problem is that my service's return type is void.

 

What's the Qname for 'void' I've checked and there's none in

Org.apache.axis.Constants.XSD_

 

Thanks,

Mark.

###########################################

This message has been scanned by F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to http://www.F-Secure.com/

Reply via email to