You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Simone Badoer <si...@lnl.infn.it> on 2001/10/08 11:21:15 UTC
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.
Re: When TcpTunnelGUI doesn't work...
Posted by Paramdeep Singh <ma...@yahoo.com>.
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" <si...@lnl.infn.it>
To: "Soap" <so...@xml.apache.org>
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
Re: When TcpTunnelGUI doesn't work...
Posted by Paramdeep Singh <ma...@yahoo.com>.
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" <si...@lnl.infn.it>
To: "Soap" <so...@xml.apache.org>
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