Hi!

I'm leo.

I'm just new to WSIF.
Please bear with my elementary questions I really need your help.

I am currently doing a project that uses a web service from a third party.
For obvious reasons, they, the third party, would not like to give the
source
code ot the web service. Anyway, I was able to make a program that
accesses their web service using VB .NET. But, the project is actually
will be developed in JAVA. I tried the samples from WSIF and fortunately
I was able to run it. But, when I tried to make a program in Java using the
web service, I got exceptions when the program passes in

WSIFPort port = (WSIFPort)service.getPort();

The exact error is

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)

I debugged the program, and i found out that the Ports array is blank.
I doubled check the WSDL file but, it seemed to be ok. Except that the

<service name="sssss">
    <port name="SoapPort" binding="tns:SoapBinding">
      <soap:address location=http://localhost/WSDL/ssss.WSDL />
</port>
 </service>

Please send me any ideas or suggestion.
Your help is most appreciated.

Many thanks.


Leo

Reply via email to