| Package | Description | 
|---|---|
| javax.xml.bind | 
        Provides a runtime binding framework for client applications including
        unmarshalling, marshalling, and validation capabilities. | 
| javax.xml.datatype | XML/Java Type Mappings. | 
| javax.xml.namespace | XML Namespace processing. | 
| javax.xml.soap | Provides the API for creating and building SOAP messages. | 
| javax.xml.stream | |
| javax.xml.stream.events | |
| javax.xml.stream.util | |
| javax.xml.ws | This package contains the core JAX-WS APIs. | 
| javax.xml.ws.handler | This package defines APIs for message handlers. | 
| javax.xml.ws.handler.soap | This package defines APIs for SOAP message handlers. | 
| javax.xml.ws.spi | This package defines SPIs for JAX-WS. | 
| javax.xml.ws.wsaddressing | This package defines APIs related to WS-Addressing. | 
| javax.xml.xpath | This package provides an object-model neutral API for the
evaluation of XPath expressions and access to the evaluation
environment. | 
| Modifier and Type | Field and Description | 
|---|---|
| protected QName | JAXBElement. namexml element tag name | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract QName | JAXBIntrospector. getElementName(Object jaxbElement)Get xml element qname for  jaxbElement. | 
| QName | JAXBElement. getName()Returns the xml element tag name. | 
| static QName | DatatypeConverter. parseQName(String lexicalXSDQName,
          NamespaceContext nsc)
 Converts the string argument into a byte value. | 
| QName | DatatypeConverterInterface. parseQName(String lexicalXSDQName,
          NamespaceContext nsc)
 Converts the string argument into a QName value. | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | DatatypeConverter. printQName(QName val,
          NamespaceContext nsc)
 Converts a QName instance into a string. | 
| String | DatatypeConverterInterface. printQName(QName val,
          NamespaceContext nsc)
 Converts a QName instance into a string. | 
| Constructor and Description | 
|---|
| JAXBElement(QName name,
           Class<T> declaredType,
           Class scope,
           T value)Construct an xml element instance. | 
| JAXBElement(QName name,
           Class<T> declaredType,
           T value)Construct an xml element instance. | 
| Modifier and Type | Field and Description | 
|---|---|
| static QName | DatatypeConstants. DATEFully qualified name for W3C XML Schema 1.0 datatype  date. | 
| static QName | DatatypeConstants. DATETIMEFully qualified name for W3C XML Schema 1.0 datatype  dateTime. | 
| static QName | DatatypeConstants. DURATIONFully qualified name for W3C XML Schema datatype  duration. | 
| static QName | DatatypeConstants. DURATION_DAYTIMEFully qualified name for XQuery 1.0 and XPath 2.0 datatype  dayTimeDuration. | 
| static QName | DatatypeConstants. DURATION_YEARMONTHFully qualified name for XQuery 1.0 and XPath 2.0 datatype  yearMonthDuration. | 
| static QName | DatatypeConstants. GDAYFully qualified name for W3C XML Schema 1.0 datatype  gDay. | 
| static QName | DatatypeConstants. GMONTHFully qualified name for W3C XML Schema 1.0 datatype  gMonth. | 
| static QName | DatatypeConstants. GMONTHDAYFully qualified name for W3C XML Schema 1.0 datatype  gMonthDay. | 
| static QName | DatatypeConstants. GYEARFully qualified name for W3C XML Schema 1.0 datatype  gYear. | 
| static QName | DatatypeConstants. GYEARMONTHFully qualified name for W3C XML Schema 1.0 datatype  gYearMonth. | 
| static QName | DatatypeConstants. TIMEFully qualified name for W3C XML Schema 1.0 datatype  time. | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | Duration. getXMLSchemaType()Return the name of the XML Schema date/time type that this instance
 maps to. | 
| abstract QName | XMLGregorianCalendar. getXMLSchemaType()Return the name of the XML Schema date/time type that this instance
 maps to. | 
| Modifier and Type | Method and Description | 
|---|---|
| static QName | QName. valueOf(String qNameAsString)QNamederived from parsing the formattedString. | 
| Modifier and Type | Field and Description | 
|---|---|
| static QName | SOAPConstants. SOAP_DATAENCODINGUNKNOWN_FAULTSOAP 1.2 DataEncodingUnknown Fault | 
| static QName | SOAPConstants. SOAP_MUSTUNDERSTAND_FAULTSOAP 1.2 MustUnderstand Fault | 
| static QName | SOAPConstants. SOAP_RECEIVER_FAULTSOAP 1.2 Receiver Fault | 
| static QName | SOAPConstants. SOAP_SENDER_FAULTSOAP 1.2 Sender Fault | 
| static QName | SOAPConstants. SOAP_VERSIONMISMATCH_FAULTSOAP 1.2 VersionMismatch Fault | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | SOAPElement. createQName(String localName,
           String prefix)Creates a  QNamewhose namespace URI is the one associated
 with the parameter,prefix, in the context of thisSOAPElement. | 
| QName | SOAPElement. getElementQName()Returns the qname of this  SOAPElementobject. | 
| QName | SOAPFault. getFaultCodeAsQName()Gets the fault code for this
  SOAPFaultobject as aQNameobject. | 
| Modifier and Type | Method and Description | 
|---|---|
| SOAPElement | SOAPElement. addAttribute(QName qname,
            String value)Adds an attribute with the specified name and value to this
  SOAPElementobject. | 
| SOAPBodyElement | SOAPBody. addBodyElement(QName qname)Creates a new  SOAPBodyElementobject with the specified
 QName and adds it to thisSOAPBodyobject. | 
| SOAPElement | SOAPElement. addChildElement(QName qname)Creates a new  SOAPElementobject initialized with the givenQNameobject and adds the new element to thisSOAPElementobject. | 
| DetailEntry | Detail. addDetailEntry(QName qname)Creates a new  DetailEntryobject with the given
 QName and adds it to thisDetailobject. | 
| SOAPFault | SOAPBody. addFault(QName faultCode,
        String faultString)Creates a new  SOAPFaultobject and adds it to thisSOAPBodyobject. | 
| SOAPFault | SOAPBody. addFault(QName faultCode,
        String faultString,
        Locale locale)Creates a new  SOAPFaultobject and adds it to thisSOAPBodyobject. | 
| SOAPHeaderElement | SOAPHeader. addHeaderElement(QName qname)Creates a new  SOAPHeaderElementobject initialized with the
 specified qname and adds it to thisSOAPHeaderobject. | 
| SOAPHeaderElement | SOAPHeader. addNotUnderstoodHeaderElement(QName name)Creates a new NotUnderstood  SOAPHeaderElementobject initialized
 with the specified name and adds it to thisSOAPHeaderobject. | 
| void | SOAPFault. appendFaultSubcode(QName subcode)Adds a Subcode to the end of the sequence of Subcodes contained by this
  SOAPFault. | 
| SOAPElement | SOAPFactory. createElement(QName qname)Creates a  SOAPElementobject initialized with the
 givenQNameobject. | 
| abstract SOAPFault | SOAPFactory. createFault(String reasonText,
           QName faultCode)Creates a new  SOAPFaultobject initialized with the givenreasonTextandfaultCode | 
| String | SOAPElement. getAttributeValue(QName qname)Returns the value of the attribute with the specified qname. | 
| Iterator | SOAPElement. getChildElements(QName qname)Returns an  Iteratorover all the immediate childNodes of this element with the specified qname. | 
| boolean | SOAPElement. removeAttribute(QName qname)Removes the attribute with the specified qname. | 
| SOAPElement | SOAPElement. setElementQName(QName newName)Changes the name of this  ElementtonewNameif
 possible. | 
| void | SOAPFault. setFaultCode(QName faultCodeQName)Sets this  SOAPFaultobject with the given fault code. | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | XMLStreamReader. getAttributeName(int index)Returns the qname of the attribute at the provided index | 
| QName | XMLStreamReader. getName()Returns a QName for the current START_ELEMENT or END_ELEMENT event | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Attribute | XMLEventFactory. createAttribute(QName name,
               String value)Create a new Attribute | 
| abstract EndElement | XMLEventFactory. createEndElement(QName name,
                Iterator namespaces)Create a new EndElement | 
| abstract StartElement | XMLEventFactory. createStartElement(QName name,
                  Iterator attributes,
                  Iterator namespaces)Create a new StartElement. | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | Attribute. getName()Returns the QName for this attribute | 
| QName | EndElement. getName()Get the name of this event | 
| QName | StartElement. getName()Get the name of this event | 
| QName | XMLEvent. getSchemaType()This method is provided for implementations to provide
 optional type information about the associated event. | 
| Modifier and Type | Method and Description | 
|---|---|
| Attribute | StartElement. getAttributeByName(QName name)Returns the attribute referred to by this name | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | StreamReaderDelegate. getAttributeName(int index) | 
| QName | StreamReaderDelegate. getName() | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | Service. getServiceName()Gets the name of this service. | 
| Modifier and Type | Method and Description | 
|---|---|
| Iterator<QName> | Service. getPorts()Returns an  Iteratorfor the list ofQNames of service endpoints grouped by this
 service | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Service. addPort(QName portName,
       String bindingId,
       String endpointAddress)Creates a new port for the service. | 
| static Service | Service. create(QName serviceName)Creates a  Serviceinstance. | 
| static Service | Service. create(QName serviceName,
      WebServiceFeature... features)Creates a  Serviceinstance. | 
| static Service | Service. create(URL wsdlDocumentLocation,
      QName serviceName)Creates a  Serviceinstance. | 
| static Service | Service. create(URL wsdlDocumentLocation,
      QName serviceName,
      WebServiceFeature... features)Creates a  Serviceinstance. | 
| <T> Dispatch<T> | Service. createDispatch(QName portName,
              Class<T> type,
              Service.Mode mode)Creates a  Dispatchinstance for use with objects of
 the client's choosing. | 
| <T> Dispatch<T> | Service. createDispatch(QName portName,
              Class<T> type,
              Service.Mode mode,
              WebServiceFeature... features)Creates a  Dispatchinstance for use with objects of
 the client's choosing. | 
| Dispatch<Object> | Service. createDispatch(QName portName,
              JAXBContext context,
              Service.Mode mode)Creates a  Dispatchinstance for use with JAXB
 generated objects. | 
| Dispatch<Object> | Service. createDispatch(QName portName,
              JAXBContext context,
              Service.Mode mode,
              WebServiceFeature... features)Creates a  Dispatchinstance for use with JAXB
 generated objects. | 
| <T> T | Service. getPort(QName portName,
       Class<T> serviceEndpointInterface)The  getPortmethod returns a proxy. | 
| <T> T | Service. getPort(QName portName,
       Class<T> serviceEndpointInterface,
       WebServiceFeature... features)The  getPortmethod returns a proxy. | 
| Constructor and Description | 
|---|
| Service(URL wsdlDocumentLocation,
       QName serviceName) | 
| Service(URL wsdlDocumentLocation,
       QName serviceName,
       WebServiceFeature... features) | 
| Modifier and Type | Method and Description | 
|---|---|
| QName | PortInfo. getPortName()Gets the qualified name of the WSDL port being accessed. | 
| QName | PortInfo. getServiceName()Gets the qualified name of the WSDL service name containing
  the port being accessed. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<QName> | SOAPHandler. getHeaders()Gets the header blocks that can be processed by this Handler
  instance. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object[] | SOAPMessageContext. getHeaders(QName header,
          JAXBContext context,
          boolean allRoles)Gets headers that have a particular qualified name from the message in the
  message context. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract QName | ServiceDelegate. getServiceName()Gets the name of this service. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Iterator<QName> | ServiceDelegate. getPorts()Returns an  Iteratorfor the list ofQNames of service endpoints grouped by this
 service | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | ServiceDelegate. addPort(QName portName,
       String bindingId,
       String endpointAddress)Creates a new port for the service. | 
| abstract <T> Dispatch<T> | ServiceDelegate. createDispatch(QName portName,
              Class<T> type,
              Service.Mode mode)Creates a  Dispatchinstance for use with objects of
 the user's choosing. | 
| abstract <T> Dispatch<T> | ServiceDelegate. createDispatch(QName portName,
              Class<T> type,
              Service.Mode mode,
              WebServiceFeature... features)Creates a  Dispatchinstance for use with objects of
 the user's choosing. | 
| abstract Dispatch<Object> | ServiceDelegate. createDispatch(QName portName,
              JAXBContext context,
              Service.Mode mode)Creates a  Dispatchinstance for use with JAXB
 generated objects. | 
| abstract Dispatch<Object> | ServiceDelegate. createDispatch(QName portName,
              JAXBContext context,
              Service.Mode mode,
              WebServiceFeature... features)Creates a  Dispatchinstance for use with JAXB
 generated objects. | 
| abstract ServiceDelegate | Provider. createServiceDelegate(URL wsdlDocumentLocation,
                     QName serviceName,
                     Class<? extends Service> serviceClass)Creates a service delegate object. | 
| ServiceDelegate | Provider. createServiceDelegate(URL wsdlDocumentLocation,
                     QName serviceName,
                     Class<? extends Service> serviceClass,
                     WebServiceFeature... features)Creates a service delegate object. | 
| abstract W3CEndpointReference | Provider. createW3CEndpointReference(String address,
                          QName serviceName,
                          QName portName,
                          List<Element> metadata,
                          String wsdlDocumentLocation,
                          List<Element> referenceParameters)Factory method to create a  W3CEndpointReference. | 
| W3CEndpointReference | Provider. createW3CEndpointReference(String address,
                          QName interfaceName,
                          QName serviceName,
                          QName portName,
                          List<Element> metadata,
                          String wsdlDocumentLocation,
                          List<Element> referenceParameters,
                          List<Element> elements,
                          Map<QName,String> attributes)Factory method to create a  W3CEndpointReference. | 
| abstract <T> T | ServiceDelegate. getPort(QName portName,
       Class<T> serviceEndpointInterface)The  getPortmethod returns a proxy. | 
| abstract <T> T | ServiceDelegate. getPort(QName portName,
       Class<T> serviceEndpointInterface,
       WebServiceFeature... features)The  getPortmethod returns a proxy. | 
| Modifier and Type | Method and Description | 
|---|---|
| W3CEndpointReference | Provider. createW3CEndpointReference(String address,
                          QName interfaceName,
                          QName serviceName,
                          QName portName,
                          List<Element> metadata,
                          String wsdlDocumentLocation,
                          List<Element> referenceParameters,
                          List<Element> elements,
                          Map<QName,String> attributes)Factory method to create a  W3CEndpointReference. | 
| Modifier and Type | Method and Description | 
|---|---|
| W3CEndpointReferenceBuilder | W3CEndpointReferenceBuilder. attribute(QName name,
         String value)Adds an extension attribute to the
  W3CEndpointReferenceinstance'swsa:EndpointReferenceelement. | 
| W3CEndpointReferenceBuilder | W3CEndpointReferenceBuilder. endpointName(QName endpointName)Sets the  endpointNameaswsam:ServiceName/@EndpointNamein thewsa:Metadataelement. | 
| W3CEndpointReferenceBuilder | W3CEndpointReferenceBuilder. interfaceName(QName interfaceName)Sets the  interfaceNameas thewsam:InterfaceNameelement in thewsa:Metadataelement. | 
| W3CEndpointReferenceBuilder | W3CEndpointReferenceBuilder. serviceName(QName serviceName)Sets the  serviceNameas thewsam:ServiceNameelement in thewsa:Metadataelement. | 
| Modifier and Type | Field and Description | 
|---|---|
| static QName | XPathConstants. BOOLEANThe XPath 1.0 boolean data type. | 
| static QName | XPathConstants. NODEThe XPath 1.0 NodeSet data type. | 
| static QName | XPathConstants. NODESETThe XPath 1.0 NodeSet data type. | 
| static QName | XPathConstants. NUMBERThe XPath 1.0 number data type. | 
| static QName | XPathConstants. STRINGThe XPath 1.0 string data type. | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | XPathExpression. evaluate(InputSource source,
        QName returnType)Evaluate the compiled XPath expression in the context of the specified  InputSourceand return the result as the
 specified type. | 
| Object | XPathExpression. evaluate(Object item,
        QName returnType)Evaluate the compiled XPath expression in the specified context and return the result as the specified type. | 
| Object | XPath. evaluate(String expression,
        InputSource source,
        QName returnType)Evaluate an XPath expression in the context of the specified  InputSourceand return the result as the specified type. | 
| Object | XPath. evaluate(String expression,
        Object item,
        QName returnType)Evaluate an  XPathexpression in the specified context and return the result as the specified type. | 
| XPathFunction | XPathFunctionResolver. resolveFunction(QName functionName,
               int arity)Find a function in the set of available functions. | 
| Object | XPathVariableResolver. resolveVariable(QName variableName)Find a variable in the set of available variables. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.