Package javax.wsdl

Examples of javax.wsdl.BindingOutput


                    else
                        throw new WSIFException("jms:propertyValue found in non-jms binding");
                }

                // try to get soap:body for output message
                BindingOutput boutpt = bop.getBindingOutput();
                if (boutpt != null) {
                    SOAPBody soapOutputBody =
                        (SOAPBody) getExtElem(boutpt,
                            SOAPBody.class,
                            boutpt.getExtensibilityElements());
                    if (soapOutputBody != null) {
                        // NOTE: element ignored
                        //String namespaceURI = soapOutputBody.getNamespaceURI();
                        String use = soapOutputBody.getUse();
                        operation.setOutputUse(use);

                        // NOTE: element ignored
                        //List encodingStyles = soapInputBody.getEncodingStyles();
                        List parts = soapOutputBody.getParts();
                        if (parts != null && parts.size() > 0) {
                            operation.setReturnName((String) parts.get(0));
                        }
                    }
                    soapHeader =
                        (SOAPHeader) getExtElem(boutpt,
                            SOAPHeader.class,
                            boutpt.getExtensibilityElements());
                    if (soapHeader != null) {
                        throw new WSIFException(
                            "not supported output soap:header " + soapHeader);
                    }

                    List outJmsProps =
                        getExtElems(
                            boutpt,
                            JMSProperty.class,
                            boutpt.getExtensibilityElements());
                    if (outJmsProps != null && outJmsProps.size() > 0) {
                        if (st instanceof SOAPJMSConnection)
                            operation.setOutputJmsProperties(outJmsProps);
                        else
                            throw new WSIFException("jms:properties found in non-jms binding");
View Full Code Here


    } catch (WSIFException ex) {
      Trc.ignoredException(ex);
    }

    try {
      BindingOutput bo = fieldBindingOperation.getBindingOutput();
      value = (bo == null) ? null : bo.getName();
      if (value != null && value.length() > 0) {
        jmsDest.setProperty(WSIFConstants.JMS_PROP_OUTPUT_NAME, value);
      }
    } catch (WSIFException ex) {
      Trc.ignoredException(ex);
View Full Code Here

    }

    protected String getOutputMessageName() throws WSIFException {
      Trc.entry(this);
        if (fieldOutputMessageName == null) {
            BindingOutput bindingOutputModel =
                fieldBindingOperationModel.getBindingOutput();
            if (bindingOutputModel != null) {
                fieldOutputMessageName = bindingOutputModel.getName();
            }
        }
        Trc.exit(fieldOutputMessageName);
        return fieldOutputMessageName;
    }
View Full Code Here

   *                                encodingStyle="uri-list"? namespace="uri"?/>*
   *          <soap:header>                               
   *      </output>
   */
  private void parseBindingOutput() throws WSIFException {
    BindingOutput bindingoutput = bindingOperation.getBindingOutput();
    if (bindingoutput != null) {
      List outExtElems = bindingoutput.getExtensibilityElements();
      SOAPBody outSoapBody =
        (SOAPBody) wsifPort.getExtElem(
          bindingoutput,
          javax.wsdl.extensions.soap.SOAPBody.class,
          outExtElems);
View Full Code Here

                str = "bindingInput(UNNAMED";
            else
                str = "bindingInput(" + bi.getName();
        } else if (o instanceof BindingOutput) {
            found = true;
            BindingOutput bo = (BindingOutput) o;
            if (bo == null)
                str = "bindingOutput(NULL)";
            else if (bo.getName() == null)
                str = "bindingOutput(UNNAMED";
            else
                str = "bindingOutput(" + bo.getName();
        } else if (o instanceof Map) {
            Map map = (Map) o;
            HashMap newMap = null;
            Iterator it = map.keySet().iterator();
            while (it.hasNext()) {
View Full Code Here

    }

    protected String getOutputMessageName() throws WSIFException {
        Trc.entry(this);
        if (fieldOutputMessageName == null) {
            BindingOutput bindingOutputModel =
                fieldBindingOperationModel.getBindingOutput();
            if (bindingOutputModel != null) {
                fieldOutputMessageName = bindingOutputModel.getName();
            }
        }
        Trc.exit(fieldOutputMessageName);
        return fieldOutputMessageName;
    }
View Full Code Here

            if (soapHeader != null) {
                throw new WSIFException("not supported input soap:header " + soapHeader);
            }

            // try to get soap:body for output message
            BindingOutput boutpt = bop.getBindingOutput();
            SOAPBody soapOutputBody =
                (SOAPBody) getExtElem(boutpt,
                    SOAPBody.class,
                    boutpt.getExtensibilityElements());
            if (soapOutputBody != null) {
                // NOTE: element ignored
                //String namespaceURI = soapOutputBody.getNamespaceURI();
                String use = soapInputBody.getUse();
                if (!"encoded".equals(use)) {
                    throw new WSIFException("unsupported use " + use + " in " + soapOperation);
                }
                // NOTE: element ignored
                //List encodingStyles = soapInputBody.getEncodingStyles();
                List parts = soapInputBody.getParts();
                if (parts != null && parts.size() > 0) {
                    opInst.setReturnName((String) parts.get(0));
                }
            }
            soapHeader =
                (SOAPHeader) getExtElem(boutpt,
                    SOAPHeader.class,
                    boutpt.getExtensibilityElements());
            if (soapHeader != null) {
                throw new WSIFException("not supported output soap:header " + soapHeader);
            }

            for (Iterator bfaults = bop.getBindingFaults().values().iterator();
View Full Code Here

        }
    }
   
    protected void buildBindingOutput(Definition def, BindingOperation bindingOperation,
                                   BindingMessageInfo bindingMessageInfo) {
        BindingOutput bindingOutput = null;
        if (bindingMessageInfo != null) {
            bindingOutput = def.createBindingOutput();
            bindingOutput.setName(bindingMessageInfo.getMessageInfo().getName().getLocalPart());
            bindingOperation.setBindingOutput(bindingOutput);
            addExtensibilityAttributes(bindingOutput, bindingMessageInfo.getExtensionAttributes());
            addExtensibilityElements(bindingOutput, getWSDL11Extensors(bindingMessageInfo));
        }
    }
View Full Code Here

    private Definition definition;
    private WSDLFactory factory;
   
   
    public void fixBindingOperation(String name,BindingOperation operation){
        BindingOutput out = new BindingOutputImpl();
        SOAPBodyImpl bodyImpl = new SOAPBodyImpl();
        bodyImpl.setUse("literal");
        bodyImpl.setNamespaceURI("http://extreme.indiana.edu/xregistry2/2007_02_21");
        operation.setBindingOutput(out);
    }
View Full Code Here

            output.setName(msgName);
            msg.setUndefined(false);
            operation.setOutput(output);
            definition.addMessage(msg);
   
            BindingOutput bindingOutput = definition.createBindingOutput();
            bindingOutput.setName(msgName);
            bindingOperation.setBindingOutput(bindingOutput);
           
            outputMessage = msg;
        }
       
View Full Code Here

TOP

Related Classes of javax.wsdl.BindingOutput

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.