Q
Problem solve Get help with specific problems with your technologies, process and projects.

Problems with WSIF API

I have a .NET Web service at a remote machine. I am using the WSIF API but after mentioning the path of WSDL it is not getting the port and showing the exception:
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[0],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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close