本文整理匯總了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);
}
}
示例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);
}
}
示例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++;
}
}
示例4: getOperation
import javax.xml.soap.SOAPFactory; //導入方法依賴的package包/類
protected Name getOperation() throws SOAPException {
SOAPFactory soapFactory = getSoapFactory();
return soapFactory.createName(getOperationName(), "mdw", PAYLOAD_NAMESPACE);
}