Exception in thread "main" org.apache.wsif.WSIFException: Unable to find an available port at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source) at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source) at Client.main(Client.java:30).
My WSIFServiceFactory method looks like:
WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
WSIFService service = factory.getService(args,null,null,"http://tempuri.org/","SVWSSoap"); WSIFPort port= service.getPort();
I'm not an expert on WSIF, and it's difficult to determine the root of the problem without seeing the WSDL file, but I suspect the problem is caused by the fact that the WSDL file includes three ports (which is the default in a .NET service), and you have not specified which port you want to access. You need to change the last line to:
WSIFPort port= service.getPort(portName);
In the future I suggest that you submit urgent questions on WSIF to the axis-user discussion list.
Dig Deeper on Topics Archive
Related Q&A from Anne Thomas Manes
Anne Thomas Manes explains the differences between open source clients and open source implementations. Continue Reading
Anne Thomas Manes discusses the best way to go about creating an enterprise data dictionary and why the systems works well. Continue Reading
Anne Thomas Manes explains the difference between 'hard' real time and 'live' real time systems. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.