Package org.jitterbit.integration.data.structure

Examples of org.jitterbit.integration.data.structure.WebServiceOperationInfo


     *
     * @return the matching <code>WebServiceOperationInfo</code>, or <code>null</code> if no
     *         matching operation could be found
     */
    public static WebServiceOperationInfo findMatchingOpInfo(WebServiceCall wsCall, WebServiceInfo wsInfo) {
        WebServiceOperationInfo current = wsCall.getOperationInfo();
        Set<String> currentValues = extractValuesToCompare(current);
        for (WebServiceOperationInfo op : wsInfo.getOperations(true)) {
            if (currentValues.equals(extractValuesToCompare(op))) {
                return op;
            }
View Full Code Here


     *         <tt>WebServiceCall</tt>.
     * @see #setOperationInfo(WebServiceOperationInfo)
     */
    public WebServiceOperationInfo getOperationInfo() {
        synchronized (getDataLock()) {
            WebServiceOperationInfo opInfo = new WebServiceOperationInfo();
            opInfo.setProperty(WebServiceOperationInfo.WSDL_LOCATOR, getWsdlFile().getLocator());
            opInfo.setProperty(WebServiceOperationInfo.OPERATION_NAME, getProperty(OPERATION));
            opInfo.setProperty(WebServiceOperationInfo.INPUT_NAME, getProperty(OPERATION_INPUT));
            opInfo.setProperty(WebServiceOperationInfo.OUTPUT_NAME, getProperty(OPERATION_OUTPUT));
            opInfo.setProperty(WebServiceOperationInfo.SERVICE_NAME, getProperty(SERVICE));
            opInfo.setProperty(WebServiceOperationInfo.PORT_NAME, getProperty(PORT));
            opInfo.setProperty(WebServiceOperationInfo.BINDING_NAME, getProperty(BINDING));
            opInfo.setProperty(WebServiceOperationInfo.SOAP_VERSION, getProperty(SOAP_VERSION));
            opInfo.setProperty(WebServiceOperationInfo.SOAP_ACTION, getProperty(SOAP_ACTION));
            opInfo.setProperty(WebServiceOperationInfo.SOAP_STYLE, getProperty(SOAP_STYLE));
            opInfo.setProperty(WebServiceOperationInfo.SOAP_BODY_USE, getProperty(SOAP_BODY_USE));
            return opInfo;
        }
    }
View Full Code Here

     *            the <tt>WebServiceOperationInfo</tt> that describes the operation called by this
     *            web service.
     * @see #getOperationInfo()
     */
    public void setOperationInfo(WebServiceOperationInfo opInfo) {
        WebServiceOperationInfo old;
        synchronized (getDataLock()) {
            old = getOperationInfo();
            setProperty(OPERATION, opInfo.getProperty(WebServiceOperationInfo.OPERATION_NAME));
            setProperty(OPERATION_INPUT, opInfo.getProperty(WebServiceOperationInfo.INPUT_NAME));
            setProperty(OPERATION_OUTPUT, opInfo.getProperty(WebServiceOperationInfo.OUTPUT_NAME));
            setProperty(SERVICE, opInfo.getProperty(WebServiceOperationInfo.SERVICE_NAME));
            setProperty(PORT, opInfo.getProperty(WebServiceOperationInfo.PORT_NAME));
            setProperty(BINDING, opInfo.getProperty(WebServiceOperationInfo.BINDING_NAME));
            setProperty(SOAP_VERSION, opInfo.getProperty(WebServiceOperationInfo.SOAP_VERSION));
            setProperty(SOAP_ACTION, opInfo.getProperty(WebServiceOperationInfo.SOAP_ACTION));
            setProperty(SOAP_STYLE, opInfo.getProperty(WebServiceOperationInfo.SOAP_STYLE));
            setProperty(SOAP_BODY_USE, opInfo.getProperty(WebServiceOperationInfo.SOAP_BODY_USE));
            requestStructure.setOpInfo(opInfo);
            responseStructure.setOpInfo(opInfo);
        }
        if (!old.equals(opInfo)) {
            firePropertyChange(OPERATION_INFO, old, opInfo);
        }
    }
View Full Code Here

    }

    private void restoreStructures(Persistor p) {
        requestStructure = new WebServiceRequestStructure(getID());
        requestStructure.restoreFrom(p.getFirstChild("Request"));
        WebServiceOperationInfo opInfo = getOperationInfo();
        requestStructure.setOpInfo(opInfo);
        responseStructure = new WebServiceResponseStructure(getID());
        responseStructure.restoreFrom(p.getFirstChild("Response"));
        responseStructure.setOpInfo(opInfo);
    }
View Full Code Here

    private ReplacePolicy getReplacePolicy(WebServiceCall wsCall) {
        boolean replaceUrl = true;
        boolean replaceSoapAction = true;
        if (oldWsInfo != null) {
            replaceUrl = wsCall.getUrl().equals(oldWsInfo.getWebServiceURL());
            WebServiceOperationInfo oldOpInfo = OpInfoFinder.findMatchingOpInfo(wsCall, oldWsInfo);
            if (oldOpInfo != null) {
                replaceSoapAction = wsCall.getProperty(WebServiceCall.SOAP_ACTION, "").equals(oldOpInfo.getProperty(
                                WebServiceOperationInfo.SOAP_ACTION));
            }
        }
        return new ReplacePolicy(replaceUrl, replaceSoapAction);
    }
View Full Code Here

        private List<WebServiceOperationInfo> parseOperations() {
            List<WebServiceOperationInfo> ops = new ArrayList<WebServiceOperationInfo>();
            for (Object o : binding.getBindingOperations()) {
                BindingOperationParser opParser = createOperationParser((BindingOperation) o);
                if (opParser != null) {
                    WebServiceOperationInfo opInfo = opParser.parse();
                    if (opInfo != null) {
                        setAdditionalProperties(opInfo);
                        ops.add(opInfo);
                    }
                }
View Full Code Here

            this.operation = op;
            this.operationIdentifiers = opIdentifiers;
        }

        public WebServiceOperationInfo parse() {
            opInfo = new WebServiceOperationInfo();
            opInfo.setProperty(WebServiceOperationInfo.OPERATION_NAME, operation.getName());
            if (parseSoapOperation()) {
                parseInput();
                parseOutput();
                parseDocumentation();
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.structure.WebServiceOperationInfo

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.