Package org.eclipse.wst.wsdl

Examples of org.eclipse.wst.wsdl.PortType


      PartnerLink plink = partnerLinks.next();
      PartnerLinkType plinkType = plink.getPartnerLinkType();
      Iterator<Role> roles = plinkType.getRole().iterator();
      while (roles.hasNext()){
        Role role = roles.next();
        PortType portType = (PortType)role.getPortType();
        if (portType != null &&
            portType.getEnclosingDefinition() != null &&
             !wsdlDeps.contains(portType.getEnclosingDefinition())){
          wsdlDeps.add(portType.getEnclosingDefinition());
        }       
      }
    }
    Iterator<Definition> deflist = wsdlDeps.iterator();
    while (deflist.hasNext()){
View Full Code Here


            wsdlDef.getNamespaces().remove(wsdlDef.getTargetNamespace());
            //wsdlDef.removeNamespace(webService.targetNamespace());
            wsdlDef.setTargetNamespace(webService.targetNamespace());
            wsdlDef.addNamespace(prefix, webService.targetNamespace());
          }
          PortType portType = typePortTypeMap.get(ctClass);
          if (portType == null){
            String portTypeName = ctClass.getSimpleName();
            if (!webService.name().equals(""))
              portTypeName = webService.name();
            portType = WSDLFactory.eINSTANCE.createPortType();
            portType.setQName(new QName(wsdlDef.getQName().getNamespaceURI(),portTypeName));
            portType.setUndefined(false);
            wsdlDef.addPortType(portType);
            typePortTypeMap.put(ctClass, portType);
            javax.jws.soap.SOAPBinding soapBinding = ctClass.getAnnotation(javax.jws.soap.SOAPBinding.class);
            if (soapBinding != null)
              typeSoapBindingMap.put(ctClass, soapBinding);
View Full Code Here

          wsdlDef.getNamespaces().remove(wsdlDef.getTargetNamespace());
          //wsdlDef.removeNamespace(wsdlDef.getTargetNamespace());
          wsdlDef.setTargetNamespace(webServiceAnnotation.targetNamespace());
          wsdlDef.addNamespace(prefix, webServiceAnnotation.targetNamespace());
        }       
        PortType portType = typePortTypeMap.get(intrface);
        if (portType == null){       
          String portTypeName = intrface.getSimpleName();
          if (!webServiceAnnotation.name().equals(""))
            portTypeName = webServiceAnnotation.name();
          portType = WSDLFactory.eINSTANCE.createPortType();
          portType.setQName(new QName(wsdlDef.getQName().getNamespaceURI(),portTypeName));
          portType.setUndefined(false);       
          wsdlDef.addPortType(portType);
          typePortTypeMap.put(intrface,portType);
          javax.jws.soap.SOAPBinding soapBindingAnnoation = intrface.getAnnotation(javax.jws.soap.SOAPBinding.class);
          if (soapBindingAnnoation != null)
            typeSoapBindingMap.put(intrface, soapBindingAnnoation);       
View Full Code Here

    Definition wsdlDef = wsdlDefMap.get(m.getDeclaringType().getPackage());
    String prefix = wsdlNsPrefixMap.get(packageName);
    if (wsdlDef != null && prefix != null){     
      if (wsdlDef.getTypes() == null)
        wsdlDef.setTypes(WSDLFactory.eINSTANCE.createTypes());
      PortType portType = typePortTypeMap.get(m.getDeclaringType());
      javax.jws.WebMethod webMethodAnnotation = m.getAnnotation(javax.jws.WebMethod.class);
      if (portType != null && webMethodAnnotation != null){ 
        Operation operation = methodOperationMap.get(m);
        if (operation == null) {
            operation = WSDLFactory.eINSTANCE.createOperation();       
          if (!webMethodAnnotation.operationName().equals(""))
            operationName = webMethodAnnotation.operationName();         
          operation.setName(operationName);
          operation.setUndefined(false);
          Input input = WSDLFactory.eINSTANCE.createInput();
          operation.setInput(input);
          Output output = WSDLFactory.eINSTANCE.createOutput();
          operation.setOutput(output);
          portType.addOperation(operation);
          Message inputMessage = WSDLFactory.eINSTANCE.createMessage();
          inputMessage.setQName(new QName(operation.getEnclosingDefinition().getTargetNamespace(), operationName));
          inputMessage.setUndefined(false);
          input.setMessage(inputMessage);
          wsdlDef.addMessage(inputMessage);
View Full Code Here

          if (!theLinks[i].name().equals("")){
            Class c = theLinks[i].type();
            for (CtTypeReference ref : ctClass.getSuperInterfaces()){
              if (ref.getActualClass().equals(c)){
                scan(ref.getDeclaration());
                PortType portType = typePortTypeMap.get(ref.getDeclaration());
                if (portType != null){                             
                  PartnerLink plink = null;
                  PartnerLinkType plinkType = null;
                  Role myRole = null;
                  String plinkName = theLinks[i].name();
View Full Code Here

    if (m.getParent() instanceof CtClass){     
      CtClass<?> ctClass = (CtClass)m.getParent();
      if (classProcessMap.get(ctClass) != null){
        for(CtTypeReference<?> typeRef : ctClass.getSuperInterfaces()){
          CtInterface<?> intf = (CtInterface)typeRef.getDeclaration();
          PortType portType = typePortTypeMap.get(intf);
          if (portType != null){
            for(CtMethod<?> intfMeth : intf.getAllMethods()){             
              if (intfMeth.getSimpleName().equals(m.getSimpleName()) &&
                  intfMeth.getSignature().equals(m.getSignature())){             
                Operation operation = methodOperationMap.get(intfMeth);
View Full Code Here

    if (m.getParent() instanceof CtClass){     
      CtClass<?> ctClass = (CtClass)m.getParent();
      if (classProcessMap.get(ctClass) != null){
        for(CtTypeReference<?> typeRef : ctClass.getSuperInterfaces()){
          CtInterface<?> intf = (CtInterface)typeRef.getDeclaration();
          PortType portType = typePortTypeMap.get(intf);
          if (portType != null)
            return portType;
        }
      }
    }
View Full Code Here

                   EReference partnerReference) {
    // Set partnerLink
    setPartnerLink(activityElement, activity, partnerReference);

    // Set portType
        PortType portType = null;
        if (activityElement.hasAttribute("portType")) {
            portType = BPELUtils.getPortType(resource.getURI(), activityElement, "portType");
            activity.setPortType(portType);
        }
View Full Code Here

  protected void setOperationParmsOnMessage(final Element activityElement, final OnMessage onMessage) {
    // Set partnerLink
    setPartnerLink(activityElement, onMessage, BPELPackage.eINSTANCE.getOnMessage_PartnerLink());

        // Set portType
        PortType portType = null;
        if (activityElement.hasAttribute("portType")) {
            portType = BPELUtils.getPortType(resource.getURI(), activityElement, "portType");
            onMessage.setPortType(portType);
        }
       
View Full Code Here

  protected void setOperationParmsOnEvent(final Element activityElement, final OnEvent onEvent) {
    // Set partnerLink
    setPartnerLink(activityElement, onEvent, BPELPackage.eINSTANCE.getOnEvent_PartnerLink());

        // Set portType
        PortType portType = null;
        if (activityElement.hasAttribute("portType")) {
            portType = BPELUtils.getPortType(resource.getURI(), activityElement, "portType");
            onEvent.setPortType(portType);
        }
View Full Code Here

TOP

Related Classes of org.eclipse.wst.wsdl.PortType

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.