Package javax.xml.soap

Examples of javax.xml.soap.SOAPException


         value = soap_text.toString(  );
      }

      if ( value == null )
      {
         throw new SOAPException( MSG.getMessage( Keys.NULL_VALUE) );
      }

      return ( value );
   }
View Full Code Here


            if (definitionName.equals(TEST_PROCESS_NAME)) {
                return Basic.getChildTextContent(child, "DefinitionKey");
            }
        }
       
        throw new SOAPException("Process '" + TEST_PROCESS_NAME
                + "' not found");
    }
View Full Code Here

       
        URL endpoint;
        try {
            endpoint = new URL(WFXML_SERVLET);
        } catch (MalformedURLException e) {
           throw new SOAPException(e.getMessage(), e);
        }
       
        return connection.call(request, endpoint);
    }
View Full Code Here

        for (Iterator pdi = contextData.getChildElements(); pdi.hasNext();) {
            SOAPElement current = (SOAPElement) pdi.next();
            String pdname = current.getLocalName();
            Object type = info.get(pdname);
            if (type == null) {
                throw new SOAPException("process does not contain a variable "
                                + "with name " + pdname);
            }
            String pdvalue = XMLUtil.getFirstLevelTextContent(current);
           
            Object value;
View Full Code Here

        for (Iterator pdi = contextData.getChildElements(); pdi.hasNext();) {
            SOAPElement current = (SOAPElement) pdi.next();
            String pdname = current.getLocalName();
            Object type = info.get(pdname);
            if (type == null) {
                throw new SOAPException("process does not contain a variable "
                        + "with name " + pdname);
            }
            String pdvalue = XMLUtil.getFirstLevelTextContent(current);

            Object value;
View Full Code Here

                    return bodyElement;
                }
            }
        }   

        throw new SOAPException("Missing body.");
    }
View Full Code Here

                }
            }
        }   

        if (headerElement == null) {
            throw new SOAPException("ASAP request header not found.");
        }
       
        return getChildsTextContent(headerElement, key);   
    }
View Full Code Here

            //the writeTo method forces the elements to be built!!!
            ((SOAPEnvelopeImpl)soapPart.getEnvelope()).getOMEnvelope().serialize(out, format);
            saveChanges();
        } catch (Exception e) {
            throw new SOAPException(e);
        }
    }
View Full Code Here

     * @throws javax.xml.soap.SOAPException if there is a SOAP error, or this SOAPConnection is
     *                                      already closed
     */
    public SOAPMessage call(SOAPMessage request, Object endpoint) throws SOAPException {
        if (closed) {
            throw new SOAPException("SOAPConnection closed");
        }

        // initialize URL
        URL url;
        try {
            url = (endpoint instanceof URL) ? (URL)endpoint : new URL(endpoint.toString());
        } catch (MalformedURLException e) {
            throw new SOAPException(e.getMessage());
        }

        // initialize and set Options
        Options options = new Options();
        options.setTo(new EndpointReference(url.toString()));

        // initialize the Sender
        OperationClient opClient;
        try {
            serviceClient = new ServiceClient();  
            disableMustUnderstandProcessing(serviceClient.getAxisConfiguration());           
            opClient = serviceClient.createClient(ServiceClient.ANON_OUT_IN_OP);
        } catch (AxisFault e) {
            throw new SOAPException(e);
        }

        options.setProperty(Constants.Configuration.CHARACTER_SET_ENCODING,
                            request.getProperty(SOAPMessage.CHARACTER_SET_ENCODING));

View Full Code Here

    public void close() throws SOAPException {
        if (serviceClient != null) {
            try {
                serviceClient.cleanup();
            } catch (AxisFault axisFault) {
                throw new SOAPException(axisFault.getMessage());
            }
        }
        if (closed) {
            throw new SOAPException("SOAPConnection Closed");
        }
        closed = true;
    }
View Full Code Here

TOP

Related Classes of javax.xml.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.