The moose likes Web Services and the fly likes sending a xml file with get Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "sending a xml file with get" Watch "sending a xml file with get" New topic
Author

sending a xml file with get

Terry Birch
Greenhorn

Joined: Nov 06, 2011
Posts: 2
Can a get request to a web service be created to consume a XML file like a post does. I have created a service that accepts a XML file okay if done using post but as the request is not being used to update or create items on the server, but rather only to get data for multiple items being requested, I am not sure that using post is proper. If I just change the service from post to get, it does not work. The XML file may contain multiple items that inventory is being requested for and where each item is further described in the XML file as to the warehouse location and other criteria. I am using apache wink. Thank You
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56223
    
  13

No. By definition, GET requests do not contain a body.

[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Terry Birch
Greenhorn

Joined: Nov 06, 2011
Posts: 2
Thank you Bear. I thought I had read that somewhere. You saved me much time from further researching the problem.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: sending a xml file with get
 
Similar Threads
Facade design pattern in web services
javax.net.ssl.SSLException: untrusted server cert chain
problem with struts file upload.
Occasional Connection Reset (IO Exception) Errors when POSTing to Servlet
HTTP Response code 414