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 88457

Summary: addressing namespace wrong, client hangs
Product: webservices Reporter: tamiro <tamiro>
Component: WSITAssignee: Martin Grebac <mgrebac>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description tamiro 2006-11-01 20:09:14 UTC
The addressing namespace should be 
  http://www.w3.org/2006/05/addressing/wsdl

With the WSIT redesign as of Nov 1, the namespace 
being inserted into the service wsit<pkg.service>.xml
was 
  http://www.w3.org/2006/05/addressing/wsdl

When running the client, the browser just hung 
and the glassfish server log showed
[#|2006-11-01T10:11:48.000-0500|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webservices.jaxws.wspolicy|_ThreadID=16;_ThreadName=httpWorkerThread-8080-0;_RequestID=8b68bcae-f59b-4dd4-a895-288365bc8773;|No
policy selector found which knows assertion
{http://www.w3.org/2005/08/addressing/wsdl}UsingAddressing|#]

[#|2006-11-01T10:11:48.015-0500|WARNING|sun-appserver-pe9.1|javax.enterprise.resource.webservices.jaxws.wspolicy|_ThreadID=16;_ThreadName=httpWorkerThread-8080-0;_RequestID=8b68bcae-f59b-4dd4-a895-288365bc8773;|Suboptimal
policy alternative selected with fitness "PARTIALLY_SUPPORTED"|#]

Before checking the RM box in the service's Edit Web Service Attributes 
gui, a simple service app and client servlet app following the 
instructions in Chapter 7 of the WSIT tutorial worked. 
Once you enable RM, that causes the following 

<wsp:Policy wsu:Id="CalculatorWSPortBindingPolicy">
        <wsp:ExactlyOne>
            <wsp:All>
                <wsaws:UsingAddressing
xmlns:wsaws="http://www.w3.org/2005/08/addressing/wsdl"/>
                <wsrm:RMAssertion/>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>

to be inserted in the wsit xml file which 
breaks the cleint servlet. After editing the the wsit xml 
web page file to have the correct namespace, refreshing, 
rebuilding, and redeploying the client servlet, it 
works.
Comment 1 Martin Grebac 2006-11-02 17:53:32 UTC
should be fixed in 2.01
Comment 2 tamiro 2006-11-08 15:39:20 UTC
I verified the fix.