wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
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: 14
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: 12761
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: http://aspose.com/file-tools
subject: testing webservice locally
Similar Threads
HTML username password sending to servlet
passing session values between two web application
Calling servlet from jsp
About doGet and doPost of Services
dopost() and doget() methods