Skip to content

Instantly share code, notes, and snippets.

<wsdl:binding name="CustomerServiceServiceSoapBinding" type="tns:CustomerService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="updateCustomer">
<soap:operation soapAction="" style="document"/>
<wsdl:input name="updateCustomer">
<soap:body use="literal"/>
</wsdl:input>
</wsdl:operation>
<wsdl:operation name="getCustomersByName">
<soap:operation soapAction="" style="document"/>
@tjsnell
tjsnell / pom.xml
Last active December 17, 2015 06:09
Maven WSDL Code Generator Plugin
<build>
<plugins>
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>generate-sources</id>
<phase>generate-sources</phase>
$scope.labels = {
open: "Open",
high: "High",
low: "Low",
last_trade: "Last",
market_cap: "Market Cap",
pe_ratio: "PE",
eps: "EPS",
volume: "Volume",
"52_week_high": "52 Week High",
[WARNING] No archetype found in remote catalog. Defaulting to internal catalog
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: internal -> org.appfuse.archetypes:appfuse-basic-jsf (AppFuse archetype for creating a web application with Hibernate, Spring and JSF)
2: internal -> org.appfuse.archetypes:appfuse-basic-spring (AppFuse archetype for creating a web application with Hibernate, Spring and Spring MVC)
3: internal -> org.appfuse.archetypes:appfuse-basic-struts (AppFuse archetype for creating a web application with Hibernate, Spring and Struts 2)
4: internal -> org.appfuse.archetypes:appfuse-basic-tapestry (AppFuse archetype for creating a web application with Hibernate, Spring and Tapestry 4)
5: internal -> org.appfuse.archetypes:appfuse-core (AppFuse archetype for creating a jar application with Hibernate and Spring and XFire)
6: internal -> org.appfuse.archetypes:appfuse-modular-jsf (AppFuse archetype for cre
/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java -Didea.launcher.port=7538 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 11.app/bin" -Dfile.encoding=UTF-8 -classpath "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/deploy.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/dt.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/javaws.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/jconsole.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/management-agent.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/plugin.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/sa-jdi.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Ja
[ main] DefaultTypeConverter INFO TypeConverterRegistry utilization[attempts=1, hits=1, misses=0, failures=0] mappings[total=179, misses=0]
[ main] SpringCamelContext INFO Apache Camel 2.10.1 (CamelContext: camel-3) is shutdown in 0.002 seconds. Uptime 0.177 seconds.
Exception in thread "main" org.apache.camel.FailedToCreateRouteException: Failed to create route route1 at: >>> Choice[[When[{(header{hl7.msh.messageType} == ORM) and (header{hl7.msh.triggerEvent} == O01)} -> [Marshal[org.apache.camel.model.dataformat.HL7DataFormat@60666a53], To[log:foo]]]] Otherwise[[Bean[ref:hl7handler method: badMessage]]]] <<< in route: Route[[From[hl7listener]] -> [Unmarshal[org.apache.camel.mod... because of No bean could be found in the registry for: hl7handler
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:873)
at org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:171)
at org.apache.camel.impl.DefaultC
at com.rothman.testhl7.Main.main(Main.java:100)[file:/Users/tjs/camel/hl7/rothman/hah/target/classes/:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.6.0_35]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[:1.6.0_35]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[:1.6.0_35]
at java.lang.reflect.Method.invoke(Method.java:597)[:1.6.0_35]
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)[idea_rt.jar:]
[ main] DefaultTypeConverter INFO Loaded 174 type converters
[ main] SpringCamelContext INFO Apache Camel 2.10.1 (CamelContext: camel-3) is shutting down
[ main] DefaultTypeConverter INFO TypeConverterRegistry utilization[attempts=0, hits=0, misses=0, failures=0] mappings[total=174, misses=0]
[ main] SpringCamelContext INFO Apache Camel 2.10.1 (Came
@tjsnell
tjsnell / RabbitMQConsumer.java
Created May 29, 2012 13:05
ExecutorService method
final RabbitMQConfiguration config = endpoint.getConfiguration();
int concurrentConsumers = endpoint.getConfiguration().getConcurrentConsumers();
ExecutorServiceManager manager = endpoint.getCamelContext().getExecutorServiceManager();
Runnable consumerRunner = new Runnable() {
@Override
public void run() {
public class MyConsumer extends com.rabbitmq.client.DefaultConsumer {
/**
* Constructs a new instance and records its association to the passed-in channel.
*
* @param channel the channel to which this consumer is attached
*/
public MyConsumer(Channel channel) {
super(channel);
}
String body = exchange.getIn().getBody(String.class);
LOG.trace("Sending request [{}] from exchange [{}]...", body, exchange);
RabitMQConfiguration config = endpoint.getConfiguration();
createChannel();
String routingKey = getRoutingKey(exchange.getIn(), config);
if (!(routingKey != null && !config.getQueue().isEmpty())) {
configureChannel(config, channel);
}