BPEL Web Service Client Generated from WSDL using Systinet WASP
451670Oct 10 2005 — edited Oct 14 2005I am attempting to Call a BPEL Web Service using a Client generated from the Systinet Build Web Service Client from Internet WSDL. The client code appears to be generated correctly from the WSDL, however when I invoke the client, I am unable to access the web Service.
Here is the Main:
public static void main (String args[]) throws Exception {
PersonService service;
String wsdlURI = "http://M091043:9700/orabpel/default/PersonService/v2005_09_28__24388/PersonService?wsdl";
String serviceURI = "http://M091043:9700/orabpel/default/PersonService/v2005_09_28__24388";
// lookup service
ServiceClient serviceClient = ServiceClient.create(wsdlURI);
serviceClient.setServiceURL(serviceURI);
String wsdlLocation = serviceClient.getWSDLLocation();
service = (PersonService)serviceClient.createProxy(PersonService.class);
// now, call the methods on your Web Service interface
//eg. service.getMessage();
}
Which fails on the service = line with the following:
org.systinet.wasp.webservice.LookupException: Error obtaining WSDL definition from http://M091043:9700/orabpel/default/PersonService/v2005_09_28__24388/PersonService?wsdl
at com.systinet.wasp.webservice.ServiceClientImpl.lookup(ServiceClientImpl.java:553)
at com.systinet.wasp.webservice.ServiceClientImpl.createProxy(ServiceClientImpl.java:433)
at localpackage.myClient.main(myClient.java:27)
Caused by: org.idoox.util.RuntimeWrappedException: Systinet server or client can't be started without 'wasp.location' argument
at org.idoox.wasp.Context.initialize(Context.java:317)
at org.idoox.wasp.Context.getInstance(Context.java:223)
at org.idoox.wasp.Context.getInstance(Context.java:265)
at com.idoox.wasp.SOAPServiceInfoCache.getServiceInfos(SOAPServiceInfoCache.java:52)
at com.systinet.wasp.webservice.ServiceClientImpl.lookup(ServiceClientImpl.java:551)
... 2 more
Caused by: org.idoox.wasp.WaspInternalException: Systinet server or client can't be started without 'wasp.location' argument
at com.systinet.wasp.WaspImpl.boot(WaspImpl.java:286)
at org.systinet.wasp.Wasp.init(Wasp.java:150)
at org.systinet.wasp.Wasp.init(Wasp.java:61)
at org.idoox.wasp.Context.initialize(Context.java:314)
... 6 more
Exception in thread "main"
I must be missing something simple in the interface.
Thanks for the help
Gregg