I've tried to run TcpTunnelGUI, but it never shows any data.
 
So I ask if somebody can write me the SOAP-HTTP Request and Response for this simple example.
 
 
CLIENT:
 
    String data="hello";
    Call call = new Call();
    call.setTargetObjectURI("urn:Boomerang");
    call.setMethodName("getString");
    call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);
    Vector params = new Vector();
    params.addElement(new Parameter("data", String.class,data, null));
    call.setParams(params);
 
    Response resp;
     try
       {
         resp = call.invoke(new URL("http://myhost:8080/soap/servlet/rpcrouter"), "");
       }
       catch (SOAPException e)..............................................
SERVER:
 
public class Boomerang  {
  public String getString(String str)
  {
        return str;
  }
}
 
Thank you,
                    Simone.
 

Reply via email to