No it's not. In the spirit of the book "Godel, Escher, Bach" by D.
Hofstadter I venture that it is possible to have one source code file
and vary what the resulting executable does by applying different
compilers to it. Remember the Crab who had one record and a shed full
of record players?

:-))))

Sorry, but I just could not resist....

++Jos.es

And thus it came to pass that Jung , Dr. Christoph wrote:
(on Mon, Mar 24, 2003 at 03:03:06PM +0100 to be exact)

> 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,Parameter
> Mode.IN);
>  
> call.addParameter("condition",org.apache.axis.Constants.XSD_STRING,Parameter
> Mode.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/

-- 
I have my fears, but they don't have me...



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to