I resolved my issue by using the following code:
TransportOutDescription transOut = new TransportOutDescription("http");
TransportSender sender = (TransportSender) new CommonsHTTPTransportSender();
transOut.setSender(sender);
Parameter param1 = new Parameter();
param1.setName("PROTOCOL");
param1.setValue("HTTP/1.1");
Parameter param2 = new Parameter();
param2.setName("Transfer-Encoding");
param2.setValue("chunked");
transOut.addParameter(param1);
transOut.addParameter(param2);
stub._getServiceClient().getOptions().setTransportOut(transOut);
Thanks,
Aneel
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2008 9:37 AM
To: [email protected]
Subject: RE: Transport Out Error
Hi Michele,
Thanks for your reply. I am not sure if you are implying setting the Transport
In would solve the problem with Transport Out. I tried your suggestion...but
did not work :(
I am thinking I can manually set the TransportOutDescription Object in the
options. But I am not sure as to how to construct a valid object with all the
required parameters.
Regards,
Aneel
-----Original Message-----
From: Michele Mazzucco [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 01, 2008 12:09 PM
To: [email protected]
Subject: Re: Transport Out Error
Aneel,
you're probably missing this instruction:
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
Michele
On 1 Apr 2008, at 16:48, <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using Axis2 v 1.3 as a web service client. I am getting the
> following error. I have searched the archives and found some other
> people had this issue and it was due to missing dependent jars from
> classpath especially, commons-httpclient.jar. But, I verified that
> I have commons-httpclient-3.0.1.jar in my classpath.
>
> Axis fault:"
> org.apache.axis2.AxisFault: Transport out has not been set
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:
> 383)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send
> (OutInAxisOperation.java:374)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl
> (OutInAxisOperation.java:211)
> at org.apache.axis2.client.OperationClient.execute
> (OperationClient.java:163)
>
> I looked at the line where the above error is being thrown from
> Axis2. It seems like it is thrown when
> messageContext.getTransportOut() returns a null object. I have
> enabled debug logging for axis2 and it is showing that the Axis
> client I am using is getting the configuration from
> axis2_default.xml in axis2-kernal.jar. And, the default
> configuration file has the HTTP and HTTPS transport Outs set. The
> log files even show that this information is getting parsed.
>
> Most importantly, the EAR deployment which packages my client as
> MDB, works fine in development...but won't work in QA. This leads me
> to believe there is a configuration issue. But, I cannot narrow
> down the issue. All the dependent jars are packaged as part of the
> EAR in APP-INF/lib/.
>
> I will appreciate any help or ideas to resolve this issue.
>
> Thanks,
> Aneel
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]