Dear ajax:
The server accept gzip encoding.
De: ajax chelsea
[mailto:[EMAIL PROTECTED]
Enviado el: viernes, 26 mayo, 2006
11:30
Para: [email protected]
Asunto: Re: Pls Help: Server
returned HTTP response code: 500 for URL
it seems that
("Accept Encoding","gzip") should be set at server side.
2006/5/26, Amjad Abu Zur - TusAlas <[EMAIL PROTECTED] >:
Hi all:
I have this code:
....
urlConn.setRequestProperty ("Accept Encoding","gzip");
printout = new DataOutputStream(new
GZIPOutputStream(urlConn.getOutputStream())); //create a gzipped stream
String content = "<SOAP-ENV:Envelope
xmlns:SOAP-ENV=\" http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\
"> <SOAP-ENV:Body>
"+xmlPrueba+" </SOAP-ENV:Body></SOAP-ENV:Envelope>";
printout.writeBytes(content); // write your request to the gzipped
output
printout.flush ();
printout.close();
encoding = urlConn.getContentEncoding();
if (encoding != null &&
encoding.equalsIgnoreCase("gzip")) {
System.out.println("THIS
IS A GZIPPPPPPPPPED STREAM");
InputStream
is= urlConn.getInputStream();
input
= new GZIPInputStream(is);
}
Else
.......
I get the error "Server returned HTTP response code: 500 for URL: .."
in
the following line:
InputStream is= urlConn.getInputStream();
I'm sending soap messague
I do not how to deal with this error. I can not see if this is an error
of my soap message or of the communication.
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
|