Return-Path: Delivered-To: apmail-xml-general-archive@xml.apache.org Received: (qmail 90791 invoked by uid 500); 6 Jan 2002 10:59:57 -0000 Mailing-List: contact general-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: general@xml.apache.org Delivered-To: mailing list general@xml.apache.org Received: (qmail 90766 invoked from network); 6 Jan 2002 10:59:56 -0000 Importance: Normal Sensitivity: Subject: Axis and security (was: Forrest Layout 1.4) To: general@xml.apache.org Cc: axis-dev@xml.apache.org X-Mailer: Lotus Notes Release 5.0.5 September 22, 2000 Message-ID: From: "Sam Ruby" Date: Sun, 6 Jan 2002 05:59:25 -0500 X-MIMETrack: Serialize by Router on D04NM201/04/M/IBM(Release 5.0.9 |November 16, 2001) at 01/06/2002 06:00:27 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Note: I'm cross posting to Axis dev. Please continue the discussion there. Christian Geuer-Pollmann wrote: > > I'm not an Apache SOAP/AXIS user, so it was hard for me to play around with > these tools. I asked soap-user and soap-dev how I can directly access the > soap message as a DOM tree to add a SOAP-SECURITY signature. Unfortunately > no response. I want to add an example to xml-security how a SOAP message > can be signed and this signature can be verified according to [1]. If there > is someone out there who can show me how to create a simple SOAP msg using > AXIS and how I can modify the resulting DOM tree, I'll provide this > example. The only thing that stopped me was installing tomcat and all these > things. See: http://cvs.apache.org/viewcvs.cgi/xml-axis/java/samples/message/ While the installation documents are written assuming you will be targetting a servlet engine: http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/docs/install.html ... you can develop and debug using your classpath and a standalone version: http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java Note: while this is enough to get you started, the real problem to be solved is a bit more involved. See http://www.w3.org/TR/SOAP-dsig/ . What you probably want to do is to define a handler. An existing handler that treats the message as a whole can be found at: http://cvs.apache.org/viewcvs.cgi/~checkout~/xml-axis/java/src/org/apache/axis/handlers/LogHandler.java And while to choses to get the message as a string, you can also call the getAsDOM method on the SOAPEnvelope: http://nagoya.apache.org/gump/javadoc/xml-axis/java/build/javadocs/org/apache/axis/message/SOAPEnvelope.html If you would like to see what the finished result would look like, see: http://www.alphaworks.ibm.com/tech/webservicestoolkit/ - Sam Ruby --------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org