Package javax.xml.soap

Examples of javax.xml.soap.SOAPException


        {
            userWS = authenticationWS.authenticateToken(ipAddress, token);
        }
        catch (RuntimeException e)
        {
            throw new SOAPException(e.getMessage());
        }
        if (userWS == null)
        {
            throw new RuntimeException("User not found!");
        }

        if (!userWS.isEnabled())
        {
            throw new RuntimeException(
                    "User disabled! Please Contact Admnistrator");
        }
       
        if(!AuthorizationWS.authorize(userWS, type)) {
            throw new SOAPException("User not allowed to retrieve those informations. Contact Administrator");
        }
        return buildResult(userWS, arg0, "TokenAuthQueryResponse");

    }
View Full Code Here


        {
            userWS = authenticationWS.authenticateNormal(username, password);
        }
        catch (RuntimeException e)
        {
            throw new SOAPException(e.getMessage());
        }
        if (userWS == null)
        {
            throw new RuntimeException("User not found!");
        }

        if (!userWS.isEnabled())
        {
            throw new RuntimeException(
                    "User disabled! Please Contact Admnistrator");
        }
       
        if(!AuthorizationWS.authorize(userWS, type)) {
            throw new SOAPException("User not allowed to retrieve those informations. Contact Administrator");
        }
        return buildResult(userWS, arg0, "NormalAuthQueryResponse");
    }
View Full Code Here

      {
         return MockSOAPBody.newInstance(messageBody);
      }
      catch (IOException e)
      {
         throw new SOAPException(e);
      }
   }
View Full Code Here

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

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

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

      */
    public SOAPElement addChildElement(String localName, String prefix) throws SOAPException {
        String namespaceURI = getNamespaceURI(prefix);

        if (namespaceURI == null) {
            throw new SOAPException("Namespace not declared for the give prefix: " + prefix);
        }
        SOAPElementImpl childEle =
                new SOAPElementImpl((ElementImpl) getOwnerDocument().
                        createElementNS(namespaceURI, prefix + ":" + localName));
        childEle.element.setUserData(SAAJ_NODE, childEle, null);
View Full Code Here

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

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

            throw new IllegalArgumentException(Messages.getMessage("nullParent00"));
        try {
            // cast to force exception if wrong type
            super.setParentElement((SOAPEnvelope)parent);
        } catch (Throwable t) {
            throw new SOAPException(t);
        }
    }
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.