http://passport.csdn.net/WebService/UserLoginService.asmx?op=UserLogin
调用这样一个简单的webservice
我用C#发送soap1.2格式的请求<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<UserLogin xmlns="http://passport.csdn.net/">
<LoginName>string</LoginName>
<Password>string</Password>
<VerifyCode>string</VerifyCode>
<ClientKey>string</ClientKey>
</UserLogin>
</soap12:Body>
</soap12:Envelope>怎么总是返回soap1.1 格式的相应给我,类似
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UserLoginResponse xmlns="http://passport.csdn.net/">
<UserLoginResult>boolean</UserLoginResult>
<ErrorInfo>string</ErrorInfo>
<WarningInfo>string</WarningInfo>
</UserLoginResponse>
</soap:Body>
</soap:Envelope>这是1.1的相应啊,我快疯了,大侠指教一下!
调用这样一个简单的webservice
我用C#发送soap1.2格式的请求<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<UserLogin xmlns="http://passport.csdn.net/">
<LoginName>string</LoginName>
<Password>string</Password>
<VerifyCode>string</VerifyCode>
<ClientKey>string</ClientKey>
</UserLogin>
</soap12:Body>
</soap12:Envelope>怎么总是返回soap1.1 格式的相应给我,类似
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<UserLoginResponse xmlns="http://passport.csdn.net/">
<UserLoginResult>boolean</UserLoginResult>
<ErrorInfo>string</ErrorInfo>
<WarningInfo>string</WarningInfo>
</UserLoginResponse>
</soap:Body>
</soap:Envelope>这是1.1的相应啊,我快疯了,大侠指教一下!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货