Package xsul.wsif

Examples of xsul.wsif.WSIFMessage


                }
            }
            // Wait for the job to finish.
            Boolean success = this.result;
            if (success == false) {
                WSIFMessage faultMessage = this.invoker.getFault();
                String message = "Error in a service: ";
                // An implementation of WSIFMessage,
                // WSIFMessageElement, implements toString(), which
                // serialize the message XML.
                message += faultMessage.toString();
                throw new WorkflowException(message);
            }
        } catch (RuntimeException e) {
            logger.error(e.getMessage(), e);
            String message = "Error while waiting for a service to finish: " + this.serviceInformation;
View Full Code Here


   */
  public void invoke() throws XBayaException {
    logger.entering();

        try {
            WSIFMessage inputMessage = this.invoker.getInputs();
            logger.finest("inputMessage: "
                    + XMLUtil.xmlElementToString((XmlElement) inputMessage));
            this.notifier.invokingService(inputMessage);
            boolean success = this.invoker.invoke();
            if (success) {
                // Send notification
                WSIFMessage outputMessage = SecureGFacInvoker.this.invoker
                        .getOutputs();
                // An implementation of WSIFMessage,
                // WSIFMessageElement, implements toString(), which
                // serialize the message XML.
                logger.finest("outputMessage: " + outputMessage);
//                SecureGFacInvoker.this.notifier
//                        .serviceFinished(outputMessage);
            } else {
                WSIFMessage faultMessage = SecureGFacInvoker.this.invoker
                        .getFault();
                // An implementation of WSIFMessage,
                // WSIFMessageElement, implements toString(), which
                // serialize the message XML.
                logger.finest("received fault: " + faultMessage);
View Full Code Here

        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");
        inputMessage.setObjectPart("InputParam1", "100");

        logger.info("inputMessage: "
View Full Code Here

                logger.info("name: " + name);
                Object value = output.getValue();
                logger.info("value: " + value);
            }
        } else {
            WSIFMessage fault = invoker.getFault();
            logger.info("fault: " + fault);
        }

    }
View Full Code Here

                        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");

        logger.info("Sending a message:\n"
                + XMLUtil.xmlElementToString((XmlElement) inputMessage));
View Full Code Here

     * @return The concrete WSDL
     * @throws ComponentRegistryException
     */
    public String getConcreteWsdl(String wsdlQName)
            throws ComponentRegistryException {
        WSIFMessage response = this.client.sendSOAPMessage(this.wsdlURL,
                new String[][] { { QNAME, wsdlQName } }, "getConcreateWsdl");
        return (String) response.getObjectPart(DESC_AS_STRING);
    }
View Full Code Here

     * @return The list of concreate WSDL QNames.
     * @throws ComponentRegistryException
     */
    public String[] findService(String serviceName)
            throws ComponentRegistryException {
        WSIFMessage response = this.client.sendSOAPMessage(this.wsdlURL,
                new String[][] { { QNAME, serviceName } },
                SEARCH_SERVICE_INSTANCE);
        return findArrayValue(RESULTS, (WSIFMessageElement) response).toArray(
                new String[] {});
    }
View Full Code Here

     * @return The list of abstract WSDL QNames.
     * @throws ComponentRegistryException
     */
    public String[] findServiceDesc(String serviceName)
            throws ComponentRegistryException {
        WSIFMessage response = this.client.sendSOAPMessage(this.wsdlURL,
                new String[][] { { QNAME, serviceName } }, SEARCH_SERVIE);
        return findArrayValue(RESULTS, (WSIFMessageElement) response).toArray(
                new String[] {});
    }
View Full Code Here

     * @return The AWSDL.
     * @throws ComponentRegistryException
     */
    public String getAbstractWsdl(String wsdlQName)
            throws ComponentRegistryException {
        WSIFMessage response = this.client.sendSOAPMessage(this.wsdlURL,
                new String[][] { { QNAME, wsdlQName } }, GET_ABSTRACT_WSDL);
        return (String) response.getObjectPart(DESC_AS_STRING);
    }
View Full Code Here

            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);

        for (int i = 0; i < args.length; i++) {
View Full Code Here

TOP

Related Classes of xsul.wsif.WSIFMessage

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.