From dtorres@example.com Mon May 15 18:35:43 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 52518 invoked from network); 15 May 2000 18:35:43 -0000 Received: from mercury.sun.com (83.161.120.155) by locus.apache.org with SMTP; 15 May 2000 18:35:43 -0000 Received: from shorter.eng.sun.com ([83.161.120.155]) by mercury.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id LAA26522 for <dtorres@example.com>; Mon, 15 May 2000 11:35:41 -0700 (PDT) Received: from eng.sun.com (d-ucup02-124-78 [83.161.120.155]) by shorter.eng.sun.com (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with ESMTP id LAA09511 for <dtorres@example.com>; Mon, 15 May 2000 11:35:41 -0700 (PDT) Message-ID: <dtorres@example.com> Date: Mon, 15 May 2000 11:47:17 -0700 From: James Duncan Davidson <dtorres@example.com> X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 To: dtorres@example.com Subject: Testing soap-dev Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Just a test, Sam, you should see this as well... From dtorres@example.com Mon May 15 21:55:39 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 44308 invoked by uid 500); 15 May 2000 21:55:39 -0000 Delivered-To: dtorres@example.com Received: (qmail 44305 invoked by uid 1044); 15 May 2000 21:55:39 -0000 Date: 15 May 2000 21:55:39 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap README duncan 00/05/15 14:55:39 Modified: . README Log: Test checkin to make sure things are working Revision Changes Path 1.2 +0 -2 xml-soap/README Index: README =================================================================== RCS file: /home/cvs/xml-soap/README,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- README 2000/05/15 18:09:30 1.1 +++ README 2000/05/15 21:55:38 1.2 @@ -3,5 +3,3 @@ This is the xml-soap repository. -Sam, fill this out however you want. -We'll also need a license file of course. From dtorres@example.com Mon May 15 23:47:34 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 82610 invoked by uid 500); 15 May 2000 23:47:34 -0000 Delivered-To: dtorres@example.com Received: (qmail 82607 invoked by uid 1064); 15 May 2000 23:47:33 -0000 Date: 15 May 2000 23:47:33 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap README rubys 00/05/15 16:47:33 Modified: . README Log: testing CVS access Revision Changes Path 1.3 +1 -1 xml-soap/README Index: README =================================================================== RCS file: /home/cvs/xml-soap/README,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- README 2000/05/15 21:55:38 1.2 +++ README 2000/05/15 23:47:33 1.3 @@ -1,5 +1,5 @@ xml-soap -------------------------------------------------------------------------- -This is the xml-soap repository. +Watch this space. From dtorres@example.com Sun May 21 23:42:43 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 95572 invoked by uid 500); 21 May 2000 23:42:43 -0000 Delivered-To: dtorres@example.com Received: (qmail 95566 invoked by uid 1064); 21 May 2000 23:42:42 -0000 Date: 21 May 2000 23:42:42 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java - New directory rubys 00/05/21 16:42:42 xml-soap/java - New directory From dtorres@example.com Sun May 21 23:44:59 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 95934 invoked by uid 500); 21 May 2000 23:44:59 -0000 Delivered-To: dtorres@example.com Received: (qmail 95931 invoked by uid 1064); 21 May 2000 23:44:59 -0000 Date: 21 May 2000 23:44:59 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src - New directory rubys 00/05/21 16:44:59 xml-soap/java/src - New directory From dtorres@example.com Sun May 21 23:49:28 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96546 invoked by uid 500); 21 May 2000 23:49:28 -0000 Delivered-To: dtorres@example.com Received: (qmail 96543 invoked by uid 1064); 21 May 2000 23:49:27 -0000 Date: 21 May 2000 23:49:27 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/com - New directory rubys 00/05/21 16:49:27 xml-soap/java/src/com - New directory From dtorres@example.com Sun May 21 23:49:33 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96582 invoked by uid 500); 21 May 2000 23:49:33 -0000 Delivered-To: dtorres@example.com Received: (qmail 96576 invoked by uid 1064); 21 May 2000 23:49:33 -0000 Date: 21 May 2000 23:49:33 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/com/ibm - New directory rubys 00/05/21 16:49:33 xml-soap/java/src/com/ibm - New directory From dtorres@example.com Sun May 21 23:49:38 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96634 invoked by uid 500); 21 May 2000 23:49:38 -0000 Delivered-To: dtorres@example.com Received: (qmail 96631 invoked by uid 1064); 21 May 2000 23:49:37 -0000 Date: 21 May 2000 23:49:37 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org - New directory rubys 00/05/21 16:49:37 xml-soap/java/src/org - New directory From dtorres@example.com Sun May 21 23:50:39 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96864 invoked by uid 500); 21 May 2000 23:50:39 -0000 Delivered-To: dtorres@example.com Received: (qmail 96861 invoked by uid 1064); 21 May 2000 23:50:39 -0000 Date: 21 May 2000 23:50:39 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache - New directory rubys 00/05/21 16:50:39 xml-soap/java/src/org/apache - New directory From dtorres@example.com Sun May 21 23:50:46 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96920 invoked by uid 500); 21 May 2000 23:50:46 -0000 Delivered-To: dtorres@example.com Received: (qmail 96917 invoked by uid 1064); 21 May 2000 23:50:46 -0000 Date: 21 May 2000 23:50:46 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap - New directory rubys 00/05/21 16:50:46 xml-soap/java/src/org/apache/soap - New directory From dtorres@example.com Sun May 21 23:51:08 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 96995 invoked by uid 500); 21 May 2000 23:51:08 -0000 Delivered-To: dtorres@example.com Received: (qmail 96992 invoked by uid 1064); 21 May 2000 23:51:08 -0000 Date: 21 May 2000 23:51:08 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/encoding - New directory rubys 00/05/21 16:51:08 xml-soap/java/src/org/apache/soap/encoding - New directory From dtorres@example.com Sun May 21 23:51:14 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97028 invoked by uid 500); 21 May 2000 23:51:14 -0000 Delivered-To: dtorres@example.com Received: (qmail 97025 invoked by uid 1064); 21 May 2000 23:51:14 -0000 Date: 21 May 2000 23:51:14 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/encoding/soapenc - New directory rubys 00/05/21 16:51:14 xml-soap/java/src/org/apache/soap/encoding/soapenc - New directory From dtorres@example.com Sun May 21 23:51:57 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97181 invoked by uid 500); 21 May 2000 23:51:57 -0000 Delivered-To: dtorres@example.com Received: (qmail 97178 invoked by uid 1064); 21 May 2000 23:51:57 -0000 Date: 21 May 2000 23:51:57 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/encoding/xmi - New directory rubys 00/05/21 16:51:56 xml-soap/java/src/org/apache/soap/encoding/xmi - New directory From dtorres@example.com Sun May 21 23:52:27 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97263 invoked by uid 500); 21 May 2000 23:52:27 -0000 Delivered-To: dtorres@example.com Received: (qmail 97260 invoked by uid 1064); 21 May 2000 23:52:27 -0000 Date: 21 May 2000 23:52:27 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/rpc - New directory rubys 00/05/21 16:52:27 xml-soap/java/src/org/apache/soap/rpc - New directory From dtorres@example.com Sun May 21 23:53:02 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97388 invoked by uid 500); 21 May 2000 23:53:02 -0000 Delivered-To: dtorres@example.com Received: (qmail 97382 invoked by uid 1064); 21 May 2000 23:53:02 -0000 Date: 21 May 2000 23:53:02 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/server - New directory rubys 00/05/21 16:53:02 xml-soap/java/src/org/apache/soap/server - New directory From dtorres@example.com Sun May 21 23:55:17 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97788 invoked by uid 500); 21 May 2000 23:55:17 -0000 Delivered-To: dtorres@example.com Received: (qmail 97784 invoked by uid 1064); 21 May 2000 23:55:17 -0000 Date: 21 May 2000 23:55:17 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/transport - New directory rubys 00/05/21 16:55:17 xml-soap/java/src/org/apache/soap/transport - New directory From dtorres@example.com Sun May 21 23:55:25 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97845 invoked by uid 500); 21 May 2000 23:55:25 -0000 Delivered-To: dtorres@example.com Received: (qmail 97841 invoked by uid 1064); 21 May 2000 23:55:25 -0000 Date: 21 May 2000 23:55:25 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/transport/http - New directory rubys 00/05/21 16:55:25 xml-soap/java/src/org/apache/soap/transport/http - New directory From dtorres@example.com Sun May 21 23:55:55 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 97933 invoked by uid 500); 21 May 2000 23:55:55 -0000 Delivered-To: dtorres@example.com Received: (qmail 97926 invoked by uid 1064); 21 May 2000 23:55:54 -0000 Date: 21 May 2000 23:55:54 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/transport/smtp - New directory rubys 00/05/21 16:55:54 xml-soap/java/src/org/apache/soap/transport/smtp - New directory From dtorres@example.com Sun May 21 23:56:36 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98048 invoked by uid 500); 21 May 2000 23:56:36 -0000 Delivered-To: dtorres@example.com Received: (qmail 98044 invoked by uid 1064); 21 May 2000 23:56:35 -0000 Date: 21 May 2000 23:56:35 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/util - New directory rubys 00/05/21 16:56:35 xml-soap/java/src/org/apache/soap/util - New directory From dtorres@example.com Sun May 21 23:56:42 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98082 invoked by uid 500); 21 May 2000 23:56:42 -0000 Delivered-To: dtorres@example.com Received: (qmail 98077 invoked by uid 1064); 21 May 2000 23:56:41 -0000 Date: 21 May 2000 23:56:41 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/net - New directory rubys 00/05/21 16:56:41 xml-soap/java/src/org/apache/soap/util/net - New directory From dtorres@example.com Sun May 21 23:57:10 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98163 invoked by uid 500); 21 May 2000 23:57:10 -0000 Delivered-To: dtorres@example.com Received: (qmail 98160 invoked by uid 1064); 21 May 2000 23:57:10 -0000 Date: 21 May 2000 23:57:10 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/type - New directory rubys 00/05/21 16:57:10 xml-soap/java/src/org/apache/soap/util/type - New directory From dtorres@example.com Sun May 21 23:57:26 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98234 invoked by uid 500); 21 May 2000 23:57:26 -0000 Delivered-To: dtorres@example.com Received: (qmail 98230 invoked by uid 1064); 21 May 2000 23:57:26 -0000 Date: 21 May 2000 23:57:26 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/xml - New directory rubys 00/05/21 16:57:26 xml-soap/java/src/org/apache/soap/util/xml - New directory From dtorres@example.com Sun May 21 23:59:49 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98606 invoked by uid 500); 21 May 2000 23:59:49 -0000 Delivered-To: dtorres@example.com Received: (qmail 98603 invoked by uid 1064); 21 May 2000 23:59:49 -0000 Date: 21 May 2000 23:59:49 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/samples - New directory rubys 00/05/21 16:59:49 xml-soap/java/samples - New directory From dtorres@example.com Sun May 21 23:59:54 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98662 invoked by uid 500); 21 May 2000 23:59:54 -0000 Delivered-To: dtorres@example.com Received: (qmail 98659 invoked by uid 1064); 21 May 2000 23:59:54 -0000 Date: 21 May 2000 23:59:54 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/samples/addressbook - New directory rubys 00/05/21 16:59:54 xml-soap/java/samples/addressbook - New directory From dtorres@example.com Mon May 22 00:00:39 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98814 invoked by uid 500); 22 May 2000 00:00:39 -0000 Delivered-To: dtorres@example.com Received: (qmail 98811 invoked by uid 1064); 22 May 2000 00:00:39 -0000 Date: 22 May 2000 00:00:39 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/samples/calculator - New directory rubys 00/05/21 17:00:39 xml-soap/java/samples/calculator - New directory From dtorres@example.com Mon May 22 00:01:01 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 98891 invoked by uid 500); 22 May 2000 00:01:01 -0000 Delivered-To: dtorres@example.com Received: (qmail 98887 invoked by uid 1064); 22 May 2000 00:01:00 -0000 Date: 22 May 2000 00:01:00 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/samples/stockquote - New directory rubys 00/05/21 17:01:00 xml-soap/java/samples/stockquote - New directory From dtorres@example.com Mon May 22 00:04:26 2000 Return-Path: <dtorres@example.com> Mailing-List: contact dtorres@example.com; run by ezmlm Delivered-To: mailing list dtorres@example.com Received: (qmail 99777 invoked by uid 500); 22 May 2000 00:04:26 -0000 Delivered-To: dtorres@example.com Received: (qmail 99774 invoked by uid 1064); 22 May 2000 00:04:25 -0000 Date: 22 May 2000 00:04:25 -0000 Message-ID: <dtorres@example.com> From: dtorres@example.com To: dtorres@example.com Subject: cvs commit: xml-soap/java/src/org/apache/soap/util/xml DOM2Writer.java DOMWriter.java Deserializer.java DomHash.java NSStack.java QName.java Serializer.java XMIDeserializer.java XMISerializer.java XMLJavaMappingRegistry.java XMLParserLiaison.java XPathUtils.java XercesParserLiaison.java rubys 00/05/21 17:04:24 Added: . LICENSE java LICENSE ReleaseNotes.html build.xml java/samples/addressbook Address.java AddressBook.java DeploymentDescriptor.xml GetAddress.java PhoneNumber.java PutAddress.java README java/samples/calculator Calculator.java DeploymentDescriptor.xml README java/samples/stockquote DeploymentDescriptor.xml GetQuote.java GetQuoteSMTP.java README StockQuoteService.java java/src/org/apache/soap AttributeHandler.java Body.java Constants.java Envelope.java Fault.java Header.java SOAPException.java Utils.java java/src/org/apache/soap/encoding SOAPMappingRegistry.java java/src/org/apache/soap/encoding/soapenc ArraySerializer.java BeanSerializer.java ParameterSerializer.java SoapEncUtils.java java/src/org/apache/soap/encoding/xmi XMIParameterSerializer.java java/src/org/apache/soap/rpc Call.java Parameter.java RPCConstants.java RPCMessage.java Response.java java/src/org/apache/soap/server DeploymentDescriptor.java InvokeBSF.java SMTP2HTTPBridge.java ServerConstants.java ServiceManager.java ServiceManagerClient.java TypeMapping.java TypeMappingSerializer.java blankpage.html deploy.gif deploy.jsp header.html index.html list.gif list.jsp rpcrouter.jsp showdetails.jsp soapadmin.gif toc.html undeploy.gif undeploy.jsp java/src/org/apache/soap/transport SOAPTransport.java java/src/org/apache/soap/transport/http SOAPHTTPConnection.java java/src/org/apache/soap/transport/smtp POP3StatusListener.java SMTPConstants.java SMTPUtils.java SOAPSMTPConnection.java java/src/org/apache/soap/util Bean.java DOMUtils.java IOUtils.java IndentWriter.java JavaUtils.java MethodUtils.java ObjInfo.java ObjectRegistry.java ScriptSymbolTable.java StringUtils.java java/src/org/apache/soap/util/net HTTPUtils.java Relay.java TcpTunnel.java TcpTunnelGui.java java/src/org/apache/soap/util/type TypeConvertor.java TypeConvertorRegistry.java java/src/org/apache/soap/util/xml DOM2Writer.java DOMWriter.java Deserializer.java DomHash.java NSStack.java QName.java Serializer.java XMIDeserializer.java XMISerializer.java XMLJavaMappingRegistry.java XMLParserLiaison.java XPathUtils.java XercesParserLiaison.java Log: initial load Revision Changes Path 1.1 xml-soap/LICENSE Index: LICENSE =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 1999, International * Business Machines, Inc., http://www.ibm.com. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ 1.1 xml-soap/java/LICENSE Index: LICENSE =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 1999, International * Business Machines, Inc., http://www.ibm.com. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ 1.1 xml-soap/java/ReleaseNotes.html Index: ReleaseNotes.html =================================================================== <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="GENERATOR" content="Microsoft FrontPage Express 2.0"> <title>xml-soap v1.2 Release Notes</title> </head> <body bgcolor="#FFFFFF"> <h1 align="center">xml-soap v1.2 Release Notes</h1> <p align="center">May 19, 2000.</p> <h2 align="left">Table of Contents</h2> <ul> <li><p align="left"><a href="#Features of xml-soap"><font size="4"><strong>Features of xml-soap</strong></font></a></p> </li> <li><p align="left"><a href="#Using xml-soap for Remote Procedure Calls"><font size="4"><strong>Using xml-soap for Remote Procedure Calls</strong></font></a></p> </li> <li><p align="left"><a href="#RPC over SMTP"><font size="4"><strong>RPC over SMTP</strong></font></a></p> </li> <li><p align="left"><a href="#Using Apache Tomcat v3.1 for the Server-side"><font size="4"><strong>Using Apache Tomcat v3.1 for the Server-side</strong></font></a></p> </li> <li><p align="left"><a href="#Using IBM WebSphere v3.02 for the Server-side"><font size="4"><strong>Using IBM WebSphere v3.02 for the Server-side</strong></font></a></p> </li> <li><p align="left"><a href="#Running the Server Side Admin Tool to Manage Services"><font size="4"><strong>Running the Server Side Admin Tool to Manage Services</strong></font></a></p> </li> <li><p align="left"><a href="#Tool for Debugging SOAP"><font size="4"><strong>Tool for Debugging SOAP</strong></font></a></p> </li> <li><p align="left"><a href="#Implementation Restrictions"><font size="4"><strong>Implementation Restrictions</strong></font></a></p> </li> <li><p align="left"><a href="#Dependencies"><font size="4"><strong>Dependencies</strong></font></a></p> </li> <li><p align="left"><a href="#Building from Source"><font size="4"><strong>Building from Source</strong></font></a></p> </li> <li><p align="left"><a href="#Bugs"><font size="4"><strong>Bugs</strong></font></a></p> </li> <li><p align="left"><a href="#Authors"><font size="4"><strong>Authors</strong></font></a></p> </li> </ul> <h2><a name="Features of xml-soap">Features of xml-soap</a></h2> <ul> <li>Supports most of the SOAP v1.1 specification</li> <li>Provides server-side infrastructure for deploying, managing and running SOAP enabled services</li> <li>Provides client-side API for invoking SOAP services</li> <li>Supports two encoding styles: SOAP v1.1 Encoding and XMI with others to come</li> <li>XMI encoding (available when using Java 1.2.2) supports automatic marshalling and unmarshalling of arbitrary objects</li> <li>SOAP encoding: built-in support is provided for encoding/decoding primitive types, Strings, arbitrary JavaBeans (using reflection) and 1-dimensional arrays of these types. For other types user can hand-write encoder/decoder and register with xml-soap runtime.</li> <li>Supports messaging and RPC over two transports: HTTP and SMTP</li> </ul> <h2><a name="Using xml-soap for Remote Procedure Calls">Using xml-soap for Remote Procedure Calls</a></h2> <p>The org.apache.soap.rpc package supports performing RPC over SOAP. The xml-soap model is as follows: </p> <p>The URI of the method call element is used as the object ID on the remote side. The client side API has a &quot;Call&quot; object (org.apache.soap.rpc.Call) that is filled in with the method name, object ID and parameters. The marshalling/unmarshalling of Java datatypes to/from XML is supported by a type mapping registry (see org.apache.soap.encoding.SOAPMappingRegistry), and serialization (org.apache.util.xml.Serializer) and deserialization (org.apache.util.xml.Deserialization) interfaces that marshallers and unmarshallers, respectively, must implement. The built-in encoders/decoders are simply implementations of these interfaces that are preregistered in the SOAPMappingRegistry. </p> <p>Once a Call object is set up, its invoke (URL, String) method may be called to call the method using the URL as the SOAP endpoint to deliver to and the 2nd argument being the value of the SOAPAction header. This method returns a Response object (org.apache.soap.rpc.Response) which contains the actual response (if any) or the fault if a fault was generated.</p> <p>If the RPC is carried over HTTP, the server-side RPC router (rpcrouter.jsp in the webapp directory) receives the POST-ed envelope, unmarshalls it and then builds a Call object. Then, the target object is located by looking up the object ID in the ServiceManager's (org.apache.soap.server.ServiceManager), the method name is verified and then the invoke (Object) method is called to call the method on the target object. The return value is a Result (org.apache.soap.rpc.Result) object which is then marshalled and sent back as the HTTP response. </p> <p>If the RPC is carried over SMTP, then it goes to a mailbox and sits there waiting to be acted upon. We provide a POP3 to HTTP to SMTP bridge to receive these mail messages, post the content to an HTTP SOAP endpoint, get the result and forward the result by mail (SMTP) to the original sender. The receiving side will poll the POP3 server, receive the message, extract the content, unmarshall and return the Response to the original caller.</p> <h2><a name="RPC over SMTP">RPC over SMTP</a></h2> <p>To do RPC over SMTP in xml-soap a certain amount of email infrastructure needs to be available. Namely, you need an SMTP server, a POP3 server and an email address that you can use to be the equivalent of the server-side HTTP router. That is, all SOAP RPC calls are sent to a specific address which then processes the request somehow and send the result to the sender. To avoid duplicating the server-side infrastructure, we have implemented the SMTP server-side as a bridge that receives mail sent to the SOAP router email address via POP3, posts the SOAP envelope to an existing HTTP SOAP infrastructure and sends the response back to the sender of the email request via SMTP.</p> <p>On the client side, the application sends the SOAP request via SMTP to the SOAP router email address indicating the address that the response should be sent to. Then, it starts polling a POP3 server to see whether the response has arrived. When it does, the envelope is parsed and the respose is extracted. We are using a <a href="http://www.alphaworks.ibm.com/aw.nsf/frame?ReadForm&amp;/ab.nsf/techmain/AD8820E9114E5B4488256723000AC87A">POP3 bean from alphaWorks</a> for the POP3 stuff and that bean does not support selective downloading of email. As a result, the current implementation relies on the &quot;next message&quot; arriving to the client's reply address to be the message containing the response to the request. The implication is that current implementation does not allow you to make multiple RPC calls using the same reply address at the same time.</p> <p><strong>NOTE</strong>: We <em>strongly</em> recommend against using your own email address for testing RPC over SMTP. There are many free POP3 email providers on the Web (such as <a href="http://www.mailandnews.com">www.mailandnews.com</a>, for example) if you are unable to set up multiple POP3 accounts yourself.</p> <h2><a name="Using Apache Tomcat v3.1 for the Server-side">Using Apache Tomcat v3.1 for the Server-side</a></h2> <p><strong>IMPORTANT</strong>: Tomcat comes with an XML parser (lib/xml.jar) which has the DOM level 1 interfaces. Even if you put Xerces 1.0.3's xerces.jar in your classpath, the wrong interfaces are found by any Java code running in Tomcat because the shell script / batch file that runs Tomcat puts the user's classpath at the end. So, you must edit tomcat.sh or tomcat.bin in the bin/ directory and put xerces.jar at the BEGINING of the classpath the script builds. </p> <p>If you run startup.bat, then line 38 of tomcat.bat should look like this:</p> <blockquote> <pre>set CLASSPATH=path-to-xerces\xerces.jar;%CLASSPATH%;%cp%</pre> </blockquote> <p>If you run startup.sh, add the following after line 111:</p> <blockquote> <pre>CLASSPATH=path-to-xerces/xerces.jar:${CLASSPATH}</pre> </blockquote> <p>The easiest way to set up for Tomcat is to add a &lt;Context&gt; to conf/server.xml:</p> <pre>&lt;Context path=&quot;/xml-soap&quot; docBase=&quot;path-to-xml-soap/xml-soap-1.2/webapp&quot; debug=&quot;1&quot; reloadable=&quot;true&quot; &gt; &lt;/Context&gt;</pre> <p>Now, make sure you have the jar files from the lib directory of this distribution on your classpath and startup tomcat. Also you will want to have on the classpath any of your code that you want to deploy as services.</p> <p>You should be able to deploy services by pointing a browser to</p> <blockquote> <pre><a href="http://hostname:port/xml-soap">http://hostname:port/xml-soap</a></pre> </blockquote> <p>where hostname is the host on which Tomcat is running and port is the port. See the next section for details on the aministration tool. The SOAP end-point for invoking services on this server is:</p> <blockquote> <pre><a href="http://hostname:port/xml-soap">http://hostname:port/xml-soap/rpcrouter.jsp</a></pre> </blockquote> <p>Happy SOAP-ing!</p> <h2><a name="Using IBM WebSphere v3.02 for the Server-side">Using IBM WebSphere v3.02 for the Server-Side</a></h2> <p><strong>Thanks to Paul Fremantle and Paul Tamminga of IBM Software Group for their assistance with this!</strong></p> <p><strong>IMPORTANT</strong>: We use Apache Tomcat 3.1 in our development. Tomcat comes with an XML parser (lib/xml.jar) which has the DOM level 1 interfaces. Even if you put Xerces 1.0.3's xerces.jar in your classpath, the wrong interfaces are found by any Java code running in Tomcat because the shell script / batch file that runs Tomcat puts the user's classpath at the end. So, you must edit tomcat.sh or tomcat.bin in the bin/ directory and put xerces.jar at the BEGINING of the classpath the script builds. </p> <p>If you run startup.bat, then line 38 of tomcat.bat should look like this:</p> <blockquote> <pre>set CLASSPATH=path-to-xerces\xerces.jar;%CLASSPATH%;%cp%</pre> </blockquote> <p>If you run startup.sh, add the following after line 111:</p> <blockquote> <pre>CLASSPATH=path-to-xerces/xerces.jar:${CLASSPATH}</pre> </blockquote> <p>The easiest way to set up for Tomcat is to add a &lt;Context&gt; to conf/server.xml:</p> <pre>&lt;Context path=&quot;/xml-soap&quot; docBase=&quot;path-to-xml-soap/xml-soap-1.2/webapp&quot; debug=&quot;1&quot; reloadable=&quot;true&quot; &gt; &lt;/Context&gt;</pre> <p>Now, make sure you have the jar files from the lib directory of this distribution on your classpath and startup tomcat. Also you will want to have on the classpath any of your code that you want to deploy as services.</p> <p>You should be able to deploy services by pointing a browser to</p> <blockquote> <pre><a href="http://hostname:port/xml-soap">http://hostname:port/xml-soap</a></pre> </blockquote> <p>where hostname is the host on which Tomcat is running and port is the port. See the next section for details on the aministration tool. The SOAP end-point for invoking services on this server is:</p> <blockquote> <pre><a href="http://hostname:port/xml-soap">http://hostname:port/xml-soap/rpcrouter.jsp</a></pre> </blockquote> <p>Happy SOAP-ing!</p> <h2><a name="Running the Server Side Admin Tool to Manage Services">Running the Server Side Admin Tool to Manage Services</a></h2> <p>With the xml-soap Administration Tools it is possible to use a Web browser to deploy and un-deploy services and to review the list and the definitions of the services deployed on a given SOAP server. </p> <p>Point your browse to <a href="http://hostname:port/xml-soap">http://hostname:port/xml-soap</a> (see above) and you will get the &quot;xml-soap Admin&quot; screen with three options:</p> <ul> <li><b>Deploy </b>to deploy a new service. </li> <li><b>Un-deploy </b>to remove a deployed service. </li> <li><b>List to </b>shows the list of services currently deployed in the server.</li> </ul> <p>The usage of these functions is immediate once one understands the nature of the information required for deploying a service. In the next section we describe this information.<b> </b></p> <p><b>Service Deployment Information</b></p> <p>We review here the information that defines a deployed service. This information must be provided when using the Deploy function, and can be browsed using the List function. We refer to this information as &quot;properties&quot; of the service. </p> <ul> <li><b>ID.</b> An URN uniquely identifies the service to clients. It must be unique among the deployed services, and be encoded as a URI. We commonly use the format: urn:UniqueServiceID . It corresponds to the target object ID, in the terminology of the SOAP specification. </li> <li><b>Scope. </b>Defines the lifetime of the object serving the invocation request. This corresponds scope attribute of the &lt;jsp:useBean&gt; tag in the JavaServer Pages. It may thus have the following possible values: <ul> <li><b>page:</b> the object is available until the target JSP page (in this case the rpcrouter.jsp) sends a response back or the request is forwarded to another page (if you are using the standard deployment mechanism this is unlikely to happen). </li> <li><b>request: </b>the object is available for the complete duration of the request, regardless of forwarding. </li> <li><b>session: </b>the object is available for the complete duration of the session. </li> <li><b>application: </b>any page within the application may access the object. In particular, successive service invocations belonging to different sessions will share the same instance of the object. It is important to observe that the value of this attribute can have important security implications. The page and request scopes assure the isolation of successive calls. On the other extreme, application scope implies that all service objects are shared among different users of the SOAP server. A document describing usage scenarios for different scopes will be forthcoming. </li> </ul> </li> <li><b>Use static class. </b>If set to<b> </b>&quot;Yes&quot; the class method that is made available is a static method, and thus no object will be instantiated. When static invocation is used, the &quot;scope&quot; property is not applicable. </li> <li><b>Method list. </b>Defines the names of the method that can be invoked on this service object. </li> <li><b>Provider class.</b> Fully specified class name of the target object servicing the request. </li> <li><b>Type mappings. </b>In order to control the serialization and deserialization of specific Java types to and from XML in a particular encoding style, it may be necessary to provide serialization and deserialization classes that know how to perform the correct conversions for those types. The xml-soap server already includes serialization classes for most basic types in the SOAP encoding style, as well as a Bean encoding class that can provide a generic serialization of a bean in terms of its properties. It also includes XMI serializer/deserializer classes to support the XMI encoding style. Since different types may require additional support for correct serialization, the xml-soap maintains a registry of Serializers and Deserializers. The registry is accessible to service administrators through the xml-soap administration tool, as well as through a program API. In order to register a (de)serializer class, the class must implement the Serializer or Deserializer interfaces, see JavaDocs for org.apache.util.xml.Serializer and org.apache.util.xml.Deserializer .</li> </ul> <h2><a name="Tool for Debugging SOAP">Tool for Debugging SOAP</a></h2> <p>xml-soap also includes a TCP tunnel / monitor tool that we developed to help debug SOAP and other TCP protocols. The class org.apache.util.net.TcpTunnelGui can be used to open a port on the current machine which basically acts as a tunnel to a remote host / port combination. When a connection is made to the port, the tunnel in turn makes a connection to the remote host / port combination and uses two windows to show the data going from each side. Thus, the client wishing to make a connection to a remote host/port can be told to connect to the local host / port and as a result you can see the data that's flowing between the two. This provides a very useful debugging tool. Check it out!</p> <h2><a name="Implementation Restrictions">Implementation Restrictions</a></h2> <p>The following features of the SOAP v1.1 specification are <strong>not</strong> currently supported:</p> <ul> <li>encodingStyle attribute must have only one encoding style given (see section 4.1.1 of the spec)</li> <li>mustUnderstand attribute</li> <li>root attribute</li> <li>actor attribute and SOAP intermediaries</li> <li>ID/href links and multi-ref accessors</li> <li>all but the following XML Schema simple types: string, boolean, double, float, long, int, short, byte</li> </ul> <h2><a name="Dependencies">Dependencies</a></h2> <ul> <li>XMI encoding requires use of Java 1.2.2 and XML4J 2.0.15. The rest of xml-soap requires Apache Xerces 1.0.3. Your classpath must have xerces.jar first and then xml4j.jar next <strong>in that order</strong>. </li> <li>We have been running the server-side code under Apache Tomcat v3.1. However, we require a DOM level 2 and we used Apache Xerces 1.0.3. Given that Tomcat ships with its own XML parser which supports DOM level 1, you have to do a bit of work to get Tomcat to work right.</li> </ul> <h2><a name="Building from Source">Building from Source</a></h2> <p>You should be able to build everything from the sources in the src directory. The makefiles use a variable set in lib/make.include called PATHSEP to indicate whether to use &quot;;&quot; (for Win32) or &quot;:&quot; (for Unices). Saying make in the src directory should recurse down and build all (assuming your classpath is right).</p> <h2><a name="Bugs">Bugs</a></h2> <p>None that we know of right now ..</p> <p>While not strictly a bug, the docs are pretty lacking yet. We are working on much improved documentation (both external and within the source)!</p> <h2><a name="Authors">Authors</a></h2> <blockquote> <p>Matthew J. Duftler, <a href="mailto:dtorres@example.com">dtorres@example.com</a>,<br> Sanjiva Weerawarana, <a href="mailto:dtorres@example.com">dtorres@example.com</a>,<br> Francisco Curbera, <a href="mailto:dtorres@example.com">dtorres@example.com</a><br> <br> Component Systems Group<br> IBM TJ Watson Research Center<br> Hawthorne, NY 10532. <br> </p> </blockquote> </body> </html> 1.1 xml-soap/java/build.xml Index: build.xml =================================================================== <?xml version="1.0"?> <!-- =================================================================== Build file for Soap Notes: This is a build file for use with the Jakarta Ant build tool. Prerequisites: jakarta-ant from http://jakarta.apache.org xml-xerces from http://xml.apache.org Optional additions: http://www.alphaworks.ibm.com/tech/xmitoolkit http://oss.software.ibm.com/developerworks/opensource/pop3/index.html http://oss.software.ibm.com/developerworks/opensource/smtp/index.html Build Instructions: To build, run java org.apache.tools.ant.Main <target> on the directory where this file is located with the target you want. Most useful targets: - compile -> creates the "soap.jar" package in "./build/lib" - javadocs -> creates the javadocs in "./build/javadocs" - dist -> creates the complete distribution Authors: Sam Ruby <dtorres@example.com> Copyright: Copyright (c) 2000 Apache Software Foundation. $Id: build.xml,v 1.1 2000/05/22 00:03:45 rubys Exp $ ==================================================================== --> <project default="compile" basedir="."> <target name="init"> <property name="name" value="soap"/> <property name="Name" value="Soap"/> <property name="version" value="1.2"/> <property name="year" value="2000"/> <property name="build.compiler" value="classic"/> <property name="debug" value="off"/> <property name="src.dir" value="./src"/> <property name="docs.dir" value="./docs"/> <property name="samples.dir" value="./samples"/> <property name="packages" value="org.*"/> <property name="build.dir" value="./build"/> <property name="build.dest" value="./build/classes"/> <property name="build.lib" value="./build/lib"/> <property name="build.docs" value="./build/docs/html"/> <property name="build.samples" value="./build/samples"/> <property name="build.javadocs" value="./build/javadocs"/> <property name="dist.dir" value="./dist"/> </target> <!-- =================================================================== --> <!-- Prepares the build directory --> <!-- =================================================================== --> <target name="prepare" depends="init"> <mkdir dir="${build.dir}"/> <available property="bsf.present" classname="com.ibm.bsf.BSFManager" /> <available property="xmi.present" classname="com.ibm.xmi.job.Job" /> <available property="pop3.present" classname="com.ibm.network.mail.pop3.event.StatusListener" /> <available property="smtp.present" classname="com.ibm.network.mail.smtp.protocol.CoreProtocolBean" /> </target> <!-- =================================================================== --> <!-- Compiles the source directory --> <!-- =================================================================== --> <target name="compile" depends="prepare"> <mkdir dir="${build.dest}"/> <javac srcdir="${src.dir}" destdir="${build.dest}" debug="${debug}"> <exclude name="**/InvokeBSF.java" unless="bsf.present" /> <exclude name="**/*SMTP*.java" unless="smtp.present" /> <exclude name="**/*SMTP*.java" unless="pop3.present" /> <exclude name="**/POP*.java" unless="smtp.present" /> <exclude name="**/POP*.java" unless="pop3.present" /> <exclude name="**/XMI*.java" unless="xmi.present" /> </javac> <mkdir dir="${build.lib}"/> <jar jarfile="${build.lib}/${name}.jar" basedir="${build.dest}" /> </target> <!-- =================================================================== --> <!-- Compiles the samples --> <!-- =================================================================== --> <target name="samples" depends="compile"> <mkdir dir="${build.samples}"/> <javac srcdir="${samples.dir}" destdir="${build.samples}" classpath="${build.dir}/${name}.jar" debug="${debug}"/> <copydir src="${samples.dir}" dest="${build.samples}" /> </target> <!-- =================================================================== --> <!-- Creates the API documentation --> <!-- =================================================================== --> <target name="javadocs" depends="prepare"> <mkdir dir="${build.javadocs}"/> <javadoc2 packagenames="${packages}" sourcepath="${src.dir}" destdir="${build.javadocs}" author="true" version="true" use="true" windowtitle="${Name} API" doctitle="${Name}" bottom="Copyright &#169; ${year} Apache XML Project. All Rights Reserved." /> </target> <!-- =================================================================== --> <!-- Creates the distribution --> <!-- =================================================================== --> <target name="dist" depends="compile, javadocs, samples"> <mkdir dir="${dist.dir}"/> <mkdir dir="${dist.dir}/docs"/> <mkdir dir="${dist.dir}/docs/apiDocs"/> <mkdir dir="${dist.dir}/lib"/> <mkdir dir="${dist.dir}/samples"/> <mkdir dir="${dist.dir}/webapps"/> <copydir src="${build.javadocs}" dest="${dist.dir}/docs/apiDocs"/> <copydir src="${build.lib}" dest="${dist.dir}/lib"/> <copydir src="${build.samples}" dest="${dist.dir}/samples"/> <copydir src="${src.dir}/org/apache/soap/server" dest="${dist.dir}/webapps"> <include name="*.html" /> <include name="*.jsp" /> <include name="*.gif" /> </copydir> <copyfile src="LICENSE" dest="${dist.dir}/LICENSE"/> <copyfile src="README" dest="${dist.dir}/README"/> <copyfile src="ReleaseNotes.html" dest="${dist.dir}/ReleaseNotes.html"/> </target> <!-- =================================================================== --> <!-- Cleans everything --> <!-- =================================================================== --> <target name="clean" depends="init"> <deltree dir="${build.dir}"/> <deltree dir="${dist.dir}"/> </target> </project> 1.1 xml-soap/java/samples/addressbook/Address.java Index: Address.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2000, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package demos.addressbook; /** * See \demos\addressbook\readme for info. * * @author Matthew J. Duftler (dtorres@example.com) */ public class Address { private int streetNum; private String streetName; private String city; private String state; private int zip; private PhoneNumber phoneNumber; public Address() { } public Address(int streetNum, String streetName, String city, String state, int zip, PhoneNumber phoneNumber) { this.streetNum = streetNum; this.streetName = streetName; this.city = city; this.state = state; this.zip = zip; this.phoneNumber = phoneNumber; } public void setStreetNum(int streetNum) { this.streetNum = streetNum; } public int getStreetNum() { return streetNum; } public void setStreetName(String streetName) { this.streetName = streetName; } public String getStreetName() { return streetName; } public void setCity(String city) { this.city = city; } public String getCity() { return city; } public void setState(String state) { this.state = state; } public String getState() { return state; } public void setZip(int zip) { this.zip = zip; } public int getZip() { return zip; } public void setPhoneNumber(PhoneNumber phoneNumber) { this.phoneNumber = phoneNumber; } public PhoneNumber getPhoneNumber() { return phoneNumber; } public String toString() { return streetNum + " " + streetName + "\n" + city + ", " + state + " " + zip + "\n" + phoneNumber; } } 1.1 xml-soap/java/samples/addressbook/AddressBook.java Index: AddressBook.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2000, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package demos.addressbook; import java.util.*; /** * See \demos\addressbook\readme for info. * * @author Matthew J. Duftler (dtorres@example.com) */ public class AddressBook { private Hashtable name2AddressTable = new Hashtable(); public AddressBook() { addEntry("John B. Good", new Address(123, "Main Street", "Anytown", "NY", 12345, new PhoneNumber(123, "456", "7890"))); } public void addEntry(String name, Address address) { name2AddressTable.put(name, address); } public Address getAddressFromName(String name) throws IllegalArgumentException { if (name == null) { throw new IllegalArgumentException("The name argument must not be " + "null."); } return (Address)name2AddressTable.get(name); } } 1.1 xml-soap/java/samples/addressbook/DeploymentDescriptor.xml Index: DeploymentDescriptor.xml =================================================================== <isd:service xmlns:isd="http://www.ibm.com/namespaces/ibm-soap/deployment" id="urn:AddressFetcher"> <isd:provider type="java" scope="Application" methods="getAddressFromName addEntry"> <isd:java class="demos.addressbook.AddressBook" static="false"/> </isd:provider> <isd:mappings> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:ibm-soap-address-demo" qname="x:address" javaType="demos.addressbook.Address" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:x="urn:ibm-soap-address-demo" qname="x:phone" javaType="demos.addressbook.PhoneNumber" java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer" xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/> </isd:mappings> </isd:service> 1.1 xml-soap/java/samples/addressbook/GetAddress.java Index: GetAddress.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2000, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package demos.addressbook; import java.io.*; import java.util.*; import java.net.*; import org.w3c.dom.*; import org.apache.soap.util.xml.*; import org.apache.soap.*; import org.apache.soap.encoding.*; import org.apache.soap.encoding.soapenc.*; import org.apache.soap.rpc.*; /** * See \demos\addressbook\readme for info. * * @author Matthew J. Duftler (dtorres@example.com) */ public class GetAddress { public static void main(String[] args) throws Exception { if (args.length != 2 && (args.length != 3 || !args[0].startsWith("-"))) { System.err.println("Usage:"); System.err.println(" java " + GetAddress.class.getName() + " [-encodingStyleURI] SOAP-router-URL nameToLookup"); System.exit (1); } // Process the arguments. int offset = 3 - args.length; String encodingStyleURI = args.length == 3 ? args[0].substring(1) : Constants.NS_URI_SOAP_ENC; URL url = new URL(args[1 - offset]); String nameToLookup = args[2 - offset]; SOAPMappingRegistry smr = new SOAPMappingRegistry(); BeanSerializer beanSer = new BeanSerializer(); // Map the types. smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("urn:ibm-soap-address-demo", "address"), Address.class, beanSer, beanSer); smr.mapTypes(Constants.NS_URI_SOAP_ENC, new QName("urn:ibm-soap-address-demo", "phone"), PhoneNumber.class, beanSer, beanSer); // Build the call. Call call = new Call(); call.setSOAPMappingRegistry(smr); call.setTargetObjectURI("urn:AddressFetcher"); call.setMethodName("getAddressFromName"); call.setEncodingStyleURI(encodingStyleURI); Vector params = new Vector(); params.addElement(new Parameter("nameToLookup", String.class, nameToLookup, null)); call.setParams(params); // Invoke the call. Response resp; try { resp = call.invoke(url, ""); } catch (SOAPException e) { System.err.println("Caught SOAPException (" + e.getFaultCode() + "): " + e.getMessage()); return; } // Check the response. if (!resp.generatedFault()) { Parameter ret = resp.getReturnValue(); Object value = ret.getValue(); System.out.println(value != null ? "\n" + value : "I don't know."); } else { Fault fault = resp.getFault(); System.err.println("Generated fault: "); System.out.println (" Fault Code = " + fault.getFaultCode()); System.out.println (" Fault String = " + fault.getFaultString()); } } } 1.1 xml-soap/java/samples/addressbook/PhoneNumber.java Index: PhoneNumber.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. The end-user documentation included with the redistribution, * if any, must include the following acknowledgment: * "This product includes software developed by the * Apache Software Foundation (http://www.apache.org/)." * Alternately, this acknowledgment may appear in the software itself, * if and wherever such third-party acknowledgments normally appear. * * 4. The names "Xerces" and "Apache Software Foundation" must * not be used to endorse or promote products derived from this * software without prior written permission. For written * permission, please contact dtorres@example.com. * * 5. Products derived from this software may not be called "Apache", * nor may "Apache" appear in their name, without prior written * permission of the Apache Software Foundation. * * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * ==================================================================== * * This software consists of voluntary contributions made by many * individuals on behalf of the Apache Software Foundation and was * originally based on software copyright (c) 2000, International * Business Machines, Inc., http://www.apache.org. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ package demos.addressbook; /** * See \demos\addressbook\readme for info. * * @author Matthew J. Duftler (dtorres@example.com) */ public class PhoneNumber { private int areaCode; private String exchange; private String number; public PhoneNumber() { } public PhoneNumber(int areaCode, String exchange, String number) { this.areaCode = areaCode; this.exchange = exchange; this.number = number; } public void setAreaCode(int areaCode) { this.areaCode = areaCode; } public int getAreaCode() { return areaCode; } public void setExchange(String exchange) { this.exchange = exchange; } public String getExchange() { return exchange; } public void setNumber(String number) { this.number = number; } public String getNumber() { return number; } public String toString() { return "(" + areaCode + ") " + exchange + "-" + number; } } 1.1 xml-soap/java/samples/addressbook/PutAddress.java Index: PutAddress.java =================================================================== /* * The Apache Software License, Version 1.1 * * * Copyright (c) 2000 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in
{'source': 'Apache Software Foundation Public Mail Archives'}