Examples of SOAPBuilder


Examples of com.centeractive.ws.builder.SoapBuilder

      temp.delete();
    } catch (Exception e) {
      System.out.println("Temp file could not be deleted");
    }
    List<QName> bindings = parser.getBindings();
    SoapBuilder builder;
    List<SoapOperation> operations;
    SoapOperation operation;
    String bindingName;
    String operationName;
    byte[] xmlRequest;
    List<String> endpoints;
    for (QName i : bindings) {
      bindingName = i.getLocalPart();
      builder = parser.binding().localPart(bindingName).builder();
      operations = builder.getOperations();
      for (SoapOperation j : operations) {
        operationName = j.getOperationName();
        operation = builder.operation().name(operationName).find();
        xmlRequest = createRequest(requestResponse, builder, operation);
        endpoints = builder.getServiceUrls();
        wsdltab.addEntry(new WSDLEntry(bindingName, xmlRequest, operationName, endpoints, requestResponse));
      }
    }
  }
View Full Code Here

Examples of de.danet.an.util.soap.SOAPBuilder

    }

    private void appendNodes
    (SOAPEnvelope env, SOAPElement root, SAXEventBuffer data)
    throws SAXException {
        HandlerStack hs = new HandlerStack (new SOAPBuilder (root));
        hs.setContextData ("envelope", env);
        data.emit(hs.contentHandler());
    }
View Full Code Here

Examples of de.danet.an.util.soap.SOAPBuilder

    protected static void importSAXAsChild
        (SOAPMessage message, SOAPElement parent, SAXEventBuffer sax)
        throws SOAPException {
        SOAPEnvelope env = message.getSOAPPart().getEnvelope();

        HandlerStack hs = new HandlerStack (new SOAPBuilder(parent));
        hs.setContextData ("envelope", env);
        try {
            sax.emit(hs.contentHandler());
        } catch (SAXException e) {
            throw (IllegalArgumentException)
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

            // Determine the message builder to use
            Builder builder;
            if (contentType == null) {
                log.debug("No content type specified. Using SOAP builder.");
                builder = new SOAPBuilder();
            } else {
                int index = contentType.indexOf(';');
                String type = index > 0 ? contentType.substring(0, index) : contentType;
                builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
                if (builder == null) {
                    if (log.isDebugEnabled()) {
                        log.debug("No message builder found for type '" + type +
                                "'. Falling back to SOAP.");
                    }
                    builder = new SOAPBuilder();
                }
            }

            // set the message payload to the message context
            InputStream in;
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

            // Determine the message builder to use
            Builder builder;
            if (contentType == null) {
                log.debug("No content type specified. Using SOAP builder.");
                builder = new SOAPBuilder();
            } else {
                int index = contentType.indexOf(';');
                String type = index > 0 ? contentType.substring(0, index) : contentType;
                builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
                if (builder == null) {
                    if (log.isDebugEnabled()) {
                        log.debug("No message builder found for type '" + type +
                                "'. Falling back to SOAP.");
                    }
                    builder = new SOAPBuilder();
                }
            }

            // set the message payload to the message context
            InputStream in;
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

                   
            /*
            * Add Axis2 default builders if they are not overidden by the config
            */
            axisConfig.addMessageBuilder("multipart/related", new MIMEBuilder());
            axisConfig.addMessageBuilder("application/soap+xml", new SOAPBuilder());
            axisConfig.addMessageBuilder("text/xml", new SOAPBuilder());
            axisConfig.addMessageBuilder("application/xop+xml", new MTOMBuilder());
            axisConfig.addMessageBuilder("application/xml", new ApplicationXMLBuilder());
            axisConfig.addMessageBuilder("application/x-www-form-urlencoded",
                                         new XFormURLEncodedBuilder());
            // process MessageBuilders
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

            // Determine the message builder to use
            Builder builder;
            if (contentType == null) {
                log.debug("No content type specified. Using SOAP builder.");
                builder = new SOAPBuilder();
            } else {
                int index = contentType.indexOf(';');
                String type = index > 0 ? contentType.substring(0, index) : contentType;
                builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
                if (builder == null) {
                    if (log.isDebugEnabled()) {
                        log.debug("No message builder found for type '" + type +
                                "'. Falling back to SOAP.");
                    }
                    builder = new SOAPBuilder();
                }
            }

            // set the message payload to the message context
            InputStream in;
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

            // Determine the message builder to use
            Builder builder;
            if (contentType == null) {
                log.debug("No content type specified. Using SOAP builder.");
                builder = new SOAPBuilder();
            } else {
                int index = contentType.indexOf(';');
                String type = index > 0 ? contentType.substring(0, index) : contentType;
                builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
                if (builder == null) {
                    if (log.isDebugEnabled()) {
                        log.debug("No message builder found for type '" + type +
                                "'. Falling back to SOAP.");
                    }
                    builder = new SOAPBuilder();
                }
            }

            // set the message payload to the message context
            InputStream in;
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

                   
            /*
            * Add Axis2 default builders if they are not overidden by the config
            */
            axisConfig.addMessageBuilder("multipart/related", new MIMEBuilder());
            axisConfig.addMessageBuilder("application/soap+xml", new SOAPBuilder());
            axisConfig.addMessageBuilder("text/xml", new SOAPBuilder());
            axisConfig.addMessageBuilder("application/xop+xml", new MTOMBuilder());
            axisConfig.addMessageBuilder("application/xml", new ApplicationXMLBuilder());
            axisConfig.addMessageBuilder("application/x-www-form-urlencoded",
                                         new XFormURLEncodedBuilder());
            // process MessageBuilders
View Full Code Here

Examples of org.apache.axis2.builder.SOAPBuilder

        Builder builder = BuilderUtil.getBuilderFromSelector(type, msgContext);
        if (builder == null) {
            if (log.isDebugEnabled()) {
                log.debug("No message builder found for type '" + type + "'. Falling back to SOAP.");
            }
            builder = new SOAPBuilder();
        }
       
        OMElement documentElement;
        if (message instanceof BytesMessage) {
            // Extract the charset encoding from the content type and
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.