I send a SOAP request to the server using the GWT on the client side, and my own ++ server on the server side. The code in gwt looks like this

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, "http://myServerName/backEndDispatcher"); builder.sendRequest(soapEnvelope, new RequestCallback(){ public void onResponseReceived(Request request, Response response) { int respStat = response.getStatusCode(); if (respStat != 200) { return; } // ... } public void onError(Request request, Throwable exception) { // ... } }); } 

SOAP request code

 <?xml version="1.0"?> <soap:Envelope xmlns:soap="http://www.w3.org/2001/12/soap-envelope" soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding"> <soap:Body xmlns:c="http://myServerName/Product/C" xmlns:a="http://myServerName/Product/A" xmlns:b="http://myServerName/Product/B"> <c:Event> <a:OnEvent> <b:Id>1</b:Id> </a:OnEvent> </c:Event> </soap:Body> </soap:Envelope> 

The request comes to the server, but after a double line feed there is nothing (the package itself). What could be the error?

  • And how did you determine that there is nothing more? With wireshark hope? - a_s
  • Everything is much simpler, we have a samopisny server. I looked that in a socket comes. - Nicolas Chabanovsky


1 answer 1

In general, sending data to the content part of a GET request is a very strange idea and is not specified by RFC2616. Perhaps, therefore, the data is not contained after two line breaks. Is it necessary to use exactly GET? Why not use POST?