Hi,
You can use jbi binding for your standalone client by
JaxWsProxyFactoryBean cf = new JaxWsProxyFactoryBean();
cf.setServiceName(getService());
cf.setServiceClass(type);
cf.setBindingId(org.apache.cxf.binding.jbi.JBIConstants.NS_JBI_BINDING);
But I think cxf bc consumer can't handle the incoming outside jbi
binding request message so far. The design for cxf bc consumer is
receive outside soap message and transform or not transform it to jbi
message.
Best Regards
Freeman
Fullocto wrote:
In fact what I'd like to do, it's generate a webservice client from a wsdl
that will not send
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<ns2:addRequest xmlns:ns2="http://brice.mycompany.com/calculator">
<nb1>20</nb1>
<nb2>8</nb2>
</ns2:addRequest>
</soap:Body>
</soap:Envelope>
but
<jbi:message xmlns:jbi="http://java.sun.com/xml/ns/jbi/wsdl-11-wrapper"
xmlns:msg="http://brice.mycompany.com/calculator"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="addRequest" type="msg:addRequest" version="1.0">
<jbi:part>
<ns2:addRequest xmlns:ns2="http://brice.mycompany.com/calculator">
<nb1>20</nb1>
<nb2>8</nb2>
</ns2:addRequest>
</jbi:part>
</jbi:message>
and I want then the BC to send directly this message to the NMR
I will try to change the binding to JBI in the wsdl