Title: Encoding style of SOAP messages in xsp

Hello,
I am trying to send a soap message to a locally deployed soap service using the following encoding style: soap:encodingStyle="http://xml.apache.org/xml-soap/literalxml" so that a dom node can be passed instead of a string or an integer. It appears that something is wrong with the way that the encoding style is declared???  The SOAP service accepts a dom Element. I have written a java client and am able to send and recieve messages to and from the same target using the soap call object. In other words, I am positive the service works, I just can't send a message using cocoon! I am using Cocoon 2.0.3 and tomcat 4.0.1.

Any help would be greatly appreciated,
Robin Schoeninger

Here is my pipeline:

<map:match pattern="soapMessage">
        <map:generate type="serverpages" src=""soapMessage.xsp"/>
        <map:transform src=""showResults.xsl"/>
        <map:serialize/>
</map:match>

Here is soapMessage.xsp:

<?xml version="1.0" encoding="UTF-8"?>
<xsp:page language="java" xmlns:xsp="http://apache.org/xsp"
                        xmlns:xsp-request="http://apache.org/xsp/request/2.0"
                        xmlns:soap="http://apache.org/xsp/soap/3.0">
        <search-results>
                <soap:call url=""http://localhost:8080/soap/servlet/rpcrouter"
                                   soap:encodingStyle="http://xml.apache.org/xml-soap/literalxml"
                                   xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
                                   xmlns:xsd="http://www.w3.org/1999/XMLSchema">
                        <ns1:bargraph xmlns:ns1="urn:Graph" soap:encodingStyle="http://xml.apache.org/xml-soap/literalxml">

                                <diagram>
                                        <diagramTitle>Test Diagram</diagramTitle>
                                        <yCaption>test numbers</yCaption>
                                        <xCaption>test sites</xCaption>
                                        <item>
                                                <xValue>desert</xValue>
                                                <yValue>0.0567</yValue>
                                        </item>
                                </diagram>
                        </ns1:bargraph>
                </soap:call>
        </search-results>
</xsp:page>

Message from browser:
SOAP-ENV:Client No Deserializer found to deserialize a ':diagram' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'. /soap/servlet/rpcrouter


Message from tomcat:
java.lang.RuntimeException: java.net.SocketException: Connection aborted by peer: socket write error
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
        at java.lang.Thread.run(Thread.java:484)


Robin T. Schoeninger
Center For Environmental Studies
Arizona State University
480-727-7290
[EMAIL PROTECTED]






Reply via email to