I don't know of a quick appropriate way.
Most Cocoon components will not accept invalid XML format.
One way is to extend the WebServiceProxyGenerator and modify the code to
prepend the xml header.




----- Original Message -----
From: "Tony Collen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 30, 2002 11:03 PM
Subject: [ WebServiceProxy ] Invalid response - no xml


> Hi all -
>
> I'm playing with the WebServiceProxy, and the server I'm contacting does
> not generate an <?xml version="1.0"?> tag at the start of their response.
> Thusly, I get the following error:
>
> Cocoon 2 - Internal server error
>
> type fatal
>
> message Error invoking remote service:
> org.apache.cocoon.ProcessingException: Invalid response - no xml
>
> description org.apache.cocoon.ProcessingException: Error invoking remote
> service: org.apache.cocoon.ProcessingException: Invalid response - no xml:
> org.apache.cocoon.ProcessingException: Invalid response - no xml
>
> sender org.apache.cocoon.servlet.CocoonServlet
>
> source Cocoon servlet
>
> stack-trace
>
> org.apache.cocoon.ProcessingException: Error invoking remote service:
> org.apache.cocoon.ProcessingException: Invalid response - no xml:
> org.apache.cocoon.ProcessingException: Invalid response - no xml
> at
>
org.apache.cocoon.generation.WebServiceProxyGenerator.fetch(WebServiceProxyG
enerator.java:278)
> at
>
> <snip-big-stack-trace/>
>
> Is there any way to get this to work, short of writing a servlet or PHP
> script to hit the remote server for me, and spit out the <?xml
> version="1.0"?> tag plus the rest of the data back to Cocoon?  I don't
> have control over the remote server I'm contacting.  If anyone really
> wants to see the 20 pages of stack trace, let me know and I'll post it.
>
> Here's my pipeline, BTW:
>
>     <map:pipeline>
>       <map:match pattern="metar">
>         <map:generate type="wsproxy"
>
src="http://zowie.metnet.navy.mil/cgi-bin/oleg/get-obs?call_id=KMSP&amp;do-r
etrieve=Retrieve">
>           <map:parameter name="wsproxy-method" value="POST"/>
>         </map:generate>
>         <map:serialize type="xml" />
>       </map:match>
>     </map:pipeline>
>
>
> Regards,
> Tony
>
>
> Tony Collen -- [EMAIL PROTECTED]
> College of Liberal Arts   University of Minnesota, Minneapolis, West Bank
>
>
> ---------------------------------------------------------------------
> 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]>
>


---------------------------------------------------------------------
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]>

Reply via email to