Examples of SoapException


Examples of javax.xml.soap.SOAPException

     * Closes this <CODE>SOAPConnection</CODE> object.
     * @throws  SOAPException if there is a SOAP error
     */
    public void close() throws SOAPException {
        if(closed){
            throw new SOAPException(org.apache.axis.utils.JavaUtils.getMessage("connectionClosed00"));
        }
        closed = true;
    }
View Full Code Here

Examples of javax.xml.soap.SOAPException

        if(!(parent instanceof SOAPHeader))
            throw new IllegalArgumentException(JavaUtils.getMessage("illegalArgumentException00"));
        try {
            super.setParentElement((SOAPHeader)parent);
        } catch (Throwable t) {
            throw new SOAPException(t);
        }
    }
View Full Code Here

Examples of javax.xml.soap.SOAPException

        }
        try {
            // cast to force exception if wrong type
            super.setParentElement((SOAPBody)parent);
        } catch (Throwable t) {
            throw new SOAPException(t);
        }
    }
View Full Code Here

Examples of javax.xml.soap.SOAPException

     * @throws  SOAPException  if there is
     *     no data in this <CODE>AttachmentPart</CODE> object
     */
    public DataHandler getDataHandler() throws SOAPException {
        if(datahandler == null) {
            throw new SOAPException(JavaUtils.getMessage("noContent"));
        }
        return datahandler;
    }
View Full Code Here

Examples of javax.xml.soap.SOAPException

    public Object getContent() throws SOAPException {
        if(contentObject != null)
            return contentObject;

        if(datahandler == null) {
            throw new SOAPException(JavaUtils.getMessage("noContent"));
        }

        javax.activation.DataSource ds = datahandler.getDataSource();
        if (ds instanceof ManagedMemoryDataSource) {
            ManagedMemoryDataSource mds = (ManagedMemoryDataSource) ds;
View Full Code Here

Examples of javax.xml.soap.SOAPException

        ByteBuffer bout = new ByteBuffer();
        try {
            datahandler.writeTo(bout);
        } catch (java.io.IOException ex) {
            log.error(JavaUtils.getMessage("javaIOException00"), ex);
            throw new SOAPException(JavaUtils.getMessage("javaIOException01", ex.getMessage()), ex);
        }
        byte bytes[] = bout.getBytes();
        if (bytes != null)
            return bytes.length;
        return -1;
View Full Code Here

Examples of javax.xml.soap.SOAPException

    public javax.xml.soap.SOAPBody addBody() throws SOAPException {
        if (body == null) {
            body = new SOAPBody(this, soapConstants);
            return body;
        } else {
            throw new SOAPException(JavaUtils.getMessage("bodyPresent"));
        }
    }
View Full Code Here

Examples of javax.xml.soap.SOAPException

    public javax.xml.soap.SOAPHeader addHeader() throws SOAPException {
        if (header == null) {
            header = new SOAPHeader(this, soapConstants);
            return header;
        } else {
            throw new SOAPException(JavaUtils.getMessage("headerPresent"));
        }
    }
View Full Code Here

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

Examples of org.apache.soap.SOAPException

          }
        } 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
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.