本帖最后由 tanwei1002 于 2009-08-24 14:35:25 编辑

解决方案 »

  1.   

    上面那段xml 是发送一个HTTP包中抓出来的数据  
      

  2.   

    具体也不知道什么原因用VS打开说ns1不是一个命名空间,把它去掉就行了。
      

  3.   

    你没这个方法,就这么一个XML自然是不行的
      

  4.   

    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://58.53.194.80:80/swdx/services/APService" xmlns:types="http://58.53.194.80:80/swdx/services/APService/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> 
    <ns1:sendMessage xmlns:ns1="http://www.xxxx.com.cn/xxxx">
    <ns1:APName>yonghu</ns1:APName>
    <ns1:APPassword>mima</ns1:APPassword>
    <ns1:compCode>abcd</ns1:compCode>
    <ns1:account>abcd</ns1:account>
    <ns1:calledNumber>15820470243</ns1:calledNumber>
    <ns1:sendTime>2009-08-24 14:02:42</ns1:sendTime>
    <ns1:content>fasong</ns1:content>
    </ns1:sendMessage>

    </soap:Body>
    </soap:Envelope>