You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Thomas Diesler <th...@jboss.com> on 2007/12/18 13:34:35 UTC

WS-RM on the client side

Hi Folks,

do we have documentation on how to use WS-RM on the client side except 
for http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html

If a client proxy is build from a wsdl containing RM related policy, is 
that proxy supposed to contain the client side interceptors and 
therefore speak the RM protocol automatically?

This is described in more detail in

https://issues.apache.org/jira/browse/CXF-1311

If you agree, I would update the wiki with the results of this thread.

cheers
-thomas

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Re: WS-RM on the client side

Posted by Thomas Diesler <th...@jboss.com>.
Looking at the code, the proxy that I get does not implement a CXF 
proprietary interface that would allow me to configure that proxy. Is 
there perhaps another way to programatically configure that proxy.

The only way I found is pure proprietary and does not use the jaxws 
standard API

          ClassPathXmlApplicationContext context = new 
ClassPathXmlApplicationContext(
              new String[]{"my/path/to/client-beans.xml"});

          HelloWorld client = (HelloWorld)context.getBean("client");

          String response = client.sayHi("Dan");

cheers
-thomas

Thomas Diesler wrote:
> Thanks Sergey.
> 
> Do you know how I would do this in an elegant way?
> 
> The policy engine would need to be enabled per test case?
> (i.e. I cannot have a global config that contains <p:engine 
> enabled="true">)
> 
> cheers
> -thomas
> 
> Sergey Beryozkin wrote:
>> Hi
>>
>> I think you may need to explicitly enable a policy engine for this to 
>> happen. There's a JIRA for making sure a policy engine gets 
>> automatically enabled on encountering the policy expressions
>>
>> Cheers, Sergey
>>
>>
>>> Hi Folks,
>>>
>>> do we have documentation on how to use WS-RM on the client side 
>>> except for http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html
>>>
>>> If a client proxy is build from a wsdl containing RM related policy, 
>>> is that proxy supposed to contain the client side interceptors and 
>>> therefore speak the RM protocol automatically?
>>>
>>> This is described in more detail in
>>>
>>> https://issues.apache.org/jira/browse/CXF-1311
>>>
>>> If you agree, I would update the wiki with the results of this thread.
>>>
>>> cheers
>>> -thomas
>>>
>>> -- 
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> Thomas Diesler
>>> Web Service Lead
>>> JBoss, a division of Red Hat
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>>
> 

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Re: WS-RM on the client side

Posted by Thomas Diesler <th...@jboss.com>.

Sergey Beryozkin wrote:
> Hi
> 
> I'm wondering, can you have a copy of cxf.xml on a test classpath which 
> would contain this entry ?

This would probably work, but the scope of the test classpath is the 
testrun and not the testcase (i.e. other tests would see that cxf.xml as 
well)

I would need a solution that configures the client policy engine for a 
specific test client.

cheers
-thomas

> Not sure whether it will work but may be it's worth a try :-)
> 
> Cheers, Sergey
> 
> ----- Original Message ----- From: "Thomas Diesler" 
> <th...@jboss.com>
> To: <cx...@incubator.apache.org>
> Sent: Tuesday, December 18, 2007 6:06 PM
> Subject: Re: WS-RM on the client side
> 
> 
>> Thanks Sergey.
>>
>> Do you know how I would do this in an elegant way?
>>
>> The policy engine would need to be enabled per test case?
>> (i.e. I cannot have a global config that contains <p:engine 
>> enabled="true">)
>>
>> cheers
>> -thomas
>>
>> Sergey Beryozkin wrote:
>>> Hi
>>>
>>> I think you may need to explicitly enable a policy engine for this to 
>>> happen. There's a JIRA for making sure a policy engine gets 
>>> automatically enabled on encountering the policy expressions
>>>
>>> Cheers, Sergey
>>>
>>>
>>>> Hi Folks,
>>>>
>>>> do we have documentation on how to use WS-RM on the client side 
>>>> except for http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html
>>>>
>>>> If a client proxy is build from a wsdl containing RM related policy, 
>>>> is that proxy supposed to contain the client side interceptors and 
>>>> therefore speak the RM protocol automatically?
>>>>
>>>> This is described in more detail in
>>>>
>>>> https://issues.apache.org/jira/browse/CXF-1311
>>>>
>>>> If you agree, I would update the wiki with the results of this thread.
>>>>
>>>> cheers
>>>> -thomas
>>>>
>>>> -- 
>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>> Thomas Diesler
>>>> Web Service Lead
>>>> JBoss, a division of Red Hat
>>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>>
>>> ----------------------------
>>> IONA Technologies PLC (registered in Ireland)
>>> Registered Number: 171387
>>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, 
>>> Ireland
>>>
>>
>> -- 
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Thomas Diesler
>> Web Service Lead
>> JBoss, a division of Red Hat
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx 
> 
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Re: WS-RM on the client side

Posted by Sergey Beryozkin <se...@iona.com>.
Hi

I'm wondering, can you have a copy of cxf.xml on a test classpath which would contain this entry ?
Not sure whether it will work but may be it's worth a try :-)

Cheers, Sergey

----- Original Message ----- 
From: "Thomas Diesler" <th...@jboss.com>
To: <cx...@incubator.apache.org>
Sent: Tuesday, December 18, 2007 6:06 PM
Subject: Re: WS-RM on the client side


> Thanks Sergey.
>
> Do you know how I would do this in an elegant way?
>
> The policy engine would need to be enabled per test case?
> (i.e. I cannot have a global config that contains <p:engine enabled="true">)
>
> cheers
> -thomas
>
> Sergey Beryozkin wrote:
>> Hi
>>
>> I think you may need to explicitly enable a policy engine for this to happen. There's a JIRA for making sure a policy engine gets 
>> automatically enabled on encountering the policy expressions
>>
>> Cheers, Sergey
>>
>>
>>> Hi Folks,
>>>
>>> do we have documentation on how to use WS-RM on the client side except for 
>>> http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html
>>>
>>> If a client proxy is build from a wsdl containing RM related policy, is that proxy supposed to contain the client side 
>>> interceptors and therefore speak the RM protocol automatically?
>>>
>>> This is described in more detail in
>>>
>>> https://issues.apache.org/jira/browse/CXF-1311
>>>
>>> If you agree, I would update the wiki with the results of this thread.
>>>
>>> cheers
>>> -thomas
>>>
>>> -- 
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>> Thomas Diesler
>>> Web Service Lead
>>> JBoss, a division of Red Hat
>>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> ----------------------------
>> IONA Technologies PLC (registered in Ireland)
>> Registered Number: 171387
>> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
>>
>
> -- 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thomas Diesler
> Web Service Lead
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx 

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland

Re: WS-RM on the client side

Posted by Thomas Diesler <th...@jboss.com>.
Thanks Sergey.

Do you know how I would do this in an elegant way?

The policy engine would need to be enabled per test case?
(i.e. I cannot have a global config that contains <p:engine enabled="true">)

cheers
-thomas

Sergey Beryozkin wrote:
> Hi
> 
> I think you may need to explicitly enable a policy engine for this to happen. There's a JIRA for making sure a policy engine gets automatically enabled on encountering the policy expressions
> 
> Cheers, Sergey
> 
> 
>> Hi Folks,
>>
>> do we have documentation on how to use WS-RM on the client side except 
>> for http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html
>>
>> If a client proxy is build from a wsdl containing RM related policy, is 
>> that proxy supposed to contain the client side interceptors and 
>> therefore speak the RM protocol automatically?
>>
>> This is described in more detail in
>>
>> https://issues.apache.org/jira/browse/CXF-1311
>>
>> If you agree, I would update the wiki with the results of this thread.
>>
>> cheers
>> -thomas
>>
>> -- 
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> Thomas Diesler
>> Web Service Lead
>> JBoss, a division of Red Hat
>> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> 
> ----------------------------
> IONA Technologies PLC (registered in Ireland)
> Registered Number: 171387
> Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
> 

-- 
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
Web Service Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx

Re: WS-RM on the client side

Posted by Sergey Beryozkin <se...@iona.com>.
Hi

I think you may need to explicitly enable a policy engine for this to happen. There's a JIRA for making sure a policy engine gets automatically enabled on encountering the policy expressions

Cheers, Sergey


> Hi Folks,
> 
> do we have documentation on how to use WS-RM on the client side except 
> for http://cwiki.apache.org/CXF20DOC/wsrmconfiguration.html
> 
> If a client proxy is build from a wsdl containing RM related policy, is 
> that proxy supposed to contain the client side interceptors and 
> therefore speak the RM protocol automatically?
> 
> This is described in more detail in
> 
> https://issues.apache.org/jira/browse/CXF-1311
> 
> If you agree, I would update the wiki with the results of this thread.
> 
> cheers
> -thomas
> 
> -- 
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Thomas Diesler
> Web Service Lead
> JBoss, a division of Red Hat
> xxxxxxxxxxxxxxxxxxxxxxxxxxxx

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland