Examples of UnknownExtensibilityElement


Examples of javax.wsdl.extensions.UnknownExtensibilityElement

            use = Use.ENCODED;
         }
         else if ( obj instanceof UnknownExtensibilityElement )
         {
            // TODO: After WSDL4J supports soap12, change this code
            UnknownExtensibilityElement unkElement = (UnknownExtensibilityElement) obj;
            QName                       name = unkElement.getElementType(  );

            if ( name.getNamespaceURI(  ).equals( Constants.URI_WSDL12_SOAP )
                 && name.getLocalPart(  ).equals( "binding" ) )
            {
               use = Use.ENCODED;
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

            for ( int i = 0; i < extensibilityElements.size(  ); i++ )
            {
               Object o = extensibilityElements.get( i );
               if ( o instanceof UnknownExtensibilityElement )
               {
                  UnknownExtensibilityElement unknownExtensibilityElement = (UnknownExtensibilityElement) o;
                  Element                     element = unknownExtensibilityElement.getElement(  );
                  if ( element != null )
                  {
                     fixSchemaUrls( element,
                                    definition.getDocumentBaseURI(  ) );
                  }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

      for ( int i = 0; i < extElems.size(  ); i++ )
      {
         ExtensibilityElement extElem = (ExtensibilityElement) extElems.get( i );
         if ( extElem instanceof UnknownExtensibilityElement )
         {
            UnknownExtensibilityElement unknownExtElem = (UnknownExtensibilityElement) extElem;
            Element                     elem = unknownExtElem.getElement(  );
            if ( elem.getNamespaceURI(  ).equals( XmlConstants.NSURI_SCHEMA_XSD )
                 && elem.getLocalName(  ).equals( "schema" ) )
            {
               schemaElem = elem;
               break;
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

            DOMImplementation dImpl = builder.getDOMImplementation();

            String policyID = portName + "_Policy";
            String inputPolicyID = portName + "_operationPolicy";

            UnknownExtensibilityElement serviceLevelPolicRef = null;
            UnknownExtensibilityElement opLevelPolicRef = null;
           
            String namespace = GFacConstants.GFAC_NAMESPACE;
            Document doc = dImpl.createDocument(namespace, "factoryServices", null);

           
            //TODO this is boken fix it
            String description = serviceMap.getService().getServiceDescription();
            if(description != null){
               
                Element documentation = doc.createElementNS("http://schemas.xmlsoap.org/wsdl/","wsdl:documentation");
                documentation.appendChild(doc.createTextNode(description));
                def.setDocumentationElement(documentation);
            }
           

            if(GFacConstants.TRANSPORT_LEVEL.equals(security))
            {
                def.addExtensibilityElement(createTransportLevelPolicy(dImpl, policyID));
                serviceLevelPolicRef = createWSPolicyRef(dImpl, policyID);
            }
            else if (GFacConstants.MESSAGE_SIGNATURE.equals(security))
            {
                def.addExtensibilityElement(WSPolicyGenerator.createServiceLevelPolicy(dImpl, policyID));
                def.addExtensibilityElement(WSPolicyGenerator.createOperationLevelPolicy(dImpl, "inputPolicy", inputPolicyID));
                serviceLevelPolicRef = createWSPolicyRef(dImpl, policyID);
                opLevelPolicRef = createWSPolicyRef(dImpl, inputPolicyID);
            }

            // Create types
            Types types = TypesGenerator.addTypes(def, dImpl, serviceMap, typens, globalTypens, methods);
            def.setTypes(types);

//            if(!abstractWSDL)
//            {
//                table = createMessageTable(serviceMap, typens, methods);
//            }

            // Create port types (only first port type)
            PortTypeImpl portType = addPortTypes(def, dImpl, portTypes, serviceQName);
            Binding binding = addBinding(def, nameSpaceURI, portType, serviceLevelPolicRef,dImpl);

            Vector methodDesc = WSDLGenUtil.getMethodDescriptions(serviceMap);
            for(int i = 0; i < methods.length; ++i)
            {
                String methodName = methods[i].getMethodName();
                Vector outParams = WSDLGenUtil.getOutParams(serviceMap, methodName);
               
               
                OperationImpl operation = addOperation(def, dImpl, methodName, (String) methodDesc.get(i),typens,outParams);
                portType.addOperation(operation);
               
                if(!abstractWSDL)
                {
                    UnknownExtensibilityElement wsInPolicyRef = null;
                    UnknownExtensibilityElement wsOutPolicyRef = null;

                    BindingInputImpl bindingInput = addBindingInput(def, methodName, wsInPolicyRef);
                    BindingOutputImpl bindingOutput = addBindingOutput(def, methodName, outParams, wsOutPolicyRef);
                    BindingOperation bindingOperation = addBindingOperation(def, operation,dImpl);
                    bindingOperation.setBindingInput(bindingInput);
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

                                                          String id)
    {
        Document doc = dImpl.createDocument(WSP_NAMESPACE, "wsp:PolicyReference", null);
        Element policyRef = doc.getDocumentElement();
        policyRef.setAttribute("URI", "#"+id);
        UnknownExtensibilityElement elem = new UnknownExtensibilityElement();
        elem.setElement(policyRef);
        elem.setElementType(new QName(WSP_NAMESPACE, "PolicyReference"));
        return elem;
    }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

         */

        exactlyOne.appendChild(all);
        policy.appendChild(exactlyOne);

        UnknownExtensibilityElement elem = new UnknownExtensibilityElement();
        elem.setElement(policy);
        elem.setElementType(new QName(WSP_NAMESPACE, "wsp:Policy"));
        return elem;
    }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

        bindingOperation.addExtensibilityElement(soapOperation);
        bindingOperation.setOperation(operation);
       
        Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null);
       
        UnknownExtensibilityElement exEle = new UnknownExtensibilityElement();
        Element anonymousEle = doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl","wsaw:Anonymous");
        anonymousEle.appendChild(doc.createTextNode("optional"));
        exEle.setElement(anonymousEle);
        exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl","wsaw:Anonymous"));
        bindingOperation.addExtensibilityElement(exEle);
        return bindingOperation;
    }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

            binding.addExtensibilityElement(wsPolicyRef);
        }
       
        Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null);
       
        UnknownExtensibilityElement exEle = new UnknownExtensibilityElement();
        exEle.setElement(doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl","wsaw:UsingAddressing"));
        exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl","wsaw:UsingAddressing"));
        binding.addExtensibilityElement(exEle);
       
        return binding;
    }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

        all.appendChild(issuedToken);

        exactlyOne.appendChild(all);
        policy.appendChild(exactlyOne);

        UnknownExtensibilityElement elem = new UnknownExtensibilityElement();
        elem.setElement(policy);
        elem.setElementType(new QName(WSP_NAMESPACE, policyLocalPart));
        return elem;
    }
View Full Code Here

Examples of javax.wsdl.extensions.UnknownExtensibilityElement

        all.appendChild(wss10);

        exactlyOne.appendChild(all);
        policy.appendChild(exactlyOne);

        UnknownExtensibilityElement elem = new UnknownExtensibilityElement();
        elem.setElement(policy);
        elem.setElementType(new QName(WSP_NAMESPACE, "wsp:Policy"));
        return elem;
    }
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.