Title: Nachricht

I’ll just have to get used to trusting the generation tools.

Thanks again Christoph.

 

Mark.

 

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

 

Source code generation is ok for everything that you do not like to debug ;-)

 

For stubs and all kind of technical aspects, it is perfect when integrated into your IDE.

 

The code looks as if you would write the stub manually. I could not see an optimization measures.

 

 

CGJ

 

 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. März 2003 17:14
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] Webservice call

I shoulda thought of that. ; (

Haven't used that WSDL2Java tool yet.

I'm always a bit weary of source generation tools.

Do you find it includes any redundant data?

 

Mark.

 

 

 

 

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

 

as you know, source code is the only "truth".

 

I simply looked into one of the stubs generated from wsdl2java ;-)

 

CGJ

 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. März 2003 14:12
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] Webservice call

That's fantastic Christoph,

            How come I couldn't find it in any of the APIs? Has it always been included in AXIS or is it a recent addition to the api?

 

Mark.

 

 

 

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

 

Try

 

call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);

CGJ

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 24. März 2003 11:48
An: [EMAIL PROTECTED]
Betreff: RE: [JBoss-user] Webservice call

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/

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

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

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

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

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

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