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 188556 - wsam:Addressing elements incorrectly missing the Policy subelement
Summary: wsam:Addressing elements incorrectly missing the Policy subelement
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-10 14:28 UTC by gmazza
Modified: 2016-07-07 09:54 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 gmazza 2010-07-10 14:28:17 UTC
Hello, for Netbeans 6.9.1 (and also 6.8), the Policy generator is generating wsam:Assertion elements of this format:

<wsam:Addressing wsp:Optional="false"/>

However, the wsam:Addressing element is required to have exactly one wsp:Policy element (even if empty):

<wsam:Addressing wsp:Optional="false">
  <wsp:Policy/>
</wsam:Addressing>

XML Schema:
http://www.w3.org/2007/05/addressing/metadata/ws-addr-metadata.xsd

Addressing Element:
<xs:element name="Addressing">
   <xs:complexType>
      <xs:sequence>
         <xs:element ref="wsp:Policy"/>
      </xs:sequence>
      <xs:anyAttribute namespace="##other" processContents="lax"/>
   </xs:complexType>
</xs:element>

Here are examples in the Addressing Recommendation showing this:
http://www.w3.org/TR/2007/WD-ws-addr-metadata-20070516/#policyexamplesincompact

Usage of NetBeans-generated schemas is causing problems with Apache CXF clients, with errors being raised because of the missing Policy element.
Comment 1 Martin Balin 2016-07-07 09:54:17 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