[jboss-user] [JBoss jBPM] - Re: Problem testing application
ZazzaZ
do-not-reply at jboss.com
Mon Oct 1 06:04:20 EDT 2007
I pasted the wrong method implementation. Read this
public static void testViaProxy(Service testService, String nameSpaceUri, String portName, URL testWsdlUrl, String serviceName, ServiceFactory serviceFactory){
SportelloCentrale myProxy = null;
try {
myProxy = (SportelloCentrale) testService.getPort(new QName(nameSpaceUri, portName), SportelloCentrale.class);
} catch (ServiceException ex) {
ex.printStackTrace();
}
if (myProxy== null){
System.err.println("No proxy");
return;
}
System.out.println("Proxy OK. Testing method...");
try {
EseguiResponse res = (EseguiResponse) myProxy.esegui(new Esegui("Aldo", "Lezza", "servizio"));
printResponse(res);
} catch (Exception ex) {
ex.printStackTrace();
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4090137#4090137
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4090137
More information about the jboss-user
mailing list