Package com.ptc.jws.servlet
Class JaxWsWebService
java.lang.Object
com.ptc.jws.servlet.JaxWsWebService
- Direct Known Subclasses:
WcNonconformanceIfc
Base Class for Java based JAX-WS enabled web services. Subclasses must be deployed using the bin/adminTools/WebServices utilities.
Web Services methods requiring Windchill APIs must wrap invocations with wt.httpgw.WTContextBeanHandler logic. The WTContextBeanHandler should be initialized with the output of the getServletRequest() method.
Supported API: true
Extendable: true
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.logging.log4j.LoggerLog4j Logger
Supported API: trueprotected org.apache.logging.log4j.LoggerLog4j2 Logger
Supported API: truejavax.xml.ws.WebServiceContextWebServiceContext
Supported API: true -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.xml.ws.handler.MessageContext
Supported API: trueprotected jakarta.servlet.http.HttpServletRequestReturns an HttpServletRequest object with the appropriate authenticated username imposed in the getRemoteUser()/getUserPrincipal() methods based on the security policy of the web service.
-
Field Details
-
$wsc
public javax.xml.ws.WebServiceContext $wscWebServiceContext
Supported API: true -
$log
protected org.apache.logging.log4j.Logger $logLog4j Logger
Supported API: true -
$logInternal
protected org.apache.logging.log4j.Logger $logInternalLog4j2 Logger
Supported API: true
-
-
Constructor Details
-
JaxWsWebService
protected JaxWsWebService()Constructs a new JAX-WS Web Service.
Supported API: true
-
-
Method Details
-
getServletRequest
protected jakarta.servlet.http.HttpServletRequest getServletRequest()Returns an HttpServletRequest object with the appropriate authenticated username imposed in the getRemoteUser()/getUserPrincipal() methods based on the security policy of the web service.
Supported API: true- Returns:
- The HttpServletRequest object that should be used.
-
getMessageContext
protected javax.xml.ws.handler.MessageContext getMessageContext()
Supported API: true- Returns:
- The MessageContext object.
-