WSDL-调用其他shcemas

时间:2018-11-16 15:44:09

标签: web-services soap wsdl tibco-business-works

我在引用WSDL消息中的其他架构元素时遇到了一些问题。

这是我的WSDL:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>

    <wsdl:definitions xmlns:extns="http://xmlns.com/SOAPBilling/schemas"
     xmlns:h="http://xmlns.com/DIFramework/tibco/common/schemas/header/v1"
     xmlns:tns="http://wsdl.SOAPBilling/ServiceDescriptors/CreateAccount"xmlns:eo="http://xmlns.com/DIFramework/tibco/common/schemas/output/errorOutput"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     name="CreateAccount_v2" targetNamespace="http://wsdl.SOAPBilling/ServiceDescriptors/CreateAccount">

        <wsdl:import namespace="http://xmlns.com/DIFramework/tibco/common/schemas/header/v1" />

        <wsdl:import namespace="http://xmlns.com/SOAPBilling/schemas" />

        <wsdl:message name="createRequest">

            <wsdl:part element="h:Header" name="header" />

            <wsdl:part element="extns:createRequest" name="payload" />

        </wsdl:message>

        <wsdl:message name="createResponse">

            <wsdl:part element="extns:createResponse" name="parameters" />

        </wsdl:message>

        <wsdl:portType name="CreateAccount_v2">

            <wsdl:operation name="create">

                <wsdl:input message="tns:createRequest" name="createInput" />

                <wsdl:output message="tns:createResponse" name="createOutput" />

            </wsdl:operation>

        </wsdl:portType>

    </wsdl:definitions>

但是当我尝试使用TIBCO BW6进行绑定部分时,出现错误:

WSDL生成错误 找不到零件。邮件名称= [{{http://wsdl.SOAPBilling/ServiceDescriptors/CreateAccount} createRequest],部件名称= [参数]

模式xmlns:h =“ ..... header / v1”作为称为“ header”的元素 模式xmlns:extns =“ ..... / schemas”具有创建元素

现在我不知道我是否遇到wsdl配置错误或TIBCO错误,但我猜是在WSDL语言中。

有人可以帮忙吗?

0 个答案:

没有答案