/** * Use the JOnASServiceWriter instead of default JavaServiceWriter * @param binding wsdl:binding * @param symbolTable symbol Table * @return Returns the JOnASJ2eeBindingWriter */ public Generator getGenerator(Binding binding, SymbolTable symbolTable) { Generator writer = new JOnASEWSBindingWriter(emitter, binding, symbolTable); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); bindingWriters.addStuff(writer, bEntry, symbolTable); return bindingWriters; }
Port myPort = (Port) portIterator.next(); BindingEntry bEntry = symbolTable.getBindingEntry(myPort.getBinding().getQName());
Port myPort = (Port) portIterator.next(); BindingEntry bEntry = symbolTable.getBindingEntry(myPort.getBinding().getQName());
Port myPort = (Port) portIterator.next(); BindingEntry bEntry = symbolTable.getBindingEntry(myPort.getBinding().getQName());
Binding binding = (Binding) bindi.next(); BindingEntry entry = symbolTable.getBindingEntry(binding.getQName());
/** * Write out deployment and undeployment instructions for each WSDL service * @param pw PrintWriter * @throws IOException when services cannot be created */ protected void writeDeployServices(PrintWriter pw) throws IOException { // deploy the ports on each service Map serviceMap = getDefinition().getServices(); ServiceDesc desc = getJonasWSContext().getServiceDesc(); for (Iterator mapIterator = serviceMap.values().iterator(); mapIterator.hasNext();) { Service myService = (Service) mapIterator.next(); pw.println(); pw.println(" <!-- " + Messages.getMessage("wsdlService00", myService.getQName().getLocalPart()) + " -->"); pw.println(); for (Iterator portIterator = myService.getPorts().values().iterator(); portIterator.hasNext();) { Port myPort = (Port) portIterator.next(); BindingEntry bEntry = getSymbolTable().getBindingEntry(myPort.getBinding().getQName()); // If this isn't an SOAP binding, skip it if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue; } PortComponentDesc portDesc = findPortComponentDesc(desc, myPort); if (portDesc != null) { // write ports described by the current ServiceDesc writeDeployPort(pw, myService, bEntry, portDesc); } } } } // writeDeployServices
Binding binding = p.getBinding(); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
Binding binding = p.getBinding(); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
BindingEntry bEntry = getBindingEntry(binding.getQName());
/** * Gets the name of the binding type associated to the specified Port. * * @param port Port to process * @return Binding class name */ protected final String getBindingType(Port port) { Binding binding = port.getBinding(); if (binding == null) { return null; } BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); // If this isn't an SOAP binding, skip it if (bEntry == null || bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { return null; } return (String) bEntry.getDynamicVar(JavaBindingWriter.INTERFACE_NAME); }
SymbolTable symbolTable = wsdlParser.getSymbolTable(); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); Iterator i = bEntry.getParameters().keySet().iterator();
BindingEntry bEntry = getBindingEntry(binding.getQName());
SymbolTable symbolTable = wsdlParser.getSymbolTable(); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); Iterator i = bEntry.getParameters().keySet().iterator();
BindingEntry bEntry = getBindingEntry(binding.getQName());
SymbolTable symbolTable = wsdlParser.getSymbolTable(); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); Iterator i = bEntry.getParameters().keySet().iterator();
/** * Write out deployment and undeployment instructions for each WSDL service * @param pw PrintWriter * @throws IOException IOException */ protected void writeDeployServices(PrintWriter pw) throws IOException { int sRefIndex = getJonasWSContext().getServiceReferenceContextCount(); // should only have 1 service-ref if (sRefIndex == 1) { ServiceReferenceContext ctx = getJonasWSContext().getServiceReferenceContext(0); QName desiredServiceQName = ctx.getServiceQName(); Service myService = getDefinition().getService(desiredServiceQName); // Generate only if there is a Service if (myService != null) { pw.println(); pw.println(" <!-- " + Messages.getMessage("wsdlService00", myService.getQName().getLocalPart()) + " -->"); pw.println(); for (Iterator portIterator = myService.getPorts().values().iterator(); portIterator.hasNext();) { Port myPort = (Port) portIterator.next(); BindingEntry bEntry = getSymbolTable().getBindingEntry(myPort.getBinding().getQName()); // If this isn't an SOAP binding, skip it if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue; } writeDeployPort(pw, myPort, bEntry, ctx); } } } }
BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); if(bEntry.getParameters().size() != proxyInterface.getMethods().length) { throw new ServiceException(Messages.getMessage("incompatibleSEI00", "" + proxyInterface.getName()));
/** * Method getGenerator * * @param binding * @param symbolTable * @return */ public Generator getGenerator(Binding binding, SymbolTable symbolTable) { if (include(binding.getQName())) { Generator writer = new JavaBindingWriter(emitter, binding, symbolTable); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); bindingWriters.addStuff(writer, bEntry, symbolTable); return bindingWriters; } else { return new NoopGenerator(); } } // getGenerator
/** * Method getGenerator * * @param binding * @param symbolTable * @return */ public Generator getGenerator(Binding binding, SymbolTable symbolTable) { if (include(binding.getQName())) { Generator writer = new JavaBindingWriter(emitter, binding, symbolTable); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); bindingWriters.addStuff(writer, bEntry, symbolTable); return bindingWriters; } else { return new NoopGenerator(); } } // getGenerator
/** * Method getGenerator * * @param binding * @param symbolTable * @return */ public Generator getGenerator(Binding binding, SymbolTable symbolTable) { if (include(binding.getQName())) { Generator writer = new JavaBindingWriter(emitter, binding, symbolTable); BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName()); bindingWriters.addStuff(writer, bEntry, symbolTable); return bindingWriters; } else { return new NoopGenerator(); } } // getGenerator