Examples of JBossWSToolsException


Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

      boolean bool = false;
      QName xmlName1 = i1.getElement();
      QName xmlName2 = i2.getElement();
      bool = checkQNameEquality(xmlName1,xmlName2);
      if(bool == false)
         throw new JBossWSToolsException(xmlName1 + " & " + xmlName2 + " mismatch");
      bool = validateExtensibilityElements(i1, i2);
      if(bool == false)
         throw new JBossWSToolsException("WSDLExtensibilityElement mismatch");
      return bool;
   }
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

   throws JBossWSToolsException
   {
      boolean bool = false;
      if((barr1 == null && barr2 != null) ||
            (barr1 != null && barr2 == null))
         throw new JBossWSToolsException("Mismatch in the Binding Operations");
      if(barr1.length != barr2.length)
         throw new JBossWSToolsException("Mismatch in number of Binding Operations");
     
      int len = barr1.length;
     
      for(int i=0; i< len; i++)
      {
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

      bool = checkQNameEquality(b1.getRef(),b2.getRef());
      WSDLBindingOperationInput[] wb1 = b1.getInputs();
      WSDLBindingOperationInput[] wb2 = b2.getInputs();
     
      if(wb1.length != wb2.length)
         throw new JBossWSToolsException("Mismatch in the number of inputs for binding op:"+bname);
     
      int len = wb1.length;
      for(int i=0; i< len; i++)
      {
         WSDLBindingOperationInput bindin1 = wb1[i];
         WSDLBindingOperationInput bindin2 = wb2[i];
         bool = checkStringEquality(bindin1.getMessageLabel(),bindin2.getMessageLabel());
         bool = bool & validateExtensibilityElements(bindin1, bindin2);
         if(!bool) return bool;
      }
     
      WSDLBindingOperationOutput[] wboutarr1 = b1.getOutputs();
      WSDLBindingOperationOutput[] wboutarr2 = b2.getOutputs();
     
      if(wboutarr1.length != wboutarr2.length)
         throw new JBossWSToolsException("Mismatch in the number of outputs for binding op:"+bname);
     
      len = wboutarr1.length;
      for(int i=0; i< len; i++)
      {
         WSDLBindingOperationOutput bindout1 = wboutarr1[i];
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

   private static boolean validateWSDLEndpoints(WSDLEndpoint[] warr1, WSDLEndpoint[] warr2)
   throws JBossWSToolsException
   {
      boolean bool = false;
      if(warr1 == null || warr1.length == 0)
         throw new JBossWSToolsException("Number of endpoints in first wsdl is null");
      if(warr2 == null || warr2.length == 0)
         throw new JBossWSToolsException("Number of endpoints in second wsdl is null");
      int len = warr1.length;
      for(int i=0; i< len;i++)
      {
         WSDLEndpoint e1 = warr1[i];
         WSDLEndpoint e2 = warr2[i];
         String add1 = e1.getAddress();
         String add2 = e2.getAddress();
         if(add1.equals(add2) == false)
            throw new JBossWSToolsException("Endpoint addresses do not match");
         bool = checkQNameEquality(e1.getBinding(),e2.getBinding());
         if(bool == false)
            throw new JBossWSToolsException("Endpoint binding do not match");
         bool = checkQNameEquality(e1.getName(),e2.getName());
         if(bool == false)
            throw new JBossWSToolsException("Endpoint Names do not match");
         bool = bool && validateExtensibilityElements(e1, e2);
      }
      return bool;
   }
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

   {
      WSDLInterface[] intf1 = w1.getInterfaces();
      WSDLInterface[] intf2 = w2.getInterfaces();

      if(intf1.length != intf2.length)
         throw new JBossWSToolsException("Number of portType operations in wsdl mismatch");

      int len = intf1.length;
      for (int i = 0; i < len; i++)
      {
         WSDLInterface i1 = intf1[i];
         WSDLInterface i2 = intf2[i];
         WSDLInterfaceOperation[] ops1 = i1.getSortedOperations();
         WSDLInterfaceOperation[] ops2 = i2.getSortedOperations();

         int lenOps = ops1.length;
         for (int j = 0; j < lenOps; j++)
         {
            if(validateMessage(ops1[j],ops2[j]) == false)
            {
               log.error("Validation of Messages failed");
               throw new JBossWSToolsException("Validation of messages failed");
            }
         }//end for

         // Append the Faults
         WSDLInterfaceFault[] faults1 = i1.getFaults();
         WSDLInterfaceFault[] faults2 = i2.getFaults();
         int lenf = faults1 != null ? faults1.length : 0;
         for (int k = 0; k < lenf; k++)
         {
            WSDLInterfaceFault flt1 = faults1[k];
            WSDLInterfaceFault flt2 = faults2[k];
            QName elt = flt1.getElement();
            QName elt2 = flt2.getElement();
            if(!(elt.getLocalPart().equals(elt2.getLocalPart()) &&
                  elt.getNamespaceURI().equals(elt2.getNamespaceURI())))
            {
               log.error("Faults do not match");
               throw new JBossWSToolsException("Validation of faults failed:"+elt.getLocalPart());
            }

         }
      }//end for
      return true;
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

      String op1name = op1.getName().getLocalPart();
      String intf1name = op1.getWsdlInterface().getName().toString();
      String op2name = op2.getName().getLocalPart();
      String intf2name = op2.getWsdlInterface().getName().toString();
      if(op1name.equals(op2name) == false)
         throw new JBossWSToolsException(op1name + " does not match with " + op2name);
      if( intf1name.equals(intf2name) == false)
         throw new JBossWSToolsException(intf1name + " does not match with " + intf2name);

      WSDLInterfaceOperationInput[] inputs1 = op1.getInputs();
      WSDLInterfaceOperationInput[] inputs2 = op2.getInputs();
      int lenin1 = inputs1.length;
      for (int i = 0; i < lenin1; i++)
      {
         WSDLInterfaceOperationInput input1 = inputs1[i];
         WSDLInterfaceOperationInput input2 = inputs2[i];
         if(validateInputParts(input1, input2) == false)
            throw new JBossWSToolsException("Validation of input parts failed:" + input1.getElement());
      }

      //Now the return type
      WSDLInterfaceOperationOutput[] outputs1 = op1.getOutputs();
      WSDLInterfaceOperationOutput[] outputs2 = op2.getOutputs();
      int lenout = outputs1.length;

      if(lenout != outputs2.length)
         throw new JBossWSToolsException("Length of operation outputs do not match");

      for (int i = 0; i < lenout; i++)
      {
            WSDLInterfaceOperationOutput out1 = outputs1[i];
            WSDLInterfaceOperationOutput out2 = outputs2[i];
            if(validateOutputParts(out1, out2) == false)
               throw new JBossWSToolsException("Validation of output parts failed:" + out1);
      }
      return true;
   }
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

      boolean bool = false;
      if(x1==null && x2 == null) return true;
      this.checkNullParametersInconsistency(x1,x2,XSTypeDefinition.class);

      if(x1.getName().equals(x2.getName()) == false)
         throw new JBossWSToolsException("Validation of XSType failed:"
                     + x1.getName() + ":" + x2.getName());
      //TODO: Expand comparison of types to include attributes/elements
      if(x1 instanceof XSComplexTypeDefinition &&
            x2 instanceof XSComplexTypeDefinition)
      {
View Full Code Here

Examples of org.jboss.ws.tools.exceptions.JBossWSToolsException

/* 51 */       Class factoryClass = loader.loadClass(factoryName);
/* 52 */       factory = (JavaToXSDFactory)factoryClass.newInstance();
/*    */     }
/*    */     catch (Throwable e)
/*    */     {
/* 56 */       throw new JBossWSToolsException("Cannot create JavaToXSDFactory", e);
/*    */     }
/* 58 */     return factory;
/*    */   }
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.