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 - Unable to use Web Service Client
Summary: Unable to use Web Service Client
Status: RESOLVED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-08 09:19 UTC by faramir2
Modified: 2013-08-10 02:05 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (81.57 KB, text/plain)
2013-08-08 09:19 UTC, faramir2
Details
WSDL file (10.56 KB, application/octet-stream)
2013-08-09 08:03 UTC, faramir2
Details
Whole project in zip file (22.66 KB, application/zip)
2013-08-09 08:04 UTC, faramir2
Details

Note You need to log in before you can comment on or make changes to this bug.
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>