<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><ChatResponse xmlns="http://tempuri.org/"><ChatResult>OK+127.0.0.1</ChatResult></ChatResponse></soap:Body></soap:Envelope>

解决方案 »

  1.   

    看你的xmltransform如何设置了。如果你的XSL是空白,当然转换得不到结果。
    好好加工一下那个XSL了。
      

  2.   

    OK+127.0.0.1 不就是数据吗!!!
    这个是ToDp.xtr 转换文件
    -----------
    <XmlTransformation Version="1.0"><Transform Direction="ToCds" DataEncoding="utf-8"><SelectEach dest="DATAPACKET\ROWDATA\ROW" from="\Envelope\soap:Body\ChatResponse"><Select dest="@ChatResult" from="ChatResult"/></SelectEach></Transform><XmlSchema RootName="Envelope"><![CDATA[<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="Envelope" type="EnvelopeType"/>
      <xs:complexType name="EnvelopeType">
        <xs:sequence>
          <xs:element name="soap:Body" type="soap:BodyType"/>
        </xs:sequence>
        <xs:attribute name="xmlns:soap" type="xs:string"/>
        <xs:attribute name="xmlns:xsi" type="xs:string"/>
        <xs:attribute name="xmlns:xsd" type="xs:string"/>
      </xs:complexType>
      <xs:element name="Body" type="BodyType"/>
      <xs:complexType name="BodyType">
        <xs:sequence>
          <xs:element name="ChatResponse" type="ChatResponseType"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="ChatResponse" type="ChatResponseType"/>
      <xs:complexType name="ChatResponseType">
        <xs:sequence>
          <xs:element name="ChatResult" type="ChatResultType"/>
        </xs:sequence>
        <xs:attribute name="xmlns" type="xs:string"/>
      </xs:complexType>
      <xs:element name="ChatResult" type="ChatResultType"/>
      <xs:simpleType name="ChatResultType">
        <xs:restriction base="xs:string"/>
      </xs:simpleType>
    </xs:schema>]]></XmlSchema><CdsSkeleton/><XslTransform/><Skeleton><![CDATA[<?xml version="1.0"?><DATAPACKET Version="2.0"><METADATA><FIELDS><FIELD attrname="ChatResult" fieldtype="string" WIDTH="12"/></FIELDS><PARAMS/></METADATA><ROWDATA/></DATAPACKET>
    ]]></Skeleton></XmlTransformation>