aspose file tools*
The moose likes Web Services and the fly likes trying to run WSIF Samples on WSAD 5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "trying to run WSIF Samples on WSAD 5" Watch "trying to run WSIF Samples on WSAD 5" New topic
Author

trying to run WSIF Samples on WSAD 5

Max Tomlinson
Ranch Hand

Joined: Jul 17, 2001
Posts: 365
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'.:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: trying to run WSIF Samples on WSAD 5