xml.wsdlextui/src/org/netbeans/modules/xml/wsdlextui/template/template.xml
author Milutin Kristofic <mkristofic@netbeans.org>
Mon, 30 Jan 2017 14:30:54 +0100
changeset 1583 fe20f672a61a
parent 677 d6dd4d3e452b
permissions -rw-r--r--
Added Missing copyright information in source files
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
     4 
     5 Copyright 2009-2017 Oracle and/or its affiliates. All rights reserved.
     6 
     7 Oracle and Java are registered trademarks of Oracle and/or its affiliates.
     8 Other names may be trademarks of their respective owners.
     9 
    10 The contents of this file are subject to the terms of either the GNU
    11 General Public License Version 2 only ("GPL") or the Common
    12 Development and Distribution License("CDDL") (collectively, the
    13 "License"). You may not use this file except in compliance with the
    14 License. You can obtain a copy of the License at
    15 http://www.netbeans.org/cddl-gplv2.html
    16 or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
    17 specific language governing permissions and limitations under the
    18 License.  When distributing the software, include this License Header
    19 Notice in each file and include the License file at
    20 nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
    21 particular file as subject to the "Classpath" exception as provided
    22 by Oracle in the GPL Version 2 section of the License file that
    23 accompanied this code. If applicable, add the following below the
    24 License Header, with the fields enclosed by brackets [] replaced by
    25 your own identifying information:
    26 "Portions Copyrighted [year] [name of copyright owner]"
    27 
    28 Contributor(s):
    29 
    30 The Original Software is NetBeans. The Initial Developer of the Original
    31 Software is Sun Microsystems, Inc. Portions Copyright 2009-2010 Sun
    32 Microsystems, Inc. All Rights Reserved.
    33 
    34 If you wish your version of this file to be governed by only the CDDL
    35 or only the GPL Version 2, indicate your decision by adding
    36 "[Contributor] elects to include this software in this distribution
    37 under the [CDDL or GPL Version 2] license." If you do not indicate a
    38 single choice of license, a recipient has the option to distribute
    39 your version of this file under either the CDDL, the GPL Version 2 or
    40 to extend the choice of license to its licensees as provided above.
    41 However, if you add GPL Version 2 code and therefore, elected the GPL
    42 Version 2 license, then the option applies only if the new code is
    43 made subject to such option by the copyright holder.
    44 -->
    45 <!--
    46     Document   : __NAME__
    47     Created on : __DATE__, __TIME__
    48     Author     : __USER__
    49     Description:
    50         Purpose of the document follows.
    51 -->
    52 <templateGroup namespace="http://schemas.xmlsoap.org/wsdl/soap/"
    53 		xmlns="http://xml.netbeans.org/schema/templates"
    54 		xmlns:xsi="http://www.w3.org/1999/XMLSchema/instance"
    55         xsi:schemaLocation="http://xml.netbeans.org/schema/templates
    56         templates.xsd" prefix="soap">
    57 
    58     <template name="rpcLiteral" default="true">
    59         <!-- specify what can be inserted inside binding tag-->
    60         <wsdlElement name="Binding">
    61             <extensionElement name="binding" >
    62                 <extensionAttr name="style" defaultValue="rpc" />
    63                 <extensionAttr name="transport" defaultValue="http://schemas.xmlsoap.org/soap/http" />
    64             </extensionElement>
    65         </wsdlElement>
    66         <wsdlElement name="BindingOperation">
    67             <extensionElement name="operation" >
    68             </extensionElement>
    69         </wsdlElement>
    70         <wsdlElement name="BindingOperationInput">
    71             <extensionElement name="body" >
    72                 <extensionAttr name="use" defaultValue="literal" />
    73                 <extensionAttr name="parts"  />
    74             </extensionElement>
    75         </wsdlElement>
    76         <wsdlElement name="BindingOperationOutput">
    77             <extensionElement name="body" >
    78                 <extensionAttr name="use" defaultValue="literal" />
    79                 <extensionAttr name="parts"  />
    80             </extensionElement>
    81         </wsdlElement>
    82 
    83         <wsdlElement name="BindingOperationFault">
    84             <extensionElement name="fault" >
    85                 <extensionAttr name="name"  />
    86                 <extensionAttr name="use" defaultValue="literal"  />
    87             </extensionElement>
    88         </wsdlElement>
    89 
    90         <wsdlElement name="ServicePort">
    91             <extensionElement name="address" >
    92                 <extensionAttr name="location" required="true" defaultValue="http://localhost:${HttpDefaultPort}/service"/>
    93             </extensionElement>
    94         </wsdlElement>
    95     </template>
    96 
    97     <template name="documentLiteral">
    98         <wsdlElement name="Binding">
    99             <extensionElement name="binding" >
   100                 <extensionAttr name="style" defaultValue="document" />
   101                 <extensionAttr name="transport" defaultValue="http://schemas.xmlsoap.org/soap/http" />
   102             </extensionElement>
   103         </wsdlElement>
   104         <wsdlElement name="BindingOperation">
   105             <extensionElement name="operation" >
   106             </extensionElement>
   107         </wsdlElement>
   108         <wsdlElement name="BindingOperationInput">
   109             <extensionElement name="body" >
   110                 <extensionAttr name="use" defaultValue="literal" />
   111             </extensionElement>
   112         </wsdlElement>
   113         <wsdlElement name="BindingOperationOutput">
   114             <extensionElement name="body" >
   115                 <extensionAttr name="use" defaultValue="literal" />
   116             </extensionElement>
   117         </wsdlElement>
   118 
   119         <wsdlElement name="BindingOperationFault">
   120             <extensionElement name="fault" >
   121                 <extensionAttr name="name"  />
   122                 <extensionAttr name="use" defaultValue="literal"  />
   123             </extensionElement>
   124         </wsdlElement>
   125 
   126         <wsdlElement name="ServicePort">
   127             <extensionElement name="address" >
   128                 <extensionAttr name="location"  defaultValue="http://localhost:${HttpDefaultPort}/service"/>
   129             </extensionElement>
   130         </wsdlElement>
   131     </template>
   132 
   133     <template name="rpcEncoded">
   134         <!-- specify what can be inserted inside binding tag-->
   135         <wsdlElement name="Binding">
   136             <extensionElement name="binding" >
   137                 <extensionAttr name="style" defaultValue="rpc" />
   138                 <extensionAttr name="transport" defaultValue="http://schemas.xmlsoap.org/soap/http" />
   139             </extensionElement>
   140         </wsdlElement>
   141         <wsdlElement name="BindingOperation">
   142             <extensionElement name="operation" >
   143             </extensionElement>
   144         </wsdlElement>
   145         <wsdlElement name="BindingOperationInput">
   146             <extensionElement name="body" >
   147                 <extensionAttr name="use" defaultValue="encoded" />
   148                 <extensionAttr name="namespace"  />
   149                 <extensionAttr name="encodingStyle" defaultValue="http://schemas.xmlsoap.org/soap/encoding/"  />
   150             </extensionElement>
   151         </wsdlElement>
   152         <wsdlElement name="BindingOperationOutput">
   153             <extensionElement name="body" >
   154                 <extensionAttr name="use" defaultValue="encoded" />
   155                 <extensionAttr name="namespace"  />
   156                 <extensionAttr name="encodingStyle" defaultValue="http://schemas.xmlsoap.org/soap/encoding/"  />
   157             </extensionElement>
   158         </wsdlElement>
   159 
   160         <wsdlElement name="BindingOperationFault">
   161             <extensionElement name="fault" >
   162                 <extensionAttr name="name"  />
   163                 <extensionAttr name="use" defaultValue="encoded"  />
   164                 <extensionAttr name="namespace"  />
   165                 <extensionAttr name="encodingStyle" defaultValue="http://schemas.xmlsoap.org/soap/encoding/"  />
   166             </extensionElement>
   167         </wsdlElement>
   168 
   169         <wsdlElement name="ServicePort">
   170             <extensionElement name="address" >
   171                 <extensionAttr name="location"  defaultValue="http://localhost:${HttpDefaultPort}/service"/>
   172             </extensionElement>
   173         </wsdlElement>
   174     </template>
   175 </templateGroup>