ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject cvs commit: ws-axis/java/samples/handler deploy.wsdd build.xml undeploy.wsdd
Date Fri, 12 Mar 2004 06:31:50 GMT
ias         2004/03/11 22:31:50

  Added:       java/samples/handler deploy.wsdd build.xml
  Initial check-in.
  Revision  Changes    Path
  1.1                  ws-axis/java/samples/handler/deploy.wsdd
  Index: deploy.wsdd
  <deployment xmlns="" xmlns:java="">
   <service name="TestMimeHeaderService" provider="Handler">
   	<parameter name="handlerClass" value="samples.handler.TestMimeHeaderHandler"/>
  1.1                  ws-axis/java/samples/handler/build.xml
  Index: build.xml
  <?xml version="1.0" ?>
  <!DOCTYPE project [
          <!ENTITY properties SYSTEM "file:../../xmls/properties.xml">
          <!ENTITY paths  SYSTEM "file:../../xmls/path_refs.xml">
          <!ENTITY taskdefs SYSTEM "file:../../xmls/taskdefs.xml">
          <!ENTITY taskdefs_post_compile SYSTEM "file:../../xmls/taskdefs_post_compile.xml">
          <!ENTITY targets SYSTEM "file:../../xmls/targets.xml">
  <!-- ===================================================================
     Test/Sample Component file for Axis
     This is a build file for use with the Apache Ant build tool.
     apache-ant from
  Build Instructions:
     To compile
          ant compile
     To execute
          ant run
    Copyright (c) 2002-2004 Apache Software Foundation.
  ==================================================================== -->
  <project default="compile">
  <property name="axis.home" location="../.." />
  <property name="componentName" value="samples/handler" />
  <target name="clean"/>
  <target name="copy" depends="setenv"/>
  <target name="compile" depends="copy">
    <copy todir="${build.dir}/work/samples/handler" overwrite="yes">
      <fileset dir="${axis.home}/samples/handler">
        <include name="*.wsdd"/>
    <javac srcdir="${build.dir}/work" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}"
       <classpath refid="classpath" />
       <include name="samples/handler/**.java" />
    <javac srcdir="${axis.home}" destdir="${build.dest}" debug="${debug}" nowarn="${nowarn}"
          <path refid="classpath"/>
      <include name="samples/handler/**/*.java"/>
  <target name="deploy"/>
  <target name="run"/>
  <target name="undeploy"/>
  1.1                  ws-axis/java/samples/handler/
   * Copyright 2001-2004 The Apache Software Foundation.
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
  package samples.handler;
  import org.apache.axis.AxisFault;
  import org.apache.axis.Message;
  import org.apache.axis.MessageContext;
  import org.apache.axis.handlers.BasicHandler;
  public class TestMimeHeaderHandler extends BasicHandler {
  	public void invoke(MessageContext msgContext) throws AxisFault {
  		Message requestMessage = msgContext.getRequestMessage();
  		Message responseMessage = new Message(requestMessage.getSOAPEnvelope());
          String[] fooHeader = requestMessage.getMimeHeaders().getHeader("foo");
          if (fooHeader != null) {
              responseMessage.getMimeHeaders().addHeader("foo", fooHeader[0]);
  1.1                  ws-axis/java/samples/handler/undeploy.wsdd
  Index: undeploy.wsdd
  <undeployment xmlns="">
    <service name="TestMimeHeaderService"/>

View raw message