projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
56d7263
)
2003/12/22 02:32:04
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 07:43:06 +0000
(07:43 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 07:43:06 +0000
(07:43 +0000)
darcs-hash:
20040130074306
-2ba56-
62c306edb165681a1625d33b482f4f0244cc38a3
.gz
src/org/xwt/SOAP.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/SOAP.java
b/src/org/xwt/SOAP.java
index
5e6d463
..
190d8b4
100644
(file)
--- a/
src/org/xwt/SOAP.java
+++ b/
src/org/xwt/SOAP.java
@@
-1,4
+1,3
@@
-// FIXME
// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
package org.xwt;
@@
-20,17
+19,17
@@
import org.bouncycastle.util.encoders.Base64;
* <li> WSDL support
* </ul>
*/
* <li> WSDL support
* </ul>
*/
-class SOAP /*extends XMLRPC*/ {
- /*
- /&* the desired content of the SOAPAction header &/
+class SOAP extends XMLRPC {
+
+ /** the desired content of the SOAPAction header */
String action = null;
String action = null;
- /&* the namespace to use &/
+ /** the namespace to use */
String nameSpace = null;
String nameSpace = null;
- /&* When you get a property from an SOAP, it just returns another SOAP with the property name tacked onto methodname. &/
+ /** When you get a property from an SOAP, it just returns another SOAP with the property name tacked onto methodname. */
public Object get(String name) {
public Object get(String name) {
- return new SOAP(url.toString(), (methodname.equals("") ? "" : methodname + ".") + name, http, action, nameSpace);
+ return new SOAP(url.toString(), (method.equals("") ? "" : method + ".") + name, http, action, nameSpace);
}
}
@@
-164,7
+163,7
@@
class SOAP /*extends XMLRPC*/ {
}
}
- /&* Appends the SOAP representation of <code>o</code> to <code>sb</code> &/
+ /** Appends the SOAP representation of <code>o</code> to <code>sb</code> */
void appendObject(String name, Object o, StringBuffer sb) throws JSExn {
if (o instanceof Number) {
if ((double)((Number)o).intValue() == ((Number)o).doubleValue()) {
void appendObject(String name, Object o, StringBuffer sb) throws JSExn {
if (o instanceof Number) {
if ((double)((Number)o).intValue() == ((Number)o).doubleValue()) {
@@
-245,7
+244,7
@@
class SOAP /*extends XMLRPC*/ {
}
}
}
}
- protected String send(JSArray args, HTTP http) throws JSExn, IOException {
+ protected String buildRequest(JSArray args) throws JSExn, IOException {
// build up the request
StringBuffer content = new StringBuffer();
content.append("SOAPAction: " + action + "\r\n\r\n");
// build up the request
StringBuffer content = new StringBuffer();
content.append("SOAPAction: " + action + "\r\n\r\n");
@@
-257,7
+256,7
@@
class SOAP /*extends XMLRPC*/ {
content.append(" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\">\r\n");
content.append("<SOAP-ENV:Body>\r\n");
content.append(" <");
content.append(" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\">\r\n");
content.append("<SOAP-ENV:Body>\r\n");
content.append(" <");
- content.append(methodname);
+ content.append(method);
content.append(nameSpace != null ? " xmlns=\"" + nameSpace + "\"" : "");
content.append(">\r\n");
if (args.length() > 0) {
content.append(nameSpace != null ? " xmlns=\"" + nameSpace + "\"" : "");
content.append(">\r\n");
if (args.length() > 0) {
@@
-267,15
+266,17
@@
class SOAP /*extends XMLRPC*/ {
appendObject((String)key, ((JS)args.elementAt(0)).get(key), content);
}
}
appendObject((String)key, ((JS)args.elementAt(0)).get(key), content);
}
}
- content.append(" </" + methodname + "></SOAP-ENV:Body></SOAP-ENV:Envelope>\r\n");
+ content.append(" </" + method + "></SOAP-ENV:Body></SOAP-ENV:Envelope>\r\n");
return content.toString();
}
return content.toString();
}
- SOAP(String url, String methodname, String action, String nameSpace) { this(url, methodname, new HTTP(url), action, nameSpace); }
+ SOAP(String url, String methodname, String action, String nameSpace) {
+ this(url, methodname, new HTTP(url), action, nameSpace);
+ }
SOAP(String url, String methodname, HTTP http, String action, String nameSpace) {
super(url, methodname, http);
this.action = action;
this.nameSpace = nameSpace;
}
SOAP(String url, String methodname, HTTP http, String action, String nameSpace) {
super(url, methodname, http);
this.action = action;
this.nameSpace = nameSpace;
}
-*/
+
}
}