我写了一个肥皂/网络服务, 返回一个字符串, 例如 :
"<GeocodeResponse><City>Denver</City><State>CO</State></GeocodeResponse>"
我为这个数据定义了一个方案:
<xs:element name="GeocodeResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="City"/>
<xs:element name="State"/>
</xs:sequence>
</xs:complexType>
</xs:element>
并将此回复作为我网络服务方法的回复
<xs:complexType name="standardizeResponse">
<xs:sequence>
<GeocodeResponse/>
</xs:sequence>
</xs:complexType>
Within the soap envelope, the Xml is escaped so instead of getting the xml I want, I get something like:
<
GeocodeResponse><
City>
Denver<
/City><
State>
CO<
/State><
/GeocodeResponse>
我想,通过使用这个计划 来定义什么返回 在弦的弦, 我会避免 绳子逃脱。