Package org.jboss.ws.metadata.wsdl

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


/*  786 */     log.trace("processOperationOutput: " + srcMessage.getQName());
/*      */
/*  788 */     destOperation.setPattern("http://www.w3.org/2004/08/wsdl/in-out");
/*  789 */     QName wsaAction = (QName)srcOutput.getExtensionAttribute(Constants.WSDL_ATTRIBUTE_WSA_ACTION);
/*  790 */     if (wsaAction != null) {
/*  791 */       destOperation.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/wsa/actionOut", wsaAction.getLocalPart()));
/*      */     }
/*  793 */     List paramOrder = srcOperation.getParameterOrdering();
/*  794 */     if (paramOrder != null)
/*      */     {
/*  796 */       for (String name : paramOrder)
/*      */       {
/*  798 */         if (srcMessage.getPart(name) != null)
/*      */         {
/*  800 */           WSDLRPCSignatureItem item = destOperation.getRpcSignatureitem(name);
/*  801 */           if (item != null)
/*  802 */             item.setDirection(WSDLRPCSignatureItem.Direction.INOUT);
/*  803 */           else destOperation.addRpcSignatureItem(new WSDLRPCSignatureItem(name, WSDLRPCSignatureItem.Direction.OUT));
/*      */         }
/*      */       }
/*      */     }
/*      */
/*  808 */     WSDLInterfaceOperationOutput rpcOutput = new WSDLInterfaceOperationOutput(destOperation);
/*  809 */     for (Part srcPart : srcMessage.getOrderedParts(null))
/*      */     {
/*  812 */       if (ignorePart(srcPortType, srcPart)) {
/*      */         continue;
/*      */       }
/*  815 */       if ("http://www.w3.org/2004/03/wsdl/style/iri" == destOperation.getStyle())
/*      */       {
/*  817 */         WSDLInterfaceOperationOutput destOutput = new WSDLInterfaceOperationOutput(destOperation);
/*      */
/*  819 */         QName elementName = messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
/*  820 */         destOutput.setElement(elementName);
/*      */
/*  823 */         destOutput.setMessageName(srcMessage.getQName());
/*  824 */         destOperation.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/messagename/out", srcMessage.getQName().getLocalPart()));
/*      */
/*  827 */         destOutput.setPartName(srcPart.getName());
/*      */
/*  829 */         destOperation.addOutput(destOutput);
/*      */       }
View Full Code Here


/* 371 */       WSDLInterface intf = intfs[i];
/* 372 */       if (!namespace.equals(intf.getName().getNamespaceURI())) {
/*     */         continue;
/*     */       }
/* 375 */       buffer.append("<portType name='" + intf.getName().getLocalPart() + "'");
/* 376 */       WSDLProperty policyProp = intf.getProperty("http://www.jboss.org/jbossws/wsp/policyURIs");
/* 377 */       if (policyProp != null)
/*     */       {
/* 379 */         String prefix = this.wsdl.getPrefix("http://schemas.xmlsoap.org/ws/2004/09/policy");
/* 380 */         buffer.append(" ");
/* 381 */         buffer.append(prefix);
/* 382 */         buffer.append(":");
/* 383 */         buffer.append(Constants.WSDL_ATTRIBUTE_WSP_POLICYURIS.getLocalPart());
/* 384 */         buffer.append("='");
/* 385 */         buffer.append(policyProp.getValue());
/* 386 */         buffer.append("'");
/*     */       }
/* 388 */       buffer.append(">");
/* 389 */       appendPortOperations(buffer, intf);
/* 390 */       buffer.append("</portType>");
View Full Code Here

/* 176 */     extendable.addExtensibilityElement(ext);
/*     */   }
/*     */
/*     */   protected void addPolicyURIAttribute(Policy policy, Extendable extendable)
/*     */   {
/* 182 */     WSDLProperty prop = extendable.getProperty("http://www.jboss.org/jbossws/wsp/policyURIs");
/* 183 */     if (prop == null)
/*     */     {
/* 185 */       extendable.addProperty(new WSDLProperty("http://www.jboss.org/jbossws/wsp/policyURIs", policy.getPolicyURI()));
/*     */     }
/*     */     else
/*     */     {
/* 190 */       prop.setValue(prop.getValue() + "," + policy.getPolicyURI());
/*     */     }
/*     */   }
View Full Code Here

/*     */
/*     */   protected void processEndpointMetaDataExtensions(EndpointMetaData epMetaData, WSDLDefinitions wsdlDefinitions)
/*     */   {
/* 429 */     for (WSDLInterface wsdlInterface : wsdlDefinitions.getInterfaces())
/*     */     {
/* 431 */       WSDLProperty eventSourceProp = wsdlInterface.getProperty("http://www.jboss.org/jbossws/wse/isEventSource");
/* 432 */       if ((eventSourceProp == null) || (!(epMetaData instanceof ServerEndpointMetaData)))
/*     */         continue;
/* 434 */       ServerEndpointMetaData sepMetaData = (ServerEndpointMetaData)epMetaData;
/* 435 */       String eventSourceNS = wsdlInterface.getName().getNamespaceURI() + "/" + wsdlInterface.getName().getLocalPart();
/*     */
View Full Code Here

/* 470 */     String portTypeName = wsdlOperation.getName().getLocalPart();
/*     */
/* 472 */     AddressingProperties ADDR = new AddressingPropertiesImpl();
/* 473 */     AddressingOpMetaExt addrExt = new AddressingOpMetaExt(ADDR.getNamespaceURI());
/*     */
/* 476 */     WSDLProperty wsaInAction = wsdlOperation.getProperty("http://www.jboss.org/jbossws/wsa/actionIn");
/* 477 */     if (wsaInAction != null)
/*     */     {
/* 479 */       addrExt.setInboundAction(wsaInAction.getValue());
/*     */     }
/*     */     else
/*     */     {
/* 483 */       WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/in");
/* 484 */       addrExt.setInboundAction(tns + "/" + portTypeName + "/" + messageName);
/*     */     }
/*     */
/* 488 */     WSDLProperty wsaOutAction = wsdlOperation.getProperty("http://www.jboss.org/jbossws/wsa/actionOut");
/* 489 */     if (wsaOutAction != null)
/*     */     {
/* 491 */       addrExt.setOutboundAction(wsaOutAction.getValue());
/*     */     }
/*     */     else
/*     */     {
/* 495 */       WSDLProperty messageName = wsdlOperation.getProperty("http://www.jboss.org/jbossws/messagename/out");
/* 496 */       addrExt.setOutboundAction(tns + "/" + portTypeName + "/" + messageName);
/*     */     }
/*     */
/* 499 */     opMetaData.addExtension(addrExt);
/*     */   }
View Full Code Here

/*     */   private XSTypeDefinition getXSType(WSDLInterfaceMessageReference part)
/*     */   {
/* 664 */     WSDLInterfaceOperation op = part.getWsdlOperation();
/* 665 */     String zeroarg1 = null;
/* 666 */     String zeroarg2 = null;
/* 667 */     WSDLProperty prop1 = op.getProperty("http://www.jboss.org/jbossws/zero-args");
/* 668 */     if (prop1 != null)
/* 669 */       zeroarg1 = prop1.getValue();
/* 670 */     if ((zeroarg1 != null) && (zeroarg2 != null) && (!zeroarg1.equals(zeroarg2)))
/* 671 */       return null;
/* 672 */     if ((zeroarg1 != null) && ("true".equals(zeroarg1))) {
/* 673 */       return null;
/*     */     }
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

         //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()));
         }
        
         // documentation
         Element documentationElement = srcPortType.getDocumentationElement();
         if (documentationElement != null && documentationElement.getTextContent() != null)
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

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.