| Author |
trying to run WSIF Samples on WSAD 5
|
Max Tomlinson
Ranch Hand
Joined: Jul 17, 2001
Posts: 364
|
|
These samples are designed for WAS 5 but I am trying to run them on WSAD as I do not have access to WAS 5. I have a server instance with the samples loaded and have coded a simple JSP to try and do what the address book client does (and which I cannot get to work on WSAD). This is as far as I get: String wsdlLocation = null; ClassLoader cl = Thread.currentThread().getContextClassLoader(); wsdlLocation = "wsifsamples/addressbook/client/AddressBookSample.wsdl"; WSIFServiceFactory factory = WSIFServiceFactory.newInstance(); try { WSIFService service = factory.getService( wsdlLocation, // location of the wsdl file cl, null, // service namespace null, // service name "http://addressbook.wsifsamples/service/", "AddressBookPT" // port type name ); } catch (Exception e) { e.printStackTrace(); } out.println("<BR>WSIFService created"); The error I get is: [5/5/03 23:22:33:823 PDT] 39305213 wsif E wsif WSIF0002E: A failure occurred in loading WSDL from 'wsifsamples/addressbook/client/AddressBookSample.wsdl' [5/5/03 23:22:33:843 PDT] 39305213 SystemErr R org.apache.wsif.WSIFException: could not load wsifsamples/addressbook/client/AddressBookSample.wsdl; nested exception is: WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'wsifsamples/addressbook/client/AddressBookSample.wsdl'.: [5/5/03 23:22:33:843 PDT] 39305213 SystemErr R WSDLException: faultCode=OTHER_ERROR: Unable to locate document at 'wsifsamples/addressbook/client/AddressBookSample.wsdl'.:
|
 |
 |
|
|
subject: trying to run WSIF Samples on WSAD 5
|
|
|