[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Web Services
 
RSS feed
 
New topic
Author

Testing a wsdl file

Ravi Kiran V
Ranch Hand

Joined: Apr 18, 2009
Messages: 1200

Hi

I am having a WSDL file of some service provider say for example: http:someserver/Test/Somerservice.wsdl .

Please tell me how can i test this service ??

One way i know is by

Using wsimport of JAX-WS create stub classes for the webservice.
Using these create a simple core java client.

Is there any other way ??

Thank you for reading .

I tried to change the world, but I couldn’t find the source code
Kuldip Shetty
Greenhorn

Joined: Jan 07, 2010
Messages: 21

There are many Webservice testing tools in market like SOAPUI where you can create a Soap request, invoke the webservice operation and then verify the Soap responses using the tool.

Kuldip
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Messages: 36

You can try SOAP UI.
Ravi Kiran V
Ranch Hand

Joined: Apr 18, 2009
Messages: 1200

Thank you .

I have downloaded trail version of soapui and tried working on it .

I have developed a simple web service ( A calculator in my case accepts two numbers and gives the result)

I have used jax ws deployed it on to sun one application server .

When tried to use soapui i got this exception :




any idea ??

I tried to change the world, but I couldn’t find the source code
Hany Shafik
Ranch Hand

Joined: Jun 21, 2008
Messages: 36

Can you please submit your JAX-WS service code.
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Messages: 196

Would it be possible for you to put some more details. Where do you see this exception, on client side or server side?

My Blog
Ravi Kiran V
Ranch Hand

Joined: Apr 18, 2009
Messages: 1200

Hi
Thanks for the response .
This is my simple web service .



This works fine when i Generate stubs and skeltos and call methods on it .

Would it be possible for you to put some more details. Where do you see this exception, on client side or server side?


This comes after when i tried to send a soap request using soapui .

Any ideas ??

I tried to change the world, but I couldn’t find the source code
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Web Services
 
RSS feed
 
New topic
The most intelligent Java IDE