Paul:

Thanks for much for giving the code as well to do my debugging!!!

I don't know how to interpret the output as they are drastically different.
The first set of the output was sent by XmlRpcClientLite and the second set
was sent by the XmlRpcClient. 

It looks like the packet sent by XmlRpcClientLite does not have the header!

Thanks.

- Yaxiong

C:\Apache Tomcat 4.0\webapps\mss-dev\javaSource\mss\appenv>java
mss.appenv.DumbS
erver 1800
Accepted connection.
�<?xml version="1.0"
encoding="ISO-8859-1"?><methodCall><methodName>mars.submitR
equest</methodName><params><param><value><array><data><value>new_order_set
(3303
923,"ap00208",|F|,#03/03/1993 00:00#,0,#03/18/2002 00:00#,#04/01/2002
00:00#,0,0
,1,#null,1,#null,#null,#null,#03/18/2002 17:07#,#null,
#null,{time[]:#03/29/2002
 23:59#,#03/31/2002 00:00#,#03/22/2002 23:59#,#03/25/2002
00:00#},{varchar[]:})<
/value><value>new_appointment (@transID@,0,5210,#null,298,#02/08/2002
08:15#,0,0
)</value><value>new_appointment (@transID@,1,5208,#null,298,#02/08/2002
08:15#,0
,0)</value><value>new_appointment (@transID@,2,5321,#null,900,#02/08/2002
11:00#
,0,0)</value><value>new_appointment (@transID@,3,5219,#null,298,#03/04/2002
13:4
5#,0,0)</value><value>new_appointment
(@transID@,4,4745,#null,971,#03/04/2002 14
:50#,0,0)</value><value>new_appointment
(@transID@,5,5576,#null,971,#03/05/2002
07:10#,0,0)</value><value>new_appointment
(@transID@,6,4745,#null,971,#03/07/200
2 07:00#,0,0)</value><value>new_appointment
(@transID@,7,5219,#null,298,#03/07/2
002 13:30#,0,0)</value><value>new_appointment
(@transID@,8,5219,#null,298,#03/07
/2002 13:45#,0,0)</value><value>new_appointment
(@transID@,9,5576,#null,971,#03/
08/2002 07:10#,0,0)</value><value>new_appointment
(@transID@,10,5387,#null,900,#
03/08/2002 08:00#,0,0)</value><value>new_appointment
(@transID@,11,5576,#null,97
1,#03/11/2002 07:00#,0,0)</value><value>new_appointment
(@transID@,12,5738,#null
,971,#03/11/2002 07:50#,0,0)</value><value>new_appointment
(@transID@,13,5738,#n
ull,971,#03/12/2002 07:00#,0,0)</value><value>new_appointment
(@transID@,14,5738
,#null,971,#03/13/2002 07:10#,0,0)</value><value>new_appointment
(@transID@,15,5
576,#null,971,#03/14/2002 07:10#,0,0)</value><value>new_appointment
(@transID@,1
6,5738,#null,971,#03/14/2002 14:30#,30,0)</value><value>new_appointment
(@transI
D@,17,5576,#null,971,#03/18/2002 07:20#,30,0)</value><value>new_order_item
(@tra
nsID@,0,5576,{int[]:},#03/18/2002 00:00#,#03/31/2002
00:00#,0,1439,#null,{time[]
: },50204,{varchar[]:},#null,{varchar[]:})</value><value>do_schedule
(@transID@,
|hold|,"user
info")</value></data></array></value></param></params></methodCall>

C:\Apache Tomcat 4.0\webapps\mss-dev\javaSource\mss\appenv>





C:\Apache Tomcat 4.0\webapps\mss-dev\javaSource\mss\appenv>java
mss.appenv.DumbS
erver 1800
Accepted connection.
POST / HTTP/1.1
Content-Length: 2159
Content-Type: text/xml
User-Agent: Java1.3.1
Host: r0095122:1800
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive


Accepted connection.
POST / HTTP/1.1
Content-Length: 2159
Content-Type: text/xml
User-Agent: Java1.3.1
Host: r0095122:1800
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

> -----Original Message-----
> From: Paul Libbrecht [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, March 18, 2002 4:01 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: connection refused error
> 
> Yaxiong,
> 
> That's not enough, where's the start ?
> Where's the POST /yourPath HTTP/1.0  ??
> 
> Here is a little dumb web-server. Invoke it with
> java -classpath . DumbServer <yourPortNumber
> 
> It simply prints to the console what it receives.
> Using it with your two versions of XML-RPC clients should show you some 
> differences. For encoding reasons of the console, it may make sense to 
> redirect the standard-output of this process to a file which you can 
> then view with an hex-viewer. Alternatively, you can change the 
> "System.out.print((char) r);" to something that uses a NumberFormat 
> outputting in hexadecimal.
> 
> Hope that helps.
> 
> Paul
> 
> import java.net.Socket;
> import java.net.ServerSocket;
> import java.io.InputStream;
> import java.io.IOException;
> 
> public class DumbServer {
>       
>       public static void main(String[] args ) throws Exception {
>               ServerSocket server = new ServerSocket (
> Integer.parseInt(args[0]) );
>               while ( true ) {
>                       Socket socket = server.accept();
>                       System.out.println("Accepted connection.");
>                       try {
>                       InputStream in = socket.getInputStream();
>                       int r = 0, n = 0;
>                       while ( (r=in.read()) != -1 ) {
>                               System.out.print((char) r);
>                               if ( r == 13 || r == 10 ) {
>                                       n++;
>                                       if ( n >= 4 ) break; // should be
> the end of the header
>                               } else n = 0;
>                       }
>                       in.close();
>                       System.out.println(""); // that is... flush
> system.out
>                       } catch (Exception ex) {ex.printStackTrace();}
>               }
>       }
>       
> }
> 
> On Lundi, mars 18, 2002, at 10:26 , Lin, Yaxiong wrote:
> > Data stream received from XmlClientLite:
> >
> ++Gp@a@+pp+a�K=�SoaO`-caouz@-u?aea@t++`+++@�K=�+uouz@O==�)�==z��==�+uouaou
> `
> > p
> > ?uaz
> > @uaouaooo�+uouaou`+aocuez@=�)���x<?xml version="1.0"
> > encoding="ISO-8859-1"?><meth
> > ... more

Reply via email to