You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ilja Smoli <il...@frontdesk.ee> on 2005/02/07 17:26:47 UTC

XmlHttpTransformer

Hi
Im trying to use a " XmlHttpTransformer" component...
Examples from this article works fine
http://webservices.xml.com/pub/a/ws/2003/03/18/cocoon.html
but when I trying to connect to other webservice i got response
<xht:exception>
java.io.IOException: Server returned HTTP response code: 500 for URL:
http://127.0.0.1:8082/Workspace1-Project1-context-root/MyWebService1
</xht:exception>

TCP Monitor shows:
faultcode>SOAP-ENV:Client</faultcode>
<faultstring>parsing error: oracle.xml.parser.v2.XMLParseException: An
attribute cannot appear more than once in the same start tag.</faultstring>
<faultactor>/Workspace1-Project1-context-root/MyWebService1</faultactor>

And i see that in request some of attributes are appearing twice, here is a
full request:
****************************************************
<SOAP-ENV:Envelope
xmlns:SOAP-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:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SOAP-ENV:Body>
            <ns1:getUserDetails xmlns:ns1="MyWebService1"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="MyWebService1">
                <xxpUserObject_inoutxx
xmlns:ns2="http://DBConnection1/MyWebService1.xsd"
xsi:type="ns2:DBConnection1_UserObjectUser"
xmlns:ns2="http://DBConnection1/MyWebService1.xsd">
        <userName xsi:type="xsd:string">bricius</userName>
</xxpUserObject_inoutxx>
</ns1:getUserDetails>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
**********************************

While my XSL looks like:
*************************************
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Body>

<ns1:getUserDetails xmlns:ns1="MyWebService1"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<xxpUserObject_inoutxx xmlns:ns2="http://DBConnection1/MyWebService1.xsd"
xsi:type="ns2:DBConnection1_UserObjectUser">

<userName xsi:type="xsd:string">bricius</userName>

</xxpUserObject_inoutxx>

</ns1:getUserDetails>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

***********************************


Any suggestions?









---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org