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 150292 - Wrong namespaces when STS created for .NET 3.5 version
Summary: Wrong namespaces when STS created for .NET 3.5 version
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords:
: 150971 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-10-15 21:16 UTC by jdg6688
Modified: 2010-03-31 11:12 UTC (History)
2 users (show)

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 jdg6688 2008-10-15 21:16:24 UTC
There are two issues in the STS wsdl created from Netbeans 6.5:

1. The name space is wrong for the Action as in:

<wsdl:portType name="IMetroSTSService">
        <wsdl:operation name="IssueToken">
            <wsdl:input message="tns:IMetroSTSService_IssueToken_InputMessage"
wsam2:Action="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue"/>
            <wsdl:output message="tns:IMetroSTSService_IssueToken_OutputMessage"
wsam2:Action="http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/Issue"/>
        </wsdl:operation>
    </wsdl:portType>

where xmlns:wsam2="http://docs.oasis-open.org/ws-sx/ws-trust/200512".

wsam1:Action should be used with xmlns:wsam1="http://www.w3.org/2007/05/addressing/metadata" .
 2. The value for the Action for the output should be
"http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTRC/IssueFinal" instead of
"http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/Issue".
Comment 1 Martin Grebac 2008-10-16 10:57:26 UTC
I don't understand. In the example you gave me, the values are not as you specify:

https://wsit.dev.java.net/nonav/issues/showattachment.cgi/796/sts.wsdl

What's the reason for this change?
Comment 2 jdg6688 2008-10-16 13:17:07 UTC
Hi Martin:

1. The name space for the Action in the example STS wsdl is wsam where
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"

2. As for the second part, that was a mistake I just found. It was a copy and paste error. The standard 
version handle the response Action differently than the submitted version. I spoted this while using
Netbeans to create test cases for an interop event in Oasis WS-SX TC. 
Comment 3 Martin Grebac 2008-10-16 13:39:19 UTC
OK, so these do apply only for 1.3 version, right?
Comment 4 Martin Grebac 2008-10-16 13:56:41 UTC
Hi, I fixed the output value. However, I'm not able to reproduce the addressing metadata issue. It does work fine for
me. Which version you use? Would you please try with RC1? (and make sure you delete any sts*.* from your userdir).
Comment 5 jdg6688 2008-10-16 19:32:50 UTC
1. Yes, it is only for 1.3.

2. I just tried with the latest nightly. The name space for Action came up correctly. So it is not an issue now.

Thanks for the quick fix. Now I am ready for the interop.
Comment 6 Martin Grebac 2008-10-17 14:21:18 UTC
Fixed in trunk.
Comment 7 Quality Engineering 2008-10-18 15:52:26 UTC
Integrated into 'main-golden', will be available in build *200810181401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b8066805a5e1
User: mgrebac@netbeans.org
Log: Fix of #150292 - Incorrect value for output in STS template
Comment 8 Lukas Jungmann 2008-10-20 15:57:54 UTC
needs to be fixed in 6.5 for FCS, important for WSIT users => P1.

Also v. in trunk, feel free to transplant to release65
Comment 9 Milan Kuchtiak 2008-10-21 10:14:12 UTC
The code changes look fine.
Please, commit the changes to release65 branch.
Comment 10 jdg6688 2008-10-23 00:25:24 UTC
Verified. It is working fine. Thanks!
Comment 11 jdg6688 2008-10-23 00:26:25 UTC
Close the issue.
Comment 12 Martin Grebac 2008-10-23 19:59:31 UTC
changing synopsis, reopening to close properly
Comment 13 Martin Grebac 2008-10-23 20:02:25 UTC
*** Issue 150971 has been marked as a duplicate of this issue. ***
Comment 14 Quality Engineering 2008-10-24 04:17:43 UTC
Integrated into 'main-golden', will be available in build *200810240201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/728dbc71dfc3
User: mgrebac@netbeans.org
Log: Fix of #150292 - wrong name space for the Action in the STS wsdl created
When Metro is installed, the version is certainly 2.1.4.1 or higher.
Comment 15 Petr Blaha 2008-10-24 09:18:32 UTC
Martine, can you push the fix in 65 clone? We would like to start new RC2 build today afternoon. The bug is verified in
trunk and you need to send notification to reviewers only. 
Comment 16 Martin Grebac 2008-10-24 14:25:38 UTC
The fix has been pushed to release65 branch.
Comment 17 Jaroslav Pospisil 2010-03-31 11:12:06 UTC
v.