Client Test program.
package mil.tis.demo;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import java.net.URL;
import mil.tis.demo.Hello;
import javax.xml.namespace.QName;
public class HelloTest
{
public static void main(String[] args)
{
try {
hello(args);
}
catch (Exception e) {
e.printStackTrace();
}
}
public static String hello(String[] args) throws Exception {
String urlStr = "http://localhost:3809/tisWebServices/Hello?wsdl";
String argument = "Dooda";
System.out.println("Contracting webservice at " + urlStr);
URL url = new URL(urlStr);
QName qName = new QName("http://mil.tis.demo/", "HelloService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService(url, qName);
Hello hello = (Hello)service.getPort(Hello.class);
String result = hello.hello(argument);
String result2 = hello.getText();
System.out.println(result);
// This is the line that fails.
Object uicStringArray = hello.getUics();
return(result);
}
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3912925#3912925
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3912925
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user