Hi,

1. I created the class file for a webservice
2. Using Java2WSDL I created the WSDL. Command given was 
java org.apache.axis.wsdl.Java2WSDL -o Trial.wsdl -l 
"http://localhost:8080/axis/services/Trial"; trial.ws.TrialService
3.java org.apache.axis.wsdl.WSDL2Java -s -Strue Trail.wsdl 
   
A)
When I used -Strue option with the abvoe command, it addede this line to 
deploy.wsdd

<operation name="getPayments" qname="operNS:getPayments" 
xmlns:operNS="http://ws.payments"; returnQName="return" >
        <parameter name="in0" type="tns:PaymentsRequest" 
xmlns:tns="http://ws.payments"/>
      </operation>
      <parameter name="allowedMethods" value="getPayments"/>


B)
When I gave the command at 3. without -Strue only this line was added to 
deploy.wsdd
<parameter name="allowedMethods" value="*"/>

With A) option I got error. When I tried accessing the service on AXIS server, 
the service name was listed without method names. And on click the exception 
was raised 'Class Cast exception'.

With B) option the web service worked fine. It listed teh Service along with 
teh mehtods and WSDL was displayed on click of it.


Can you please let me know what can be the problem with A) option

regards
Aparna





      

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to