Subversion Repositories XServices

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
110 brianR 1
/*
2
 *   Copyright 2012 Brian Rosenberger (Brutex Network)
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
6
 *   You may obtain a copy of the License at
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
15
 */
16
 
17
package net.brutex.xservices.ws;
18
 
19
import javax.jws.WebMethod;
20
import javax.jws.WebParam;
21
import javax.jws.WebService;
22
import javax.xml.bind.annotation.XmlElement;
23
 
24
import net.brutex.xservices.types.NamespaceListType;
25
import net.brutex.xservices.types.ant.FileResource;
26
 
27
import org.apache.cxf.annotations.WSDLDocumentation;
28
 
29
/**
30
 * @author Brian Rosenberger, bru(at)brutex.de
31
 *
32
 */
33
@WebService(targetNamespace="http://ws.xservices.brutex.net")
34
public abstract interface XmlService
35
{
36
  public static final String SERVICE_NAME = "XmlService";
37
  public static final String OPERATION_APPENDTO = "appendTo";
38
  public static final String OPERATION_REPLACE = "replaceNode";
39
  public static final String PARAM_XPATH = "xpath";
40
  public static final String PARAM_XML = "xmldata";
41
 
42
  @WebMethod(operationName="insertNodes")
43
  @WSDLDocumentation("Insert an XML fragment into an XML document given as string.")
44
  public abstract String insertNodes(
45
		  @WebParam(name="sourcexml") String source,
46
		  @WebParam(name="namespaceList") NamespaceListType paramNamespaceListType,
47
		  @WebParam(name="xpath") @XmlElement(required=true) String paramString1,
48
		  @WebParam(name="xmldata") String paramString2)
49
    throws XServicesFault;
50
 
51
  @WebMethod(operationName="insertNodes2")
52
  @WSDLDocumentation("Insert an XML fragment into an XML document given as file.")
53
  public abstract String insertNodesFromFile(
54
		  @WebParam(name="file") FileResource paramFileResource,
55
		  @WebParam(name="namespaceList") NamespaceListType paramNamespaceListType,
56
		  @WebParam(name="xpath") @XmlElement(required=true) String paramString1,
57
		  @WebParam(name="xmldata") String paramString2)
58
    throws XServicesFault;
59
 
60
  @WebMethod(operationName="replaceNodes")
61
  @WSDLDocumentation("Replaces matched XML nodes with an XML document given as string.")
62
  public abstract String replaceNodes(
63
		  @WebParam(name="sourcexml") String source,
64
		  @WebParam(name="namespaceList") NamespaceListType paramNamespaceListType,
65
		  @WebParam(name="xpath") @XmlElement(required=true) String paramString1,
66
		  @WebParam(name="xmldata") String paramString2)
67
    throws XServicesFault;
68
 
69
  @WebMethod(operationName="replaceNodes2")
70
  @WSDLDocumentation("Replaces matched XML nodes with an XML document given as file.")
71
  public abstract String replaceNodesFromFile(
72
		  @WebParam(name="file") FileResource paramFileResource,
73
		  @WebParam(name="namespaceList") NamespaceListType paramNamespaceListType,
74
		  @WebParam(name="xpath") @XmlElement(required=true) String paramString1,
75
		  @WebParam(name="xmldata") String paramString2)
76
    throws XServicesFault;
77
 
78
  @WebMethod(operationName="wrapInCDATA")
79
  @WSDLDocumentation("Wraps a String into a CDATA element")
80
  public abstract String wrapInCDATA(@WebParam(name="data") @XmlElement(required=true) String data)
81
  	throws XServicesFault;
82
 
83
}