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 testing webservice locally Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "testing webservice locally" Watch "testing webservice locally" New topic
Author

testing webservice locally

San Smith
Greenhorn

Joined: Feb 10, 2008
Posts: 14
I have one xml coming from another system. My application read this xml and update another system.

I have this URL:
http://localhost:8080/*/X
when i go to this URL it invokes doGet() method. But I need to invoke doPost() method.



I want to test my code locally. Can anyone please help me what I have to do to test this code locally? Can I do it through SOAP UI?

Thank you
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
Your application will have to create a HttpURLConnection with method POST - that is standard Java library stuff.

There are toolkits such a the Apache HttpClient, but for a simple connection just use the standard libaray.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: testing webservice locally