Thomas, can you please explain where this method is located?
Here is my code:
import javax.xml.namespace.QName;
import javax.xml.rpc.Call;
import javax.xml.rpc.ServiceFactory;
import java.net.URL;
public class RemoteClient {
public static void main(String[] args) {
String nmsp =
"http://www.neonsys.com/WebServices/CICS";//targetNamespace in WSDL
String qnameService = "CICS";
String qnamePort = "CICSSoap";//<port name in WSDL
String urlstr = "http://mkt.neonsys.com/demo/kobsoap?wsdl";
try {
URL url = new URL(urlstr);
ServiceFactory factory = ServiceFactory.newInstance();
javax.xml.rpc.Service serv = null;
QName qName = null;
try {
qName = new QName(nmsp, qnameService);
serv = factory.createService(url, qName);
} catch (Exception ex) {
System.out.println("qnameService = " + qnameService);
ex.printStackTrace();
}
Call call = serv.createCall(new QName(nmsp, qnamePort), new
QName(nmsp, "ShowUser"));
String resEl = "";
System.out.println("output before call.invoke:");
System.out.println("call.getTargetEndpointAddress() = " +
call.getTargetEndpointAddress());
System.out.println("call.getOutputValues().toString() = " +
call.getOperationName().toString());
System.out.println("output:" + call.invoke(new Object[]{}));
} catch (Exception e) {
e.printStackTrace();
}
}
}
What did you mentioned saying "Try explicitly naming the port"?
Thanks.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3894218#3894218
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3894218
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user