On 2010-1-21, at 上午12:37, SofiAs wrote:
Hi,
I want to call(invoke) a cxfbc-provder which accesses external
webservice
from my pojo which is deployed in bean. The pojo looks something
like
InOut dsExchange1 = jbiClient.createInOutExchange();
dsExchange1.setService(new
QName("http://www.webserviceX.NET","country"));
dsExchange1.setInterfaceName(new
QName("http://www.webserviceX.NET","country"));
dsExchange1.setOperation(new
QName("http://www.webserviceX.NET","GetGMTbyCountry"));
dsExchange1.getInMessage().setContent(new StreamSource(new
StringReader(
"<GetGMTbyCountry xmlns=\"http://www.webserviceX.NET">
<CountryName>Canada</CountryName>
</GetGMTbyCountry>")));
Hi,
This message payload has no jbi wrapper , also has no soap envelop.
I can't see your wsdl for cxf bc provider, but if the message payload
is just soap body content, you can add useSOAPEnvelope="false" flag to
your cxf bc provider configuration also.
Freeman
jbiClient.send(dsExchange1);
AND HERE IS THE CXF xbean
<cxfbc:provider
wsdl="classpath:gmt.wsdl"
locationURI="http://localhost:8192/GetGMTbyCountry"
service="webservicex:country"
endpoint="countrySoap12"
interfaceName="webservicex:country"
useJBIWrapper="false"
/>
I am getting NULL as a response. Can you PLEASE HELP?
--
View this message in context:
http://old.nabble.com/accessing-cxfbc-provider-from-a-POJO-tp27244693p27244693.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com