如何找到cxf正在创建的绑定接口

时间:2011-06-19 07:45:32

标签: web-services soap cxf

在我之前的问题中,我被告知CXF实现了javax.xml.ws.BindingProvider接口。 我有以下WSDL文件:

<?xml version="1.0" encoding="UTF-8"?>
<!-- May 30, 2006 -->
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:interface="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/service" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="parlayx_sms_send_service" targetNamespace="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/service">

   <wsdl:import location="parlayx_sms_send_interface_2_2.wsdl" namespace="http://www.csapi.org/wsdl/parlayx/sms/send/v2_2/interface"/>

   <wsdl:binding name="SendSmsBinding" type="interface:SendSms">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

      <wsdl:operation name="sendSms">
         <soap:operation soapAction="" style="document"/>
            <wsdl:input>
               <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
               <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="ServiceException">
               <soap:fault name="ServiceException" use="literal"/>
            </wsdl:fault>
            <wsdl:fault name="PolicyException">
               <soap:fault name="PolicyException" use="literal"/>
            </wsdl:fault>
      </wsdl:operation>


      <wsdl:operation name="getSmsDeliveryStatus">
         <soap:operation soapAction="" style="document"/>
            <wsdl:input>
               <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
               <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="ServiceException">
               <soap:fault name="ServiceException" use="literal"/>
            </wsdl:fault>
            <wsdl:fault name="PolicyException">
               <soap:fault name="PolicyException" use="literal"/>
            </wsdl:fault>
      </wsdl:operation>

      <wsdl:operation name="sendSmswithUDH">
        <soap:operation soapAction="" style="document"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
            <wsdl:output>
                <soap:body use="literal"/>
            </wsdl:output>
            <wsdl:fault name="ServiceException">
                <soap:fault name="ServiceException" use="literal"/>
            </wsdl:fault>
            <wsdl:fault name="PolicyException">
                <soap:fault name="PolicyException" use="literal"/>
            </wsdl:fault>
        </wsdl:operation>
   </wsdl:binding>

   <wsdl:service name="SendSmsService">
      <wsdl:port binding="tns:SendSmsBinding" name="SendSms">
         <soap:address location="http://202.126.44.5:9080/SendSmsServices/services/SendSms"/>
      </wsdl:port>
   </wsdl:service>
</wsdl:definitions>

CXF创建sendSmsService和名为sendSms的接口,但它们都不与BindingProvider接口相关,我必须找到一种方法来设置此服务用户名,密码和端点。 我怎样才能找到绑定界面或者我还能采用其他方式吗?感谢。

0 个答案:

没有答案