Apache CXF 通过wsdl文件生成 webservice 之后 wsdl: binding 属性被修改了,如何改回去?

发布于 2022-09-06 22:34:06 字数 3113 浏览 19 评论 0

Apache CXF 通过已存在的wsdl文件生成 webservice 之后 wsdl: binding 属性被修改了,如何改回去?

clipboard.png

clipboard.png
下面是我的wsdl源文件,请大佬们帮帮忙!

<?xml version = "1.0" encoding = "UTF-8"?>
<!-- this file was generated by vis LightESB 3.0.0 -->
<!-- 2018-03-30 16:34:39 -->
<!-- Generated file version: 1.0.0 -->
<!-- Copyright (c) 2004-2018  -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:tns="http://soa.cmcc.com/OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv"
    name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv"
    targetNamespace="http://soa.cmcc.com/OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv">
        
    <wsdl:types>
        <schema xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="http://soa.cmcc.com/OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv" schemaLocation="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv.xsd"/>
        </schema>
    </wsdl:types>
    <wsdl:message name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvRequestMessage">
        <wsdl:part name="payload" element="tns:InputParameters"/>
    </wsdl:message>
    <wsdl:message name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvResponseMessage">
        <wsdl:part name="payload" element="tns:OutputParameters"/>
    </wsdl:message>
    <wsdl:portType name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv">
        <wsdl:operation name="process">
            <wsdl:input message="tns:OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvRequestMessage"/>
            <wsdl:output message="tns:OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvResponseMessage"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvBinding" type="tns:OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv">
        <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="process">
            <soap:operation style="document" soapAction="process"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
        </wsdl:operation>
     </wsdl:binding>
    <wsdl:service name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv">
        <wsdl:port name="OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvPort" binding="tns:OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrvBinding">
            <soap:address location="http://localhost:8080/OSB_EIP_EIP_HQ_InquiryEipAnnouncementSrv"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷…雨湿花 2022-09-13 22:34:06

在 service 中指定 portName 属性和 wsdlLocation 属性

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文