Examples of SOAPBodyImpl


Examples of com.ibm.wsdl.extensions.soap.SOAPBodyImpl

            for (int i = 0; i < extensibilityElements.size(); i++)
            {
                Object ele = extensibilityElements.get(i);
                if (ele instanceof SOAPBodyImpl)
                {
                    SOAPBodyImpl soapBody = (SOAPBodyImpl) ele;
                    soapBody.setParts(bodyParts);
                }
            }
        }

        return msg;
View Full Code Here

Examples of com.ibm.wsdl.extensions.soap.SOAPBodyImpl

        // soapOper.setStyle("rpc");

        bindingOper.addExtensibilityElement(soapOper);

        // Input SOAP Body
        SOAPBody soapBodyIn = new SOAPBodyImpl();
        // for now, if its document, it literal use.
        if (mode == MODE_RPC) {
            soapBodyIn.setUse("encoded");
            soapBodyIn.setEncodingStyles(encodingList);
        } else {
            soapBodyIn.setUse("literal");
        }
        if (targetService == null)
            soapBodyIn.setNamespaceURI(intfNS);
        else
            soapBodyIn.setNamespaceURI(targetService);
        QName operQName = desc.getElementQName();
        if (operQName != null &&
            !operQName.getNamespaceURI().equals("")) {
            soapBodyIn.setNamespaceURI(operQName.getNamespaceURI());
        }
        soapBodyIn.setEncodingStyles(encodingList);
        bindingInput.addExtensibilityElement(soapBodyIn);

        // Output SOAP Body
        SOAPBody soapBodyOut = new SOAPBodyImpl();
        // for now, if its document, it literal use.
        if (mode == MODE_RPC) {
            soapBodyOut.setUse("encoded");
            soapBodyOut.setEncodingStyles(encodingList);
        } else {
            soapBodyOut.setUse("literal");
        }
        if (targetService == null)
            soapBodyOut.setNamespaceURI(intfNS);
        else
            soapBodyOut.setNamespaceURI(targetService);
        QName retQName = desc.getReturnQName();
        if (retQName != null &&
            !retQName.getNamespaceURI().equals("")) {
            soapBodyOut.setNamespaceURI(retQName.getNamespaceURI());
        }
        bindingOutput.addExtensibilityElement(soapBodyOut);

        bindingOper.setBindingInput(bindingInput);
        bindingOper.setBindingOutput(bindingOutput);
View Full Code Here

Examples of org.apache.wsdl.extensions.impl.SOAPBodyImpl

            bindingoperation.addExtensibilityElement(soapOpimpl);
            if (inMessage != null) {
                WSDLBindingMessageReference bindingInMessage = wsdlComponentFactory.createWSDLBindingMessageReference();
                bindingInMessage.setDirection(org.apache.wsdl.WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
                bindingoperation.setInput(bindingInMessage);
                SOAPBodyImpl requestSoapbody = new SOAPBodyImpl();
                requestSoapbody.setUse(use);
                //todo need to fix this
                requestSoapbody.setNamespaceURI(namespeceURI);
                bindingInMessage.addExtensibilityElement(requestSoapbody);
            }

            MessageReference outMessage = wsdlOperation.getOutputMessage();
            if (outMessage != null) {
                WSDLBindingMessageReference bindingOutMessage = wsdlComponentFactory.createWSDLBindingMessageReference();

                bindingOutMessage.setDirection(org.apache.wsdl.WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
                bindingoperation.setOutput(bindingOutMessage);
                SOAPBodyImpl resSoapbody = new SOAPBodyImpl();
                resSoapbody.setUse(use);
                resSoapbody.setNamespaceURI(namespeceURI);
                bindingOutMessage.addExtensibilityElement(resSoapbody);
            }
        }
        return binding;
    }
View Full Code Here

Examples of org.apache.wsdl.extensions.impl.SOAPBodyImpl

            bindingoperation.addExtensibilityElement(soapOpimpl);
            if (inMessage != null) {
                WSDLBindingMessageReference bindingInMessage = wsdlComponentFactory.createWSDLBindingMessageReference();
                bindingInMessage.setDirection(org.apache.wsdl.WSDLConstants.WSDL_MESSAGE_DIRECTION_IN);
                bindingoperation.setInput(bindingInMessage);
                SOAPBodyImpl requestSoapbody = new SOAPBodyImpl();
                requestSoapbody.setUse(use);
                //todo need to fix this
                requestSoapbody.setNamespaceURI(namespaceURI);
                bindingInMessage.addExtensibilityElement(requestSoapbody);
            }

            MessageReference outMessage = wsdlOperation.getOutputMessage();
            if (outMessage != null) {
                WSDLBindingMessageReference bindingOutMessage = wsdlComponentFactory.createWSDLBindingMessageReference();

                bindingOutMessage.setDirection(org.apache.wsdl.WSDLConstants.WSDL_MESSAGE_DIRECTION_OUT);
                bindingoperation.setOutput(bindingOutMessage);
                SOAPBodyImpl resSoapbody = new SOAPBodyImpl();
                resSoapbody.setUse(use);
                resSoapbody.setNamespaceURI(namespaceURI);
                bindingOutMessage.addExtensibilityElement(resSoapbody);
            }
        }
        return binding;
    }
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

         // Report a MustUnderstand fault
         if (opMetaData == null)
         {
            String faultString;

            SOAPBodyImpl soapBody = (SOAPBodyImpl)soapMessage.getSOAPBody();
            SOAPBodyElement soapBodyElement = soapBody.getBodyElement();
            if (soapBodyElement != null)
            {
               Name soapName = soapBodyElement.getElementName();
               faultString = "Endpoint " + epMetaData.getPortName() + " does not contain operation meta data for: " + soapName;
            }
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

   {
      Source source = null;
      if (message instanceof SOAPMessage)
      {
         SOAPMessage soapMessage = (SOAPMessage)message;
         SOAPBodyImpl soapBody = getSOAPBody(soapMessage);
         SOAPElement bodyElement = getBodyElement(soapBody);

         if (style == Style.RPC)
         {
            source = new DOMSource(bodyElement);
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

   public void setPayload(Source source)
   {
      if (message instanceof SOAPMessage)
      {
         SOAPMessage soapMessage = (SOAPMessage)message;
         SOAPBodyImpl soapBody = getSOAPBody(soapMessage);
         SOAPElement bodyElement = getBodyElement(soapBody);
         try
         {
            if (style == Style.RPC)
            {
               try
               {
                  soapBody.removeContents();
                  EnvelopeBuilder envBuilder = (EnvelopeBuilder)ServiceLoader.loadService(EnvelopeBuilder.class.getName(), EnvelopeBuilderDOM.class.getName());
                  envBuilder.setStyle(style);
                  Element domBodyElement = DOMUtils.sourceToElement(source);
                  envBuilder.buildBodyElementRpc(soapBody, domBodyElement);
               }
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

   {
      Object payload = null;
      if (message instanceof SOAPMessage)
      {
         SOAPMessage soapMessage = (SOAPMessage)message;
         SOAPBodyImpl soapBody = getSOAPBody(soapMessage);

         SOAPContentElement bodyElement = (SOAPContentElement)getBodyElement(soapBody);
         if (bodyElement != null)
         {
            payload = bodyElement.getObjectValue();
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

   public void setPayload(Object payload, JAXBContext jaxbContext)
   {
      if (message instanceof SOAPMessage)
      {
         SOAPMessage soapMessage = (SOAPMessage)message;
         SOAPBodyImpl soapBody = getSOAPBody(soapMessage);

         SOAPContentElement bodyElement = (SOAPContentElement)getBodyElement(soapBody);
         if (bodyElement != null)
         {
            bodyElement.setObjectValue(payload);
View Full Code Here

Examples of org.jboss.ws.core.soap.SOAPBodyImpl

      return bodyElement;
   }

   private SOAPBodyImpl getSOAPBody(SOAPMessage soapMessage)
   {
      SOAPBodyImpl soapBody = null;
      try
      {
         soapBody = (SOAPBodyImpl)soapMessage.getSOAPBody();
      }
      catch (SOAPException ex)
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.