org.xmlpull.v1.xmlpullparserexception:expected:start_tag{http://www.w3.org/2001/12/soap-envelop}

来源:互联网 发布:淘宝开店怎么赚信誉 编辑:程序博客网 时间:2024/05/21 17:52

服务端提示的错误:

严重: 无法创建 SOAP 消息。应为名称空间http://schemas.xmlsoap.org/soap/envelope/中的信封, 但得到的是http://www.w3.org/2001/12/soap-envelope
com.sun.xml.ws.protocol.soap.VersionMismatchException: 无法创建 SOAP 消息。应为名称空间http://schemas.xmlsoap.org/soap/envelope/中的信封, 但得到的是http://www.w3.org/2001/12/soap-envelope


SOAP的版本问题


SoapSerializationEnvelope envelope=new SoapSerializationEnvelope(SoapEnvelope.VER12); 

将SoapEnvelope.VER12改为SoapEnvelope.VER11

0 0
原创粉丝点击