axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Chandrashekar_Sud...@Dell.com>
Subject Getting Socket reset Error while using CommonsHTTPSender
Date Thu, 01 Dec 2005 06:57:18 GMT
Hi,

I am getting Socket Reset Error when I use CommonsHTTPSender?
Please Please anyone help me.

I am behind the firewall. 

This is the code  I have used to run the client code generated from
using WSDLTOJAVA


PhotonSoap_PortType service = locator.getPhotonSoap();
			PhotonSoap_BindingStub stub =
(PhotonSoap_BindingStub)service;
			StringBuffer sb = new StringBuffer();
	
sb.append("<PartsServerRequestMsg><TransCode>1</TransCode><TerminalID>EG
102</TerminalID><CountZero
/><PartNumber>00001</PartNumber><RevLevel>EG102</RevLevel><SKUNumber
/><SKUVersion /></PartsServerRequestMsg>");
			String request = sb.toString();
	
stub.setHeader("photon.webservices.dell.com","POST","/photon/photon.asmx
HTTP/1.1");
	
stub.setHeader("photon.webservices.dell.com","Host","ausadeaid3.aus.amer
.dell.com");
	
stub.setHeader("photon.webservices.dell.com","Content-Type","text/xml;
charset=utf-8");
	
stub.setHeader("photon.webservices.dell.com","Content-Length",""+sb.leng
th());
	
stub.setHeader("photon.webservices.dell.com","SOAPAction","photon.webser
vices.dell.com/dispatch");
	
stub.setUsername("DOMAIN\\chandrashekar_sudars");
			stub.setPassword("password");
			stub.setMaintainSession(false);
			stub.setTimeout(100000);		

I am not setting any RequestHeaders like HTTPConstants.HEADER_EXPECT,
HEADER_TRANSFER_ENCODING_CHUNKED etc.. Is this required?

Please help me..

Regards
Chandra



Mime
View raw message