本文整理汇总了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);
}