This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 234124

Summary: Unable to use Web Service Client
Product: webservices Reporter: faramir2 <faramir2>
Component: EditorAssignee: Milan Kuchtiak <mkuchtiak>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P1    
Version: 7.3.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log
WSDL file
Whole project in zip file

Description faramir2 2013-08-08 09:19:08 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = IBM J9 VM 2.6

After creating Java Web Application and creating new "Web Service Client...", selecting local WSDL file and checking "Generate Dispatch Code", I've got error in Output console:
---
ant -f C:\\Users\\mno\\Documents\\NetBeansProjects\\WebApplication1 wsimport-client-Authenticator
Target "wsimport-client-Authenticator" does not exist in the project "WebApplication1". 
BUILD FAILED (total time: 0 seconds)
---

and no code is generated.

The same was, when I created JavaApplication.
Comment 1 faramir2 2013-08-08 09:19:15 UTC
Created attachment 138440 [details]
IDE log
Comment 2 Milan Kuchtiak 2013-08-08 14:05:27 UTC
Could you please attach these files from your project:

- local wsdl file
- nbproject/jax-ws.xml
- nbproject/build-impl.xml
- nbproject/jaxws-build.xml

(or the entire project)

The error message indicates some issue with :
enterprise/modules/org-netbeans-modules-websvc-jaxwsmodel.jar!/org/netbeans/modules/websvc/jaxwsmodel/resources/jaxws-web.xsl

But this file looks correct.
Comment 3 faramir2 2013-08-09 08:01:30 UTC
I have downloaded wsdl file from: http://wsf.cdyne.com/SpellChecker/check.asmx?wsdl (as suggested in: https://netbeans.org/kb/docs/websvc/client.html)

I have also tried to generate WSDL file after "Adding an Operation to the Web Service" stop from the https://netbeans.org/kb/docs/websvc/jax-ws.html tutorial, but the error is similar:
---v--- cut ---v---
ant -f C:\\Users\\mno\\Documents\\NetBeansProjects\\WServer\\nbproject\\build-impl.xml wsgen-NewWebService
Target "wsgen-NewWebService" does not exist in the project "WServer-impl". 
BUILD FAILED (total time: 0 seconds)
---^--- cut ---^---

I'm not sure if there should be additional bug reported or not for that (I assume that it is correlated, so not).
Comment 4 faramir2 2013-08-09 08:03:37 UTC
Created attachment 138483 [details]
WSDL file
Comment 5 faramir2 2013-08-09 08:04:22 UTC
Created attachment 138484 [details]
Whole project in zip file
Comment 6 Milan Kuchtiak 2013-08-09 13:08:59 UTC
Fixed.

Get rid of using non-standard xslt feature, supported by Xalan, where <xsl:value-of> is embedded in <xsl:text>. This is not guaranteed by XSLT specification.

See:
http://hg.netbeans.org/web-main/rev/aa2b7b0117e3
Comment 7 Quality Engineering 2013-08-10 02:05:38 UTC
Integrated into 'main-silver', will be available in build *201308092300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/aa2b7b0117e3
User: Milan Kuchtiak <mkuchtiak@netbeans.org>
Log: #234124: don't use non-standard Xalan feature in xslt script,
where <xsl:value-of> is embedded in <xsl:text>