This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes Service Rest between Java and C# applications Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Service Rest between Java and C# applications" Watch "Service Rest between Java and C# applications" New topic
Author

Service Rest between Java and C# applications

erwan clement
Greenhorn

Joined: Jul 25, 2012
Posts: 2
Hi,
after several days of struggling, i come here to ask some help.
I need to exchange a XML file between a C# application (server) and a java application (client).
The client give a parameter to a server and this one give an answer with the help of the parameter.
So, at first, I try to do a Get request from the client and the server do a put request. Is that correct ?

Here is the Get request :


And on the server side :


But I have always an error 500 and I really don't know why !
How can I correct my code ?

Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 13001
    
    5
I try to do a Get request from the client and the server do a put request.


The server should respond to a GET request in a method mapped to the GET method by writing a response body containing the XML.

The PUT method would be used if your client was sending a document to the server.


Bill
erwan clement
Greenhorn

Joined: Jul 25, 2012
Posts: 2
Yeah, I figured it out sooner today...
Thanks anyway, your response would be useful !
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Service Rest between Java and C# applications
 
It's not a secret anymore!