This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trying to run WSIF Samples on WSAD 5

 
Max Tomlinson
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'.:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic