Re: webserviceproxy working in snapshots?
OK, I got this working (thanks Art!). Since then, I have been trying to figure out a way to use it with any URL. This has come up before on the list: If you need to retrieve arbitrary html content it would be safer to use HTMLGenerator, which can retrieve remote sources via http, and runs the input through Tidy before sending the sax events through the pipeline, guaranteeing [?] that you get wellformed xml. from http://www.mail-archive.com/cocoon-users@xml.apache.org/msg22307.html. Can a generator, like webserviceproxy, receive content from another generator, in this case, HTMLGenerator? AWR --- AWR [EMAIL PROTECTED] wrote: I have tried several, including the latest, but there seems to be a problem passing the remote site information, and the examples always result in Error invoking remote service: java.lang.IllegalArgumentException: host parameter is null. The stack trace is below. Does anyone have webserviceproxy working in a recent dev snapshot? AWR Original exception : java.lang.IllegalArgumentException: host parameter is null at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:175) === message truncated === __ Post your free ad now! http://personals.yahoo.ca - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
webserviceproxy working in snapshots?
I have tried several, including the latest, but there seems to be a problem passing the remote site information, and the examples always result in Error invoking remote service: java.lang.IllegalArgumentException: host parameter is null. The stack trace is below. Does anyone have webserviceproxy working in a recent dev snapshot? AWR Original exception : java.lang.IllegalArgumentException: host parameter is null at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:175) at org.apache.commons.httpclient.HttpConnection.init(HttpConnection.java:123) at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnection(SimpleHttpConnectionManager.java:120) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:540) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:473) at org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyGenerator.java:253) at org.apache.cocoon.generation.WebServiceProxyGenerator.generate(WebServiceProxyGenerator.java:160) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:525) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:213) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:677) at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:546) at org.apache.cocoon.environment.http.HttpEnvironment.toSAX(HttpEnvironment.java:304) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:532) at org.apache.cocoon.environment.wrapper.EnvironmentWrapper.toSAX(EnvironmentWrapper.java:368) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:525) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:213) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:677) at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:413) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:546) at org.apache.cocoon.environment.http.HttpEnvironment.toSAX(HttpEnvironment.java:304) at org.apache.cocoon.transformation.CIncludeTransformer.processCIncludeElement(CIncludeTransformer.java:402) at org.apache.cocoon.transformation.CIncludeTransformer.startTransformingElement(CIncludeTransformer.java:176) at org.apache.cocoon.transformation.AbstractSAXTransformer.startElement(AbstractSAXTransformer.java:329) at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:118) at org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:459) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:221) at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(XMLNamespaceBinder.java:874) at org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:591) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:747) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1477) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:254) at org.apache.excalibur.xmlizer.DefaultXMLizer.toSAX(DefaultXMLizer.java:113) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:551) at org.apache.cocoon.environment.http.HttpEnvironment.toSAX(HttpEnvironment.java:304) at org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:532) at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140) at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:282) at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:485) at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:145) at