Compartir a través de


EventingService WSDL

En el ejemplo de código siguiente se muestra el WSDL eventingService.

<wsdl:definitions
 targetNamespace="http://schemas.example.org/EventingService"
 xmlns:tns="http://schemas.example.org/EventingService"
 xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
 xmlns:wsdp="http://schemas.xmlsoap.org/ws/2005/05/devprof"
 xmlns:wse="http://schemas.xmlsoap.org/ws/2004/08/eventing"
 xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
 xmlns:wsoap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
 xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex"
 xmlns:wsf="http://schemas.xmlsoap.org/ws/2004/09/transfer" >

 <wsp:Policy wsu:Id="Eventing" >
 <wsdp:Profile />
 <wsdp:PushDelivery />
 <wsdp:DurationExpiration />
 <wsdp:ActionFilter />
 </wsp:Policy>

 <wsdl:types>
 <xs:schema
   targetNamespace="http://schemas.example.org/EventingService"
   xmlns:tns="http://schemas.example.org/EventingService"
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
   elementFormDefault="qualified"
   blockDefault="#all">

 <xs:element name="SimpleEvent" type="tns:SimpleEventType" />
 <xs:complexType name="SimpleEventType">
     <xs:sequence/>
 </xs:complexType>

 <xs:element name="IntegerEvent" type="tns:IntegerEventType" />
 <xs:complexType name="IntegerEventType">
 <xs:sequence>
 <xs:element name="Param" type="xs:int" />
 <xs:any minOccurs="0"
 maxOccurs="unbounded"
 namespace="##other"
 processContents="lax" />
 </xs:sequence>
 <xs:anyAttribute namespace="##other"
 processContents="lax" />
 </xs:complexType>
 </xs:schema>
 </wsdl:types>

 <wsdl:message name="SimpleEventMessageOut">
 <wsdl:part name="parameters" element="tns:SimpleEvent" />
 </wsdl:message>
 <wsdl:message name="IntegerEventMessageOut">
 <wsdl:part name="parameters" element="tns:IntegerEvent" />
 </wsdl:message>

   <wsdl:portType name="EventingService" wse:EventSource="true" >
        <wsdl:operation name="SimpleEvent">
            <wsdl:output
                message="tns:SimpleEventMessageOut"
                wsa:Action="http://schemas.example.org/EventingService/SimpleEvent"/>
        </wsdl:operation>
        <wsdl:operation name="IntegerEvent">
            <wsdl:output
                message="tns:IntegerEventMessageOut"
                wsa:Action="http://schemas.example.org/EventingService/IntegerEvent"/>
        </wsdl:operation>
    </wsdl:portType>

 <wsdl:binding name="EventingServiceSoap12Binding" type="tns:EventingService">
 <wsoap12:binding style="document"
 transport="http://schemas.xmlsoap.org/soap/http" />
 <wsp:PolicyReference URI="#Eventing" wsdl:required="true" />
        <wsdl:operation name="SimpleEvent">
            <wsoap12:operation
                soapAction="http://schemas.example.org/EventingService/SimpleEvent" />
            <wsdl:output>
                <wsoap12:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
        <wsdl:operation name="IntegerEvent">
            <wsoap12:operation
                soapAction="http://schemas.example.org/EventingService/IntegerEvent" />
            <wsdl:output>
                <wsoap12:body use="literal" />
            </wsdl:output>
        </wsdl:operation>
 </wsdl:binding>

 <wsdl:service name="EventingService">
 <wsdl:port
   name="EventingPort"
   binding="tns:EventingServiceSoap12Binding">
 <wsoap12:address
 location="http://localhost/WebService/Eventing.asmx" />
 </wsdl:port>
 </wsdl:service>

</wsdl:definitions>