Ana içeriğe atla

Global Type declaration/definition of name '{http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord}XdslResponse' are duplicated at the foll

If get an error message like "Global Type declaration/definition of name '{http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord}XdslResponse' are duplicated at the following locations:"
then one of the reason is, redundant namespace definitions exists in your import tag in one of the wsdl file.

in my wsdl file, I have an import tag like

  <schema xmlns="http://www.w3.org/2001/XMLSchema"
          xmlns:ns2="http://www.ttnet.com.tr"
          xmlns:ns1="http://xmlns.ttnet.com.tr/CDM/EBM/Order"
          xmlns:xdslresponse="http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord"
          xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
          xmlns:pns1="http://xmlns.ttnet.com.tr/Service/ProcessOrderToXDSLProvABCS/ProcessOrderToXDSLProvABCS/correlationset"
          xmlns:client="http://xmlns.ttnet.com.tr/Service/ProcessOrderToXDSLProvABCS/ProcessOrderToXDSLProvABCS"
          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
          xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <import namespace="http://xmlns.ttnet.com.tr/CDM/EBM/Order"
            schemalocation="oramds:/apps/datamodel/EnterpriseObjectLibrary/EBO/Order/OrderEBM.xsd"/>
  </schema>
  <schema xmlns="http://www.w3.org/2001/XMLSchema"
          xmlns:ns2="http://www.ttnet.com.tr"
          xmlns:ns1="http://xmlns.ttnet.com.tr/CDM/EBM/Order"
          xmlns:xdslresponse="http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord"
          xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
          xmlns:pns1="http://xmlns.ttnet.com.tr/Service/ProcessOrderToXDSLProvABCS/ProcessOrderToXDSLProvABCS/correlationset"
          xmlns:client="http://xmlns.ttnet.com.tr/Service/ProcessOrderToXDSLProvABCS/ProcessOrderToXDSLProvABCS"
          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
          xmlns:bpws='http://schemas.xmlsoap.org/ws/2003/03/business-process/">'>
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord"
            schemaLocation="oramds:/apps/datamodel/EnterpriseObjectLibrary/common/XDSLResponseSDO.xsd"
  </schema>



but these additional namespace prefixes are redundant

you can simple define it like

 <schema xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://xmlns.ttnet.com.tr/CDM/EBM/Order"
          schemaLocation="oramds:/apps/datamodel/EnterpriseObjectLibrary/EBO/Order/OrderEBM.xsd"/>
 </schema>
 <schema xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/XDSLResponseRecord"
          schemaLocation="oramds:/apps/datamodel/EnterpriseObjectLibrary/common/XDSLResponseSDO.xsd"/>
 </schema>


and then hope your error will gone

Yorumlar