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 235614 - Web service client cannot be created by JAXWS:wsimport utility.
Summary: Web service client cannot be created by JAXWS:wsimport utility.
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 7.3.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-06 15:58 UTC by ajeh
Modified: 2018-10-18 19:49 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 ajeh 2013-09-06 15:58:33 UTC
Product Version = NetBeans IDE 7.3.1 (Build 201306052037)
Operating System = Linux version 2.6.35.14-96.PhenomX4full.fc14.x86_64 running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01

This project references a .NET web service. After the service was initially added, it compiled and worked fine, until I was informed that web service was changed by adding a new method. I tested that new method in C#.NET client and established that it worked fine there (web reference refreshed and I was able to call it successfully).

Now I have to refresh the web service reference, but when I do, an error is shown: 

Web service client cannot be created by JAXWS:wsimport utility.
Reason: property 'Any' is already defined. Use &lt:jaxb:property> to resolve this conflict.

There might be a problem during java artifacts creation: for example a name conflict in generated classes. To detect the problem see also the error message in output window.
You may be able to fix the problem in WSDL customization dialogue.
(Edit web service attributes section)
or by manual editing of the local wsdl or schema files, using JAXB customization
(local wsdl and schema files are located in xml-resources directory)

The workaround solution is do download a local copy of WSDL and delete every mention of the offending method from it, then refresh web reference in NetBeans.
The element that causes grief for NetBeans wsimport seems to be this one:

<s:element name="GetProductsResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="GetProductsResult"><s:complexType><s:sequence><s:any minOccurs="0" maxOccurs="unbounded" namespace="http://www.w3.org/2001/XMLSchema" processContents="lax"/><s:any minOccurs="1" namespace="urn:schemas-microsoft-com:xml-diffgram-v1" processContents="lax"/></s:sequence></s:complexType></s:element></s:sequence></s:complexType></s:element>
Comment 1 Martin Balin 2016-07-07 09:54:12 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss
Comment 2 addmym 2018-10-18 19:49:53 UTC
Buenas Tardes,
estoy teniendo el mismo inconveniente con la version Netbeans IDE 8.2, por favor si podrian guiarnos para corregir este inconveniente que no me deja dormir :-) Desde ya muchas gracias...