2002/ws/desc/test-suite/documents/bad/Chat-2B Chat-MissBindOperation.wsdl,NONE,1.1 TestMetadata.xml,NONE,1.1

Update of /sources/public/2002/ws/desc/test-suite/documents/bad/Chat-2B
In directory hutz:/tmp/cvs-serv8255/test-suite/documents/bad/Chat-2B

Added Files:
	Chat-MissBindOperation.wsdl TestMetadata.xml 
Log Message:
committed Chat-2B from Gilbert Pilz

--- NEW FILE: Chat-MissBindOperation.wsdl ---
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:description xmlns:wsdl="http://www.w3.org/2006/01/wsdl"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.w3.org/2006/01/wsdl http://www.w3.org/2006/01/wsdl/wsdl20.xsd"
  targetNamespace="http://example.org/chat.wsdl"
  xmlns:tns="http://example.org/chat.wsdl"
  xmlns:chatns="http://example.org/chat/schema"
  xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap"
  xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
  
  <wsdl:documentation>
    Test what happens when you neglect to define all the operations in
    a binding. This description violates assertion Binding-0055.
  </wsdl:documentation>
  
  <wsdl:types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://example.org/chat/schema"
      xmlns="http://example.org/chat/schema">

      <xs:element name="registerRequestElement" type="xs:string" />

      <xs:element name="registerResponseElement" type="xs:string" />

      <xs:complexType name="sayRequestType">
        <xs:sequence>
          <xs:element name="handle" type="xs:string"/>
          <xs:element name="contents" type="xs:string"/>
        </xs:sequence>
      </xs:complexType>
      <xs:element name="sayRequestElement" type="sayRequestType"/>

      <xs:element name="invalidHandleError" type="xs:string"/>

    </xs:schema>
  </wsdl:types>

  <wsdl:interface name="chatInterface">

    <wsdl:fault name="invalidHandleFault" element="chatns:invalidHandleError"/>

    <wsdl:operation name="register" pattern="http://www.w3.org/2006/01/wsdl/in-out">
      <wsdl:input messageLabel="In" element="chatns:registerRequestElement"/>
      <wsdl:output messageLabel="Out" element="chatns:registerResponseElement"/>
      <wsdl:outfault messageLabel="Out" ref="tns:invalidHandleFault"/>
    </wsdl:operation>

    <wsdl:operation name="say" pattern="http://www.w3.org/2006/01/wsdl/robust-in-only">
      <wsdl:input messageLabel="In" element="chatns:sayRequestElement"/>
      <wsdl:outfault messageLabel="Out" ref="tns:invalidHandleFault"/>
    </wsdl:operation>

  </wsdl:interface>

  <wsdl:binding name="chatSOAPBinding"
    interface="tns:chatInterface"
    type="http://www.w3.org/2006/01/wsdl/soap">

    <wsdl:documentation>
      Missing a binding operation for "say".
    </wsdl:documentation>

    <wsdl:fault ref="tns:invalidHandleError" wsoap:code="soap:Sender"/>

    <wsdl:operation ref="tns:register" wsoap:mep="http://www.w3.org/2003/05/soap/mep/request-response/"/>

  </wsdl:binding>

  <wsdl:service name="chatService" interface="tns:chatInterface">

    <wsdl:endpoint name="chatEndpoint"
     binding="tns:chatSOAPBinding"
     address="http://chat.example.com/chat/Chat"/>

  </wsdl:service>

</wsdl:description>

--- NEW FILE: TestMetadata.xml ---
<?xml version="1.0"?>
<TestMetadata xmlns="http://www.w3.org/2006/02/wsdl/TestMetadata">
        <Identifier>
                http://dev.w3.org/cvsweb/2002/ws/desc/test-suite/documents/bad/Chat-2B
        </Identifier>
        <Title>Bad Document - Binding component is missing an binding operation</Title>
        <Purpose></Purpose>
        <Description>This violates the Binding 55 Assertion.</Description>
        <Status>accepted</Status>
        <SpecRef></SpecRef>
        <Preconditions>none</Preconditions>
        <Inputs>
                <Input>Chat-MissBindOperation.wsdl</Input>
        </Inputs>
        <ExpectedResults>
                <Successful>false</Successful>
                <ViolatesAssertion>Binding-0055</ViolatesAssertion>
        </ExpectedResults>
        <Version>1.0</Version>
        <Contributor>
                <Name>Gilbert Pilz</Name>
                <Affiliation>BEA Systems, Inc.</Affiliation>
                <EMail>gpilz@bea.com</EMail>
        </Contributor>
        <Rights>http://www.w3.org/Consortium/Legal/2002/copyright-documents-20021231</Rights>
        <Grouping>/documents/bad</Grouping>
        <SeeAlso><Reference>http://www.w3.org/TR/2006/CR-wsdl20-20060327/#BindingFaultReference-0055</Refere
nce></SeeAlso>
</TestMetadata>

Received on Wednesday, 16 August 2006 16:42:35 UTC