Class JaxWsWebService

java.lang.Object
com.ptc.jws.servlet.JaxWsWebService
Direct Known Subclasses:
WcNonconformanceIfc

public abstract class JaxWsWebService extends Object

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

    Fields
    Modifier and Type
    Field
    Description
    protected org.apache.logging.log4j.Logger
    Log4j Logger

    Supported API: true
    protected org.apache.logging.log4j.Logger
    Log4j2 Logger

    Supported API: true
    javax.xml.ws.WebServiceContext
    WebServiceContext

    Supported API: true
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructs a new JAX-WS Web Service.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected javax.xml.ws.handler.MessageContext


    Supported API: true
    protected jakarta.servlet.http.HttpServletRequest
    Returns an HttpServletRequest object with the appropriate authenticated username imposed in the getRemoteUser()/getUserPrincipal() methods based on the security policy of the web service.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • $wsc

      public javax.xml.ws.WebServiceContext $wsc
      WebServiceContext

      Supported API: true
    • $log

      protected org.apache.logging.log4j.Logger $log
      Log4j Logger

      Supported API: true
    • $logInternal

      protected org.apache.logging.log4j.Logger $logInternal
      Log4j2 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.