axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amjad Abu Zur - TusAlas" <mabu...@tusalas.com>
Subject Pls Help: Server returned HTTP response code: 500 for URL
Date Fri, 26 May 2006 09:09:43 GMT



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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message