Content-length is also a standard HTTP header.
You may need calculate the length of the payload and include it in
your custom header.
-bill
On Aug 28, 2006, at 10:50 AM, Kaustav Acharya wrote:
Hi all,
I think it’s safe to say that I’m the village idiot here, but I am
learning bits and pieces here and there. We’re having some issues
getting out Tango server to talk to the .NET server used in our
client. Each time we try to pass the XML values, the error
generated by their server using Detailed Response is “Content-
Length: Length Required”. As this is pretty much the only error we
are receiving, their support team suggested we hit their .NET
machine until we get a response. The Content-Length, as you all
know is in the header of a SOAP document and we trying to figure
out what number it is that it’s looking for. I am counting the
number of characters in the body of the XML and it doesn’t seem to
be accepting it. If one character is 1 byte, the length of the
document should reflect the number of characters.
Is there an easy way to do this? Both the senior guy here and I
thought of doing a ‘For’ loop where we could check the Detailed
Response from their server, see if it is spitting out that error,
and if it is to reestablish the server connection, send all the
variables again (in SOAP/XML format) until this is no longer an
issue. Once it DOES go through, we would assign that particular
number to a variable and print it out.
Anyone done this before? Is there a completely different way to do
this? Your guidance is very much appreciated.
Sincerely,
____________________________________________________
Kaustav Acharya
Programmer
U. Inc.
12250 El Camino Real, Suite #104
San Diego, CA. 92130
Office: (858) 847-3350 x1004
Fax: (858) 847-3340
email: [EMAIL PROTECTED]
http://www.colleges.com
____________________________________________________
All the News. No Ink. - http://www.onlinetimes.com
Power to the People - http://www.campaign.com
____________________________________________________
______________________________________________________________________
__ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
Bill
William M. Conlon, P.E., Ph.D.
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
vox: 650.327.2175 (direct)
fax: 650.329.8335
mobile: 650.906.9929
e-mail: mailto:[EMAIL PROTECTED]
web: http://www.tothept.com
________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf