This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Web Services and the fly likes sending a xml file with get Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "sending a xml file with get" Watch "sending a xml file with get" New topic

sending a xml file with get

Terry Birch

Joined: Nov 06, 2011
Posts: 7
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

Joined: Jan 10, 2002
Posts: 62127

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

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Terry Birch

Joined: Nov 06, 2011
Posts: 7
Thank you Bear. I thought I had read that somewhere. You saved me much time from further researching the problem.
jQuery in Action, 2nd edition
subject: sending a xml file with get