aspose 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 Java 8 in Action this week in the Java 8 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: 12682
    
    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

Java Resources at www.wbrogden.com
 
wood burning stoves
 
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