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 155131 - Setting transaction to required generates superfluous empty policy
Summary: Setting transaction to required generates superfluous empty policy
Status: RESOLVED WONTFIX
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-10 13:04 UTC by ritzmann
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 ritzmann 2008-12-10 13:04:20 UTC
Steps to reproduce:

1. Create a web application with a web service
2. Edit Web Service Attributes
3. Choose an operation and set Transaction: Required

This is the wsit config that got generated for me:

<?xml version="1.0" encoding="UTF-8"?> 
 <definitions 
 xmlns="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="NewWebServiceService" targetNamespace="http://
test.ws.xml.sun.com/" xmlns:tns="http://test.ws.xml.sun.com/" xmlns:wsp="http://www.w3.org/ns/ws-policy" 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:fi="http://
java.sun.com/xml/ns/wsit/2006/09/policy/fastinfoset/service" xmlns:tcp="http://java.sun.com/xml/ns/wsit/2006/09/policy/
soaptcp/service" xmlns:wsat="http://schemas.xmlsoap.org/ws/2004/10/wsat" xmlns:wsp1="http://schemas.xmlsoap.org/
ws/2004/09/policy"
 >
    <message name="echo"/>
    <message name="echoResponse"/>
    <portType name="NewWebService">
        <operation name="echo">
            <input message="tns:echo"/>
            <output message="tns:echoResponse"/>
        </operation>
    </portType>
    <binding name="NewWebServicePortBinding" type="tns:NewWebService">
        <wsp:PolicyReference URI="#NewWebServicePortBindingPolicy"/>
        <operation name="echo">
            <wsp:PolicyReference URI="#NewWebServicePortBinding_echo_Policy"/>
            <input/>
            <output/>
        </operation>
    </binding>
    <service name="NewWebServiceService">
        <port name="NewWebServicePort" binding="tns:NewWebServicePortBinding"/>
    </service>
    <wsp:Policy wsu:Id="NewWebServicePortBindingPolicy">
        <wsp:ExactlyOne>
            <wsp:All/>
        </wsp:ExactlyOne>
    </wsp:Policy>
    <wsp:Policy wsu:Id="NewWebServicePortBinding_echo_Policy">
        <wsp:ExactlyOne>
            <wsp:All>
                <wsat:ATAssertion wsp1:Optional="true"/>
                <wsat:ATAlwaysCapability/>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>
</definitions>


The NewWebServicePortBindingPolicy does not really make much sense and should simply be removed along with the 
reference to it. (Unless WS-AT requires that policy at the endpoint scope but I doubt that it does.)
Comment 1 Martin Grebac 2009-01-05 16:07:12 UTC
Adjusting priority.
Comment 2 Martin Balin 2016-07-07 09:54:03 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