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


        URL busFile = SecureServiceTestHarnessImpl.class.getResource("/wssec.xml");

        Bus bus = bf.createBus(busFile.toString());
        bf.setThreadDefaultBus(bus);

        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
        URL wsdlURL = new URL("http://127.0.0.1:8080/Quickstart_bpel_secure_serviceWS?wsdl");
       
        Service service = Service.create(wsdlURL, SERVICE_NAME);
        Dispatch<SOAPMessage> dispatcher = service.createDispatch(
View Full Code Here


        SpringBusFactory bf = new SpringBusFactory();
        URL busFile = ClassLoader.getSystemResource("wssec.xml");
        Bus bus = bf.createBus(busFile.toString());
        bf.setDefaultBus(bus);
       
        QName portName=new QName("http://www.jboss.org/bpel/examples/wsdl", "SecureHelloPort");
       
       
        Service service = Service.create(wsdlURL, SERVICE_NAME);
        Dispatch<SOAPMessage> dispatcher = service.createDispatch(
            portName,
View Full Code Here

    this.metaData = metaData;
    this.uddiRegistration = executionEnvironment.getUDDIRegistration();

    this.id = metaData.getEndpointId();
    this.serviceName = metaData.getServiceName();
    this.port = new QName(serviceName.getNamespaceURI(), metaData.getPortName());
   
    this.baseURI = pconf.getBaseURI();
   
    log.debug("Web Service Client: Base URI="+pconf.getBaseURI());
   
View Full Code Here

        if (log.isWarnEnabled())
          log.warn("Fault response: faultName="
              + fault.getName() + " faultType=" + fault.getMessage().getQName()
              + "\n" + DOMWriter.printNode(odeMsgEl, true));

        QName faultType = fault.getMessage().getQName();
        QName faultName = new QName(wsdlDefinition.getTargetNamespace(), fault.getName());
        Message response = mex.createMessage(faultType);
        response.setMessage(odeMsgEl);

        mex.replyWithFault(faultName, response);
      }
View Full Code Here

  {
    List<ProcessDefinitionRef> results = new ArrayList<ProcessDefinitionRef>();

    for(TProcessInfo pi : processInfoListDocument.getProcessInfoList().getProcessInfoList())
    {
      QName processQName = pi.getDefinitionInfo().getProcessName();
     
      ProcessDefinitionRef def = new ProcessDefinitionRef(
          encodeId(pi.getPid()),
          processQName.toString(),
          pi.getVersion()
      );

      def.setPackageName(processQName.getNamespaceURI());
      def.setDeploymentId(pi.getDeploymentInfo().getPackage());
      def.setSuspended( pi.getStatus() == TProcessStatus.RETIRED );// Used in ProcessEnginePluginImpl

      results.add(def);
    }
View Full Code Here

        return spec;
    }

    public byte[] getProcessInstanceImage(String definitionId, String instanceId) {

        QName qName = decode(definitionId);
        SVGInterface svg = createSVG(qName);

        List<Event> executionHistory =
                bpafDataSource.getPastActivities(instanceId);// no need to decode?
View Full Code Here

        return svg.toPNGBytes();
    }

    public byte[] getProcessImage(String processId) {

        QName qName = decode(processId);
        SVGInterface svg = createSVG(qName);
        return svg.toPNGBytes();
    }
View Full Code Here

        return svg;
    }

    private static QName decode(String processId) {
        String actualId = ModelAdaptor.decodeId(processId);
        QName qName= QName.valueOf(actualId);
        return qName;
    }
View Full Code Here

  }

  public List<ProcessInstanceRef> getProcessInstances(String definitionId)
  {
    String actualId = ModelAdaptor.decodeId(definitionId);
    QName processQName = QName.valueOf(actualId);
   
    //TODO: processQName.getLocalPart() includes the version number.
    String instanceName = processQName.getLocalPart().substring(0, processQName.getLocalPart().indexOf("-"));
    InstanceInfoListDocument result =
        getMgmtFacade().listInstances(                         // filter, order, limit
            "name="+ instanceName +" namespace=" + processQName.getNamespaceURI()+" status=active", "name", 1000);


    return ModelAdaptor.adoptInstances(processQName, result);   
  }
View Full Code Here

    this.configFile = config;
  }
 
  @Override
  public BasicConnectionFactory createConnectionFactory() throws ResourceException {
    QName portQName = SforceService.SERVICE;
    if (this.configFile != null) {
      this.bus = new SpringBusFactory().createBus(this.configFile);
      JaxWsClientFactoryBean instance = new JaxWsClientFactoryBean();
      Configurer configurer = this.bus.getExtension(Configurer.class);
          if (null != configurer) {
              configurer.configureBean(portQName.toString() + ".jaxws-client.proxyFactory", instance); //$NON-NLS-1$
          }
    }
   
    return new BasicConnectionFactory() {
      private static final long serialVersionUID = 5028356110047329135L;
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.