Package org.jboss.ws.metadata.wsdl

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


   protected void processEndpointMetaDataExtensions(EndpointMetaData epMetaData, WSDLDefinitions wsdlDefinitions)
   {
      for (WSDLInterface wsdlInterface : wsdlDefinitions.getInterfaces())
      {
         WSDLProperty eventSourceProp = wsdlInterface.getProperty(Constants.WSDL_PROPERTY_EVENTSOURCE);
         if (eventSourceProp != null && epMetaData instanceof ServerEndpointMetaData)
         {
            ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
            String eventSourceNS = wsdlInterface.getName().getNamespaceURI() + "/" + wsdlInterface.getName().getLocalPart();
View Full Code Here


      AddressingProperties ADDR = new AddressingPropertiesImpl();
      AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());

      // inbound action
      WSDLProperty wsaInAction = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_IN);
      if (wsaInAction != null)
      {
         addrExt.setInboundAction(wsaInAction.getValue());
      }
      else
      {
         WSDLProperty messageName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_IN);
         if (messageName != null)
         {
            addrExt.setInboundAction(tns + "/" + portTypeName + "/" + messageName.getValue());
         }
         else
         {
            addrExt.setInboundAction(tns + "/" + portTypeName + "/IN");
         }
      }

      // outbound action
      WSDLProperty wsaOutAction = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_ACTION_OUT);
      if (wsaOutAction != null)
      {
         addrExt.setOutboundAction(wsaOutAction.getValue());
      }
      else
      {
         WSDLProperty messageName = wsdlOperation.getProperty(Constants.WSDL_PROPERTY_MESSAGE_NAME_OUT);
         if (messageName != null)
         {
            addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + messageName.getValue());
         }
         else
         {
            addrExt.setOutboundAction(tns + "/" + portTypeName + "/OUT");
         }
View Full Code Here

   }
  
   protected void addPolicyURIAttribute(Policy policy, Extendable extendable)
   {
      //TODO!! we need to understand if the policy is local or not...
      WSDLProperty prop = extendable.getProperty(Constants.WSDL_PROPERTY_POLICYURIS);
      if (prop == null)
      {
         extendable.addProperty(new WSDLProperty(Constants.WSDL_PROPERTY_POLICYURIS, policy.getPolicyURI()));
      }
      else
      {
         //PolicyURIs ships a comma separated list of URIs...
         prop.setValue(prop.getValue() + "," + policy.getPolicyURI());
      }
     
   }
View Full Code Here

         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

         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, destBinding);
               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

      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, destBinding);
            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

/*     */     }
/*     */
/* 202 */     WSDLInterface wsdlInterface = wsdlDefinitions.getInterface(epMetaData.getPortTypeName());
/* 203 */     if (wsdlInterface != null)
/*     */     {
/* 205 */       WSDLProperty portTypePolicyProp = wsdlInterface.getProperty("http://www.jboss.org/jbossws/wsp/policyURIs");
/* 206 */       processPolicies(portTypePolicyProp, PolicyScopeLevel.WSDL_PORT_TYPE, localPolicyRegistry, epMetaData);
/*     */     }
/*     */     else
/*     */     {
/* 210 */       log.warn("Cannot get portType '" + epMetaData.getPortTypeName() + "' from the given wsdl definitions! Eventual policies attached to this portType won't be considered.");
View Full Code Here

/*     */     }
/*     */   }
/*     */
/*     */   private String buildWsaActionValue(WSDLInterfaceOperation wsdlOperation)
/*     */   {
/* 913 */     WSDLProperty wsaAction = wsdlOperation.getProperty(Constants.WSDL_ATTRIBUTE_WSA_ACTION.toString());
/* 914 */     String actionValue = null;
/*     */
/* 916 */     if (null == wsaAction)
/*     */     {
/* 919 */       String tns = wsdlOperation.getName().getNamespaceURI();
/* 920 */       String portTypeName = wsdlOperation.getName().getLocalPart();
/* 921 */       WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/in");
/*     */
/* 923 */       actionValue = new String(tns + "/" + portTypeName + "/" + messageName.getValue());
/*     */     }
/*     */     else
/*     */     {
/* 927 */       actionValue = wsaAction.getValue();
/*     */     }
View Full Code Here

/*  632 */       WSDLInterface destInterface = new WSDLInterface(this.destWsdl, qname);
/*      */
/*  635 */       QName policyURIsProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS);
/*  636 */       if ((policyURIsProp != null) && (!"".equalsIgnoreCase(policyURIsProp.getLocalPart())))
/*      */       {
/*  638 */         destInterface.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/wsp/policyURIs", policyURIsProp.getLocalPart()));
/*      */       }
/*      */
/*  642 */       QName eventSourceProp = (QName)srcPortType.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSE_EVENTSOURCE);
/*  643 */       if ((eventSourceProp != null) && (eventSourceProp.getLocalPart().equals(Boolean.TRUE.toString())))
/*      */       {
/*  645 */         destInterface.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/wse/isEventSource", eventSourceProp.getLocalPart()));
/*      */       }
/*      */
/*  648 */       this.destWsdl.addInterface(destInterface);
/*      */
/*  650 */       processPortTypeOperations(srcWsdl, destInterface, srcPortType, destBinding);
View Full Code Here

/*      */
/*  688 */       log.trace("processOperationInput: " + srcMessage.getQName());
/*      */
/*  690 */       QName wsaAction = (QName)srcInput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
/*  691 */       if (wsaAction != null) {
/*  692 */         destOperation.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/wsa/actionIn", wsaAction.getLocalPart()));
/*      */       }
/*  694 */       List paramOrder = srcOperation.getParameterOrdering();
/*  695 */       if (paramOrder != null)
/*      */       {
/*  697 */         for (String name : paramOrder)
/*      */         {
/*  699 */           if (srcMessage.getPart(name) != null) {
/*  700 */             destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name));
/*      */           }
/*      */         }
/*      */       }
/*  704 */       WSDLInterfaceOperationInput rpcInput = new WSDLInterfaceOperationInput(destOperation);
/*  705 */       for (Part srcPart : srcMessage.getOrderedParts(paramOrder))
/*      */       {
/*  708 */         if (ignorePart(srcPortType, srcPart)) {
/*      */           continue;
/*      */         }
/*  711 */         if ("http://www.w3.org/2004/03/wsdl/style/iri" == destOperation.getStyle())
/*      */         {
/*  713 */           WSDLInterfaceOperationInput destInput = new WSDLInterfaceOperationInput(destOperation);
/*  714 */           QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
/*  715 */           destInput.setElement(elementName);
/*      */
/*  718 */           destInput.setMessageName(srcMessage.getQName());
/*  719 */           destOperation.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/messagename/in", srcMessage.getQName().getLocalPart()));
/*      */
/*  721 */           destInput.setPartName(srcPart.getName());
/*  722 */           processUnknownExtensibilityElements(srcMessage, destInput);
/*      */
/*  724 */           destOperation.addInput(destInput);
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.WSDLProperty

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.