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 185823 - jax-ws-catalog.xml not working? it still looks for hardcoded WSDL location
Summary: jax-ws-catalog.xml not working? it still looks for hardcoded WSDL location
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 6.x
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 05:57 UTC by Masaki Katakai
Modified: 2010-05-13 05:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Masaki Katakai 2010-05-10 05:57:02 UTC
It seems that WSDL path is still hardcoded when I specify local WSDL file.
I got this comment from community member in Japan.

I understand it has been fixed by bug 149790.

  NetBeans IDE 6.9 Beta (Build 201004200117)
  Java: 1.6.0_17; Java HotSpot(TM) 64-Bit Server VM 14.3-b01-101
  Mac OS X 10.5.8

1. Prepare WSDL file in local path e.g.
  /Users/katakai/Desktop/NewWebServiceService.wsdl

2. Create a Web project
3. Create a Web Service client on the project
4. Specify local the WSDL file on wizard and create it

jax-ws-catalog.xml is created like the following under WEB-INF.
It looks OK.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
    <system systemId="file:/Users/katakai/Desktop/NewWebServiceService.wsdl" uri="wsdl/NewWebServiceService.wsdl"/>
    <system systemId="http://localhost:8080/WebApplication4/NewWebServiceService?xsd=1" uri="wsdl/localhost_8080/WebApplication4/NewWebServiceService.xsd_1.xsd"/>
</catalog>

5. Run it
   It works

6. Remove NewWebServiceService.wsdl
7. Run it again after clean&build
    It fails. GF shows the following warnings

MEX0008:Failed to parse metadata returned from server at file:/Users/katakai/Desktop/NewWebServiceService.wsdl using protocol SOAP_1_2. Continuing attempts.
Comment 1 Milan Kuchtiak 2010-05-11 12:17:33 UTC
> I understand it has been fixed by bug 149790.
I thought the same.

The jax-ws-catalog feature was implemented according to specification:
https://jax-ws.dev.java.net/nonav/2.2/docs/catalog-support.html

It looks there is still a bug in jax-ws:
https://jax-ws.dev.java.net/issues/show_bug.cgi?id=202

The workaround is to put jax-ws.catalog.xml, together with WEB-INF/wsdl content into WEB-INF/classes/META-INF.
(just create META-INF folder under Source Packages).

This issue cannot be fixed in Netbeans, but must be fixed in JAX-WS.

If jax-ws team decision is not to fix issue 202 I'll implement jax-ws-catalog.xml into META-INF folder.
Comment 2 Quality Engineering 2010-05-13 05:04:52 UTC
Integrated into 'main-golden', will be available in build *201005122200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: