Examples of XMLAttr


Examples of org.apache.woden.xml.XMLAttr

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList<String> al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList<String>();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

Examples of org.apache.woden.xml.XMLAttr

        message.setName(elementQName != null ? elementQName.getLocalPart() : axisOperation.getName().getLocalPart());
        axisOperation.addMessage(message, messageLabel);

       
        if(WSDLConstants.MESSAGE_LABEL_IN_VALUE.equals(messageLabel)){
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              ArrayList al = axisOperation.getWSAMappingList();
              if(al == null){
                al = new ArrayList();
                axisOperation.setWsamappingList(al);
              }
              al.add(value);
            }
          }
        }else{
          XMLAttr xa = messageReference.toElement().getExtensionAttribute(new QName("http://www.w3.org/2006/05/addressing/wsdl","Action"));
          if(xa!=null){
            String value = (String)xa.getContent();
            if(value != null){
              axisOperation.setOutputAction(value);
            }
          }
        }
View Full Code Here

Examples of org.apache.woden.xml.XMLAttr

                {
                    //TODO reg namespaces at appropriate element scope, not just at desc.
                    //DOMUtils.registerUniquePrefix(prefix, namespaceURI, desc);
                   
                    ExtensionRegistry extReg = fWsdlContext.extensionRegistry;
                    XMLAttr xmlAttr = extReg.createExtAttribute(wsdlClass, attrType, extEl, attrValue);
                    if(xmlAttr != null) //TODO use an 'UnknownAttr' class in place of null
                    {
                        wsdlObj.setExtensionAttribute(attrType, xmlAttr);
                    }
                }
View Full Code Here

Examples of org.apache.woden.xml.XMLAttr

                                      PrintWriter pw)
                                      throws WSDLException
       {
        if(attrExts!=null){
            for(int index=0;index<attrExts.length;index++){
                XMLAttr attrExt=attrExts[index];
                if(attrExt!=null){
                    QName ns=attrExt.getAttributeType();
                    String attrName;
                    String attrLocalName=ns.getLocalPart();
                    String attrValue=attrExt.toExternalForm();
                    if(ns!=null){
                        String attrPrefix=ns.getPrefix();
                        attrName=
                            OMUtils.getQualifiedValue(ownerElem.getNamespaceURI(attrPrefix).toString(),
                                    attrLocalName, ownerElem);
View Full Code Here

Examples of org.apache.woden.xml.XMLAttr

  public XMLAttr createExtAttribute(Class ownerClass, QName attrQName, XMLElement ownerElement, String attrValue)
                                          throws WSDLException
  {
      Map innerExtensionAttributeReg = (Map)extAttributeReg.get(ownerClass);
      Class implClass = null;
      XMLAttr attr = null;
     
      if (innerExtensionAttributeReg != null)
      {
          implClass = (Class)innerExtensionAttributeReg.get(attrQName);
      }
View Full Code Here

Examples of org.apache.woden.xml.XMLAttr

                                      PrintWriter pw)
                                      throws WSDLException
       {
        if(attrExts!=null){
            for(int index=0;index<attrExts.length;index++){
                XMLAttr attrExt=attrExts[index];
                if(attrExt!=null){
                    QName ns=attrExt.getAttributeType();
                    String attrName;
                    String attrLocalName=ns.getLocalPart();
                    String attrValue=attrExt.toExternalForm();
                    if(ns!=null){
                        String attrPrefix=ns.getPrefix();
                        attrName=
                            DOMUtils.getQualifiedValue(ownerElem.getNamespaceURI(attrPrefix).toString(),
                                    attrLocalName, ownerElem);
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.