I'm trying to tie a legacy C++ CGI into a tomcat
setup.

I've created a MSG Handler that will intercept the
request, and I've routed it to the CGI, and received
the response (verified valid) in a Java String.  I've
tried to create a Message using this String, and set
it in the MessageContext, and I set the pivot point,
but the message is always the following SOAP error
viewed on the sniffer:

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml;charset=utf-8
Date: Fri, 13 Aug 2004 13:29:43 GMT
Server: Apache-Coyote/1.1
Connection: close
 
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <soapenv:Body>
  <soapenv:Fault>
   <faultcode>soapenv:Server.userException</faultcode>
   <faultstring>org.xml.sax.SAXException: Bad types
(class java.lang.String -&gt; int)</faultstring>
   <detail/>
  </soapenv:Fault>
 </soapenv:Body>
</soapenv:Envelope>

My guess is that I'm adding the response SOAP message
to the MessageContext incorrectly.

I'd appreciate any pointers,
Mark

Reply via email to