use of org.apache.camel.dataformat.soap.name.ElementNameStrategy in project camel by apache.
the class SoapMarshalTest method createDataFormat.
/**
* Create data format by using the constructor
*/
protected SoapJaxbDataFormat createDataFormat() {
String jaxbPackage = GetCustomersByName.class.getPackage().getName();
ElementNameStrategy elStrat = new TypeNameStrategy();
return new SoapJaxbDataFormat(jaxbPackage, elStrat);
}
use of org.apache.camel.dataformat.soap.name.ElementNameStrategy in project camel by apache.
the class SoapRoundtripTest method createRouteBuilder.
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
String jaxbPackage = GetCustomersByName.class.getPackage().getName();
@Override
public void configure() throws Exception {
ElementNameStrategy elNameStrat = new TypeNameStrategy();
from("direct:start").marshal().soapjaxb(jaxbPackage, elNameStrat).unmarshal().soapjaxb(jaxbPackage, elNameStrat).to("mock:result");
}
};
}
Aggregations