NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
Delirious
Joined: 01 May 2011 Posts: 2
|
Posted: Sun May 01, 2011 1:40 pm Post subject: Web Application and Web Service Client |
|
|
Hi, I currently have a web application (some java classes, servlets and JSP pages using glassfish 3.0.1) which appears to be in full working order. When I add a web service client from a WSDL, that goes smoothly until I try and call methods, using
| Code: |
ServiceNameService s = new ServiceNameService();
ServiceName sn = s.getServiceNamePort();
sn.someMethod();
|
I get a connection time out
| Code: |
Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at: http://someWSDLLocation?WSDL. It failed with:
Connection timed out: connect.
|
If I do the exact same process again in a plain java application using the identical code it works fine? I have tried creating a JAR and class library to use in the web application but that also fails, also including the project in which it works fails.
This has also been tried on different computers, as well as re-creating the issue when attempting the same with a new web application.
When creating the web service client in the web application, no meta-inf is created, where as it is in the java application. Also copying the meta-inf from the java application to the web application did not seem to solve the problem.
Any ideas on how I could use the web service client within the web application would be greatly appreciated. Thanks.
I have tried this with both netbeans 6.9.1 and netbeans 7. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|