Hi,
You need also add mtomEnabled="true" to your cxfse:proxy.
This is a new added feature so there is no apache servicemix release
including it, try play with the latest FUSE ESB(FUSE ESB is based on
apache servicemix and get released more frequently) from [1]
[1]http://repo.open.iona.com/maven2/org/apache/servicemix/apache-servicemix/3.3.1.17-fuse/
Freeman
ppil1 wrote:
Hi on both endpoint i 've set mtomEnabled=true but issue is still the same.
Only the proxied webservice is a multipart WS.
CxfSe component seems to send a wrong jbi message to cxf bc proxied
endpoint.
Instead of sending a jbi attachement for my fileattach element, coponent is
sending element in jbi body message.
Thanks for help.
Here my configuration
...
<cxfbc:provider mtomEnabled="true" wsdl="classpath:service.wsdl"
locationURI="http://localhost:8080/test"
service="test:HelloOUTService"
endpoint="soap"
/>
.....
<cxfse:endpoint mtomEnabled="true" >
<cxfse:pojo>
<bean class="org.apache.servicemix.test.HelloIn" >
<property name="myHelloOUT">
<cxfse:proxy service="test:HelloOUTService"
endpoint="soap"
context="#context" type="org.apache.servicemix.test.HelloOUT" />
</property>
</bean>
...
Helloout WSDL
<wsdl:binding name="HelloOUTSOAPBinding" type="tns:HelloOUT">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="SayHelloOUT">
<wsdl:input>
<mime:multipartRelated>
<mime:part>
<soap:body parts="request"
use="literal" />
</mime:part>
<mime:part>
<mime:content part="fileattach"
type="text/xml"/>
</mime:part>
</mime:multipartRelated>
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="UnknownWord">
<soap:fault use="literal" name="UnknownWord" />
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloOUTService">
<wsdl:port binding="tns:HelloOUTSOAPBinding" name="soap">
<soap:address location="http://localhost:8080/HelloOUTService/"
/>
</wsdl:port>
</wsdl:service>
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com