Package org.jboss.ws.extensions.addressing.soap

Examples of org.jboss.ws.extensions.addressing.soap.SOAPAddressingPropertiesImpl


  public void testReplyToWithoutAction() throws Exception
  {
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage(null, new ByteArrayInputStream(ERRORNOUS_XML.getBytes()));

    SOAPAddressingPropertiesImpl props = new SOAPAddressingPropertiesImpl();
    try
    {
      props.readHeaders(message);
      fail("ERRORNOUS_XML should cause a parsing exception due to missing wsa:Action value");
    }
    catch (AddressingException e)
    {
      // expected an exception
View Full Code Here


  public void testReplyToWithoutAction() throws Exception
  {
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage(null, new ByteArrayInputStream(ERRORNOUS_XML.getBytes()));

    SOAPAddressingPropertiesImpl props = new SOAPAddressingPropertiesImpl();
    try
    {
      props.readHeaders(message);
      fail("ERRORNOUS_XML should cause a parsing exception due to missing wsa:Action value");
    }
    catch (AddressingException e)
    {
      // expected an exception
View Full Code Here

   {
      WSAddressingClientHandler wsHandler = new WSAddressingClientHandler();
      SOAPMessageContextJAXWS context = new SOAPMessageContextJAXWS();
      context.put(MessageContext.MESSAGE_OUTBOUND_PROPERTY, new Boolean(true));
      context.put(BindingProvider.SOAPACTION_URI_PROPERTY, "inputAction");
      context.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES, new SOAPAddressingPropertiesImpl());
      context.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, new SOAPAddressingPropertiesImpl());
      MessageFactory factory = MessageFactory.newInstance();
      SOAPMessage soapMsg = factory.createMessage();
      context.setMessage(soapMsg);
      wsHandler.handleMessage(context);
      SOAPAddressingProperties addrProps = (SOAPAddressingProperties)context.get(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND);
View Full Code Here

  public void testReplyToWithoutAction() throws Exception
  {
    MessageFactory mf = MessageFactory.newInstance();
    SOAPMessage message = mf.createMessage(null, new ByteArrayInputStream(ERRORNOUS_XML.getBytes()));
    message.setProperty("isRequired", true);
    SOAPAddressingPropertiesImpl props = new SOAPAddressingPropertiesImpl();
    try
    {
      props.readHeaders(message);
      fail("ERRORNOUS_XML should cause a parsing exception due to missing wsa:Action value");
    }
    catch (AddressingException e)
    {
      // expected an exception
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.addressing.soap.SOAPAddressingPropertiesImpl

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.