Examples of addExtensibilityElement()


Examples of javax.wsdl.Port.addExtensibilityElement()

            String addr = (String) env.get(ToolCorbaConstants.CFG_ADDRESS);
            if (addr == null) {
                addr = "IOR:";
            }
            address.setLocation(addr);
            port.addExtensibilityElement(address);
            service.addPort(port);
            port.setBinding(bindings[i]);
            def.addService(service);
        }
    }
View Full Code Here

Examples of javax.wsdl.Port.addExtensibilityElement()

        port.setName(this.name + "Port");

        if (locationURI != null) {
            SOAPAddress soapAddress = new SOAPAddressImpl();
            soapAddress.setLocationURI(locationURI);
            port.addExtensibilityElement(soapAddress);
        }

        Service service = def.createService();
        service.setQName(new QName(TNS, this.name));
        service.addPort(port);
View Full Code Here

Examples of javax.wsdl.Port.addExtensibilityElement()

        Port port = definition.createPort();
        port.setName("MockPort");
        //add soap:address
        SOAPAddress soapAddress = (SOAPAddress) extensionRegistry.createExtension(Port.class, new QName("http://schemas.xmlsoap.org/wsdl/soap/", "address"));
        soapAddress.setLocationURI("http://127.0.0.1:8080/foo");
        port.addExtensibilityElement(soapAddress);
        port.setBinding(binding);
        javax.wsdl.Service service = definition.createService();
        service.setQName(new QName(NAMESPACE, "MockService"));
        service.addPort(port);
        definition.addService(service);
View Full Code Here

Examples of javax.wsdl.PortType.addExtensibilityElement()

          portType.addOperation(op);
        }
      }
      else
      {
        portType.addExtensibilityElement(
          parseExtensibilityElement(PortType.class, tempEl, def));
      }

      tempEl = DOMUtils.getNextSiblingElement(tempEl);
    }
View Full Code Here

Examples of javax.wsdl.Service.addExtensibilityElement()

      {
        service.addPort(parsePort(tempEl, def));
      }
      else
      {
        service.addExtensibilityElement(
          parseExtensibilityElement(Service.class, tempEl, def));
      }

      tempEl = DOMUtils.getNextSiblingElement(tempEl);
    }
View Full Code Here

Examples of javax.wsdl.Types.addExtensibilityElement()

                importelement.setAttribute("namespace", entry.getKey());
                importelement.setAttribute("schemaLocation", entry.getValue());
                element.appendChild(importelement);
            }
            schema.setElement(element);
            types.addExtensibilityElement(schema);
            definition.setTypes(types);
        } catch (Exception e) {
            throw new ToolException(msg, e);
        }
View Full Code Here

Examples of javax.wsdl.Types.addExtensibilityElement()

        } catch (WSDLException wse) {
            Message msg = new Message("FAIL_TO_CREATE_SCHEMA_EXTENSION", LOG);
            throw new ToolException(msg, wse);
        }
        ((Schema)extElement).setElement(targetElement);
        types.addExtensibilityElement(extElement);
        this.wsdlDefinition.setTypes(types);

        WSDLWriter wsdlWriter = wsdlFactory.newWSDLWriter();
        Writer outputWriter = getOutputWriter();
View Full Code Here

Examples of javax.wsdl.Types.addExtensibilityElement()

            nsMap.add("xs", Constants.URI_2001_SCHEMA_XSD);
        }
        org.w3c.dom.Element el = XmlSchemaSerializer.serializeSchema(schema, true)[0].getDocumentElement();
        wsdlSchema.setElement(el);
       
        types.addExtensibilityElement(wsdlSchema);

        definition.setTypes(types);
    }

    private void addAnyType() {
View Full Code Here

Examples of javax.wsdl.Types.addExtensibilityElement()

                definition.addNamespace(prefix, schemas[i].getTargetNamespace());
            }
            Element schemaElement = getSchemaElement(schemas[i]);
            Schema schema = (Schema) definition.getExtensionRegistry()
                    .createExtension(Types.class, new QName("http://www.w3.org/2001/XMLSchema", "schema"));
            types.addExtensibilityElement(schema);
            schema.setElement(schemaElement);
        }
        definition.setTypes(types);
    }
View Full Code Here

Examples of javax.wsdl.Types.addExtensibilityElement()

                        imp.setReferencedSchema(schemaImpl2);
                       
                        schemaImpl.addRedefine(imp);
                    }
                }
                types.addExtensibilityElement(schemaImpl);
            } else {
                //imports
                String name = baseFileName + "_schema" + (++xsdCount) + ".xsd";
                Element imp = XMLUtils.createElementNS(doc,
                                                       new QName(WSDLConstants.NS_SCHEMA_XSD,
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.