1 /* 2 * $Id: MessageService.java 19191 2010-08-25 21:05:23Z tcarlson $ 3 * -------------------------------------------------------------------------------------- 4 * Copyright (c) MuleSoft, Inc. All rights reserved. http://www.mulesoft.com 5 * 6 * The software in this package is published under the terms of the CPAL v1.0 7 * license, a copy of which has been included with this distribution in the 8 * LICENSE.txt file. 9 */ 10 11 /* 12 * Copyright 2002-2004 The Apache Software Foundation. 13 * 14 * Licensed under the Apache License, Version 2.0 (the "License"); 15 * you may not use this file except in compliance with the License. 16 * You may obtain a copy of the License at 17 * 18 * http://www.apache.org/licenses/LICENSE-2.0 19 * 20 * Unless required by applicable law or agreed to in writing, software 21 * distributed under the License is distributed on an "AS IS" BASIS, 22 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or =mplied. 23 * See the License for the specific language governing permissions and 24 * limitations under the License. 25 */ 26 27 package org.mule.transport.soap.axis.style; 28 29 import javax.xml.soap.SOAPEnvelope; 30 31 import org.w3c.dom.Document; 32 import org.w3c.dom.Element; 33 34 /** 35 * Simple message-style service sample. 36 */ 37 38 public interface MessageService 39 { 40 /** 41 * Service methods, echo back any XML received. 42 */ 43 44 public org.apache.axis.message.SOAPBodyElement[] soapBodyElement(org.apache.axis.message.SOAPBodyElement[] bodyElements); 45 46 public Document document(Document body); 47 48 public Element[] elementArray(Element[] elems); 49 50 public void soapRequestResponse(SOAPEnvelope req, SOAPEnvelope resp) throws javax.xml.soap.SOAPException; 51 52 }