Package javax.xml.namespace

Examples of javax.xml.namespace.QName

The value of a QName contains a namespaceURI and a localPart. The localPart provides the local part of the qualified name. The namespaceURI is a URI reference identifying the namespace.

The prefix is included in the QName class to retain lexical information where present in an XML input source. The prefix is NOT used to compute the hash code or in the equals operation. In other words, equality is defined only using the namespaceURI and the localPart. @version 1.1


     * @return
     *     returns ChartPort
     */
    @WebEndpoint(name = "SOAPChartPortType")
    public ChartPort getSOAPChartPortType() {
        return super.getPort(new QName("http://jsonwebservice.googlecode.com/attachment", "SOAPChartPortType"), ChartPort.class);
    }
View Full Code Here


     * @return
     *     returns ChartPort
     */
    @WebEndpoint(name = "SOAPChartPortType")
    public ChartPort getSOAPChartPortType(WebServiceFeature... features) {
        return super.getPort(new QName("http://jsonwebservice.googlecode.com/attachment", "SOAPChartPortType"), ChartPort.class, features);
    }
View Full Code Here

public class WSDLJSONParserExtension extends WSDLParserExtension {
  private static final Logger   LOG    = Logger.getLogger(WSDLJSONParserExtension.class.getName());
  @Override
  public boolean bindingElements(WSDLBoundPortType binding,
      XMLStreamReader reader) {
    QName name = reader.getName();
        if (JSONBindingID.NS_JSON_BINDING.equals(name) && binding instanceof WSDLBoundPortTypeImpl ) {
          WSDLBoundPortTypeImpl bindingImpl = (WSDLBoundPortTypeImpl)binding;
          bindingImpl.setBindingId(JSONBindingID.JSON_HTTP);
          //bindingImpl.setBindingId(BindingID.SOAP11_HTTP);
            String style = reader.getAttributeValue(null, "style");
View Full Code Here

        return false;
  }
 
  @Override
  public boolean portElements(WSDLPort port, XMLStreamReader reader) {
     QName name = reader.getName();
    if(JSONBindingID.QNAME_ADDRESS.equals(name)){
      String location = ParserUtil.getMandatoryNonEmptyAttribute(reader, WSDLConstants.ATTR_LOCATION);
          if (location != null && port instanceof WSDLPortImpl) {
              try {
                  ((WSDLPortImpl)port).setAddress(new EndpointAddress(location));
View Full Code Here

 

  @Override
  public boolean bindingOperationElements(WSDLBoundOperation operation,
      XMLStreamReader reader) {
    QName name = reader.getName();
    if (operation instanceof WSDLBoundOperationImpl && JSONBindingID.QNAME_OPERATION.equals(name)) {
           // style = reader.getAttributeValue(null, "style");
            String soapAction = reader.getAttributeValue(null, "soapAction");
            if (soapAction != null)
              ((WSDLBoundOperationImpl)operation).setSoapAction(soapAction);
View Full Code Here

      super.bindingOperationOutputElements(operation, reader);
  }
 
  private boolean handleOperationInOutElements(WSDLBoundOperation operation,
      XMLStreamReader reader,BindingMode mode){
    QName name = reader.getName();
    WSDLBoundOperationImpl bindingOp = (WSDLBoundOperationImpl)operation;
    if (JSONConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_BODY.equals(name)) {
      if(mode == BindingMode.INPUT)
        bindingOp.setInputExplicitBodyParts(parseBodyBinding(reader, bindingOp, mode));
      else if(mode == BindingMode.OUTPUT)
View Full Code Here

        }
    }
 
  private void parseMimeMultipartBinding(XMLStreamReader reader, WSDLBoundOperationImpl op, BindingMode mode) {
        while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) {
            QName name = reader.getName();
            if (JSONConstants.QNAME_PART.equals(name)) {
                parseMIMEPart(reader, op, mode);
            } else {
                XMLStreamReaderUtil.skipElement(reader);
            }
View Full Code Here

 
  /**
   * Output responder.
   */
  public void doResponse(WSHTTPConnection ouStream) throws IOException {
    QName serviceName = this.codec.getEndpoint().getServiceName();
    //DEbug if(!endPointClientJs.containsKey(serviceName))
      process();
    String portDocuments =  endPointClientJs.get(serviceName);
    if(portDocuments != null){
      doResponse(ouStream, portDocuments);
View Full Code Here

    }
  }

  public XmlElementRefsObj test13EmptyInXmlElementRefsOut() {
    XmlElementRefsObj obj = new XmlElementRefsObj();
    JAXBElement<String> elem = new JAXBElement<String>(new QName("name"), String.class, "testStr");
    obj.getNameAndTypeAndLable().add(elem );
    elem = new JAXBElement<String>(new QName("lable"), String.class, "lable");
    obj.getNameAndTypeAndLable().add(elem );
    return obj;
  }
View Full Code Here

import com.album.dispatcher.AlbumService;


public class ListMapKeyTest {
  public static void main(String[] args) throws MalformedURLException {
    AlbumService albm = new AlbumService(new URL("http://localhost:8080/album/json/picasa?wsdl"), new QName("http://album.com/dispatcher", "AlbumService"));
    Album port = albm.getAlbumServicePort();
    UIElements uiElementsProxy = new UIElements();
    UIElement elm1    = new UIElement();
    elm1.setName("LOGIN");
    uiElementsProxy.getElements().add(elm1    );
View Full Code Here

TOP

Related Classes of javax.xml.namespace.QName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.