NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Web Application and Web Service Client

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
Delirious



Joined: 01 May 2011
Posts: 2

PostPosted: Sun May 01, 2011 1:40 pm    Post subject: Web Application and Web Service Client Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo