/** * The --all flag is set on the command line (or generateAll(true) is called * on WSDL2Java). Set all symbols as referenced (except nonSOAP bindings * which we don't know how to deal with). */ protected void setAllReferencesToTrue() { Iterator it = symbolTable.getHashMap().values().iterator(); while (it.hasNext()) { Vector v = (Vector) it.next(); for (int i = 0; i < v.size(); ++i) { SymTabEntry entry = (SymTabEntry) v.elementAt(i); if ((entry instanceof BindingEntry) && ((BindingEntry) entry).getBindingType() != BindingEntry.TYPE_SOAP) { entry.setIsReferenced(false); } else { entry.setIsReferenced(true); } } } } // setAllReferencesToTrue
/** * The --all flag is set on the command line (or generateAll(true) is called * on WSDL2Java). Set all symbols as referenced (except nonSOAP bindings * which we don't know how to deal with). */ protected void setAllReferencesToTrue() { Iterator it = symbolTable.getHashMap().values().iterator(); while (it.hasNext()) { Vector v = (Vector) it.next(); for (int i = 0; i < v.size(); ++i) { SymTabEntry entry = (SymTabEntry) v.elementAt(i); if ((entry instanceof BindingEntry) && ((BindingEntry) entry).getBindingType() != BindingEntry.TYPE_SOAP) { entry.setIsReferenced(false); } else { entry.setIsReferenced(true); } } } } // setAllReferencesToTrue
/** * The --all flag is set on the command line (or generateAll(true) is called * on WSDL2Java). Set all symbols as referenced (except nonSOAP bindings * which we don't know how to deal with). */ protected void setAllReferencesToTrue() { Iterator it = symbolTable.getHashMap().values().iterator(); while (it.hasNext()) { Vector v = (Vector) it.next(); for (int i = 0; i < v.size(); ++i) { SymTabEntry entry = (SymTabEntry) v.elementAt(i); if ((entry instanceof BindingEntry) && ((BindingEntry) entry).getBindingType() != BindingEntry.TYPE_SOAP) { entry.setIsReferenced(false); } else { entry.setIsReferenced(true); } } } } // setAllReferencesToTrue
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
symbolTable.getPortTypeEntry(portType.getQName()); if (bEntry.getBindingType() == BindingEntry.TYPE_SOAP) {
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
/** * 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
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
/** * 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); }
/** * 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); } } } }
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
if (bEntry.getBindingType() != BindingEntry.TYPE_SOAP) { continue;
Document doc) { if (entry.getBindingType() == BindingEntry.TYPE_SOAP) {
Document doc) { if (entry.getBindingType() == BindingEntry.TYPE_SOAP) {
Document doc) { if (entry.getBindingType() == BindingEntry.TYPE_SOAP) {