Subversion Repositories XServices

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
16 brianR 1
/*
2
 *   Copyright 2010 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;
18 brianR 22
import net.brutex.xservices.types.HostConnection;
16 brianR 23
import net.brutex.xservices.types.ReturnCode;
24
import net.brutex.xservices.util.BrutexNamespaces;
25
 
26
/**
27
 *
28
 * @author Brian Rosenberger, bru@brutex.de
29
 */
30
@WebService(targetNamespace=BrutexNamespaces.WS_XSERVICES)
31
public interface MiscService {
32
 
33
    @WebMethod(operationName="getHostinfo")
34
    public ReturnCode getHostinfo(@WebParam(name="hostname") String hostname);
18 brianR 35
 
36
    @WebMethod(operationName="sendMailSimple")
37
    public ReturnCode sendMailSimple(@WebParam(name="mailhost") HostConnection mailhost,
38
            @WebParam(name="from") String from,
39
            @WebParam(name="to") String tolist,
40
            @WebParam(name="subject") String subject,
41
            @WebParam(name="message") String message);
16 brianR 42
}