Package org.xmlsoap.schemas.wsdl

Examples of org.xmlsoap.schemas.wsdl.TDefinitions


      throws Exception {
  this.lookupService = lookupService;

    BeehiveWsTypeMetadata wsm = new Jsr181TypeMetadataImpl();
    Map<String, BeehiveWsMethodMetadata> methodMap = new HashMap<String, BeehiveWsMethodMetadata>();
    TDefinitions defs = defDoc.getDefinitions();
    wsm.setWsTargetNamespace(defs.getTargetNamespace());
    Map<String, TPart[]> messageMap = new HashMap<String, TPart[]>();

    if (defs.sizeOfServiceArray() > 0) {
      wsm.setWsServiceName(defs.getServiceArray(0).getName());
    }

    if (defs.sizeOfMessageArray() > 0) {
      TMessage[] messages = defs.getMessageArray();
      for (TMessage msg : messages) {
        messageMap.put(msg.getName(), msg.getPartArray());
      }
    }

    TBinding tBind = null;
    if (defs.sizeOfBindingArray() > 0) {
      tBind = defs.getBindingArray(0);
      processTBinding(tBind, wsm);
    }

    if (defs.sizeOfPortTypeArray() > 0) {
      TPortType tP = defs.getPortTypeArray(0);
      wsm.setWsName(tP.getName());
      TOperation[] operations = tP.getOperationArray();
      TTypes types = null;
      if (defs.sizeOfTypesArray() > 0) {
        types = defs.getTypesArray(0);
      }

      for (TOperation op : operations) {

        processTOperation(op, wsm, methodMap, messageMap, tBind, types);
View Full Code Here


             String so I could directly pass in the input stream instead of
             providing the schema elements individually.
            */
            DefinitionsDocument defDoc = DefinitionsDocument.Factory
                    .newInstance();
            TDefinitions definitions = defDoc.addNewDefinitions();
            definitions.addNewService();
            Node defEl = definitions.newDomNode(new XmlOptions()
                    .setSaveOuter());
            Document dDoc = defEl.getOwnerDocument();
            if (null == dDoc.getDocumentElement()) {
                dDoc.appendChild(defEl);
            }
View Full Code Here

TOP

Related Classes of org.xmlsoap.schemas.wsdl.TDefinitions

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.