I was hoping that I could just write a basic java class like MyJunitTest.java, drop it into Tomcat renamed to MyJunitTest.jws and it would automagically be able to use OUT parameters - to do this I'd need to know how I would define an OUT parameter in a java method..

Thanks,

Ben

Pathuru, Kiran wrote:

I do the same with my web services. My wsdd file looks like this..

<operation method="blbb">
       <parameter name="code" type="tns:string"
xmlns:tns="http://www.w3.rg/2001/XMLSchema"; mode="OUT"/>
       <parameter name="message" type="tns:string"
xmlns:tns="http://www.3.org/2001/XMLSchema"; mode="OUT"/>
</operation>

I generated it using WSDL2Java. Your wsdl should look somethig like this...

 <message name="method">
   <part name="param1" type="xsd:string"/>
   <part name="param2" type="xsd:string"/>
 </message>

 <message name="methodResponse">
   <part name="code" type="xsd:string"/>
   <part name="message" type="xsd:string"/>
 </message>

That should do...

regards,
kiran pathuru

-----Original Message-----
From: Ben Brown [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 03, 2004 12:56 PM
To: [EMAIL PROTECTED]
Subject: Creating a JWS web service with OUT parameters?


I want to do some JUnit tests with simple JWS webservices but only a result parameter can be returned by default, not OUT parameters. How can I get it to return OUT parameters as a java method can only return one OUT parameter?
TIA,


Ben







Reply via email to