Versions Compared

Key

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

...

Wiki Markup
{snippet:id=consumer|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-http/src/test/resources/xbean/xbean.xml}

 

Info
titleConsumer endpoint attributes
borderStylesolidbgColor='lighblue'

Name

Type

Description

Required

service

QName

the service name of the proxied endpoint

 

endpoint

String

the endpoint name of the proxied endpoint

 

interfaceName

QName

the interface name of the proxied endpoint

 

role

String

must be 'consumer'

yes

locationURI

URI

the http url where this proxy endpoint will be exposed

yes

defaultMEP

URI

the default MEP uri to use

no

soap

boolean

if set, the component will parse the soap requests and send the content into the NMR

no (defaults to false)

soapVersion

string

can be set to '1.1' to force the use of SOAP 1.1 messages

no

wsdlResource

Spring resource

if set, the wsdl will be retrieved from the given Spring resource

no

...

Wiki Markup
{snippet:id=provider|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-http/src/test/resources/xbean/xbean.xml}

 

Info
titleProvider endpoint attributes
borderStylesolidbgColor='lighblue'

Name

Type

Description

Required

service

QName

the service name of the exposed jbi endpoint

yes

endpoint

String

the endpoint name of the exposed jbi endpoint

yes

interfaceName

QName

the interface name of the exposed jbi endpoint

no

role

String

must be 'provider'

yes

locationURI

URI

the http url of the target service

yes

soap

boolean

if set, the component will parse the soap requests and send the content into the NMR

no (defaults to false)

wsdlResource

Spring resource

if set, the wsdl will be retrieved from the given Spring resource

no

...

Wiki Markup
{snippet:id=lightweight|lang=xml|url=http://svn.apache.org/repos/asf/incubator/servicemix/trunk/servicemix-http/src/test/resources/org/apache/servicemix/http/addressing.xml}

 

Accessing WSDLs

WSDLs for consumer endpoints are retrieved using the following method:

...

For example, the WSDL for the consumer endpoint seen in the 'WSDL Deployment' section will be available at
http://localhost:8192/InOnly/?wsdl

WS-Addressing

When used on a SOAP consumer endpoint, servicemix-http handles the WS-Adressing Action and To headers.

wsa:Action

The wsa:Action header can be used to specify the target interface name and operation to use for the JBI exchange.

The header uses the following syntax:

Code Block

  [target namespace][delimiter][interface name][delimiter][operation name]

where:

  • Wiki Markup
    \[delimiter\] is ":" when the \[target namespace\] is a URN, otherwise "/".
  • Wiki Markup
    \[target namespace] is the namespace of the interface.
  • Wiki Markup
    \[interface name\] is the name of the interface.
  • Wiki Markup
    \[operation name\] is the name of the operation.

For example, the following header

Code Block
xml
xml

  <wsa:Action>http://example.com/stockquote/StockQuoteInterface/GetLastTradePrice</wsa:Action>

will be used to address the JBI exchange with the following properties:

wsa:To

The wsa:To header specifies the target JBI service name and endpoint name.

The header uses the following syntax:

Code Block

  [target namespace][delimiter][service name][delimiter][endpoint name]

where:

  • Wiki Markup
    \[delimiter\] is ":" when the \[target namespace\] is a URN, otherwise "/".
  • Wiki Markup
    \[target namespace] is the namespace of the interface.
  • Wiki Markup
    \[service name\] is the name of the service.
  • Wiki Markup
    \[endpoint name\] is the name of the endpoint.

For example, the following header

Code Block
xml
xml

  <wsa:To>urn:example:stockquote:StockQuoteService:JBIEndpoint</wsa:To>

will be used to address the JBI exchange with the following properties:

  • service name: {urn:example:stockquote}StockQuoteService
  • endpoint name: JBIEndpoint