Examples of ExceptionMapping


Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

               String exceptionType = getJavaTypeAsString(null, xmlType, xt.getNamespace(), false, true);

               if (registeredExceptions.contains(exceptionType) == false)
               {
                  registeredExceptions.add(exceptionType);
                  ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
                  exceptionMapping.setExceptionType(exceptionType);
                  exceptionMapping.setWsdlMessage(fault.getName());
                  jwm.addExceptionMappings(exceptionMapping);
               }
            }

            WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, op);
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

            if (mappedExceptions.contains(javaTypeName))
               continue;

            mappedExceptions.add(javaTypeName);

            ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);

            mapping.setExceptionType(javaTypeName);
            QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());
            mapping.setWsdlMessage(name);

            // Variable mappings generated from SchemaTypesCreater have their order preserved
            for (VariableMapping variableMapping : typeMapping.getVariableMappings())
               mapping.addConstructorParameter(variableMapping.getXmlElementName());

            javaWsdlMapping.addExceptionMappings(mapping);
         }
      }
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

               String exceptionType = getJavaTypeAsString(null, xmlType, false, true);

               if (registeredExceptions.contains(exceptionType) == false)
               {
                  registeredExceptions.add(exceptionType);
                  ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
                  exceptionMapping.setExceptionType(exceptionType);
                  exceptionMapping.setWsdlMessage(fault.getName());
                  jwm.addExceptionMappings(exceptionMapping);
               }
            }

            WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, op);
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

      HashMap actualMappings = new HashMap(len1);

      for (int i = 0; i < len1; i++)
      {
         ExceptionMapping current = em2[i];
         String name = current.getExceptionType();
         if (actualMappings.containsKey(name))
         {
            throw new IllegalStateException("Type '" + name + "' registered more than once.");
         }

         actualMappings.put(name, current);
      }

      for (int i = 0; i < len1; i++)
      {
         ExceptionMapping expected = em1[i];
         ExceptionMapping actual = (ExceptionMapping)actualMappings.get(expected.getExceptionType());

         if (actual == null)
         {
            throw new IllegalStateException("Mapping not found for '" + expected.getExceptionType() + "'");
         }
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

      HashMap actualMappings = new HashMap(len1);

      for (int i = 0; i < len1; i++)
      {
         ExceptionMapping current = em2[i];
         String name = current.getExceptionType();
         if (actualMappings.containsKey(name))
         {
            throw new IllegalStateException("Type '" + name + "' registered more than once.");
         }

         actualMappings.put(name, current);
      }

      for (int i = 0; i < len1; i++)
      {
         ExceptionMapping expected = em1[i];
         ExceptionMapping actual = (ExceptionMapping)actualMappings.get(expected.getExceptionType());

         if (actual == null)
         {
            throw new IllegalStateException("Mapping not found for '" + expected.getExceptionType() + "'");
         }
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

               String exceptionType = getJavaTypeAsString(null, xmlType, xt.getNamespace(), false, true);

               if (registeredExceptions.contains(exceptionType) == false)
               {
                  registeredExceptions.add(exceptionType);
                  ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
                  exceptionMapping.setExceptionType(exceptionType);
                  exceptionMapping.setWsdlMessage(fault.getName());
                  jwm.addExceptionMappings(exceptionMapping);
               }
            }

            WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, op);
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

            if (mappedExceptions.contains(javaTypeName))
               continue;

            mappedExceptions.add(javaTypeName);

            ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);

            mapping.setExceptionType(javaTypeName);
            QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());
            mapping.setWsdlMessage(name);

            // Variable mappings generated from SchemaTypesCreater have their order preserved
            for (VariableMapping variableMapping : typeMapping.getVariableMappings())
               mapping.addConstructorParameter(variableMapping.getXmlElementName());

            javaWsdlMapping.addExceptionMappings(mapping);
         }
      }
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

               String exceptionType = getJavaTypeAsString(null, xmlType, xt.getNamespace(), false, true);

               if (registeredExceptions.contains(exceptionType) == false)
               {
                  registeredExceptions.add(exceptionType);
                  ExceptionMapping exceptionMapping = new ExceptionMapping(jwm);
                  exceptionMapping.setExceptionType(exceptionType);
                  exceptionMapping.setWsdlMessage(fault.getName());
                  jwm.addExceptionMappings(exceptionMapping);
               }
            }

            WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, op);
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

            if (mappedExceptions.contains(javaTypeName))
               continue;

            mappedExceptions.add(javaTypeName);

            ExceptionMapping mapping = new ExceptionMapping(javaWsdlMapping);

            mapping.setExceptionType(javaTypeName);
            QName name = new QName(wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());
            mapping.setWsdlMessage(name);

            // Variable mappings generated from SchemaTypesCreater have their order preserved
            for (VariableMapping variableMapping : typeMapping.getVariableMappings())
               mapping.addConstructorParameter(variableMapping.getXmlElementName());

            javaWsdlMapping.addExceptionMappings(mapping);
         }
      }
View Full Code Here

Examples of org.jboss.ws.metadata.jaxrpcmapping.ExceptionMapping

/* 257 */         if (this.mappedExceptions.contains(javaTypeName)) {
/*     */           continue;
/*     */         }
/* 260 */         this.mappedExceptions.add(javaTypeName);
/*     */
/* 262 */         ExceptionMapping mapping = new ExceptionMapping(this.javaWsdlMapping);
/*     */
/* 264 */         mapping.setExceptionType(javaTypeName);
/* 265 */         QName name = new QName(this.wsdl.getTargetNamespace(), fmd.getXmlName().getLocalPart());
/* 266 */         mapping.setWsdlMessage(name);
/*     */
/* 269 */         for (VariableMapping variableMapping : typeMapping.getVariableMappings()) {
/* 270 */           mapping.addConstructorParameter(variableMapping.getXmlElementName());
/*     */         }
/* 272 */         this.javaWsdlMapping.addExceptionMappings(mapping);
/*     */       }
/*     */     }
/*     */
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.