File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "testing webservice locally" Watch "testing webservice locally" New topic

testing webservice locally

San Smith

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

I have this URL:
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

Joined: Mar 22, 2000
Posts: 13027
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.

I agree. Here's the link:
subject: testing webservice locally
It's not a secret anymore!