Package javax.xml.soap

Examples of javax.xml.soap.SOAPException


    }

    static Object find(String factoryPropertyName) throws SOAPException {
        String factoryClassName = getFactoryClass(factoryPropertyName);
        if (factoryClassName == null) {
            throw new SOAPException("Provider for " + factoryPropertyName + " cannot be found", null);
        } else {
            return newInstance(factoryPropertyName, factoryClassName);
        }
    }
View Full Code Here


    private static Object newInstance(String providerId, String factoryClassName) throws SOAPException {
        try {
            Class<?> factory = loadClass(providerId, factoryClassName);
            return factory.newInstance();
        } catch (ClassNotFoundException e) {
            throw new SOAPException(e);
        } catch (Exception e) {
            throw new SOAPException("Provider " + factoryClassName + " could not be instantiated: " + e.getMessage(), e);
        }
    }
View Full Code Here

        XMLDescriptor descriptor = resultDescriptors.get(op.getName());
        SOAPResponse response = null;
        try {
            response = (SOAPResponse) descriptor.getJavaClass().newInstance();
        } catch (InstantiationException ie) {
            throw new SOAPException(ie);
        } catch (IllegalAccessException iae) {
            throw new SOAPException(iae);
        }
        response.setResult(result);

        SOAPAttachmentHandler attachmentHandler = new SOAPAttachmentHandler();
        XMLMarshaller marshaller = dbwsAdapter.getXMLContext().createMarshaller();
View Full Code Here

            value = soapText.toString();
        }

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

        return value;
    }
View Full Code Here

         value = soap_text.toString(  );
      }

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

      return ( value );
   }
View Full Code Here

        } else if (pvalue instanceof Byte) {
            eleName = InternalConstants.BYTE_PROPERTY;
        // System.out.println ("Message util setting Byte prop ... " +
        // pvalue );
        } else {
            throw new SOAPException("Invalid property value." + pvalue);
        }

        // SOAPElement propEle = jmsPropertyRoot.addChildElement(eleName);
        SOAPElement propEle =
                MessageUtil.addJMSChildElement(jmsPropertyRoot, eleName);
View Full Code Here

        SOAPHeaderElement mh = getMessageHeaderElement(soapm);

        SOAPElement serviceElement = getJMSChildElement(mh, Constants.SERVICE);

        if (serviceElement == null) {
            throw new SOAPException("Message does not contain a Service SOAP Header Element.");
        }

        Name n = createJMSName(localName);

        String value = serviceElement.getAttributeValue(n);
View Full Code Here

        if (str != null) {
           
            try {
                timeout = Integer.parseInt(str);
            } catch (Exception e) {
                throw new SOAPException (e);
            }
        }
       
        return timeout;
    }
View Full Code Here

        if (Constants.TOPIC_DOMAIN.equals(domain)) {
            isTopic = true;
        } else if (Constants.QUEUE_DOMAIN.equals(domain)) {
            isTopic = false;
        } else {
            throw new SOAPException("SOAP message does not contain domain attribute.");
        }

        return isTopic;

    }
View Full Code Here

    }

    public void setParentElement(SOAPElement parent) throws SOAPException {
        if (parent == null) {
            log.severe("SAAJ0126.impl.cannot.locate.ns");
            throw new SOAPException("Cannot pass NULL to setParentElement");
        }
        ((ElementImpl) parent).addNode(this);
    }
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.