axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: xml-axis/java/test/wsdl/names JavaNames.wsdl
Date Wed, 05 Dec 2001 21:41:43 GMT
tomj        01/12/05 13:41:43

  Modified:    java/test/wsdl Wsdl2javaTestSuite.xml
  Added:       java/test/wsdl/names JavaNames.wsdl
  Log:
  Add test case for wsdl2java to test funky XML names getting translated in to
  valid Java names
  
  Revision  Changes    Path
  1.29      +11 -0     xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml
  
  Index: Wsdl2javaTestSuite.xml
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/test/wsdl/Wsdl2javaTestSuite.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- Wsdl2javaTestSuite.xml	2001/12/04 18:33:34	1.28
  +++ Wsdl2javaTestSuite.xml	2001/12/05 21:41:42	1.29
  @@ -321,6 +321,17 @@
           <mapping namespace="http://test.com/reference" package="test.filegen"/>
       </wsdl2java>
       
  +    <!-- Check to make sure we map XML names that are illegal Java correctly -->
  +    <wsdl2java url="test/wsdl/names/JavaNames.wsdl"
  +               output="build/work"
  +               deployscope="none"
  +               skeleton="yes"
  +               messagecontext="no"
  +               noimports="no"
  +               verbose="yes"
  +               testcase="yes">
  +        <mapping namespace="http://test.com/reference" package="test.filegen"/>
  +    </wsdl2java>
     </target>
   </project>
   
  
  
  
  1.1                  xml-axis/java/test/wsdl/names/JavaNames.wsdl
  
  Index: JavaNames.wsdl
  ===================================================================
  <?xml version="1.0" ?>
  
  <!-- This WSDL file has lots of bad Java names which are OK in XML-->
  
  <definitions name="JavaNames"
               targetNamespace="http://names.wsdl.test/javanames"
               xmlns:tns="http://names.wsdl.test/javanames"
               xmlns:typens="http://names.wsdl.test/javanames"
               xmlns:xsd="http://www.w3.org/1999/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
               xmlns="http://schemas.xmlsoap.org/wsdl/">
  
    <!-- type defs -->
    <types>
      <xsd:schema targetNamespace="http://names.wsdl.test/javanames"
                  xmlns:xsd="http://www.w3.org/1999/XMLSchema">
        <xsd:complexType name="my-phone">
          <xsd:all>
              <xsd:element name="area:Code" type="xsd:int"/>
              <xsd:element name="exchange" type="xsd:string"/>
              <xsd:element name="number" type="xsd:string"/>
          </xsd:all>
        </xsd:complexType>
  
        <xsd:complexType name="my.address">
          <xsd:all>
              <xsd:element name="street-Num" type="xsd:int"/>
              <xsd:element name="street-Name" type="xsd:string"/>
              <xsd:element name="city" type="xsd:string"/>
              <xsd:element name="state" type="xsd:string"/>
              <xsd:element name="zip" type="xsd:int"/>
              <xsd:element name="phone.Number" type="typens:my-phone"/>
          </xsd:all>
        </xsd:complexType>
      </xsd:schema>
    </types>
  
    <!-- message declns -->
    <message name="AddEntryRequest">
      <part name="name" type="xsd:string"/>
      <part name="address" type="typens:my.address"/>
    </message>
  
    <message name="GetAddressFromNameRequest">
      <part name="name" type="xsd:string"/>
    </message>
  
    <message name="GetAddressFromNameResponse">
      <part name="address" type="typens:my.address"/>
    </message>
  
    <!-- port type declns -->
    <portType name="-JavaNames-">
      <operation name="new">
        <input message="tns:AddEntryRequest"/>
      </operation>
      <operation name="public">
        <input message="tns:GetAddressFromNameRequest"/>
        <output message="tns:GetAddressFromNameResponse"/>
      </operation>
    </portType>
  
    <!-- binding declns -->
    <binding name="Java-Names_SOAP:Binding" type="tns:-JavaNames-">
      <soap:binding style="rpc"
                    transport="http://schemas.xmlsoap.org/soap/http"/>
      <operation name="new">
        <soap:operation soapAction=""/>
        <input>
          <soap:body use="encoded"
                     namespace="http://names.wsdl.test/javanames"
                     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </input>
        <output>
          <soap:body use="encoded"
                     namespace="http://names.wsdl.test/javanames"
                     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </output>
      </operation>
      <operation name="public">
        <soap:operation soapAction=""/>
        <input>
          <soap:body use="encoded"
                     namespace="http://names.wsdl.test/javanames"
                     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </input>
        <output>
          <soap:body use="encoded"
                     namespace="http://names.wsdl.test/javanames"
                     encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
        </output>
      </operation>
    </binding>
  
    <!-- service decln -->
    <service name="JavaNames-Service;test">
      <port name="JavaNames" binding="tns:Java-Names_SOAP:Binding">
        <soap:address location="http://localhost:8080/axis/servlet/AxisServlet"/>
      </port>
    </service>
  
  </definitions>
  
  
  

Mime
View raw message