...
Info |
---|
title | Consumer endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
service | QName | the service name of the proxied endpoint | yes | endpoint | String | the endpoint name of the proxied endpoint | yes | interfaceName | QName | the interface name of the proxied endpoint | | targetService | QName | the service name of the target endpoint | no (defaults to the service attribute) | targetEndpoint | String | the endpoint name of the target endpoint | no (defaults to the endpoint attribute) | targetInterfaceName | QName | the interface name of the target 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 | defaultOperation | QName | the default operation name to set on the JBI exchange. if not set, it defaults to the QName of the root xml element | 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 | authMethod | string | HTTP authentication method to use, e.g. basic | no |
|
Note |
---|
The locationUri is usually something like *http://0.0.0.0:8192/jbi/Service* The 0.0.0.0 IP address binds the server socket to all networks that the host is in. If you use localhost, you will only be able to access the URL from the same computer. |
...
Warning |
---|
Basic authentication credentials are passed in plain text across the network. Please use additional encryption for better security, or use a stronger mechanism other than basic authentication. |
Basic authentication for a servicemix-http provider can be provided using the following syntaxsetup as follows:
Code Block |
---|
|
<http:endpoint service="testBasicAuth:MyProviderService"
endpoint="myProvider"
role="provider"
locationURI="https://localhost:8193/Service/">
<http:basicAuthentication>
<http:basicAuthCredentials username="testuser" password="testpass" />
</http:basicAuthentication>
</http:endpoint>
|
... and for a servicemix-http consumer:
Code Block |
---|
|
<http:endpoint service="testBasicAuth:MyConsumerService"
endpoint="myConsumer"
role="consumer"
targetService="..."
authMethod="basic"
locationURI="https://localhost:8193/Service/">
</http:endpoint>
|
Info |
---|
title | BasicAuthCredentials attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
username | String | Authentication username | | password | String | Authentication password | |
|
...