在apache axis2客户端中获取传输错误

时间:2014-03-24 13:05:54

标签: java web-services rest ssl axis

在我的项目中,我正在尝试在apache axis 1.62上创建一个休息客户端,它在SSL之前正在工作。由于服务器配置更改和代理已添加,当我尝试访问webservice时,我收到以下错误

                org.apache.axis2.AxisFault: Transport error: 403 Error: PortcullisNoMatch
            at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:310)
            at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:194)
            at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:404)
            at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:231)
            at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
            at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
            at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
            at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
            at com.services.integration.impl.live.LoginRepositoryStubImpl.login(LoginRepositoryStubImpl.java:305)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
            at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
            at com.db.mybank.backend.managers.ProfileManagerImpl.showMethodTimeAndObjects(ProfileManagerImpl.java:129)
            at org.appverse.web.framework.backend.api.aop.advices.ProfilingAdvice.invoke(ProfilingAdvice.java:38)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
            at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
            at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
            at $Proxy29.login(Unknown Source)

我使用以下代码进行代理身份验证

                HttpTransportProperties.Authenticator basicAuthentication = new HttpTransportProperties.Authenticator();
            HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties();
            _operationClient.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.AUTHENTICATE,basicAuthentication);
            proxyProperties.setProxyName("proxy address");
            proxyProperties.setProxyPort(port);
            proxyProperties.setUserName("");
            proxyProperties.setPassWord("");
 _serviceClient.getOptions().setProperty(HTTPConstants.PROXY, proxyProperties);
    _getServiceClient().getOptions().setProperty( HTTPConstants.CHUNKED, "false" );

感谢您的帮助

0 个答案:

没有答案