Package org.apache.muse.ws.addressing.soap

Examples of org.apache.muse.ws.addressing.soap.SoapFault


    try
    {
      return Base64.decode(xml.getTextContent());
    } catch (Exception exception)
    {
      throw new SoapFault(exception);
    }
  }
View Full Code Here


      elements = new Element[]{ xml };
    }

    if (elements.length != parameters.length)
    {
      throw new SoapFault("IncorrectParams");
    }

    SerializerRegistry registry = SerializerRegistry.getInstance();

    for (int i = 0; i < elements.length; ++i)
View Full Code Here

    {
      LOGGER.info(
          exception,
          Messages.QMAN_100029_MALFORMED_RESOURCE_URI_FAILURE,
          resourceURI);     
      throw new SoapFault(exception);
    }
  } 
View Full Code Here

      {
        LOGGER.info(Messages.QMAN_000028_TEST_MODULE_NOT_FOUND);
      }
    }  catch(InstanceNotFoundException exception)
    {
      throw new SoapFault(exception)
    }
  } 
View Full Code Here

        //
       
        if (toURI == null)
        {
            Object[] filler = { WsaConstants.TO_QNAME };
            throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
        }
       
        if (_action == null)
        {
            Object[] filler = { WsaConstants.ACTION_QNAME };
            throw new SoapFault(_MESSAGES.get("HeaderMissing", filler));
        }
       
        //
        // wsa:To is a URI, but we want to access it as an EPR
        //
        _to = new EndpointReference(URI.create(toURI));
       
        //
        // read in optional EPR values that tell us where to send replies
        //
        _faultTo = getEPR(soapHeaders, WsaConstants.FAULT_TO_QNAME);
        _from = getEPR(soapHeaders, WsaConstants.FROM_QNAME);
        _replyTo = getEPR(soapHeaders, WsaConstants.REPLY_TO_QNAME);
       
        if (_messageID == null && (_from != null || _replyTo != null))
            throw new SoapFault(_MESSAGES.get("MessageIDMissing"));
       
        Element[] children = XmlUtils.getAllElements(soapHeaders);
       
        //
        // NOTE: add all elements to the ReferenceProperties, since WS-A
View Full Code Here

       
        //
        // we have to have a Message element, even if it's empty
        //
        if (messageXML == null)
            throw new SoapFault(_MESSAGES.get("NoMessageContent"));
       
        Element[] children = XmlUtils.getAllElements(messageXML);
       
        for (int n = 0; n < children.length; ++n)
            addMessageContent(children[n]);
View Full Code Here

        {
            //
            // the key already exists - not allowed!
            //     
            if (_resources.containsKey(epr))
                throw new SoapFault(_MESSAGES.get("ResourceEPRExists", new Object[]{ epr }));
           
            _resources.put(epr, resource);
        }
       
        //
View Full Code Here

        ResourceDefinition definition = getResourceDefinition(contextPath);
   
        if (definition == null)
        {
            Object[] filler = { contextPath, _definitionsByPath.keySet() };
            throw new SoapFault(_MESSAGES.get("ContextPathNotFound", filler));
        }
       
        Resource resource = definition.newInstance();
        resource.setResourceManager(this);
       
View Full Code Here

            // can't remove things that don't exist
            //
            if (resource == null)
            {
                Object[] filler = { epr };
                throw new SoapFault(_MESSAGES.get("ResourceEPRNotFound", filler));
            }
        }
       
        //
        // tell all listeners that the resource is gone forever
View Full Code Here

            return method.invoke(proxy, parameters);
        }
       
        catch (Exception error)
        {
            throw new SoapFault(error);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.muse.ws.addressing.soap.SoapFault

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.