Examples of WSDLProperty


Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

         WSDLInterface intf = intfs[i];
         if (!namespace.equals(intf.getName().getNamespaceURI()))
            continue;

         buffer.append("<portType name='" + intf.getName().getLocalPart() + "'");
         WSDLProperty policyProp = intf.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
         if (policyProp != null)
         {
            String prefix = wsdl.getPrefix(Constants.URI_WS_POLICY);
            buffer.append(" ");
            buffer.append(prefix);
            buffer.append(":");
            buffer.append(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS.getLocalPart());
            buffer.append("='");
            buffer.append(policyProp.getValue());
            buffer.append("'");
         }
         buffer.append(">");
         appendDocumentation(buffer, intf.getDocumentationElement());
         appendUnknownExtensibilityElements(buffer, intf);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

      //PortType scope
      WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(epMetaData.getPortTypeName());
      if (wsdlInterface != null)
      {
         WSDLProperty portTypePolicyProp = wsdlInterface.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
         processPolicies(portTypePolicyProp, PolicyScopeLevel.WSDL_PORT_TYPE, localPolicyRegistry, epMetaData);
      }
      else
      {
         log.warn("Cannot get portType '" + epMetaData.getPortTypeName()
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

      //Check if there are any custom properties
      WSDLInterfaceOperation op1 = in1.getWsdlOperation();
      WSDLInterfaceOperation op2 = in2.getWsdlOperation();
      String zeroarg1 = null;
      String zeroarg2 = null;
      WSDLProperty prop1 = op1.getProperty(Constants.WSDL_PROPERTY_ZERO_ARGS);
      if (prop1 != null)
         zeroarg1 = prop1.getValue();
      WSDLProperty prop2 = op2.getProperty(Constants.WSDL_PROPERTY_ZERO_ARGS);
      if (prop2 != null)
         zeroarg2 = prop2.getValue();
      if(zeroarg1 != null && zeroarg2 != null && zeroarg1.equals(zeroarg2) == false)
         return false;
      if (zeroarg1 != null && "true".equals(zeroarg1))
         return true;

      //Check if there is a property
      WSDLProperty wprop1 = in1.getProperty(Constants.WSDL_PROPERTY_PART_XMLTYPE);
      WSDLProperty wprop2 = in2.getProperty(Constants.WSDL_PROPERTY_PART_XMLTYPE);

      QName el1 = in1.getElement();
      QName el2 = in2.getElement();
      WSDLDefinitions w1 = in1.getWsdlOperation().getWsdlInterface().getWsdlDefinitions();
      WSDLDefinitions w2 = in2.getWsdlOperation().getWsdlInterface().getWsdlDefinitions();
      if(wprop1 != null) el1 = parseQName(wprop1.getValue(),w1);
      if(wprop2 != null) el2 = parseQName(wprop2.getValue(),w2);
      //Validate the QNames by using types

      XSTypeDefinition x1 = getTypeDefinition(el1,w1);
      XSTypeDefinition x2 = getTypeDefinition(el2,w2);
      boolean bool = validateType(x1,x2);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

      //Check if there are any custom properties
      WSDLInterfaceOperation op1 = out1.getWsdlOperation();
      WSDLInterfaceOperation op2 = out2.getWsdlOperation();
      String voidreturn1 = null;
      String voidreturn2 = null;
      WSDLProperty prop1 = op1.getProperty(Constants.WSDL_PROPERTY_VOID_RETURN);
      WSDLProperty prop2 = op2.getProperty(Constants.WSDL_PROPERTY_VOID_RETURN);

      if(prop1 != null ) voidreturn1 = prop1.getValue();
      if(prop2 != null ) voidreturn2 = prop2.getValue();
      if(voidreturn1 != null &&
            voidreturn2 != null &&
            voidreturn1.equals(voidreturn2) == false) return false;
      if(voidreturn1 != null && "true".equals(voidreturn1)) return true;

      QName el1 = out1.getElement();
      QName el2 = out2.getElement();
      WSDLDefinitions w1 = out1.getWsdlOperation().getWsdlInterface().getWsdlDefinitions();
      WSDLDefinitions w2 = out2.getWsdlOperation().getWsdlInterface().getWsdlDefinitions();
      if( prop1 != null) el1 = parseQName( prop1.getValue(),w1);
      if( prop2 != null) el2 = parseQName( prop2.getValue(),w2);
      //Validate the QNames by using types
      XSTypeDefinition x1 = getTypeDefinition(el1,w1);
      XSTypeDefinition x2 = getTypeDefinition(el2,w2);
      boolean bool = validateType(x1,x2);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

            return false;
         }
         polRef2.remove(el2);
      }
      //check properties
      WSDLProperty prop1 = ext1.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
      WSDLProperty prop2 = ext2.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
      if (prop1 != null || prop2 != null)
      {
         if (prop1 == null || prop2 == null || prop1.isRequired() != prop2.isRequired())
            throw new JBossWSToolsException("Policy prop WSDLExtensibilityElement mismatch!");
         String value1 = prop1.getValue();
         String value2 = prop2.getValue();
         if (value1 != null || value2 != null)
         {
            if (value1 == null || value2 == null || !value1.equalsIgnoreCase(value2))
            {
               log.error("Failing policy validation on policy uri prop on: "+ext1+" and "+ext2);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

            Constants.WSDL_ELEMENT_POLICYREFERENCE);
      assertNotNull(extPortList);
      assertEquals(extPortList.size(),1);
      assertPolicyRef(extPortList.get(0),"uselessPortPolicy");
     
      WSDLProperty extPortTypeProp = wsdlEndpoint.getInterface().getProperty(
            Constants.WSDL_PROPERTY_POLICYURIS);
      assertEquals(extPortTypeProp.getValue(),"#RmPolicy");
     
      WSDLBinding wsdlBinding = wsdlDefinitions.getBinding(wsdlEndpoint.getBinding());
      List<WSDLExtensibilityElement> extBinding = wsdlBinding.getExtensibilityElements(
            Constants.WSDL_ELEMENT_POLICYREFERENCE);
      assertNotNull(extBinding);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

         //policy extensions
         QName policyURIsProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS);
         if (policyURIsProp != null && !"".equalsIgnoreCase(policyURIsProp.getLocalPart()))
         {
            destInterface.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_POLICYURIS, policyURIsProp.getLocalPart()));
         }

         // eventing extensions
         QName eventSourceProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSE_EVENTSOURCE);
         if (eventSourceProp != null && eventSourceProp.getLocalPart().equals(Boolean.TRUE.toString()))
         {
            destInterface.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_EVENTSOURCE, eventSourceProp.getLocalPart()));
         }

         destWsdl.addInterface(destInterface);

         processPortTypeOperations(srcWsdl, destInterface, srcPortType);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

         log.trace("processOperationInput: " + srcMessage.getQName());

         QName wsaAction = (QName)srcInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
         if (wsaAction != null)
            destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_IN, wsaAction.getLocalPart()));

         List<String> paramOrder = (List<String>)srcOperation.getParameterOrdering();
         if (paramOrder != null)
         {
            for (String name : paramOrder)
            {
               if (srcMessage.getPart(name) != null)
                  destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name));
            }
         }

         WSDLInterfaceOperationInput rpcInput = new WSDLInterfaceOperationInput(destOperation);
         for (Part srcPart : (List<Part>)srcMessage.getOrderedParts(paramOrder))
         {
            // Skip SWA attachment parts
            if (ignorePart(srcPortType, srcPart))
               continue;

            if (Constants.URI_STYLE_DOCUMENT == destOperation.getStyle())
            {
               WSDLInterfaceOperationInput destInput = new WSDLInterfaceOperationInput(destOperation);
               QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation);
               destInput.setElement(elementName);

               //Lets remember the Message name
               destInput.setMessageName(srcMessage.getQName());
               destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN, srcMessage.getQName().getLocalPart()));

               destInput.setPartName(srcPart.getName());
               processUnknownExtensibilityElements(srcMessage, destInput);

               destOperation.addInput(destInput);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

      log.trace("processOperationOutput: " + srcMessage.getQName());

      destOperation.setPattern(Constants.WSDL20_PATTERN_IN_OUT);
      QName wsaAction = (QName)srcOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
      if (wsaAction != null)
         destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_ACTION_OUT, wsaAction.getLocalPart()));

      List<String> paramOrder = (List<String>)srcOperation.getParameterOrdering();
      if (paramOrder != null)
      {
         for (String name : paramOrder)
         {
            if (srcMessage.getPart(name) != null)
            {
               WSDLRPCSignatureItem item = destOperation.getRpcSignatureitem(name);
               if (item != null)
                  item.setDirection(Direction.INOUT);
               else destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name, Direction.OUT));
            }
         }
      }

      WSDLInterfaceOperationOutput rpcOutput = new WSDLInterfaceOperationOutput(destOperation);
      for (Part srcPart : (List<Part>)srcMessage.getOrderedParts(null))
      {
         // Skip SWA attachment parts
         if (ignorePart(srcPortType, srcPart))
            continue;

         if (Constants.URI_STYLE_DOCUMENT == destOperation.getStyle())
         {
            WSDLInterfaceOperationOutput destOutput = new WSDLInterfaceOperationOutput(destOperation);

            QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation);
            destOutput.setElement(elementName);

            // Lets remember the Message name
            destOutput.setMessageName(srcMessage.getQName());
            destOperation.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT, srcMessage.getQName().getLocalPart()));

            // Remember the original part name
            destOutput.setPartName(srcPart.getName());

            destOperation.addOutput(destOutput);
View Full Code Here

Examples of org.jboss.ws.metadata.wsdl.WSDLProperty

         WSDLInterface intf = intfs[i];
         if (!namespace.equals(intf.getName().getNamespaceURI()))
            continue;

         buffer.append("<portType name='" + intf.getName().getLocalPart() + "'");
         WSDLProperty policyProp = intf.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
         if (policyProp != null)
         {
            String prefix = wsdl.getPrefix(Constants.URI_WS_POLICY);
            buffer.append(" ");
            buffer.append(prefix);
            buffer.append(":");
            buffer.append(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS.getLocalPart());
            buffer.append("='");
            buffer.append(policyProp.getValue());
            buffer.append("'");
         }
         buffer.append(">");
         appendPortOperations(buffer, intf);
         buffer.append("</portType>");
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.