ws-wsif-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From whitl...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/mime Mime.wsdl MimeTest.java MimeImpl.java
Date Mon, 24 Feb 2003 10:51:46 GMT
whitlock    2003/02/24 02:51:46

  Modified:    java/test/mime Mime.wsdl MimeTest.java MimeImpl.java
  Log:
  Add in Mime/Java tests
  
  Revision  Changes    Path
  1.11      +39 -0     xml-axis-wsif/java/test/mime/Mime.wsdl
  
  Index: Mime.wsdl
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/mime/Mime.wsdl,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- Mime.wsdl	12 Feb 2003 16:48:47 -0000	1.10
  +++ Mime.wsdl	24 Feb 2003 10:51:46 -0000	1.11
  @@ -981,6 +981,42 @@
       </operation>
     </binding>
   
  +  <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
  +  <!--                JAVA BINDING                                           -->
  +  <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
  +
  +  <binding name="JavaBinding" type="tns:Mime">
  +    <java:binding/>
  +    <format:typeMapping encoding="Java" style="Java">
  +      <format:typeMap 
  +        typeName="tns:datahandler" 
  +        formatType="javax.activation.DataHandler" />
  +      <format:typeMap 
  +        typeName="xsd:string" 
  +        formatType="java.lang.String" />
  +    </format:typeMapping>
  +    <operation name="dataHandlerToString">
  +      <java:operation
  +         methodName="dataHandlerToString"
  +         parameterOrder="file"
  +         methodType="instance" />
  +      <input/>
  +      <output/>
  +    </operation>
  +    <operation name="stringToDataHandler">
  +      <java:operation
  +         methodName="stringToDataHandler"
  +         parameterOrder="buff"
  +         methodType="instance" />
  +      <input/>
  +      <output/>
  +    </operation>
  +  </binding>
  +
  +  <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
  +  <!--                SERVICES                                               -->
  +  <!--+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-->
  +
     <!-- service decln -->
     <service name="MimeService">
       <port name="SOAPPort" binding="tns:SOAPHttpBinding">
  @@ -997,6 +1033,9 @@
                      jndiProviderURL="file:///JNDI-Directory">
           <jms:propertyValue name="SOAPAction" type="xsd:string" value=" "/>
         </jms:address>
  +    </port>
  +    <port name="JavaPort" binding="tns:JavaBinding">
  +      <java:address className="mime.MimeImpl"/>
       </port>
     </service>
   
  
  
  
  1.12      +12 -0     xml-axis-wsif/java/test/mime/MimeTest.java
  
  Index: MimeTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/mime/MimeTest.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- MimeTest.java	12 Feb 2003 16:48:47 -0000	1.11
  +++ MimeTest.java	24 Feb 2003 10:51:46 -0000	1.12
  @@ -432,6 +432,18 @@
       }
   
       /* ***************************************************/
  +    /*                Java tests                         */
  +    /* ***************************************************/
  +    
  +    public void testSendHandlerJava() {
  +        doit("JavaPort", SEND_DH, "Mime.wsdl");
  +    }
  +
  +    public void testReceiveHandlerJava() {
  +        doit("JavaPort", RECEIVE_DH, "Mime.wsdl");
  +    }
  +
  +    /* ***************************************************/
       /*                ERROR tests                        */
       /* ***************************************************/
   
  
  
  
  1.9       +0 -1      xml-axis-wsif/java/test/mime/MimeImpl.java
  
  Index: MimeImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/mime/MimeImpl.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- MimeImpl.java	19 Feb 2003 16:08:33 -0000	1.8
  +++ MimeImpl.java	24 Feb 2003 10:51:46 -0000	1.9
  @@ -276,7 +276,6 @@
       
       private FileDataSource getTempFile(String type) throws IOException {
           File f = File.createTempFile("WSIFMimeTest", "."+type);
  -        System.out.println("MimeImpl getTempFile name="+f.getName());
           f.deleteOnExit();
           return new FileDataSource(f);
       }
  
  
  

Mime
View raw message