Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

WS-Addressing

...

Configuration

...

In

...

order

...

to

...

use

...

WS-Addressing

...

in

...

a

...

message

...

exchange,

...

two

...

things

...

are

...

necessary:

...

  1. The

...

  1. addressing

...

  1. interceptors

...

  1. (org.apache.cxf.ws.addressing.MAPAggregator

...

  1. and

...

  1. org.apache.cxf.ws.addressing.soap.MAPCodec)

...

  1. need

...

  1. to

...

  1. be

...

  1. on

...

  1. the

...

  1. nbound

...

  1. and

...

  1. outbound

...

  1. interceptor

...

  1. chains,

...

  1. and

...

  1. The

...

  1. use

...

  1. of

...

  1. WS-Addressing

...

  1. is

...

  1. indicated

...

  1. by

...

  1. one

...

  1. of

...

  1. the

...

  1. following:

...

    1. A <UsingAddressing xmlns="http://www.w3.org/2005/02/addressing/wsdl

...

    1. "> element is attached to the wsdl:port,

...

    1. wsdl:service

...

    1. or

...

    1. wsdl:binding

...

    1. element.

...

    1. The

...

    1. (chosen

...

    1. alternative

...

    1. for

...

    1. the)

...

    1. effective

...

    1. policy

...

    1. of

...

    1. the

...

    1. message

...

    1. contains

...

    1. a <Addressing xmlns="http://www.w3.org/2007/02/addressing/metadata

...

    1. "> assertion

...

    1. or

...

    1. a

...

    1. UsingAddressing

...

    1. assertion

...

    1. from

...

    1. either

...

    1. one

...

    1. of

...

    1. the

...

    1. following

...

    1. three

...

    1. namespaces:

...

    1. http://schemas.xmlsoap.org/ws/2004/08/addressing/policyImage Added,

...

    1. http://www.w3.org/2005/02/addressing/wsdlImage Added,

...

    1. http://www.w3.org/2006/05/addressing/wsdlImage Added.

...

    1. Property

...

    1. org.apache.cxf.ws.addressing.using

...

    1. in

...

    1. the

...

    1. message

...

    1. context

...

    1. is

...

    1. set

...

    1. to

...

    1. Boolean.TRUE.

...

Note

...

that

...

for

...

2.2

...

to

...

take

...

effect,

...

CXF's

...

policy

...

engine

...

must

...

be

...

enabled,

...

see

...

WS-Policy

...

Framework

...

Configuration.

Adding the Addressing Interceptors using the Addressing Feature

For an individual endpoint:

Code Block
xml
xml
|WSPConfiguration].

h2. Adding the Addressing Interceptors using the Addressing Feature

For an individual endpoint:

{code:xml}
<beans ... xmlns:wsa="http://cxf.apache.org/ws/addressing" ...>
    <jaxws:endpoint ...>
        <jaxws:features>
            <wsa:addressing/>
        </jaxws:features>
    </bean>
</beans>
{code}

h2. Adding the Addressing Interceptors Manually

Adding the Addressing Interceptors Manually

org.apache.cxf.ws.addressing.MAPAggregator

...

and

...

org.apache.cxf.ws.addressing.soap.MAPCodec

...

must

...

be

...

added

...

to

...

the

...

interceptor

...

chain

...

for

...

inbound

...

and

...

outbound

...

messages

...

and

...

faults.

...

On

...

a

...

global

...

level,

...

i.e.

...

applicable

...

to

...

all

...

client

...

and

...

server

...

endpoints,

...

this

...

can

...

be

...

done

...

as

...

follows

...

(see

...

also

...

Bus

...

Configuration

...

):

...

Code Block
xml
xml

<bean id="mapAggregator"

...

class="org.apache.cxf.ws.addressing.MAPAggregator"/>

...


<bean

...

id="mapCodec"

...

class="org.apache.cxf.ws.addressing.soap.MAPCodec"/>

...

<cxf:bus>

...


<cxf:inInterceptors>

...


<ref bean="mapAggregator"/>

...


<ref bean="mapCodec"/>

...


</cxf:inInterceptors>

...


<cxf:inFaultInterceptors>

...


<ref bean="mapAggregator"/>

...


<ref bean="mapCodec"/>

...


</cxf:inFaultInterceptors>

...


<cxf:outInterceptors>

...


<ref bean="mapAggregator"/>

...


<ref bean="mapCodec"/>

...


</cxf:outInterceptors>

...


<cxf:outFaultInterceptors>

...


<ref bean="mapAggregator"/>

...


<ref bean="mapCodec"/>

...


</cxf:outFaultInterceptors>

...


</cxf:bus>

...

Configuring

...

the

...

Addressing

...

Interceptors

...

TBD

...