-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
AFAIK server does accept whitespace as long as you include it in the
Content length.
Leonid
On Tue, 22 Jan 2002, klaus rubba wrote:
> Hmm, think I figured it out. Apparently the server doesn't accept extraneous
> white space in the XML documents you send to it. Go figure...
>
> Klaus
>
>
> >From: "klaus rubba" <klaus_rubba@hotmail.com>
> >To: dev-list@opensrs.org
> >Subject: Writing own client
> >Date: Tue, 22 Jan 2002 15:02:31 -0800
> >
> >Hi there,
> >
> >I'm working on writing my own client trying to communicate directly with
> >opensrs servers. The handshake seems to start off ok, i get their CHECK
> >message, send my CHECK message, send my AUTHENTICATION message, and then
> >get
> >nothing from the server when I should be getting the random bits for a
> >checksum.
> >
> >I'll include the raw XML that I am sending to the server. Anybod see some
> >obvious problems with it?
> >
> >Thanks!
> >
> >Klaus
> >
> >CHECK MESSAGE:
> >Content-Length: 957
> >
> >
> ><?xml version='1.0' encoding="UTF-8" standalone="no" ?>
> ><!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
> > <OPS_envelope>
> > <header>
> > <version>
> > 0.9
> > </version>
> > <msg_id>
> > 999
> > </msg_id>
> > <msg_type>
> > standard
> > </msg_type>
> > </header>
> > <body>
> > <data_block>
> > <dt_assoc>
> > <item key="protocol">
> > XCP
> > </item>
> > <item key="action">
> > CHECK
> > </item>
> > <item key="object">
> > VERSION
> > </item>
> > <item key="attributes">
> >
> > <dt_assoc>
> > <item key="state">
> > ready
> > </item>
> > <item key="sender">
> > OpenSRS CLIENT
> > </item>
> > <item key="version">
> > XML:0.1
> > </item>
> > </dt_assoc>
> > </item>
> > </dt_assoc>
> > </data_block>
> > </body>
> > </OPS_envelope>
> >
> >AUTHENTICATE MESSAGE
> >Content-Length: 967
> >
> >
> ><?xml version='1.0' encoding="UTF-8" standalone="no" ?>
> ><!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
> > <OPS_envelope>
> > <header>
> > <version>
> > 0.9
> > </version>
> > <msg_id>
> > 999
> > </msg_id>
> > <msg_type>
> > standard
> > </msg_type>
> > </header>
> > <body>
> > <data_block>
> > <dt_assoc>
> > <item key="protocol">
> > XCP
> > </item>
> > <item key="action">
> > authenticate
> > </item>
> > <item key="object">
> > user
> > </item>
> > <item key="attributes">
> >
> > <dt_assoc>
> > <item key="username">
> > myusername
> > </item>
> > <item key="password">
> > myusername
> > </item>
> > <item key="crypt_type">
> > blowfish
> > </item>
> > </dt_assoc>
> > </item>
> > </dt_assoc>
> > </data_block>
> > </body>
> > </OPS_envelope>
> >
> >_________________________________________________________________
> >Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
>
>
>
>
> _________________________________________________________________
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
- --
Leonid Igolnik.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8ThlXRrKFtN3cJpMRAneFAJ9qWv51re4uswa9XYoUgqxd5NXiogCgxLao
zDCVl6BUv/xIHEzsq2qG+FA=
=Un7j
-----END PGP SIGNATURE-----
This archive was generated by hypermail 2.1.3 : Tue Oct 19 2004 - 23:36:56 EDT