Hi Greg,
I am using XML DSL to configure the CXF component.
There isnt much online help for XML DSL for CXF_MESSAGE configuration for
processing soap attachments.
Below is my current configuration with dataformat as MESSAGE.
camel-context file:
<dataFormats>
<soapjaxb
contextPath="com.oracle.xmlns.apps.financials.commonmodules.shared.model.erpintegrationservice.types"
elementNameStrategyRef="elStrategy" id="soapFormat" />
</dataFormats>
<route streamCache="true">
<from ... />
<bean ref="erpintservice" method="prepareDocumentDetails" />
<marshal ref="soapFormat" />
<setHeader headerName="Authorization">
<constant>Basic ZzRzLmludGVncmF0aW9uLnVzZXI6RnVzaW9uQDEyMw==</constant>
</setHeader>
<to
uri="cxf:bean:uploadFileToUcmEndpoint?defaultOperationName=uploadFileToUcm&dataFormat=MESSAGE"
/>
<log message="SOAP response 1st : ${body}" />
...</route></cameContext>
<bean id="elStrategy"
class="org.apache.camel.dataformat.soap.name.ServiceInterfaceStrategy">
<constructor-arg
value="com.oracle.xmlns.apps.financials.commonmodules.shared.model.erpintegrationservice.ErpIntegrationService"/>
<constructor-arg value="true"/>
</bean>
camel-cxf file:
<cxf:cxfEndpoint id="uploadFileToUcmEndpoint"
address="https://fin-aufsn4x0cba.oracleoutsourcing.com:443/publicFinancialCommonErpIntegration/ErpIntegrationService"
wsdlURL="src/main/resources/ERP1.wsdl"
serviceClass="com.oracle.xmlns.apps.financials.commonmodules.shared.model.erpintegrationservice.ErpIntegrationService"
xmlns:ssp="http://xmlns.oracle.com/oxp/service/v2">
<cxf:properties>
<entry key="dataFormat" value="MESSAGE" />
</cxf:properties>
</cxf:cxfEndpoint>
In this above confguration if i change dataformat from Message to
CXF_MESSAGE, i am getting below error:
default-workqueue-1] PhaseInterceptorChain WARN Interceptor for
{http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/}ErpIntegrationServiceService#{http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/}uploadFileToUcm
has thrown exception, unwinding now
org.apache.cxf.interceptor.Fault: Couldn't find MIME boundary:
------=_Part_3434_428158164.1459969427807
at
org.apache.cxf.interceptor.AttachmentInInterceptor.handleMessage(AttachmentInInterceptor.java:60)
at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:784)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1644)
at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1155)
at
org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at
org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)
at java.lang.Thread.run(Thread.java:745)
I am using XML DSL hence i cannot use anything like message.getSOAPPart()
directly.. i need to know what shud b its corrosponding XML DSL.
Basically any sample example/documentation of CXF_MESSAGE using XML DSL
shall help. if you can assist?
Thanks,
Ekta
--
View this message in context:
http://camel.465427.n5.nabble.com/How-to-process-Multipart-SOAP-response-tp5780046p5780619.html
Sent from the Camel - Users mailing list archive at Nabble.com.