【发布时间】:2012-02-03 11:19:38
【问题描述】:
将我的 WSDL 导入 RAD 8 (websphere 6.1) 会出现错误:
<wsdl:part name="muid" type="soapenc:string"/>
muid引用的字符串类型无法解析。
XSD:类型引用“http://schemas.xmlsoap.org/soap/encoding/#string”未解析
【问题讨论】:
标签: soap wsdl websphere jax-ws rad
将我的 WSDL 导入 RAD 8 (websphere 6.1) 会出现错误:
<wsdl:part name="muid" type="soapenc:string"/>
muid引用的字符串类型无法解析。
XSD:类型引用“http://schemas.xmlsoap.org/soap/encoding/#string”未解析
【问题讨论】:
标签: soap wsdl websphere jax-ws rad
string 是一种已在“the”XML Schema 中定义的类型。检查,哪个前缀用于引用 WSDL 中的命名空间 http://www.w3.org/2001/XMLSchema(XML 模式命名空间)(很可能类似于 xsi、xs、xsd)。
然后将行改为
<wsdl:part name="muid" type="xs:string"/>
xs 是您的命名空间前缀。
【讨论】:
string 也在 http://schemas.xmlsoap.org/soap/encoding/ 命名空间中定义,基于位于该地址的 XSD。 soapenc:string 似乎是xs:string 的扩展(添加附加属性),因此切换类型将限制此wsdl:part 中允许的内容。