Subversion Repositories XServices

Rev

Rev 46 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 46 Rev 65
Line 16... Line 16...
16
 
16
 
Line 17... Line 17...
17
package net.brutex.xservices.ws;
17
package net.brutex.xservices.ws;
18
 
18
 
-
 
19
import java.util.GregorianCalendar;
-
 
20
import javax.xml.bind.annotation.XmlElement;
19
import java.util.GregorianCalendar;
21
import javax.xml.bind.annotation.XmlRootElement;
20
import javax.xml.bind.annotation.XmlElement;
22
import javax.xml.bind.annotation.XmlType;
21
import javax.xml.datatype.DatatypeConfigurationException;
23
import javax.xml.datatype.DatatypeConfigurationException;
-
 
24
import javax.xml.datatype.DatatypeFactory;
-
 
25
import javax.xml.datatype.XMLGregorianCalendar;
-
 
26
import javax.xml.ws.WebFault;
Line 22... Line 27...
22
import javax.xml.datatype.DatatypeFactory;
27
 
23
import javax.xml.datatype.XMLGregorianCalendar;
28
import net.brutex.xservices.util.BrutexNamespaces;
24
 
29
 
25
/**
30
/**
-
 
31
 *
26
 *
32
 * @author Brian Rosenberger, bru@brutex.de
Line 27... Line 33...
27
 * @author Brian Rosenberger, bru@brutex.de
33
 */
28
 */
34
@WebFault(targetNamespace=BrutexNamespaces.WS_XSERVICES)
29
public class XServicesFault extends Exception {
35
public class XServicesFault extends Exception {
Line 56... Line 62...
56
            System.err.println(ex.getMessage());
62
            System.err.println(ex.getMessage());
57
        }
63
        }
Line 58... Line 64...
58
 
64
 
-
 
65
 
-
 
66
    }
-
 
67
    /**
59
 
68
     * The error message.
60
    }
69
     */
Line -... Line 70...
-
 
70
    @XmlElement(name="faultstring", namespace=BrutexNamespaces.WS_XSERVICES)
-
 
71
    public String faultstring = "";
-
 
72
 
61
    @XmlElement(name="faultstring")
73
    /**
62
    public String faultstring = "";
74
     * Username under which the web service has been executed.
Line -... Line 75...
-
 
75
     */
-
 
76
    @XmlElement(name="username", namespace=BrutexNamespaces.WS_XSERVICES)
-
 
77
    public String username = System.getProperty("user.name");
63
 
78
 
64
    @XmlElement(name="username")
79
    /**
Line -... Line 80...
-
 
80
     * Home directory of the user profile running the web service.
-
 
81
     */
-
 
82
    @XmlElement(name="homedir", namespace=BrutexNamespaces.WS_XSERVICES)
-
 
83
    public String homedir = System.getProperty("user.home");
65
    public String username = System.getProperty("user.name");
84
 
66
 
85
    
-
 
86
    /**
-
 
87
     * Timestamp when the fault was thrown.
-
 
88
     */
-
 
89
    @XmlElement(name="timstamp", namespace=BrutexNamespaces.WS_XSERVICES)
-
 
90
    public XMLGregorianCalendar timestamp = null;
-
 
91
    
67
    @XmlElement(name="homedir")
92
    /**