I'm interfacing with the parser the following way:
public MethodCall parse(InputStream stream)
{
XmlRpcRequestParser parser
= new XmlRpcRequestParser( new StreamConfig(), new
TypeFactoryImpl(null) );
try {
XMLReader xr = SAXParsers.newXMLReader();
xr.setContentHandler(parser);
xr.parse( new InputSource(stream) );
}
catch(XmlRpcException xe) {}
catch(SAXException se) {}
catch(IOException ie) {}
return new MethodCall(parser.getMethodName(), parser.getParams());
}
// @summary: Implementation of the configuration for the Apache
XMLRPC parser. This is
// a default configuration that most likely will never need to be
changed.
// @author: John Bellone ([EMAIL PROTECTED])
private class StreamConfig implements XmlRpcStreamConfig
{
public String getEncoding() { return UTF8_ENCODING; }
public boolean isEnabledForExtensions() { return false; }
public java.util.TimeZone getTimeZone() { return
java.util.TimeZone.getDefault(); }
}
Now I am getting an error message that I am Googling for to find out the
reason. Here's what it says:
"[Fatal Error] :2:1: Content is not allowed in prolog."
I have been connecting to the server in telnet so my first guess is that
its not sending the proper headers? I'm trying to figure out an easy way
to test out the implementation. Any pointers?
-John Bellone
[EMAIL PROTECTED]
609.489.3112
Jochen Wiedmann wrote:
On Nov 9, 2007 11:33 PM, John Bellone <[EMAIL PROTECTED]> wrote:
All I basically need is to parse and serialize the messages. I'm
receiving them in a ByteBuffer
What do you plan to take as the parsers input/output? The parsers I
know require In-/OutputStream, not ByteBuffer.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]