|
From: <pe...@us...> - 2003-12-12 12:32:52
|
Update of /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/soap
In directory sc8-pr-cvs1:/tmp/cvs-serv4502/src/java/org/neuclear/xml/soap
Modified Files:
EchoSOAPServlet.java SOAPTools.java
Log Message:
Working on getting the SOAPServletTest working under cactus
Index: EchoSOAPServlet.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/soap/EchoSOAPServlet.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EchoSOAPServlet.java 24 Nov 2003 23:33:15 -0000 1.1
--- EchoSOAPServlet.java 12 Dec 2003 12:32:49 -0000 1.2
***************
*** 23,26 ****
--- 23,29 ----
$Id$
$Log$
+ Revision 1.2 2003/12/12 12:32:49 pelle
+ Working on getting the SOAPServletTest working under cactus
+
Revision 1.1 2003/11/24 23:33:15 pelle
More Cactus unit testing going on.
***************
*** 34,39 ****
--- 37,50 ----
*/
public class EchoSOAPServlet extends SOAPServlet {
+
protected Element handleSOAPRequest(Element request, String soapAction) throws SOAPException {
+ last=request;
return request;
}
+
+ public Element getLast() {
+ return last;
+ }
+
+ private Element last;
}
Index: SOAPTools.java
===================================================================
RCS file: /cvsroot/neuclear/neuclear-xmlsig/src/java/org/neuclear/xml/soap/SOAPTools.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** SOAPTools.java 10 Dec 2003 23:57:05 -0000 1.5
--- SOAPTools.java 12 Dec 2003 12:32:49 -0000 1.6
***************
*** 1,4 ****
--- 1,7 ----
/* $Id$
* $Log$
+ * Revision 1.6 2003/12/12 12:32:49 pelle
+ * Working on getting the SOAPServletTest working under cactus
+ *
* Revision 1.5 2003/12/10 23:57:05 pelle
* Did some cleaning up in the builders
***************
*** 176,182 ****
}
final OutputStream out = conn.getOutputStream();
! out.write(SOAP_START);
! out.write(request.getBytes());
! out.write(SOAP_END);
out.close();
return conn.getInputStream();
--- 179,183 ----
}
final OutputStream out = conn.getOutputStream();
! createSoapRequestString(out, request);
out.close();
return conn.getInputStream();
***************
*** 184,187 ****
--- 185,194 ----
throw new NeuClearException(e);
}
+ }
+
+ public static void createSoapRequestString(final OutputStream out, final String request) throws IOException {
+ out.write(SOAP_START);
+ out.write(request.getBytes());
+ out.write(SOAP_END);
}
|