传输级别信息与SOAP消息名称空间URI不匹配 [英] Transport level information does not match with SOAP Message namespace URI

查看:780
本文介绍了传输级别信息与SOAP消息名称空间URI不匹配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误"Transport level information does not match with SOAP Message namespace URI".要求您提供详细信息以解决该问题.

I'm getting the error "Transport level information does not match with SOAP Message namespace URI". Request you provide the details to fix the issue.

我在客户端设置了以下内容.

I have set the below in the client side.

HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties();
proxyProperties.setProxyName(proxyAddress);
proxyProperties.setProxyPort(proxyPort);
stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,Boolean.FALSE);
stub._getServiceClient().getOptions().setProperty(HTTPConstants.PROXY, proxyProperties);
stub._getServiceClient().getOptions().setProperty(HTTPConstants.HEADER_CONTENT_TYPE,"application/soap+xml");
stub._getServiceClient().getOptions().setProperty("type","application/soap+xml");
stub._getServiceClient().getOptions().setProperty(HTTPConstants.HEADER_SOAP_ACTION, Action_URL);
stub._getServiceClient().getOptions().setProperty ( HTTPConstants.HTTP_PROTOCOL_VERSION, HTTPConstants.HEADER_PROTOCOL_11 ) ;
stub._getServiceClient().getOptions().setProperty ( "Transfer-Encoding", "chunked" ) ;
stub._getServiceClient().getOptions().setProperty(HTTPConstants.REUSE_HTTP_CLIENT, "true");

能帮您解决这个问题吗?

Can you please help to solve the issue?

推荐答案

如果内容类型和接收到的消息的SOAP版本(由SOAP信封的名称空间URI确定)不匹配,则会发生该错误.例如.如果Axis2收到内容类型为text/xml的SOAP 1.2消息,它将触发该错误.

That error occurs if there is a mismatch between the content type and the SOAP version (as determined by the namespace URI of the SOAP envelope) of the received message. E.g. if Axis2 receives a SOAP 1.2 message with content type text/xml, it will trigger that error.

这篇关于传输级别信息与SOAP消息名称空间URI不匹配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆