Web services SOAPUI无法显示wsdl中包含的函数名

Web services SOAPUI无法显示wsdl中包含的函数名,web-services,soap,wsdl,soapui,Web Services,Soap,Wsdl,Soapui,我使用zend框架创建了如下所示的wsdl <?xml version="1.0"?> <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://soap.loc/index/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmln

我使用zend框架创建了如下所示的wsdl

<?xml version="1.0"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"     xmlns:tns="http://soap.loc/index/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Example_Manager" targetNamespace="http://soap.loc/index/soap">
<types>
    <xsd:schema targetNamespace="http://soap.loc/index/soap">
        <xsd:element name="getProducts">
            <xsd:complexType/>
        </xsd:element>
        <xsd:element name="getProductsResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="getProductsResult" type="soap-enc:Array"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="getProduct">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="id" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="getProductResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="getProductResult" type="soap-enc:Array"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="addProduct">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="data" type="soap-enc:Array"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="addProductResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="addProductResult" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="deleteProduct">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="id" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="deleteProductResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="deleteProductResult" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="updateProduct">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="id" type="xsd:int"/>
                    <xsd:element name="data" type="soap-enc:Array"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
        <xsd:element name="updateProductResponse">
            <xsd:complexType>
                <xsd:sequence>
                    <xsd:element name="updateProductResult" type="xsd:int"/>
                </xsd:sequence>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>
</types>
<portType name="Example_ManagerPort">
    <operation name="getProducts">
        <documentation>Returns list of all products in database</documentation>
        <input message="tns:getProductsIn"/>
        <output message="tns:getProductsOut"/>
    </operation>
    <operation name="getProduct">
        <documentation>Returns specified product in database</documentation>
        <input message="tns:getProductIn"/>
        <output message="tns:getProductOut"/>
    </operation>
    <operation name="addProduct">
        <documentation>Adds new product to database</documentation>
        <input message="tns:addProductIn"/>
        <output message="tns:addProductOut"/>
    </operation>
    <operation name="deleteProduct">
        <documentation>Deletes product from database</documentation>
        <input message="tns:deleteProductIn"/>
        <output message="tns:deleteProductOut"/>
    </operation>
    <operation name="updateProduct">
        <documentation>Updates product in database</documentation>
        <input message="tns:updateProductIn"/>
        <output message="tns:updateProductOut"/>
    </operation>
</portType>
<binding name="Example_ManagerBinding" type="tns:Example_ManagerPort">
    <soap:binding style="document" transport="http://framework.zend.com"/>
    <operation name="getProducts">
        <soap:operation soapAction="http://soap.loc/index/soap#getProducts"/>
        <input>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </input>
        <output>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </output>
    </operation>
    <operation name="getProduct">
        <soap:operation soapAction="http://soap.loc/index/soap#getProduct"/>
        <input>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </input>
        <output>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </output>
    </operation>
    <operation name="addProduct">
        <soap:operation soapAction="http://soap.loc/index/soap#addProduct"/>
        <input>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </input>
        <output>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </output>
    </operation>
    <operation name="deleteProduct">
        <soap:operation soapAction="http://soap.loc/index/soap#deleteProduct"/>
        <input>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </input>
        <output>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </output>
    </operation>
    <operation name="updateProduct">
        <soap:operation soapAction="http://soap.loc/index/soap#updateProduct"/>
        <input>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </input>
        <output>
            <soap:body use="literal" namespace="http://framework.zend.com"/>
        </output>
    </operation>
</binding>
<service name="Example_ManagerService">
    <port name="Example_ManagerPort" binding="tns:Example_ManagerBinding">
        <soap:address location="http://soap.loc/index/soap"/>
    </port>
</service>
<message name="getProductsIn">
    <part name="parameters" element="tns:getProducts"/>
</message>
<message name="getProductsOut">
    <part name="parameters" element="tns:getProductsResponse"/>
</message>
<message name="getProductIn">
    <part name="parameters" element="tns:getProduct"/>
</message>
<message name="getProductOut">
    <part name="parameters" element="tns:getProductResponse"/>
</message>
<message name="addProductIn">
    <part name="parameters" element="tns:addProduct"/>
</message>
<message name="addProductOut">
    <part name="parameters" element="tns:addProductResponse"/>
</message>
<message name="deleteProductIn">
    <part name="parameters" element="tns:deleteProduct"/>
</message>
<message name="deleteProductOut">
    <part name="parameters" element="tns:deleteProductResponse"/>
</message>
<message name="updateProductIn">
    <part name="parameters" element="tns:updateProduct"/>
</message>
<message name="updateProductOut">
    <part name="parameters" element="tns:updateProductResponse"/>
</message>

返回数据库中所有产品的列表
返回数据库中指定的产品
将新产品添加到数据库
从数据库中删除产品
更新数据库中的产品

现在的问题是,当我在soapui中加载它时,函数名并没有显示出来。 早些时候,我有一个使用NuSoap的工作wsdl,它生成wsdl并可以加载到SOAPUi中,并显示函数名

作为web服务业务的新手,如果知道wsdl本身是否有问题,那就太好了


我把头撞在显示器上想得到答案。。。。。。。但是我看到的只有星星。

先生,您的wsdl中缺少了一个标记。这是不对的。
将您的wsdl保存为xml格式,如果您要在web浏览器中打开它,您将发现错误。

I已更改,函数名正在显示。。。。。。。。。。现在它在说。。。。。。。SOAP-ERROR:解析WSDL:在WSDL中找不到任何可用的绑定服务。wsdl:P中缺少此标记。请将其添加到wsdl的末尾。没事的,伙计。谢谢,Ambujt谢谢你的回答@user309009。。。。。这是我的错误,我留下了关闭的定义标签,而张贴。。。。。但麻烦的是,运输本身有问题。。。。。。。。这是由……管理的。。。。。。。。。感谢您的回复…………:)