【发布时间】:2011-08-10 05:09:50
【问题描述】:
我有 wsdl 格式的 XML,现在我想将它的编码更改为 XSD 格式。我是否需要在网络配置中进行一些更改,或者我必须做什么请建议我。 下面是例子
<wsdl:definitions name="LoginCheck"
targetNamespace="http://tempuri.org/">
<wsdl:types>
<xsd:schema targetNamespace="http://tempuri.org/Imports">
<xsd:import schemaLocation="http://192.168.0.6:8000/LoginCheck.svc?xsd=xsd0"
namespace="http://tempuri.org/"/>
<xsd:import schemaLocation="http://192.168.0.6:8000/LoginCheck.svc?xsd=xsd1"
namespace="http://schemas.microsoft.com/2003/10/Serialization/"/>
我想将其转换为如下格式
<definitions targetNamespace="urn:saveCharacterAcc">
<types>
<xsd:schema targetNamespace="urn:saveCharacterAcc">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:complexType name="Character">
<xsd:all>
<xsd:element name="characterNumber"
type="xsd:int"/>
<xsd:element name="byteArray"
type="xsd:string"/>
<xsd:element name="rotationAngle"
type="xsd:string"/>
<xsd:element name="charX" type="xsd:string"/>
【问题讨论】:
-
有人能告诉我更多吗?