axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Stanchev <Gstanc...@serena.com>
Subject RE: Axis2 code gen with WS-Policy 1.5?
Date Mon, 08 Nov 2010 16:22:54 GMT
I do follow that list but I don't remember seeing it. Anyway, I will go through the archives.

Thanks!

From: Sanjiva Weerawarana [mailto:sanjiva@opensource.lk]
Sent: Monday, November 08, 2010 9:14 AM
To: java-user@axis.apache.org
Subject: Re: Axis2 code gen with WS-Policy 1.5?

Neethi is discussed on dev@ws.apache.org<mailto:dev@ws.apache.org> .. there was a recent
thread on 3.0 and alternative policies IIRC. Please ask there!

Sanjiva.
On Mon, Nov 8, 2010 at 9:13 PM, George Stanchev <Gstanchev@serena.com<mailto:Gstanchev@serena.com>>
wrote:
Neethi hasn't had a release for almost 2 years now. Is there a publically available roadmap
for 3.0? Plans? I am looking forward support for alternative policies which Neethi has been
lacking.

From: Sanjiva Weerawarana [mailto:sanjiva@opensource.lk<mailto:sanjiva@opensource.lk>]
Sent: Monday, November 08, 2010 8:37 AM

To: java-user@axis.apache.org<mailto:java-user@axis.apache.org>
Subject: Re: Axis2 code gen with WS-Policy 1.5?

Also looks like its not even supported in Neethi yet .. and is on the roadmap for Neethi 3.0?

Sanjiva.
On Mon, Nov 8, 2010 at 9:01 PM, Katherine Sanders <katherine_sanders@uk.ibm.com<mailto:katherine_sanders@uk.ibm.com>>
wrote:
Hi Dennis,

I don't think the work has been done to support WS-Policy 1.5 in Axis2 because the documentation
references the older WS-Policy 1.2 specification (see the resources at the bottom of this
page http://ws.apache.org/axis2/1_5_1/WS_policy.html).  Perhaps you could open a Jira for
this feature if you require it.

Thanks,
Katherine
________________________________


Katherine Sanders

 MP 127, IBM UK Ltd

[cid:image001.gif@01CB7F26.8650D400]

Software Engineer

 Hursley Park, Winchester, Hampshire SO21 2JN

WebSphere ESB Foundation Technologies

 United Kingdom

IBM Software Group, Application and Integration Middleware Software



Phone:

+44 (0) 1962 815758



Tie-Line:

245758



e-mail:

katherine_sanders@uk.ibm.com<mailto:katherine_sanders@uk.ibm.com>








From:        Dennis Sosnoski <dms@sosnoski.com<mailto:dms@sosnoski.com>>
To:        java-user@axis.apache.org<mailto:java-user@axis.apache.org>
Cc:        Sanka Samaranayake <ssanka@gmail.com<mailto:ssanka@gmail.com>>
Date:        02/11/2010 21:50
Subject:        Re: Axis2 code gen with WS-Policy 1.5?
________________________________


I've attached one. If you generate from this as supplied (using the submission namespace)
the client stub attaches the appropriate policy to the messages:

        (__operation).getMessage(org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_OUT_VALUE).getPolicySubject().attachPolicy(getPolicy("<wsp:Policy
wsu:Id=\"UsernameToken\" xmlns:wsp=\"http://schemas.xmlsoap.org/ws/2004/09/policy\"<http://schemas.xmlsoap.org/ws/2004/09/policy%22>
xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"<http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd%22>><wsp:ExactlyOne><wsp:All><sp:SupportingTokens
xmlns:sp=\"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702\"<http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702%22>><wsp:Policy><sp:UsernameToken
xmlns:sp=\"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702\"<http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702%22>
sp:IncludeToken=\"http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient\"<http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient%22>
/></wsp:Policy></sp:SupportingTokens></wsp:All></wsp:ExactlyOne></wsp:Policy>"));

If you replace all instances of the http://schemas.xmlsoap.org/ws/2004/09/policy namespace
with the http://www.w3.org/ns/ws-policy namespace and regenerate there's no policy attached
in the stub.

  - Dennis


On 11/03/2010 12:35 AM, Sanka Samaranayake wrote: Can you post the WSDL that you use to generate
code ?

Sanka

On Tue, Nov 2, 2010 at 8:57 AM, Dennis Sosnoski <dms@sosnoski.com<mailto:dms@sosnoski.com>>
wrote:
Is anyone using WS-Policy 1.5 (the official W3C release,
http://www.w3.org/ns/ws-policy namespace) with Axis2 code generation? It
looks like the policy is silently ignored, so the client gets generated
with no policy attached and there's no security at runtime.

 - Dennis

--
Dennis M. Sosnoski
Java SOA and Web Services
Axis2/CXF/Metro Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org<mailto:java-user-unsubscribe@axis.apache.org>
For additional commands, e-mail: java-user-help@axis.apache.org<mailto:java-user-help@axis.apache.org>




--
Sanka Samaranayake

PMC Member, Committer, Apache Software Foundation, http://www.apache.org/

Telephone: +34 677 864358
Email: sanka AT apache DOT org
Blog: http://sankas.blogspot.com/
Linked-in: http://lk.linkedin.com/pub/sanka-samaranayake/4/b2b/3b3


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org<mailto:java-user-unsubscribe@axis.apache.org>
For additional commands, e-mail: java-user-help@axis.apache.org<mailto:java-user-help@axis.apache.org>
#### library.wsdl moved to MyAttachments Repository V3.8 (Link<Notes:///802573710035915C/5DE5236E5AD1645685256EE0001BBADF/7CCCE12035CA3B60802577D10034D4F7>)
on 04 November 2010 by Katherine Sanders.

________________________________


Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU






--
Sanjiva Weerawarana, Ph.D.
Founder, Director & Chief Scientist; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2; http://wso2.com/
Founder & Director; Thinkcube Systems; http://www.thinkcube.com/
Member; Apache Software Foundation; http://www.apache.org/
Member; Sahana Software Foundation; http://www.sahanafoundation.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

Blog: http://sanjiva.weerawarana.org/




--
Sanjiva Weerawarana, Ph.D.
Founder, Director & Chief Scientist; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2; http://wso2.com/
Founder & Director; Thinkcube Systems; http://www.thinkcube.com/
Member; Apache Software Foundation; http://www.apache.org/
Member; Sahana Software Foundation; http://www.sahanafoundation.org/
Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/

Blog: http://sanjiva.weerawarana.org/

Mime
View raw message