Hi,

 

I am trying to set proxy configurations to AXIOM Client. My proxy
configuration code looks like the following : 

 

OMElement getPricePayload = getPricePayload("WSO");

OMElement updatePayload = updatePayload("WSO", 123.42);

Options options = new Options();

options.setTo(targetEPR);

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

/*

* PROXY Properties - Begin

*/

ProxyProperties proxyProperties = new ProxyProperties();

proxyProperties.setProxyName("127.0.0.1");

proxyProperties.setProxyPort(8090);

options.setProperty(HTTPConstants.PROXY, proxyProperties);

options.setProperty(HTTPConstants.PROTOCOL_VERSION, "HTTP/1.0");

            

/* 

* PROXY Properties - End

*/

             

ServiceClient sender = new ServiceClient();

sender.setOptions(options);

 

somewhere in the mailing list, I read that, inorder to make this work,
we have to try it with HTTP/1.0. hence I tried that also. But no matter
whatever I try, I always get this error message

 

     [java] org.apache.axis2.AxisFault: Read timed out

     [java]     at
org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)

     [java]     at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSe

nder.java:195)

     [java]     at
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.ja

va:77)

     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.wr

iteMessageWithCommons(CommonsHTTPTransportSender.java:327)

     [java]     at
org.apache.axis2.transport.http.CommonsHTTPTransportSender.in

voke(CommonsHTTPTransportSender.java:206)

     [java]     at
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396)

     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.send(Ou

tInAxisOperation.java:374)

     [java]     at
org.apache.axis2.description.OutInAxisOperationClient.execute

Impl(OutInAxisOperation.java:211)

     [java]     at
org.apache.axis2.client.OperationClient.execute(OperationClie

nt.java:163)

     [java]     at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClie

-

-

-

     [java]     at
org.apache.commons.httpclient.HttpMethodDirector.executeWithR

etry(HttpMethodDirector.java:397)

     [java]     at
org.apache.commons.httpclient.HttpMethodDirector.executeMetho

d(HttpMethodDirector.java:170)

     [java]     at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl

ient.java:396)

     [java]     at
org.apache.commons.httpclient.HttpClient.executeMethod(HttpCl

ient.java:346)

     [java]     at
org.apache.axis2.transport.http.AbstractHTTPSender.executeMet

hod(AbstractHTTPSender.java:520)

     [java]     at
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSe

nder.java:191)

     [java]     ... 36 more

 

Plz help me as this has dragged for the past few days!

 

Thanks,

-Subhash-



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly 
prohibited and may be unlawful.

Reply via email to