[jboss-user] [JBoss Web Services] - How can I create Java web service (jax-ws) with array or List as a parameter
faber81
do-not-reply at jboss.com
Tue Feb 7 05:58:16 EST 2012
faber81 [https://community.jboss.org/people/faber81] created the discussion
"How can I create Java web service (jax-ws) with array or List as a parameter"
To view the discussion, visit: https://community.jboss.org/message/714907#714907
--------------------------------------------------------------
How to invoke a list of parameters and a string parameter
URL wsdlLocation;
String messaggio="";
try {
wsdlLocation = new URL(" http://localhost:8080...................................?wsdl http://localhost:8080...................................?wsdl");
String ns = " http://impl.businesslogic/ http://impl.businesslogic/";
QName serviceName = new QName(ns, "ServiceBL");
QName port = new QName(ns, ServiceBLPort");
QName operation = new QName(ns, "executeService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(wsdlLocation, serviceName);
Call call = service.createCall(port, operation);
Object rispostaWS = call.invoke(new Object[]{new List<String>command, new String(ID)});
messaggio = (String)rispostaWS;
this is my method but throws error.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/714907#714907]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120207/22493a6f/attachment.html
More information about the jboss-user
mailing list