Ok, I think that I have found which is your problem. It is in the classpath, you should include
the following jars that you find also in the lib directory of WSIF:
- commons-discovery.jar - servlet-2_2.jar - axis.jar - saaj.jar - jaxrpc.jar
The important one is the first, because I think that it is used to discover the services, ports and so on.
The rest are also necessary, because you are invoking a web service and it is necessary the RPC
libraries, the XML definition of SOAP (saaj), the axis client and so on.
I think that if you include these jars it should work. I did not have the problem because I had already
included, but I have tested just now with the classpath that you have provided and I had the same
error, then I was looking that it was missing the necessary jars for SOAP.
That's all for this moment, I hope that you can run your example. I can not run it here for the problem
of the firewall, even I can not access the WSDL file when I create the service.
Best regards.
Alfredo Navarro [EMAIL PROTECTED]
From: "Siegfried Perkles" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Unable to find an available port Date: Wed, 9 Jul 2003 09:41:22 +0200
Hello Alfredo,
thanks for your quick reply. Well, in my case, I don't think it's the firewall, because http-port#80 is open for me, and I can retrieve the wsdl-document. I just tested your code, and I get almost the same error-message:
org.apache.wsif.WSIFException: Port 'TemperaturePort' is not available and no
alternative can be found
at org.apache.wsif.base.WSIFServiceImpl.getPort(Unknown Source)
at clients.tempInvoker.main(tempInvoker.java:52)
Exception in thread "main"
Can there something be wrong with my configuration?
I use j2re 1.4.1_03, the latest wsif, and in my classpath are following jars
which are in the wsif-2.0/lib directory from the wsif-download:
- wsif.jar
- qname-from-wsdl4j-20021124.jar
- commons-logging.jar
- xmlParserAPIs-2_2_1.jar
- xercesImpl-2_2_1.jar
- wsdl4j-20021124.jar
Best regards, Siegfried Perkles
"Alfredo Navarro Roche" <[EMAIL PROTECTED]> schrieb:
> Hello,
>
> I have tested your case and I have not found the same problem, with my
> client seems to work fine. I am using the latest version of WSIF.
> It is possible that you are behind a firewall and the WSDL file can not be
> accessed. It is not right for all firewalls. For example in my company we
> have the same problem, because the firewall is in Windows and it requires
> Windows Autenthification that it is a little bit different. I don't know how
> to set this settings for this kind of firewall, maybe someone can help us in
> this issue.
> I have tested at home and it is not a problem, I am not behind this kind of
> firewall.
>
> Also, it could be that you have not set right the namespace when you load
> the service.
> I write you here my source code of the client that I have just tested, if it
> could help you: >
_________________________________________________________________
Localiza y ponte en contacto con tus antiguos compa�eros de clase en MSN Compa�eros. http://mipasado.msn.es/
