西瓜看球 v2.9.13版本的 MD5 值为:755288f3c36852638c41cf20ae0d004e
以下内容为反编译后的 SOAP.java 源代码,内容仅作参考
package org.cybergarage.soap;
import org.cybergarage.xml.Node;
import org.cybergarage.xml.Parser;
public class SOAP {
public static final String BODY = "Body";
public static final String CONTENT_TYPE = "text/xml; charset=\"utf-8\"";
public static final String DELIM = ":";
public static final String DETAIL = "detail";
public static final String ENCSTYLE_URL = "http://schemas.xmlsoap.org/soap/encoding/";
public static final String ENVELOPE = "Envelope";
public static final String ERROR_CODE = "errorCode";
public static final String ERROR_DESCRIPTION = "errorDescription";
public static final String FAULT = "Fault";
public static final String FAULTACTOR = "faultactor";
public static final String FAULT_CODE = "faultcode";
public static final String FAULT_STRING = "faultstring";
public static final String METHODNS = "u";
public static final String RESPONSE = "Response";
public static final String RESULTSTATUS = "ResultStatus";
public static final String UPNP_ERROR = "UPnPError";
public static final String VERSION_HEADER = "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
public static final String XMLNS = "s";
public static final String XMLNS_URL = "http://schemas.xmlsoap.org/soap/envelope/";
private static Parser xmlParser;
public static final Node createEnvelopeBodyNode() {
Node node = new Node("s:Envelope");
node.setAttribute("xmlns:s", XMLNS_URL);
node.setAttribute("s:encodingStyle", ENCSTYLE_URL);
node.addNode(new Node("s:Body"));
return node;
}
public static final void setXMLParser(Parser parser) {
xmlParser = parser;
}
public static final Parser getXMLParser() {
return xmlParser;
}
}