【问题标题】:Type map apachesoap unresolved类型映射 apachesoap 未解析
【发布时间】:2015-04-20 13:14:11
【问题描述】:

我在导入的 WSDL 文件时遇到问题。 在这个文件中,映射类型是从命名空间中使用的: xmlns:apachesoap="http://xml.apache.org/xml-soap"

但未解决...当我尝试访问此 URL 时,我收到“未找到 404 错误”

有什么想法吗?

提前谢谢你。

【问题讨论】:

  • namespace 值不一定是文档。携带命名空间元素的文档可以在导入/包含期间给出,也可以使用属性schemaLocation cf。 w3.org/TR/REC-xml-names/#sec-namespaces
  • 我同意你的观点,但我不知道你为什么这么说:/?
  • 此 WSDL 文件必须自己导入其他文件,其中之一是定义 http://xml.apache.org/xml-soap 命名空间。你能找到这个文件吗?在其架构标记中定义 targetnamespace="http://xml.apache.org/xml-soap" 的文件
  • 我面临着完全相同的问题。你找到解决办法了吗? @Ranpie49

标签: xml apache xsd wsdl


【解决方案1】:

在我导入的 WSDL 中,我们可以看到:

<schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://exception.metier.framework.civitas.fr" /> 
    <import namespace="Boite_A_Tache" /> 
    <import namespace="http://srvcegid01:8080/gfprod/services/Boite_A_Tache" /> 
    <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
    <complexType name="mapItem">
        <sequence>
            <element name="key" nillable="true" type="xsd:anyType" /> 
            <element name="value" nillable="true" type="xsd:anyType" /> 
        </sequence>
    </complexType>
    <complexType name="Map">
        <sequence>
            <element maxOccurs="unbounded" minOccurs="0" name="item" type="apachesoap:mapItem" /> 
        </sequence>
    </complexType>
</schema>

“地图”类型定义明确。 不过,我正在使用的软件(Websphere Message Broker d'IBM)对 WSDL 文件进行了一些转换。

您可以看到“修改”的 WSDL 的一小部分:

<wsdl:documentation>
    <wsdl:appinfo source="WMQI_APPINFO">
        <MRWSDLAppInfo imported="true">
            <generatedXSD location="blablabla_1_InlineSchema1.xsd"/>
            <generatedXSD location="blablabla_1_InlineSchema2.xsd"/>
            <generatedXSD location="blablabla_1_InlineSchema3.xsd"/>
            <generatedXSD location="blablabla_1_InlineSchema4.xsd"/>
            <binding hasEncoding="true" imported="true" name="BlablaSoapBinding" originalBindingStyle="rpc"/>
            <generatedXSD location="blablabla_1.wsdl"/>
         </MRWSDLAppInfo>
     </wsdl:appinfo>
</wsdl:documentation>

<wsdl:types>
    <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
        <import namespace="http://bla.bla.bla.fr"/>
        <import namespace="blabla"/>
        <import namespace="http://blabla:8080/blabla/blabla/blabla"/>
        <xsd:include schemaLocation="blabla1_InlineSchema1.xsd"/>
    </schema>
     ....
    (autres schemas)
<wsdl:types>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-03-30
    • 1970-01-01
    • 1970-01-01
    • 2019-11-26
    • 2017-01-10
    • 1970-01-01
    • 2017-07-02
    相关资源
    最近更新 更多