Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.此内容没有您所选择的语言版本。
10.6. Message Content Type Names
Since transformations occur between named types (for example, from type A to type B), it is important to understand how the type names are derived. The type of the message is determined based on the service contract, which can be WSDL or Java.
- WSDLFor WSDL interfaces, the message name is determined based on the fully-qualified element name of a WSDL message. Here is an example of a WSDL definition:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow This yields the following message type name based on the message element name defined in the WSDL:{urn:switchyard-quickstart:bean-service:1.0}submitOrder
{urn:switchyard-quickstart:bean-service:1.0}submitOrder
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - JavaFor Java interfaces, the message name consists of the full package name and the class name prefixed with "
java:
". Here is an example of a Java definition:This yields the following message type name:package org.switchyard.example; public interface OrderService { void submitOrder(Order order); }
package org.switchyard.example; public interface OrderService { void submitOrder(Order order); }
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You may override the default operation name generated for a Java interface. The @OperationTypes annotation provides this capability by allowing you to specify the input, output, and fault type names used for a Java service interface. For example, if you want to accept XML input content without any need for transformation to a Java object model, you can change thejava:org.switchyard.example.Order
java:org.switchyard.example.Order
Copy to Clipboard Copied! Toggle word wrap Toggle overflow OrderService
interface as shown below:This annotation can be useful if you want to maintain a tight control over the names used for message content.package org.switchyard.example; public interface OrderService { @OperationTypes(in = "{urn:switchyard-quickstart:bean-service:1.0}submitOrder") void submitOrder(String orderXML); }
package org.switchyard.example; public interface OrderService { @OperationTypes(in = "{urn:switchyard-quickstart:bean-service:1.0}submitOrder") void submitOrder(String orderXML); }
Copy to Clipboard Copied! Toggle word wrap Toggle overflow