Package javax.xml.ws

Examples of javax.xml.ws.WebServiceException


    }
    catch (WebServiceException e) {
      throw e;
    }
    catch (Exception e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here


        bindingId.equals(SOAPBinding.SOAP12HTTP_MTOM_BINDING)) {
      try {
        return new SOAPBindingImpl(bindingId);
      }
      catch (SOAPException e) {
        throw new WebServiceException(e);
      }
    }
    else if (bindingId.equals(HTTPBinding.HTTP_BINDING))
      return new HTTPBindingImpl();
    else
      throw new WebServiceException(L.l("Unknown binding id: {0}", bindingId));
  }
View Full Code Here

        _factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
      else if (SOAPBinding.SOAP12HTTP_BINDING.equals(bindingId) ||
               SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bindingId))
        _factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
      else
        throw new WebServiceException(L.l("Unsupported binding id: {0}",
                                          bindingId));
    }
    catch (SOAPException e) {
      throw new WebServiceException(e);
    }

    if (mode != Service.Mode.MESSAGE)
      throw new WebServiceException(L.l("Instances of Dispatch<SOAPMessage> can only have mode MESSAGE"));
  }
View Full Code Here

    try {
      msg.setProperty(SOAPMessage.WRITE_XML_DECLARATION, "true");
      msg.writeTo(out);
    }
    catch (SOAPException e) {
      throw new WebServiceException(e);
    }
    catch (IOException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

    try {
      InputStream is = new ByteArrayInputStream(response);
      return _factory.createMessage(new MimeHeaders(), is);
    }
    catch (SOAPException e) {
      throw new WebServiceException(e);
    }
    catch (IOException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

        _marshaller.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);

      _unmarshaller = _context.createUnmarshaller();
    }
    catch (JAXBException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

  {
    try {
      _marshaller.marshal(msg, out);
    }
    catch (JAXBException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

  {
    try {
      return _unmarshaller.unmarshal(new ByteArrayInputStream(response));
    }
    catch (JAXBException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

  {
    try {
      new DataHandler(msg).writeTo(out);
    }
    catch (IOException e) {
      throw new WebServiceException(e);
    }
  }
View Full Code Here

             bindingId.equals(SOAPBinding.SOAP12HTTP_MTOM_BINDING))
      _soapNamespace = URI_NS_SOAP_1_2_ENVELOPE;
    else if (bindingId.equals(HTTPBinding.HTTP_BINDING))
      _mode = Service.Mode.MESSAGE;
    else
      throw new WebServiceException(L.l("Unknown binding id: {0}", bindingId));
  }
View Full Code Here

TOP

Related Classes of javax.xml.ws.WebServiceException

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.