Package nexj.core.rpc.soap

Examples of nexj.core.rpc.soap.SOAPFault


               if (!bEnvelopeOpen)
               {
                  writer.write(SOAP_WRAP_PREFIX);
               }

               marshaller.serialize(new SOAPFault(t), writer);

               writer.write(SOAP_WRAP_SUFFIX);
            }
         }
         catch (RPCException e)
View Full Code Here


                     new ValidationException("err.validation.requiredAttribute",
                                             new Object[]{"firstName", "Contact"}));

      m_exception = e;

      m_soapFault = new SOAPFault(m_exception);

      m_marshaller = new XMLMarshaller(new InvocationContext(Repository.getMetadata()),
                                       Repository.getMetadata());
      m_unmarshaller = new XMLUnmarshaller(new InvocationContext(Repository.getMetadata()),
                                           Repository.getMetadata());
View Full Code Here

   {
      m_marshaller.serialize(m_soapFault, m_writer);
      XMLUtil.parse(new StringReader(m_writer.toString()), m_xsdMap); // validate to XSD

      StringReader reader = new StringReader(m_writer.toString());
      SOAPFault fault = (SOAPFault)m_unmarshaller.deserialize(reader);

      assertEquals("http://schemas.xmlsoap.org/soap/envelope/", fault.getURI());
      assertEquals("Server.nexj.core.runtime.ValidationException", fault.getCode());
      assertEquals("err.validation.requiredAttributes(\"Contact\")", fault.getMessage());
      assertEquals("err.validation.requiredAttributes",
                   ((ValidationException)fault.getException()).getErrorCode());
   }
View Full Code Here

TOP

Related Classes of nexj.core.rpc.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.