You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by spasco <st...@gmail.com> on 2008/03/22 03:56:45 UTC
XML to File
What component(s) would I use to grab XML from a URL then save it to file?
--
View this message in context: http://www.nabble.com/XML-to-File-tp16214693s12049p16214693.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: XML to File
Posted by Bruce Snyder <br...@gmail.com>.
On Fri, Mar 21, 2008 at 8:56 PM, spasco <st...@gmail.com> wrote:
>
> What component(s) would I use to grab XML from a URL then save it to file?
Well I assume the 'XML from a URL' is a web service that is external
to ServiceMix, yes? If so, then you could use the servicemix-cxf-bc
consumer and provider endpoints to invoke the external web service.
Below is an example:
<beans xmlns:cxfbc="http://servicemix.apache.org/cxfbc/1.0"
xmlns:ns1="http://example.com">
<cxfbc:consumer
wsdl="http://www.example.com/path/to/wsdl"
targetService="ns1:StockQuotes"
targetEndpoint="StockQuotesSoap"
targetInterface="ns1:StockQuotesSoap">
</cxfbc:consumer>
<cxfbc:provider
wsdl="http://www.example.com/path/to/wsdl"
locationURI="http://www.example.com/path/to/external/web/service/"
service="ns1:StockQuotes"
endpoint="StockQuotesSoap"
interfaceName="ns1:StockQuotesSoap">
</cxfbc:provider>
</beans>
Bruce
--
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'
Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/
Blog: http://bruceblog.org/