Hi all,

Can you help please...

I went through the following steps to develop a axis2 webservice from
a wsdl 2.0 file and a set of corresponding xsd files

1) run the command wsdl2java on my wsdl 2.0 file to generate the server code:
wsdl2java -uri C:\workspace\UserService\myService.wsdl -o
c:\workspace\UserService -l java -p bl.grit.service -ss -sd -d adb -wv
2.0

2) run the command wsdl2java again with the following options to
generate the client code
wsdl2java -uri C:\workspace\UserService\myService.wsdl -o
c:\workspace\UserService -l java -p mypackage.client -s -d adb -wv 2.0

3) run the jar.server and then the jar.client ant tasks from the build
file generated by the earlier steps. Two files are generated, the
UserService.aar and a UserService-test-client.jar

4) deploy the generated UserService.aar into tomcat. As a result of
this step I can display the service and the list of available methods
in a browser and also the wsdl file (please note that the displayed
wsdl is different from the one I used to generate the webservice
though)

5) now I tried everything to invoke the deployed webservice with no success.

* Here are example errors I get when using the generated client
UserService-test-client.jar

> java -cp .;UserService-test-client.jar -Djava.ext.dirs=C:\axis2-1.5.4\lib  
> mypackage.client.UserClient

org.apache.axis2.AxisFault: <soapenv:Reason
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";><soapenv:Text
xml:lang="en-US">The endpoint reference (EPR)
 for the Operation not found is /axis2/services/UserService/add/ and
the WSA Action = null</soapenv:Text></soapenv:Reason>
        at 
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:451)
        at 
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
        at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
        at 
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at 
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
        at uk.ac.diamond.client.UserServiceStub.add(UserServiceStub.java:400)
        at uk.ac.diamond.client.UserClient.main(UserServiceClient.java:54)

* When trying to invoke the webservice directly from the browser

http://localhost:8080/axis2/services/UserService/add?parm0=10,param1=30

I get the following error

<soapenv:Reason>
<soapenv:Text xml:lang="en-US">
org.apache.axis2.databinding.ADBException: Unexpected subelement add
</soapenv:Text>
</soapenv:Reason>

My questions are:
* is there any known bugs/issues using the combination axis2 + wsdl
2.0 + wsdl2java ? if yes Can you please point me to the information?
* is there any guide, tutorial, samples on how to develop webservices
using axis2 and wsdl 2.0?
* any other help?

Thank you for your help

dw

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to