Package xsul.wsif

Examples of xsul.wsif.WSIFPort


        // This handler has to be end to get the entire soap message.
        NotificationHandler notificationHandler = new NotificationHandler(this.leadContext);
        this.client.addHandler(notificationHandler);

        WSIFPort port = this.client.getPort();
        if (this.operationName == null) {
            this.operationName = this.component.getOperationName();
        }
        logger.debug("operationName: " + operationName);
        this.operation = port.createOperation(operationName);
        this.inputMessage = this.operation.createInputMessage();
        this.outputMessage = this.operation.createOutputMessage();
        this.faultMessage = this.operation.createFaultMessage();
    }
View Full Code Here


        wclient.addHandler(handler);
        wclient.useAsyncMessaging(correlator);
        wclient.setAsyncResponseTimeoutInMs(33000L);

        WSIFPort port = wclient.getPort();
        WSIFOperation operation = port.createOperation("Run");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();

        // inputMessage.setObjectPart("InputParam1", "Hello");
View Full Code Here

                new StickySoapHeaderHandler("use-lead-header", leadContext))
                .useAsyncMessaging(correlator).setAsyncResponseTimeoutInMs(
                        33000L); // to simplify testing set to just few
        // seconds

        WSIFPort port = wclient.getPort();
        WSIFOperation operation = port.createOperation("generate");
        WSIFMessage inputMessage = operation.createInputMessage();
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();

        inputMessage.setObjectPart("n", "3");
View Full Code Here

     * @throws ComponentRegistryException
     */
    public WSIFMessage sendSOAPMessage(WSIFClient wclient, Object[][] args,
            String opName) throws ComponentRegistryException {

        WSIFPort port = wclient.getPort();

        WSIFOperation operation = port.createOperation(opName);
        WSIFMessage outputMessage = operation.createOutputMessage();
        WSIFMessage faultMessage = operation.createFaultMessage();
        String messageName = operation.createInputMessage().getName();
        XmlElement inputMsgElem = builder.newFragment(this.requestNS,
                messageName);
View Full Code Here

                    new StickySoapHeaderHandler("use-lead-header", leadContext))
                    .useAsyncMessaging(correlator).setAsyncResponseTimeoutInMs(
                    33000L); // to simplify testing set to just few
            // seconds

            WSIFPort port = wclient.getPort();
            WSIFOperation operation = port.createOperation("deploy");

            WSIFMessage outputMessage = operation.createOutputMessage();
            WSIFMessage faultMessage = operation.createFaultMessage();

            XmlElement inputMessageElement = xmlObjectToEl(getDeployPayload());
View Full Code Here

      if (this.secureInvoker != null) {
        Provider secureProvider = new xsul.wsif_xsul_soap_gsi.Provider(
            this.secureInvoker);
        service.addLocalProvider(secureProvider);
      }
      WSIFPort port = service.getPort();
      this.gFacOperation = port.createOperation(CREATE_SERVICE_OPERATION);

    } catch (RuntimeException e) {
      String message = "Failed to connect to the Generic Factory: "
          + wsdlURI;
      throw new XBayaException(message, e);
View Full Code Here

   * @throws XBayaException
   */
  public void shutdownService() throws XBayaException {
    WSIFService service = WSIFServiceFactory.newInstance().getService(
        this.serviceDefinitions);
    WSIFPort port = service.getPort();
    WSIFOperation operation = port.createOperation(SHUTDOWN_OPERATION);

    WSIFMessage inputMessage = operation.createInputMessage();
    WSIFMessage outputMessage = operation.createOutputMessage();
    WSIFMessage faultMessage = operation.createFaultMessage();

View Full Code Here

        // This handler has to be end to get the entire soap message.
        NotificationHandler notificationHandler = new NotificationHandler(
                this.leadContext);
        this.client.addHandler(notificationHandler);

        WSIFPort port = this.client.getPort();
        String operationName = this.component.getOperationName();
        logger.finest("operationName: " + operationName);
        this.operation = port.createOperation(operationName);
        this.inputMessage = this.operation.createInputMessage();
        this.outputMessage = this.operation.createOutputMessage();
        this.faultMessage = this.operation.createFaultMessage();
    }
View Full Code Here

                  leadContext)).useAsyncMessaging(correlator)
          .setAsyncResponseTimeoutInMs(33000L); // to simplify testing
      // set to just few
      // seconds

      WSIFPort port = wclient.getPort();
      WSIFOperation operation = port.createOperation("deploy");

      WSIFMessage outputMessage = operation.createOutputMessage();
      WSIFMessage faultMessage = operation.createFaultMessage();
      XmlElement inputMessageElement = xmlObjectToEl(getDeploymentPayload(
          workflow, this.xbayaEngine.getConfiguration().getDSCURL()));
      WSIFMessage inputMessage = new WSIFMessageElement(
          inputMessageElement);

      System.out.println("Sending a message:\n"
          + XMLUtil.xmlElementToString((XmlElement) inputMessage));
      boolean success = operation.executeRequestResponseOperation(
          inputMessage, outputMessage, faultMessage);

      XmlElement result;
      if (success) {
        result = (XmlElement) outputMessage;
      } else {
        throw new XsulException(faultMessage.toString());

      }

    } catch (IOException e) {
      throw new WorkflowProxyException(e);

    } catch (XmlBuilderException e) {
      throw new WorkflowProxyException(e);
    } catch (GraphException e) {
      throw new WorkflowProxyException(e);
    } catch (ComponentException e) {
      throw new WorkflowProxyException(e);
    }
    XBayaConfiguration configuration = this.xbayaEngine.getConfiguration();
    WsdlDefinitions workflowWSDL;
    try {
      workflowWSDL = workflow.getOdeWorkflowWSDL(configuration
          .getDSCURL(), configuration.getODEURL());
    } catch (Exception e) {
      // shouldnt happen cos we have already called this once
      throw new XBayaRuntimeException(e);
    }
    org.xmlpull.infoset.XmlElement service = workflowWSDL.xml().element(
        null, "service");
    org.xmlpull.infoset.XmlElement port = service.element(null, "port");
    org.xmlpull.infoset.XmlElement address = port.element(null, "address");
    String location = address.attributeValue("location");

    URI ret = null;
    try {
      ret = new URI(location + "?wsdl");
View Full Code Here

                  leadContext)).useAsyncMessaging(correlator)
          .setAsyncResponseTimeoutInMs(33000L); // to simplify testing
      // set to just few
      // seconds

      WSIFPort port = wclient.getPort();
      WSIFOperation operation = port.createOperation("createInstance");

      WSIFMessage outputMessage = operation.createOutputMessage();
      WSIFMessage faultMessage = operation.createFaultMessage();

      ProcessNameDocument processNameDocument = ProcessNameDocument.Factory
View Full Code Here

TOP

Related Classes of xsul.wsif.WSIFPort

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.