Examples of QNameEditor


Examples of org.apache.ws.util.spring.QNameEditor

      ConfigurableListableBeanFactory beanFactory =
         new XmlBeanFactory( new ClassPathResource( jndiConfigLocation ) );
      beanFactory.registerCustomEditor( Class.class,
                                        new ClassEditor(  ) );
      beanFactory.registerCustomEditor( QName.class,
                                        new QNameEditor(  ) );
      return beanFactory;
   }
View Full Code Here

Examples of org.springframework.xml.namespace.QNameEditor

            if (tokens.length < FAULT_STRING_INDEX) {
                throw new IllegalArgumentException("Invalid amount of comma delimited values in [" + text +
                        "]: SoapFaultDefinitionEditor requires at least 1");
            }
            SoapFaultDefinition definition = new SoapFaultDefinition();
            QNameEditor qNameEditor = new QNameEditor();
            qNameEditor.setAsText(tokens[FAULT_CODE_INDEX].trim());
            definition.setFaultCode((QName) qNameEditor.getValue());
            if (tokens.length > 1) {
                definition.setFaultStringOrReason(tokens[FAULT_STRING_INDEX].trim());
                if (tokens.length > 2) {
                    LocaleEditor localeEditor = new LocaleEditor();
                    localeEditor.setAsText(tokens[FAULT_STRING_LOCALE_INDEX].trim());
View Full Code Here

Examples of org.springframework.xml.namespace.QNameEditor

     * @return
     */
    public static SoapFault from(org.springframework.ws.soap.SoapFault fault) {
        SoapFault soapFault = new SoapFault();

        QNameEditor qNameEditor = new QNameEditor();
        qNameEditor.setValue(fault.getFaultCode());

        soapFault.setFaultCode(qNameEditor.getAsText());
        soapFault.setFaultActor(fault.getFaultActorOrRole());
        soapFault.setFaultString(fault.getFaultStringOrReason());

        if (fault.getFaultDetail() != null) {
            Iterator<SoapFaultDetailElement> details = fault.getFaultDetail().getDetailEntries();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.