Examples of BindingEntry


Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

        // Input types and names
        Vector inNames = new Vector();
        Vector inTypes = new Vector();
        SymbolTable symbolTable = wsdlParser.getSymbolTable();
        BindingEntry bEntry =
                symbolTable.getBindingEntry(binding.getQName());
        Parameters parameters = null;
        Iterator i = bEntry.getParameters().keySet().iterator();

        while (i.hasNext()) {
            Operation o = (Operation) i.next();
            if (o.getName().equals(operationName)) {
                operation = o;
                parameters = (Parameters) bEntry.getParameters().get(o);
                break;
            }
        }
        if ((operation == null) || (parameters == null)) {
            throw new RuntimeException(operationName + " was not found.");
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

      Binding[] bindings = CodeGenUtils.getBindings( m_service );

      for ( int i = 0; i < bindings.length; i++ )
      {
         Binding      binding = bindings[i];
         BindingEntry bEntry = m_symTable.getBindingEntry( binding.getQName(  ) );

         if ( bEntry == null )
         {
            throw new IOException( Messages.getMessage( "emitFailNoBindingEntry01",
                                                        new String[]
                                                        {
                                                           binding.getQName(  ).toString(  )
                                                        } ) );
         }

         PortTypeEntry ptEntry = m_symTable.getPortTypeEntry( binding.getPortType(  ).getQName(  ) );

         if ( ptEntry == null )
         {
            throw new IOException( Messages.getMessage( "emitFailNoPortType01",
                                                        new String[]
                                                        {
                                                           binding.getPortType(  ).getQName(  ).toString(  )
                                                        } ) );
         }

         // If this isn't a SOAP binding, skip it
         if ( bEntry.getBindingType(  ) != BindingEntry.TYPE_SOAP )
         {
            LOG.info( MSG.getMessage( Keys.NOT_SOAP_BINDING,
                                      bEntry.getName(  ) ) );

            continue;
         }

         // if we have not generated the required management code yet, see if we
         // should do it now
         if ( !generatedRequiredCode )
         {
            // check to see if the port type has a WS-RP resource properties
            QName rpQName = discoverResourcePropertiesDocumentQName( ptEntry );

            // if the port type has the WS-RP resource properties document
            // attribute, generate the required code to support WS-RP
            if ( rpQName != null )
            {
               LOG.info( MSG.getMessage( Keys.FOUND_WSRP_DOC, rpQName ) );
               writeRequiredCode( pw, m_service, ptEntry, rpQName );
               generatedRequiredCode = true;
            }
         }

         // generate the code for each operation in the port type
         List operations = binding.getBindingOperations(  );

         for ( int j = 0; j < operations.size(  ); j++ )
         {
            BindingOperation opBinding  = (BindingOperation) operations.get( j );
            Operation        op         = opBinding.getOperation(  );
            OperationType    opType     = op.getStyle(  );
            Parameters       parameters = bEntry.getParameters( opBinding.getOperation(  ) );

            // These operation types are not supported. The signature will be a string stating that fact.
            if ( ( opType == OperationType.NOTIFICATION ) || ( opType == OperationType.SOLICIT_RESPONSE ) )
            {
               pw.println( parameters.signature );
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

      Binding[] bindings = CodeGenUtils.getBindings( m_service );

      for ( int i = 0; i < bindings.length; i++ )
      {
         Binding      binding = bindings[i];
         BindingEntry bEntry = m_symTable.getBindingEntry( binding.getQName(  ) );

         if ( bEntry == null )
         {
            throw new IOException( Messages.getMessage( "emitFailNoBindingEntry01",
                                                        new String[]
                                                        {
                                                           binding.getQName(  ).toString(  )
                                                        } ) );
         }

         PortTypeEntry ptEntry = m_symTable.getPortTypeEntry( binding.getPortType(  ).getQName(  ) );

         if ( ptEntry == null )
         {
            throw new IOException( Messages.getMessage( "emitFailNoPortType01",
                                                        new String[]
                                                        {
                                                           binding.getPortType(  ).getQName(  ).toString(  )
                                                        } ) );
         }

         // If this isn't a SOAP binding, skip it
         if ( bEntry.getBindingType(  ) != BindingEntry.TYPE_SOAP )
         {
            LOG.info( MSG.getMessage( Keys.NOT_SOAP_BINDING,
                                      bEntry.getName(  ) ) );

            continue;
         }

         // if we have not generated the required management code yet, see if we
         // should do it now
         if ( !generatedRequiredCode )
         {
            // check to see if the port type has a WS-RP resource properties
            QName rpQName = discoverResourcePropertiesDocumentQName( ptEntry );

            // if the port type has the WS-RP resource properties document
            // attribute, generate the required code to support WS-RP
            if ( rpQName != null )
            {
               LOG.info( MSG.getMessage( Keys.FOUND_WSRP_DOC, rpQName ) );
               writeRequiredCode( pw, rpQName );
               generatedRequiredCode = true;
            }
         }

         // generate the code for each operation in the port type
         List operations = binding.getBindingOperations(  );

         for ( int j = 0; j < operations.size(  ); j++ )
         {
            BindingOperation opBinding  = (BindingOperation) operations.get( j );
            Operation        op         = opBinding.getOperation(  );
            OperationType    opType     = op.getStyle(  );
            Parameters       parameters = bEntry.getParameters( opBinding.getOperation(  ) );

            // These operation types are not supported. The signature will be a string stating that fact.
            if ( ( opType == OperationType.NOTIFICATION ) || ( opType == OperationType.SOLICIT_RESPONSE ) )
            {
               pw.println( parameters.signature );
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

    */
   public Generator getGenerator( Binding     binding,
                                  SymbolTable symbolTable )
   {
      Generator    bindingWriter = new WsdmJavaBindingWriter( emitter, binding, symbolTable );
      BindingEntry bindingEntry = symbolTable.getBindingEntry( binding.getQName(  ) );
      bindingWriters.addStuff( bindingWriter, bindingEntry, symbolTable );
      return bindingWriters;
   }
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

      List      opSigs   = new ArrayList(  );
      Binding[] bindings = getBindings( service );
      for ( int i = 0; i < bindings.length; i++ )
      {
         Binding      binding = bindings[i];
         BindingEntry bEntry = symTable.getBindingEntry( binding.getQName(  ) );

         if ( bEntry != null )
         {
            PortTypeEntry ptEntry = symTable.getPortTypeEntry( binding.getPortType(  ).getQName(  ) );

            if ( ptEntry != null )
            {
               // If this isn't a SOAP binding, skip it
               if ( bEntry.getBindingType(  ) == BindingEntry.TYPE_SOAP )
               {
                  // generate the code for each operation in the port type
                  List operations = binding.getBindingOperations(  );

                  for ( int j = 0; j < operations.size(  ); j++ )
                  {
                     BindingOperation bindingOp = (BindingOperation) operations.get( j );
                     Parameters       params = bEntry.getParameters( bindingOp.getOperation(  ) );
                     opSigs.add( params.signature );
                  }
               }
            }
         }
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

    *
    * @see org.apache.axis.wsdl.toJava.JavaBindingWriter#setGenerators()
    */
   protected void setGenerators(  )
   {
      BindingEntry bEntry = symbolTable.getBindingEntry( binding.getQName(  ) );

      // Remember the quiet setting so we can revert back to it.
      // Turn quiet mode on so we don't see the message about the file already
      // existing (this is what we are circumventing)
      // Get all the generators using the superclass implementation; if the
      // imple file already exists, its generator will not be set
      // Revert back to the original quiet setting
      // IF the implWriter is null (due to the fact that the impl file already
      // exists) and it should be used (according to logic in
      // super.setGenerators)
      //    Force us to do what the superclass would have done if the file did not
      // exist - that is, set the generator for the impl file
      // END IF
      boolean quiet = this.emitter.isQuiet(  );
      this.emitter.setQuiet( true );
      super.setGenerators(  );
      this.emitter.setQuiet( quiet );

      if ( implWriter == null )
      {
         // Do the same checks that are done in super.setGenerator to make sure
         // the impl class is needed.
         if ( bEntry.isReferenced(  ) && emitter.isServerSide(  ) )
         {
            this.implWriter = getJavaImplWriter( emitter, bEntry, symbolTable );
         }
      }

View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

            pw.println();

            for (Iterator portIterator = myService.getPorts().values().iterator();
                 portIterator.hasNext();) {
                Port myPort = (Port) portIterator.next();
                BindingEntry bEntry =
                        symbolTable.getBindingEntry(
                                myPort.getBinding().getQName());

                // If this isn't an SOAP binding, skip it
                if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) {
                    continue;
                }
                writeDeployPort(pw, myPort, myService);
            }
        }
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

    /**
     * Write out deployment and undeployment instructions for given WSDL port
     */
    protected void writeDeployPort(PrintWriter pw, Port port, Service service) throws IOException {
        Binding binding = port.getBinding();
        BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
        String serviceName = port.getName();

        boolean hasLiteral = bEntry.hasLiteral();

        String prefix = WSDDConstants.NS_PREFIX_WSDD_JAVA;
        String styleStr = "";

        if (hasLiteral) {
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

    /**
     * Write out deployment instructions for given WSDL binding
     */
    protected void writeDeployBinding(PrintWriter pw, Binding binding) throws IOException {
        BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
        String className = bEntry.getName();
        if (emitter.isSkeletonWanted())
            className += "Skeleton";
        else
            className += "Impl";

View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.BindingEntry

            if (binding == null) {
                throw new IOException(JavaUtils.getMessage("emitFailNoBinding01",
                        new String[] {p.getName()}));
            }
           
            BindingEntry bEntry =
                    symbolTable.getBindingEntry(binding.getQName());
            if (bEntry == null) {
                throw new IOException(JavaUtils.getMessage(
                        "emitFailNoBindingEntry01",
                        new String[] {binding.getQName().toString()}));
            }

            PortTypeEntry ptEntry = symbolTable.getPortTypeEntry(
                    binding.getPortType().getQName());
            if (ptEntry == null) {
                throw new IOException(JavaUtils.getMessage(
                        "emitFailNoPortType01",
                        new String[]
                        {binding.getPortType().getQName().toString()}));
            }

            // If this isn't an SOAP binding, skip it
            if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) {
                continue;
            }

            String portName = Utils.xmlNameToJavaClass(p.getName());

            // If there is not literal use, the interface name is the portType name.
            // Otherwise it is the binding name.
            String bindingType = (String) bEntry.getDynamicVar(JavaBindingWriter.INTERFACE_NAME);

            // Write out the get<PortName> methods
            pw.println("    public String get" + portName + "Address();");
            pw.println();
            pw.println("    public " + bindingType + " get" + portName
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.