You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Adrian C <ad...@gmail.com> on 2007/11/08 20:25:21 UTC
JAXWS & WS Policy
Is there a way to configure WSPolicy in the jaxws definition of a service in
the same way as WS-Reliable Messaging?
i.e. is it possible to have something like this:
<jaxws:features>
<wsa:addressing />
<p:policies>
<wsp:Policy>
<wsam:Addressing
xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
<wsp:Policy />
</wsam:Addressing>
</wsp:Policy>
</p:policies>
</jaxws:features>
Are there any examples of this?
Thanks
--
View this message in context: http://www.nabble.com/JAXWS---WS-Policy-tf4773036.html#a13653961
Sent from the cxf-user mailing list archive at Nabble.com.
Re: JAXWS & WS Policy
Posted by Sergey Beryozkin <se...@iona.com>.
Hi
>
>
>
> Thanks for the reply James, maybe my understanding of this is incorrect, but
> I had hoped that by defining policy assertions for my endpoint
> (<jaxws:endpoint) that these would be inserted into the served out wsld.
+1. This is what shoud happen. As far as I'm aware no real WS-Policy work is happening in CXF but
please stay tuned. Submitting a JIRA so that this issue (ensuring policy assertions with public visibility are inlined in the
published wsdl) can be tracked would be great
Cheers, Sergey
>
> The example seems to deal with a wsdl with the assertions already embedded,
> and these are picked up by the endpoint definition as they reference the
> service - i.e. from org.apache.hello_world_soap_http.SOAPService there is
> url = new
> URL("file:/C:/temp/apache-cxf-2.0.2-incubator/samples/ws_policy/wsdl/hello_world_addr_policy.wsdl");
>
> Is my understanding of this correct?
>
> What I would like is a more configuration way to add/remove policy
> assertions, for my endpoint.
>
> Thanks
>
>
> James Mao wrote:
>>
>> I've not been an expert on ws-*, but i just look at the samples in the
>> cxf distribution, we do have a sample of ws-policy
>> And we have doc on http://cwiki.apache.org/CXF20DOC/ws-support.html
>>
>> Don't know if it's sufficient
>>
>> James
>>
>>> Is there a way to configure WSPolicy in the jaxws definition of a service
>>> in
>>> the same way as WS-Reliable Messaging?
>>>
>>> i.e. is it possible to have something like this:
>>>
>>> <jaxws:features>
>>> <wsa:addressing />
>>> <p:policies>
>>> <wsp:Policy>
>>> <wsam:Addressing
>>> xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
>>> <wsp:Policy />
>>> </wsam:Addressing>
>>> </wsp:Policy>
>>> </p:policies>
>>> </jaxws:features>
>>>
>>> Are there any examples of this?
>>>
>>> Thanks
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/JAXWS---WS-Policy-tf4773036.html#a13666396
> Sent from the cxf-user mailing list archive at Nabble.com.
----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
Re: JAXWS & WS Policy
Posted by Adrian C <ad...@gmail.com>.
Thanks for the reply James, maybe my understanding of this is incorrect, but
I had hoped that by defining policy assertions for my endpoint
(<jaxws:endpoint) that these would be inserted into the served out wsld.
The example seems to deal with a wsdl with the assertions already embedded,
and these are picked up by the endpoint definition as they reference the
service - i.e. from org.apache.hello_world_soap_http.SOAPService there is
url = new
URL("file:/C:/temp/apache-cxf-2.0.2-incubator/samples/ws_policy/wsdl/hello_world_addr_policy.wsdl");
Is my understanding of this correct?
What I would like is a more configuration way to add/remove policy
assertions, for my endpoint.
Thanks
James Mao wrote:
>
> I've not been an expert on ws-*, but i just look at the samples in the
> cxf distribution, we do have a sample of ws-policy
> And we have doc on http://cwiki.apache.org/CXF20DOC/ws-support.html
>
> Don't know if it's sufficient
>
> James
>
>> Is there a way to configure WSPolicy in the jaxws definition of a service
>> in
>> the same way as WS-Reliable Messaging?
>>
>> i.e. is it possible to have something like this:
>>
>> <jaxws:features>
>> <wsa:addressing />
>> <p:policies>
>> <wsp:Policy>
>> <wsam:Addressing
>> xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
>> <wsp:Policy />
>> </wsam:Addressing>
>> </wsp:Policy>
>> </p:policies>
>> </jaxws:features>
>>
>> Are there any examples of this?
>>
>> Thanks
>>
>
>
--
View this message in context: http://www.nabble.com/JAXWS---WS-Policy-tf4773036.html#a13666396
Sent from the cxf-user mailing list archive at Nabble.com.
Re: JAXWS & WS Policy
Posted by James Mao <ja...@iona.com>.
I've not been an expert on ws-*, but i just look at the samples in the
cxf distribution, we do have a sample of ws-policy
And we have doc on http://cwiki.apache.org/CXF20DOC/ws-support.html
Don't know if it's sufficient
James
> Is there a way to configure WSPolicy in the jaxws definition of a service in
> the same way as WS-Reliable Messaging?
>
> i.e. is it possible to have something like this:
>
> <jaxws:features>
> <wsa:addressing />
> <p:policies>
> <wsp:Policy>
> <wsam:Addressing
> xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata">
> <wsp:Policy />
> </wsam:Addressing>
> </wsp:Policy>
> </p:policies>
> </jaxws:features>
>
> Are there any examples of this?
>
> Thanks
>