File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes WSDL To JAVA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL To JAVA" Watch "WSDL To JAVA" New topic
Author

WSDL To JAVA

Arvind Purohit
Ranch Hand

Joined: Jun 18, 2010
Posts: 43
Hi All
I have generated java code from wsdl file using eclipse axis2 plugin
i.e client side code, server side code, test client also
my question is how will i implement the method of service, i am confused
i am editing SimpleServiceSkeleton.java
it is saying "cannot cast String to sayHelloResponse"

i want to know
1. how i will implement myservice
2. to use this service how will generate .aar file
3. how to deploy it in local machine in tomcat
4. how will i test it
5. how will i write wsdl file which return array of my custom object ( eg array of Employee Class object )

The auto generated files are
1. ExtensionMapper.java
2. SayHelloRequest.java
3. SayHelloResponse
4. SimpleService
5. SimpleServiceCallbackHandler
6. SimpleServiceMessageReceiverInOut
7. SimpleServiceSkeleton
8. SimpleServiceSkeletonInterface
9. SimpleServiceStub
10. SimpleServiceTest

And also
services.xml
SimpleService.wsdl
build.xml

if you require i will send you code of this files

THANKING YOU
ARVIND






Bogumil Zebek
Greenhorn

Joined: Dec 23, 2010
Posts: 3
Hi,

all answers you can find in below tutorials:
http://www.tidytutorials.com/2009/02/web-services-example-using-axis-2-and.html
http://people.apache.org/~ruchithf/hw-axis2/
http://www.tidytutorials.com/2009/02/setting-up-axis2-with-tomcat-6.html






Best regards
Bogumil
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: WSDL To JAVA
 
Similar Threads
Sample Questions for 288 - Need answers
can I create a web service that generates a .csv or .txt file ?
As a service provider and service consumer
Web Services Doubts to Clarify
accessing attribute value from response