KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > wsm > axis > util > DebugPrintMessageHandler


1 /*
2  * Copyright 2001-2004 The Apache Software Foundation.
3  *
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */

18 package org.apache.beehive.wsm.axis.util;
19
20 import java.io.IOException JavaDoc;
21
22 import javax.xml.soap.SOAPException JavaDoc;
23
24 import org.apache.axis.AxisFault;
25 import org.apache.axis.MessageContext;
26 import org.apache.axis.handlers.BasicHandler;
27
28
29 public class DebugPrintMessageHandler extends BasicHandler {
30
31     /* (non-Javadoc)
32      * @see org.apache.axis.Handler#invoke(org.apache.axis.MessageContext)
33      */

34     public void invoke(MessageContext mc) throws AxisFault {
35         try {
36             System.out.println("RequestMessage.....");
37             mc.getRequestMessage().writeTo(System.out);
38             System.out.println("\n");
39         } catch (SOAPException JavaDoc e) {
40             e.printStackTrace();
41         } catch (IOException JavaDoc e) {
42             e.printStackTrace();
43         }
44
45     }
46
47 }
48
Popular Tags