-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Xinjun,
Default http transport version set to Http 1.1. Httpcleint support proxy support via Http version 1.0. in your client's options set the following property, options.setProperty(MessageContextConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10); Thank you Saminda Xinjun Chen wrote: > Hi > > I am trying to set proxy for an Axis2 client. The code snippet is as > follows: > > HttpTransportProperties htp = new HttpTransportProperties(); > httpProxyProperties = htp.new ProxyProperties(); > httpProxyProperties.setProxyName(httpProxyHost); > httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort)); > httpProxyProperties.setUserName(httpProxyUsername); > httpProxyProperties.setPassWord (httpProxyPassword); > httpProxyProperties.setDomain(httpProxyDomain); > > MessageContext mc = new MessageContext(); > mc.setServiceContext(serviceContext); > mc.setEnvelope(request); > mc.setTo(toEPR); > mc.setSoapAction(soapAction); > > OperationClient mepClient = outOnlyOperation.createClient( > serviceContext, options); > mepClient.addMessageContext(mc); > > // TODO: Add the call back handler > mepClient.execute(true); > > Where the httpProxyUsername, httpProxyPassword, and httpProxyDomain are > "anonymous". > > When i ran the client, I get the following exception. > > _ > > java.rmi.RemoteException > > _: EJB Exception:; nested exception is: > > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 _transport_ error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > Caused by: > > _java.rmi.RemoteException_: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; > nested exception is: > > I have tried to find other log messages but there is no other error > message. > Could you give me some idea why this error happens and what I have > missed out? > > > > > > Regards, > Xinjun -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFEiVNPYmklbLuW6wYRAmyGAJ9k8RRx8hjBs1Q/rZwtiaIQ7QpqMwCbBm3+ 1kHVBgAq3vs+gc5Zn1lrYFk= =XlQO -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
