Examples of SOAPContext


Examples of com.arjuna.mw.wsas.context.soap.SOAPContext

      ut.begin();

      System.out.println("Started: "+ut+"\n");

      DeploymentContext manager = DeploymentContextFactory.deploymentContext();
      SOAPContext theContext = (SOAPContext) manager.context();

      System.out.println(theContext);

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder = factory.newDocumentBuilder();
View Full Code Here

Examples of com.arjuna.mw.wsas.context.soap.SOAPContext

      ua.begin();

      System.out.println("Started: "+ua.identifier()+"\n");

      DeploymentContext manager = DeploymentContextFactory.deploymentContext();
      SOAPContext theContext = (SOAPContext) manager.context();

      System.out.println(theContext);

        DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
        DocumentBuilder builder = factory.newDocumentBuilder();
View Full Code Here

Examples of com.centeractive.ws.SoapContext

    }
    return temp;
  }

  private byte[] createRequest(IHttpRequestResponse requestResponse, SoapBuilder builder, SoapOperation operation) {
    SoapContext context = SoapContext.builder()
        .alwaysBuildHeaders(true).exampleContent(true).typeComments(true).buildOptional(true).build();

    String message = builder.buildInputMessage(operation, context);
    String endpointURL = getEndPoint(builder.getServiceUrls().get(0), requestResponse);
    BindingOperation
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

            }

            BufferedReader br = null;
            if (spconn.receive() != null) {
                br = spconn.receive();
                SOAPContext sc = spconn.getResponseSOAPContext();
                // Set details from the actual response
                // Needs to be done before response can be stored
                final String contentType = sc.getContentType();
                result.setContentType(contentType);
                result.setEncodingAndType(contentType);
                int length=0;
                if (getReadResponse()) {
                    StringWriter sw = new StringWriter();
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

   *
   * @see #marshall(java.io.Writer, org.apache.soap.util.xml.XMLJavaMappingRegistry, org.apache.soap.rpc.SOAPContext)
   */
  public void marshall(Writer sink, XMLJavaMappingRegistry xjmr)
    throws IllegalArgumentException, IOException {
    marshall(sink, xjmr, new SOAPContext());
  }
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

   *
   * @see #unmarshall(org.w3c.dom.Node, org.apache.soap.rpc.SOAPContext)
   */
  public static Envelope unmarshall(Node src)
    throws IllegalArgumentException {
      return unmarshall(src, new SOAPContext());
  }
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

    StringWriter sw = new StringWriter();

    try
    {
      sw.write("{");
      marshall(sw, new SOAPContext());
      sw.write("}");
    }
    catch (Exception e)
    {
    }
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

    /* forward the content to the HTTP listener as an HTTP POST */
    Hashtable headers = new Hashtable ();
    headers.put (Constants.HEADER_SOAP_ACTION, actionURI);
    TransportMessage response;
    // This is the reponse SOAPContext. Sending it as a reply not supported yet.
    SOAPContext ctx;
    try
    {
        // Note: no support for multipart MIME request yet here...
        TransportMessage tmsg = new TransportMessage(new String (ba),
                                                     new SOAPContext(),
                                                     headers);
        tmsg.save();

        response = HTTPUtils.post (httpURL, tmsg,
                                   30000, null, 0);
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

            javax.jms.TextMessage m = (javax.jms.TextMessage) msg;
            String payloadStr = m.getText();

            // Get the response context.
            SOAPContext respCtx = new SOAPContext();
            respCtx.setRootPart(payloadStr, "text/xml");

            // Parse the incoming response stream.
            DocumentBuilder xdb = XMLParserUtils.getXMLDocBuilder();
            Document respDoc =
                xdb.parse(new InputSource(new StringReader(payloadStr)));
View Full Code Here

Examples of org.apache.soap.rpc.SOAPContext

                if (body != null) {
                    if (verbose)
                        System.out.println("Message contained '" + body + "'");

                    TransportMessage tmsg =
                        new TransportMessage(body, new SOAPContext(), new Hashtable());
                    setOutGoingHeaders(msg, tmsg);
                    tmsg.save();

                    TransportMessage response = HTTPUtils.post(getServiceURL(msg), tmsg, 30000, null, 0);
                    payload = IOUtils.getStringFromReader(response.getEnvelopeReader());
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.