On Friday, November 11, 2011 5:18:35 PM Sergey Beryozkin wrote: > You should probably use JAXWS Dispatch<Source> client assuming the > target endpoint is a soap endpoint, you should find some hints here:
Wow... I honestly didn't expect *you* to suggest this. ;-) Seriously, from the description, this sounds more like a REST like service, not SOAP. You basically have an XML Schema representing the data you want to post to the given URL and possibly get a response back via XML. No SOAP, or did I miss something? To me, this sounds like you should run xjc (jaxb compiler, part of Java6) on the schema to generate some objects and then use the CXF JAX-RS WebClient to post the objects to the server and get the response objects back. So, we have the REST guy suggesting SOAP and a SOAP guy suggesting REST. Confused yet? ;-) Dan > > http://cxf.apache.org/docs/jax-ws-configuration.html > > Cheers, Sergey > > On 11/11/11 17:02, amathewcxf wrote: > > Thank You so much for your reply. > > > > In fact the third party DO NOT have the WSDL for the XML. They send us a > > XML document (schema) which we have to send to them. > > > > In our old application we build the XML document and send it via Http > > (using our own custom code). > > > > But in the new application (which uses a Spring framework), we want to > > use the Apache-CXF as the webservice. The main point which I am missing > > is how will the XML will be generated and where can I specify the > > destination URL of the third party where we need to send the XML > > document. > > > > Hope I answered your question. > > > > Thank you for your time and much appreciated. > > > > Anil > > > > -- > > View this message in context: > > http://cxf.547215.n5.nabble.com/Using-Apache-CXF-to-communicate-a-third > > -party-application-tp4982907p4984942.html Sent from the cxf-user mailing > > list archive at Nabble.com. -- Daniel Kulp [email protected] http://dankulp.com/blog Talend - http://www.talend.com
