You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tony Collen <tc...@hist.umn.edu> on 2002/10/01 06:03:45 UTC

[ 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(WebServiceProxyGenerator.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-retrieve=Retrieve">
          <map:parameter name="wsproxy-method" value="POST"/>
        </map:generate>
        <map:serialize type="xml" />
      </map:match>
    </map:pipeline>


Regards,
Tony


Tony Collen -- tc@socsci.umn.edu
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: [ WebServiceProxy ] Invalid response - no xml

Posted by Ivelin Ivanov <iv...@apache.org>.
----- Original Message -----
From: "Tony Collen" <tc...@hist.umn.edu>
To: <co...@xml.apache.org>
Sent: Tuesday, October 01, 2002 11:48 PM
Subject: Re: [ WebServiceProxy ] Invalid response - no xml


> On Tue, 1 Oct 2002, Ivelin Ivanov wrote:
>
> > 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.
>
> Ivelin,
>
> Of course, just after I sent that message, I find the code for
> WebServiceProxyGenerator and find the line that looked for the <?xml
> version="1.0"?> line :)  Thanks for the pointer.  I'll probably mod WSPG
> to work around the problem specific for the server I'm trying to contact.
> I'll probably get in touch with the server admin, too, and bug them ;)

That is probably the best thing to do.
They will have problems with anyone reading xml form their site.
Any xml parser will break.


I.

>
>
> Regards,
> Tony Collen
>
> Tony Collen -- tc@socsci.umn.edu
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: [ WebServiceProxy ] Invalid response - no xml

Posted by Tony Collen <tc...@hist.umn.edu>.
On Tue, 1 Oct 2002, Ivelin Ivanov wrote:

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

Ivelin,

Of course, just after I sent that message, I find the code for
WebServiceProxyGenerator and find the line that looked for the <?xml
version="1.0"?> line :)  Thanks for the pointer.  I'll probably mod WSPG
to work around the problem specific for the server I'm trying to contact.
I'll probably get in touch with the server admin, too, and bug them ;)


Regards,
Tony Collen

Tony Collen -- tc@socsci.umn.edu
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


Re: [ WebServiceProxy ] Invalid response - no xml

Posted by Ivelin Ivanov <iv...@apache.org>.
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" <tc...@hist.umn.edu>
To: <co...@xml.apache.org>
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 -- tc@socsci.umn.edu
> 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:     <co...@xml.apache.org>
> For additional commands, e-mail:   <co...@xml.apache.org>
>


---------------------------------------------------------------------
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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>