...
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 | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||
|
...
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 | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||
|
...
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 | ||||
---|---|---|---|---|
| ||||
<wsa:Action>http://example.com/stockquote/StockQuoteInterface/GetLastTradePrice</wsa:Action>
|
will be used to address the JBI exchange with the following properties:
- interface name: {http://example.com/stockquote\}StockQuoteInterface
- operation name: {http://example.com/stockquote\}GetLastTradePrice
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 | ||||
---|---|---|---|---|
| ||||
<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