Package org.apache.soap

Examples of org.apache.soap.SOAPException


        result.setSampleLabel(getName());
        try {
            result.setURL(this.getUrl());
            org.w3c.dom.Element rdoc = createDocument();
            if (rdoc == null) {
                throw new SOAPException("Could not create document", null);
            }
            // set the response defaults
            result.setDataEncoding(ENCODING);
            result.setContentType("text/xml"); // $NON-NLS-1$
            result.setDataType(SampleResult.TEXT);
View Full Code Here


          }
        } while ((off += len) < data.length);
        out.write(data);
      }
    } catch(IOException e) {
      throw new SOAPException(Constants.FAULT_CODE_SERVER,
                              e.getMessage(), e);
    } finally {
      try {
        out.flush();
      } catch (IOException e) {
        throw new SOAPException(Constants.FAULT_CODE_SERVER,
                                e.getMessage(), e);
      }
    }
  }
View Full Code Here

    try {
      BSFManager mgr = (BSFManager) target;
      mgr.exec (dd.getScriptLanguage (), "service script for '" +
                dd.getID () + "'", 0, 0, scriptStr);
    } catch (BSFException e) {
      throw new SOAPException (Constants.FAULT_CODE_SERVER,
                               "BSF Error: " + e.getMessage (), e);
    }
  }
View Full Code Here

      BSFEngine eng = mgr.loadScriptingEngine (dd.getScriptLanguage ());
      Object result = eng.call (null, methodName, args);
      return new Bean ((result != null) ? result.getClass () : Object.class,
                       result);
    } catch (BSFException e) {
      throw new SOAPException (Constants.FAULT_CODE_SERVER,
                               "BSF Error: " + e.getMessage (), e);
    }
  }
View Full Code Here

                responseReader = new BufferedReader(new StringReader(response));
            }
        } catch (IOException ioe) {
          Trc.exception(ioe);
            // Not sure what the faultCode should be - this may be wrong
            throw new SOAPException("WSIF SOAPJMSConnection ", ioe.toString());
        } catch (MessagingException me) {
          Trc.exception(me);
            // Not sure what the faultCode should be - this may be wrong
            throw new SOAPException("WSIF SOAPJMSConnection ", me.toString());
        }
        Trc.exit();
    }
View Full Code Here

            Element payload = null;

            if (respDoc != null) {
                payload = respDoc.getDocumentElement();
            } else { //probably does not happen
                throw new SOAPException(
                    Constants.FAULT_CODE_CLIENT,
                    "Parsing error, response was:\n" + payloadStr);
            }

            // Unmarshall the response envelope.
View Full Code Here

        result.setSampleLabel(getName());
        try {
            result.setURL(this.getUrl());
            org.w3c.dom.Element rdoc = createDocument();
            if (rdoc == null) {
                throw new SOAPException("Could not create document", null);
            }
            // set the response defaults
            result.setDataEncoding(ENCODING);
            result.setContentType("text/xml"); // $NON-NLS-1$
            result.setDataType(SampleResult.TEXT);
View Full Code Here

    try {
      BSFManager mgr = (BSFManager) target;
      mgr.exec (dd.getScriptLanguage (), "service script for '" +
    dd.getID () + "'", 0, 0, scriptStr);
    } catch (BSFException e) {
      throw new SOAPException (Constants.FAULT_CODE_SERVER,
             "BSF Error: " + e.getMessage (), e);
    }
  }
View Full Code Here

      BSFEngine eng = mgr.loadScriptingEngine (dd.getScriptLanguage ());
      Object result = eng.call (null, methodName, args);
      return new Bean ((result != null) ? result.getClass () : Object.class,
           result);
    } catch (BSFException e) {
      throw new SOAPException (Constants.FAULT_CODE_SERVER,
             "BSF Error: " + e.getMessage (), e);
    }
  }
View Full Code Here

    result.setSampleLabel(getName());
    try {
      result.setURL(this.getUrl());
      org.w3c.dom.Element rdoc = createDocument();
      if (rdoc == null) {
        throw new SOAPException("Could not create document", null);
      }
      Envelope msgEnv = Envelope.unmarshall(rdoc);
      // create a new message
      Message msg = new Message();
      result.sampleStart();
View Full Code Here

TOP

Related Classes of org.apache.soap.SOAPException

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.