當前位置: 首頁>>代碼示例>>Java>>正文


Java SOAPFactory.createName方法代碼示例

本文整理匯總了Java中javax.xml.soap.SOAPFactory.createName方法的典型用法代碼示例。如果您正苦於以下問題:Java SOAPFactory.createName方法的具體用法?Java SOAPFactory.createName怎麽用?Java SOAPFactory.createName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在javax.xml.soap.SOAPFactory的用法示例。


在下文中一共展示了SOAPFactory.createName方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: parseBody

import javax.xml.soap.SOAPFactory; //導入方法依賴的package包/類
@Override
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    Iterator pi = getRequestChildElement(spf, body, "ExecResponseList").getChildElements(spf.createName("ExecResponseStruct"));
    Name nameKey = spf.createName("Command");
    Name nameValue = spf.createName("Response");
    while (pi.hasNext()) {
        SOAPElement param = (SOAPElement) pi.next();
        String key = getRequestElement(param, nameKey);
        String value = getRequestElement(param, nameValue);
        if (value == null) {
            value = "";
        }
        System.out.append(key + "->" + value);
        response.put(key, value);
    }
}
 
開發者ID:navisidhu,項目名稱:libreacs,代碼行數:17,代碼來源:X_00000C_ShowStatusResponse.java

示例2: parseBody

import javax.xml.soap.SOAPFactory; //導入方法依賴的package包/類
@Override
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    Iterator pi = getRequestChildElement(spf, body, "TransferList").getChildElements(spf.createName("QueuedTransferStruct"));
    Name nameCommandKey = spf.createName(COMMAND_KEY);
    Name nameState = spf.createName("State");
    TransferList = new Hashtable<String, String>();
    while (pi.hasNext()) {
        SOAPElement param = (SOAPElement) pi.next();
        String key = getRequestElement(param, nameCommandKey);
        String state = getRequestElement(param, nameState);
        TransferList.put(key, state);
    }

}
 
開發者ID:navisidhu,項目名稱:libreacs,代碼行數:15,代碼來源:GetQueuedTransfersResponse.java

示例3: parseBody

import javax.xml.soap.SOAPFactory; //導入方法依賴的package包/類
protected void parseBody(SOAPBodyElement body, SOAPFactory spf) throws SOAPException {
    SOAPElement ml = getRequestChildElement(spf, body, "ParameterList");
    int i = getArrayCount(spf, ml);
    Iterator mlist = ml.getChildElements(spf.createName("ParameterAttributeStruct"));
    attributes = new ParameterAttributeStruct[i];
    Name nameKey = spf.createName("Name");
    Name nameNotification = spf.createName("Notification");
    Name nameAccessList = spf.createName("AccessList");
    Name nameString = spf.createName("string");
    //System.out.println ("start "+i);
    i = 0;
    while (mlist.hasNext()) {
        SOAPElement param = (SOAPElement) mlist.next();
        attributes[i] = new ParameterAttributeStruct();
        attributes[i].Name = getRequestElement(param, nameKey);
        attributes[i].Notification = Integer.parseInt(getRequestElement(param, nameNotification));
        //System.out.println ("Attrbiute: name="+attributes[i].Name+", notification="+attributes[i].Notification);
        // get acl array        
        SOAPElement elementAccessList = getRequestChildElement(spf, param, "AccessList");
        int ii = getArrayCount(spf, elementAccessList);
        attributes[i].AccessList = new String[ii];

        System.out.println("Access list length: " + ii);
        ii = 0;
        Iterator iteratorAccessList = elementAccessList.getChildElements(nameString);
        while (iteratorAccessList.hasNext()) {
            attributes[i].AccessList[ii++] = ((SOAPElement) iteratorAccessList.next()).getValue();
            //System.out.println ("acl= "+attributes[i].AccessList[ii-1]);
        }
        i++;
    }

}
 
開發者ID:navisidhu,項目名稱:libreacs,代碼行數:34,代碼來源:GetParameterAttributesResponse.java

示例4: getOperation

import javax.xml.soap.SOAPFactory; //導入方法依賴的package包/類
protected Name getOperation() throws SOAPException {
    SOAPFactory soapFactory = getSoapFactory();
    return soapFactory.createName(getOperationName(), "mdw", PAYLOAD_NAMESPACE);
}
 
開發者ID:CenturyLinkCloud,項目名稱:mdw,代碼行數:5,代碼來源:MdwRpcWebServiceAdapter.java


注:本文中的javax.xml.soap.SOAPFactory.createName方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。