users@jax-rpc.java.net

xtags can't handle soap response

From: Mischa <yawningrascal_at_HOTMAIL.COM>
Date: Thu, 27 Jun 2002 11:41:05 -0600

Hi,
I want to process a soap response with a jsp. Therefore I used the taglibs
io and xtags from jakarta. Although the doucumentation of xtags says that
the processing of the output of SOAP-RPC is no problem, my
browser throws the message:

XML Parsing Error:
xml processing instruction not at start of external entity...
<?xml version="1.0" encoding="UTF-8"?>
^

Has anybody tried the same or knows what went wrong???
I seems that xpath that is used by xtags has a problem to parse the xml.
But without the xtag elememt the browser displays the XML-SOAP-Response
without any probs.

Thanx,
Mischa

--------------------------------------------------------------------------
--------------------------------------------------------------------------
<%@ taglib uri="http://jakarta.apache.org/taglibs/io-1.0" prefix="io" %>
<%@ taglib uri="http://jakarta.apache.org/taglibs/xtags-1.0" prefix="xtags" %>

<%@ page contentType="application/xml" %>

<xtags:parse>
<io:soap
 url="http://localhost:8080/webservice/TestIfc"
 SOAPAction="">
    <io:body>
        <env:Envelope
        xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
        xmlns:ns0="http://hello.org/wsdl"
        xmlns:ns1="http://hello.org/types"
        env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
>
            <env:Body>
                <ns0:performLogin>
                    <String_1 xsi:type="xsd:string"><%= request.getParameter("login") %></String_1>
                    <String_2 xsi:type="xsd:string"><%= request.getParameter("password") %></String_2>
                </ns0:performLogin>
            </env:Body>
        </env:Envelope>
    </io:body>
</io:soap>
</xtags:parse>
---------------------------------------------------------------------------