aspose file tools*
The moose likes Web Services and the fly likes Creating a webservice using JAX-WS Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Creating a webservice using JAX-WS Question" Watch "Creating a webservice using JAX-WS Question" New topic
Author

Creating a webservice using JAX-WS Question

Rajesh Khan
Ranch Hand

Joined: Oct 16, 2011
Posts: 230
I am currently consuming a C++ webservice using JAX. (I generated the files using wsimport).
Now i know my client is correct. Since I have been using it to connect and retrieve data from the C++ webservice. Now I wanted to actually host the webservice in JAVA . How can i create a server webservice using the existing WSDL file.?
This is my current approach:
Server:

Then the main file is


The Client Accesses the webservice using (I am sure there is no problem with the client)


Any suggestions what might be going wrong ??
I get the following Errors


Andi Eska
Greenhorn

Joined: Jun 20, 2003
Posts: 14

Rajesh Khan wrote:I am currently consuming a C++ webservice using JAX. (I generated the files using wsimport).
How can i create a server webservice using the existing WSDL file.?


Use wsimport -s sources -d generated http://localhost:6661/oper/?wsdl.
this also generates the WebService (server) Interface.




Rajesh Khan wrote:
Any suggestions what might be going wrong ??
I get the following Errors




Seems like your client is sending a request your java web-service can not handle.

Try to implement the generated WebService interface using the wsimport tool as described above.

You may also compare your original wsdl file and the wsdl file of the java web service for example http://localhost:6661/oper/?wsdl
to see if there are any differences.

Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

can you post your wsdl?


Avinash G.A
OCP Java SE 6 Programmer, OCP Java EE 5 Web Component Developer, OCE Java EE 6 Web Services Developer, VMware Certified Core Spring 3.x Developer, EMC Proven Professional (ISM-V2)
Andi Eska
Greenhorn

Joined: Jun 20, 2003
Posts: 14

Avinash Ga wrote:can you post your wsdl?


Whom do you mean? The original poster? From your question it's not clear whom you are asking.
I can post my but it will not help anything. It's the "same" you'll get when you use the webservice classes from the original post and start the server.
Avinash Ga
Ranch Hand

Joined: Aug 13, 2011
Posts: 78

Andi Eska wrote:
Avinash Ga wrote:can you post your wsdl?


Whom do you mean? The original poster? From your question it's not clear whom you are asking.
I can post my but it will not help anything. It's the "same" you'll get when you use the webservice classes from the original post and start the server.


Hi Andi,

i think the original poster wants to build a contract first jax-ws. so asked the wsdl to verify.

thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a webservice using JAX-WS Question