Action Processing Pipeline & http:binding
santy79 Jul 23, 2010 12:14 PM1. ActionProcessingPipeline -
A .esb is developed with a HTTP Listener. For all exceptions we want to send a Custom XML rather thowing java exception.(Attached JBOSS HTML while thorwing a java exception from a Action class.)
We need a way stop action pipeline instead of throwing a java exception to JBOSS container , build a Custom XML and send back to consumer.
Attached the testCode where we trying to simulate the case (dummyExcHandling.zip) , HTTP Client O/P for the esb (JBOSS_HttpListener_Error_Output.html) .
In the HTML output we got our custom xml String (<pre><Error><CustomFault>We want this XML alone rather than full HTML JBOSS ********This is my test exception*********</CustomFault></Error>).
But we need only custome output alone rather the whole JBOSS HTML page.
2. Need ways to generate Java Artifacts for http:binding , soap:binding for a single wsdl through JBOSS IDE.
Note: soap:binding works fine with JBOSS DEV Studio.
Attached the wsdl storelocator.wsdl and used in IDE to generate JAX-WS artifacts (Webservices > Generate Java Bean Skeleton).
It generates JAXB Objects .
org.tempuri.Address.java
org.tempuri.ArrayOfStoreLocatorResponse.java
org.tempuri.FindStore.java
org.tempuri.FindStoreResponse.java
org.tempuri.ObjectFactory.java
org.tempuri.package-info.java
org.tempuri.StoreLocatorRequest.java
org.tempuri.StoreLocatorResponse.java
And Aborts throwing an exception (Attached the stacktrace Exception.txt)
Failed to generate implementation class
org.eclipse.core.runtime.CoreException: Failed to Generate Web Service code, please check the log for more details
-
storelocator.wsdl.zip 1.0 KB
-
Exception.txt.zip 867 bytes
-
dummyExcHandling.zip 3.9 KB