hi,

instead of using

resp = call.invoke(new URL("http://myhost:8080/soap/servlet/rpcrouter";),
"");

use :

resp = call.invoke(new URL("http://myhost:4040/soap/servlet/rpcrouter";),
"");

where 4040 is the port on which the TcpTunnel is listening..

Regards
Paramdeep

----- Original Message -----
From: "Simone Badoer" <[EMAIL PROTECTED]>
To: "Soap" <[EMAIL PROTECTED]>
Sent: Monday, October 08, 2001 2:51 PM
Subject: When TcpTunnelGUI doesn't work...


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.




_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to