Hi,
I get some problem with the proxy setting in Axis2. Even though I set
the HttpTransportProperties and ProxyProperties, the Axis2 reports
transport error. The code snippet is as follows:
HttpTransportProperties htp = new HttpTransportProperties();
ProxyProperties httpProxyProperties = htp.new ProxyProperties();
httpProxyProperties.setProxyName(httpProxyHost);
httpProxyProperties.setProxyPort(Integer.parseInt(httpProxyPort));
httpProxyProperties.setUserName(httpProxyUsername);
httpProxyProperties.setPassWord (httpProxyPassword);
httpProxyProperties.setDomain(httpProxyDomain);
Options options = new Options();
options.setProperty(HTTPConstants.PROXY, httpProxyProperties);
options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
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:
...
The error code is 501 which is "Not Implemented". What does it mean?
The end service "Not Implemented" or the proxy "Not Implemented"
something? Could anyone help me to identify the problem?
Saminda, I remember you have mentioned proxy setting when you
answering somebody's question on Basic Authentication. Could you help
me on the proxy issue? It has dragged me a few days.
Regards,
Xinjun
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]