|
Assuming the port is the same(which it will be
unless you specifically reconfig Tomcat otherwise)
You would need to identify the machine name via setTargetEndpointAddress for the call object as in this example- Service
service = new Service();
try { Call call = (Call) service.createCall(); //endPoint is passed in from
client
call.setTargetEndpointAddress(new java.net.URL(endPoint)); //OperationName call.setOperationName(method);
String[] tokens = word.split(",");
list = java.util.Arrays.asList(tokens);
//iterate thru all tokens ..
if(call.isParameterAndReturnSpecRequired(new QName(method))) { for (int x=0; x<list.size(); x++) { tokens = list.get(x).toString().split("=");
String Fieldname = new
String(tokens[0]);
String Fieldname_value = new String(tokens[1]); //
determineFieldname(call, Fieldname,Fieldname_value);
if(Fieldname == "out_ID") { out_ID=Fieldname_value; call.addParameter("out_ID", org.apache.axis.Constants.XSD_STRING,ParameterMode.IN); } if(Fieldname == "out_NAME") { out_NAME = Fieldname_value; call.addParameter("out_NAME", org.apache.axis.Constants.XSD_STRING,ParameterMode.IN); } if(Fieldname == "the_network_active") { the_network_active=Fieldname_value; call.addParameter("the_network_active", org.apache.axis.Constants.XSD_STRING,ParameterMode.IN); } if(Fieldname == "the_network_id") { the_network_id=Fieldname_value; call.addParameter("network_id", org.apache.axis.Constants.XSD_STRING,ParameterMode.IN); } if(Fieldname == "the_network_name") { the_network_name = Fieldname_value; call.addParameter("the_network_name", org.apache.axis.Constants.XSD_STRING,ParameterMode.IN); } } //end for } //end isParameterAndReturnSpecRequired(QName operationName) returns true Object parameters[] = new
Object[]{out_ID,out_NAME,the_network_active,the_network_id,the_network_name};
for (int x=0;
x<list.size(); x++)
{ System.out.println("parameter:"+x+" is = "+parameters[x].toString()); } results = call.invoke(parameters); M-
*********************************************************************
This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you.
|
- Problem sending Date between web services HHDirecto . Net
- Re: Problem sending Date between web services Martin Gainty
- Re: Problem sending Date between web services HHDirecto.Net
- Dynamic Binding / Stubless Invocation Andrews Scanavarro
- Re: Dynamic Binding / Stubless Invocat... Martin Gainty
- Re: Problem sending Date between web servi... Manuel Mall
- Re: FW: Problem sending Date between web services HHDirecto . Net
