【问题标题】:WSDL type "soapenc:string" cannot be resolvedWSDL 类型“soapenc:string”无法解析
【发布时间】: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


【解决方案1】:

string 是一种已在“the”XML Schema 中定义的类型。检查,哪个前缀用于引用 WSDL 中的命名空间 http://www.w3.org/2001/XMLSchema(XML 模式命名空间)(很可能类似于 xsixsxsd)。

然后将行改为

<wsdl:part name="muid" type="xs:string"/>

xs 是您的命名空间前缀。

【讨论】:

  • string 也在 http://schemas.xmlsoap.org/soap/encoding/ 命名空间中定义,基于位于该地址的 XSD。 soapenc:string 似乎是xs:string 的扩展(添加附加属性),因此切换类型将限制此wsdl:part 中允许的内容。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-10-22
  • 1970-01-01
  • 1970-01-01
  • 2013-12-14
  • 1970-01-01
  • 1970-01-01
  • 2017-07-19
相关资源
最近更新 更多