NetBeans Forums

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

Cannot get web service client to build

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



Joined: 22 Aug 2011
Posts: 2

PostPosted: Mon Aug 22, 2011 6:55 pm    Post subject: Cannot get web service client to build Reply with quote

I an using NetBeans 7

I created a web service using glassfish (for quick testing of the web service). I was able to create a web service client from this class and test that also. As we are deploying on Tomcat I created a new project for Tomcat (when I switched deployment servers the NB build fails). I copied the code over, created the web service and wrote my own jsp to test the WS calls (what I was trying to avaoid by using glassfish).

However, when I create the WS client and try to create the WS Client from the project wsdl if gives me an error message:

Web Service Client can not be created by JAXWS:import utility.

Code:

Reason: IOException thrown when processing "http://localhost:8080/isupport/ClientWS?xsd=1".
Exception: java.io.FileNotFoundException: http://localhost:8080/isupport/ClientWS?xsd=1.


1) I am linking in the METRO lib in the ws client application.
2) I tried copying all the jar files from jaxws-ri into a lib directory and link the lib directory in the project.
3) I turned off axis-2 as I was told it was not needed for JAX-WS (I got the same error when it was running)

The jax-ws-catalog.xml is as follows:

Code:

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
    <system systemId="http://localhost:8080/isupport/ClientWS?wsdl" uri="wsdl/localhost_8080/isupport/ClientWS.wsdl"/>
    <system systemId="http://localhost:8080/isupport/ClientWS?xsd=1" uri="wsdl/localhost_8080/isupport/ClientWS.xsd_1.xsd"/>
</catalog>


The WS wsdl has the following definition

Code:

      <xsd:schema>
         <xsd:import namespace="http://ws.c2it.cybrix.com/" schemaLocation="http://localhost:8080/isupport/ClientWS?xsd=1"/>
      </xsd:schema>


And the ClientWS.xsd_1.xsd file exists in the WEB-INF/wsdl/localhost_8080/isupport folder

Tomcat is running and I copied and deployed the WS in the webapps directory. If I type in the first entry in the jax-ws-catalog.xml the wsdl will be displayed.
Back to top
mperemsky



Joined: 22 Aug 2011
Posts: 2

PostPosted: Mon Aug 22, 2011 7:26 pm    Post subject: Something must have gotten screwed up Reply with quote

I just created new WS and WS Client apps and was able to link in without any errors. Somehow one of the files must have gotten mucked up along the way. I am going to copy the code over and see if the WS runs in the new project.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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