01: /*
02: * BEGIN_HEADER - DO NOT EDIT
03: *
04: * The contents of this file are subject to the terms
05: * of the Common Development and Distribution License
06: * (the "License"). You may not use this file except
07: * in compliance with the License.
08: *
09: * You can obtain a copy of the license at
10: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
11: * See the License for the specific language governing
12: * permissions and limitations under the License.
13: *
14: * When distributing Covered Code, include this CDDL
15: * HEADER in each file and include the License file at
16: * https://open-esb.dev.java.net/public/CDDLv1.0.html.
17: * If applicable add the following below this CDDL HEADER,
18: * with the fields enclosed by brackets "[]" replaced with
19: * your own identifying information: Portions Copyright
20: * [year] [name of copyright owner]
21: */
22:
23: /*
24: * @(#)JBIWSDL11WrapperWtr.java
25: * Copyright 2004-2007 Sun Microsystems, Inc. All Rights Reserved.
26: *
27: * END_HEADER - DO NOT EDIT
28: */
29: package com.sun.jbi.wsdl11wrapper;
30:
31: import javax.wsdl.Message;
32:
33: import org.w3c.dom.Document;
34: import org.w3c.dom.Element;
35:
36: /**
37: * @author Sun Microsystems, Inc.
38: * Nov 3, 2005
39: */
40: public interface JBIWSDL11WrapperWtr {
41: /**
42: * Set the optional message "name" into wrapped document.
43: * This is the logical name defined in the operation binding, not the type name.
44: */
45: void setMessageName();
46:
47: /**
48: * Add a part in the right position (wrapped in a JBI part wrapper) to the JBI message wrapper element
49: * @param partName the name of the message part
50: * @param partNode the part node (payload)
51: * The part node does not have to be associated with the normalDoc yet, it will be imported
52: * @throws WrapperProcessingException if the part could not be added
53: */
54: void addPart(String partName, Element partNode)
55: throws WrapperProcessingException;
56:
57: /**
58: * Initialize the builder to start a build sequence.
59: *
60: * Also re-sets a result document if it already exists.
61: *
62: * @pram docToPopulate Provide an empty document to popluate, or null if the
63: * builder should create a new document itself
64: * @param wsdlMessageDefinition sets the WSDL message definition of the message to normalize
65: * @param operationBindingMessageName The name defined in the WSDL operation binding for the message to normalize to.
66: *
67: * @throws WrapperProcessingException if the builder could not be initialized
68: */
69: void initialize(Document docToPopulate,
70: Message wsdlMessageDefinition,
71: String operationBindingMessageName)
72: throws WrapperProcessingException;
73:
74: }
|