Permalink
Browse files

Initial check-in

git-svn-id: https://svn.apache.org/repos/asf/webservices/wss4j/trunk@240570 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 53a76df commit 5582c69e93b151cb7de1d2cf4ddeb9c05f602f5a @dims dims committed Feb 13, 2004
Showing with 19,734 additions and 0 deletions.
  1. +202 −0 LICENSE.txt
  2. +89 −0 interop/build.xml
  3. +151 −0 interop/org/apache/ws/axis/oasis/Client_deploy.wsdd
  4. +80 −0 interop/org/apache/ws/axis/oasis/PWCallback.java
  5. +102 −0 interop/org/apache/ws/axis/oasis/Scenario1.java
  6. +102 −0 interop/org/apache/ws/axis/oasis/Scenario2.java
  7. +102 −0 interop/org/apache/ws/axis/oasis/Scenario3.java
  8. +102 −0 interop/org/apache/ws/axis/oasis/Scenario4.java
  9. +102 −0 interop/org/apache/ws/axis/oasis/Scenario5.java
  10. +102 −0 interop/org/apache/ws/axis/oasis/Scenario6.java
  11. +102 −0 interop/org/apache/ws/axis/oasis/Scenario7.java
  12. +246 −0 interop/org/apache/ws/axis/oasis/Server_deploy.wsdd
  13. +102 −0 interop/org/apache/ws/axis/oasis/Tester.java
  14. +66 −0 interop/org/apache/ws/axis/oasis/ping/PingBindingImpl.java
  15. +265 −0 interop/org/apache/ws/axis/oasis/ping/deploy.wsdd
  16. +94 −0 interop/ping.wsdl
  17. +112 −0 interop/utility.xsd
  18. BIN keys/.keystore
  19. +296 −0 keys/BCMain.java
  20. +1 −0 keys/k.bat
  21. +5 −0 keys/key.bat
  22. BIN keys/keystore.p12
  23. BIN keys/selfcert.pfx
  24. BIN keys/x509.PFX.MSFT
  25. BIN keys/x509.keystore.SUN
  26. +38 −0 keys/x509.txt.BC
  27. +54 −0 legal/LICENSE.axis
  28. +7 −0 legal/LICENSE.bouncycastle
  29. +54 −0 legal/LICENSE.commons-discovery
  30. +54 −0 legal/LICENSE.commons-logging
  31. +97 −0 legal/LICENSE.globus
  32. +173 −0 legal/LICENSE.jaf
  33. +170 −0 legal/LICENSE.javamail
  34. +185 −0 legal/LICENSE.junit
  35. +48 −0 legal/LICENSE.log4j
  36. +54 −0 legal/LICENSE.security
  37. +91 −0 legal/LICENSE.wsdl4j
  38. +55 −0 legal/LICENSE.xalan
  39. +56 −0 legal/LICENSE.xerces
  40. +5 −0 legal/LICENSE.xml-apis
  41. +8 −0 legal/README.globus
  42. BIN lib/activation.jar
  43. BIN lib/axis-ant.jar
  44. BIN lib/axis.jar
  45. BIN lib/commons-discovery.jar
  46. BIN lib/commons-logging.jar
  47. BIN lib/cryptix-asn1.jar
  48. BIN lib/cryptix.jar
  49. BIN lib/cryptix32.jar
  50. BIN lib/jaxrpc.jar
  51. BIN lib/jce-jdk13-121.jar
  52. BIN lib/junit-3.8.1.jar
  53. BIN lib/log4j-1.2.8.jar
  54. BIN lib/mailapi-1_3.jar
  55. BIN lib/saaj.jar
  56. BIN lib/wsdl4j.jar
  57. BIN lib/xalan.jar
  58. BIN lib/xercesImpl.jar
  59. BIN lib/xml-apis.jar
  60. BIN lib/xmlsec.jar
  61. +135 −0 maven.xml
  62. +8 −0 project.properties
  63. +185 −0 project.xml
  64. +119 −0 samples/org/apache/ws/axis/samples/dotNETClient/Client.cs
  65. +57 −0 samples/org/apache/ws/axis/samples/dotNETClient/JavaProxy.cs
  66. +264 −0 samples/org/apache/ws/axis/samples/dotNETClient/X509CertificateStoreDialog.cs
  67. +102 −0 samples/org/apache/ws/axis/samples/dotNETClient/X509CertificateStoreDialog.resx
  68. +1 −0 samples/org/apache/ws/axis/samples/dotNETClient/build.bat
  69. +1 −0 samples/org/apache/ws/axis/samples/wssec/doall/NStoPkg.properties
  70. +55 −0 samples/org/apache/ws/axis/samples/wssec/doall/PWCallback.java
  71. +82 −0 samples/org/apache/ws/axis/samples/wssec/doall/Tester.java
  72. +32 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/SecBindingImpl.java
  73. +136 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/SecBindingStub.java
  74. +29 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/SecPort.java
  75. +33 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/SecService.java
  76. +145 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/SecServiceLocator.java
  77. +27 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/deploy.wsdd
  78. +15 −0 samples/org/apache/ws/axis/samples/wssec/doall/axisSec/undeploy.wsdd
  79. +68 −0 samples/org/apache/ws/axis/samples/wssec/doall/build.xml
  80. +35 −0 samples/org/apache/ws/axis/samples/wssec/doall/client-config.wsdd
  81. +34 −0 samples/org/apache/ws/axis/samples/wssec/doall/client_deploy.wsdd
  82. BIN samples/org/apache/ws/axis/samples/wssec/doall/keys/x509.PFX.MSFT
  83. +26 −0 samples/org/apache/ws/axis/samples/wssec/doall/log4j.properties
  84. +44 −0 samples/org/apache/ws/axis/samples/wssec/doall/sec.wsdl
  85. +83 −0 samples/org/apache/ws/axis/samples/wssec/doall/server-config.wsdd
  86. +51 −0 samples/org/apache/ws/axis/samples/wssec/doall/server_deploy.wsdd
  87. +2 −0 samples/org/apache/ws/axis/samples/wssec/doall/simplelog.properties
  88. +51 −0 samples/org/apache/ws/axis/samples/wssec/msft/MSFTGetVersion.java
  89. +71 −0 samples/org/apache/ws/axis/samples/wssec/security/Client.java
  90. +48 −0 samples/org/apache/ws/axis/samples/wssec/security/Service.java
  91. +11 −0 samples/org/apache/ws/axis/samples/wssec/security/clientsecuritydeploy.wsdd
  92. +11 −0 samples/org/apache/ws/axis/samples/wssec/security/clientsecurityundeploy.wsdd
  93. +52 −0 samples/org/apache/ws/axis/samples/wssec/security/readme.txt
  94. +19 −0 samples/org/apache/ws/axis/samples/wssec/security/securitydeploy.wsdd
  95. +13 −0 samples/org/apache/ws/axis/samples/wssec/security/securityundeploy.wsdd
  96. +11 −0 samples/org/apache/ws/axis/samples/wssec/security/serversecuritydeploy.wsdd
  97. +11 −0 samples/org/apache/ws/axis/samples/wssec/security/serversecurityundeploy.wsdd
  98. +71 −0 samples/org/apache/ws/axis/samples/wssec/security2/Client.java
  99. +48 −0 samples/org/apache/ws/axis/samples/wssec/security2/Service.java
  100. +11 −0 samples/org/apache/ws/axis/samples/wssec/security2/clientsecuritydeploy.wsdd
  101. +11 −0 samples/org/apache/ws/axis/samples/wssec/security2/clientsecurityundeploy.wsdd
  102. +52 −0 samples/org/apache/ws/axis/samples/wssec/security2/readme.txt
  103. +11 −0 samples/org/apache/ws/axis/samples/wssec/security2/securitydeploy.wsdd
  104. +9 −0 samples/org/apache/ws/axis/samples/wssec/security2/securityundeploy.wsdd
  105. +11 −0 samples/org/apache/ws/axis/samples/wssec/security2/serversecuritydeploy.wsdd
  106. +11 −0 samples/org/apache/ws/axis/samples/wssec/security2/serversecurityundeploy.wsdd
  107. +60 −0 specs/Ping-2.wsdl
  108. +1 −0 specs/TripleDES.KEY
  109. BIN specs/WSETEST.cer
  110. BIN specs/WSS-SOAPMessageSecurity-17-082703-merged.pdf
  111. BIN specs/WSS-Username-04-081103-merged.pdf
  112. BIN specs/WSS-X509.pdf
  113. BIN specs/interop.jks
  114. +94 −0 specs/ping.wsdl
  115. +198 −0 specs/secext.xsd
  116. +112 −0 specs/utility.xsd
  117. BIN specs/wss-interop1-draft-06.pdf
  118. BIN specs/wss-interop2-draft-06.pdf
  119. +6 −0 src/crypto.properties
  120. +643 −0 src/org/apache/ws/axis/security/WSDoAllConstants.java
  121. +331 −0 src/org/apache/ws/axis/security/WSDoAllReceiver.java
  122. +57 −0 src/org/apache/ws/axis/security/WSDoAllReceiverResult.java
  123. +697 −0 src/org/apache/ws/axis/security/WSDoAllSender.java
  124. +716 −0 src/org/apache/ws/axis/security/package.html
  125. +145 −0 src/org/apache/ws/axis/security/util/AxisUtil.java
  126. +61 −0 src/org/apache/ws/security/SOAP11Constants.java
  127. +67 −0 src/org/apache/ws/security/SOAP12Constants.java
  128. +67 −0 src/org/apache/ws/security/SOAPConstants.java
  129. +245 −0 src/org/apache/ws/security/WSConstants.java
  130. +115 −0 src/org/apache/ws/security/WSDocInfo.java
  131. +62 −0 src/org/apache/ws/security/WSDocInfoStore.java
  132. +54 −0 src/org/apache/ws/security/WSEncryptionPart.java
  133. +143 −0 src/org/apache/ws/security/WSPasswordCallback.java
  134. +1,128 −0 src/org/apache/ws/security/WSSecurityEngine.java
  135. +50 −0 src/org/apache/ws/security/WSSecurityEngineResult.java
  136. +131 −0 src/org/apache/ws/security/WSSecurityException.java
  137. +182 −0 src/org/apache/ws/security/WSUsernameTokenPrincipal.java
  138. +448 −0 src/org/apache/ws/security/components/crypto/BouncyCastle.java
  139. +111 −0 src/org/apache/ws/security/components/crypto/CredentialException.java
  140. +129 −0 src/org/apache/ws/security/components/crypto/Crypto.java
  141. +153 −0 src/org/apache/ws/security/components/crypto/CryptoFactory.java
  142. +367 −0 src/org/apache/ws/security/components/crypto/Merlin.java
  143. +16 −0 src/org/apache/ws/security/components/crypto/errors.properties
  144. +50 −0 src/org/apache/ws/security/errors.properties
  145. +282 −0 src/org/apache/ws/security/message/EnvelopeIdResolver.java
  146. +253 −0 src/org/apache/ws/security/message/WSBaseMessage.java
  147. +612 −0 src/org/apache/ws/security/message/WSEncryptBody.java
  148. +120 −0 src/org/apache/ws/security/message/WSSAddUsernameToken.java
  149. +342 −0 src/org/apache/ws/security/message/WSSignEnvelope.java
  150. +200 −0 src/org/apache/ws/security/message/token/BinarySecurity.java
  151. +101 −0 src/org/apache/ws/security/message/token/PKIPathSecurity.java
  152. +103 −0 src/org/apache/ws/security/message/token/Reference.java
  153. +415 −0 src/org/apache/ws/security/message/token/SecurityTokenReference.java
  154. +502 −0 src/org/apache/ws/security/message/token/UsernameToken.java
  155. +97 −0 src/org/apache/ws/security/message/token/X509Security.java
  156. +322 −0 src/org/apache/ws/security/transform/STRTransform.java
  157. +308 −0 src/org/apache/ws/security/util/DOM2Writer.java
  158. +111 −0 src/org/apache/ws/security/util/Loader.java
  159. +60 −0 src/org/apache/ws/security/util/Mapping.java
  160. +267 −0 src/org/apache/ws/security/util/NSStack.java
  161. +592 −0 src/org/apache/ws/security/util/WSSecurityUtil.java
  162. +70 −0 test/interop/PackageTests.java
  163. +65 −0 test/interop/TestScenario1.java
  164. +65 −0 test/interop/TestScenario2.java
  165. +65 −0 test/interop/TestScenario3.java
  166. +65 −0 test/interop/TestScenario4.java
  167. +65 −0 test/interop/TestScenario5.java
  168. +65 −0 test/interop/TestScenario6.java
  169. +65 −0 test/interop/TestScenario7.java
  170. +75 −0 test/wssec/PackageTests.java
  171. +155 −0 test/wssec/PrivilegedAccessor.java
  172. +65 −0 test/wssec/TestMSFTWebService.java
  173. +166 −0 test/wssec/TestWSSecurity.java
  174. +198 −0 test/wssec/TestWSSecurity11.java
  175. +213 −0 test/wssec/TestWSSecurity2.java
  176. +185 −0 test/wssec/TestWSSecurity3.java
  177. +169 −0 test/wssec/TestWSSecurity5.java
  178. +190 −0 test/wssec/TestWSSecurity6.java
  179. +183 −0 test/wssec/TestWSSecurity7.java
  180. +190 −0 test/wssec/TestWSSecurity8.java
  181. +220 −0 test/wssec/TestWSSecurity9.java
Sorry, we could not display the entire diff because it was too big.
View
202 LICENSE.txt
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
View
89 interop/build.xml
@@ -0,0 +1,89 @@
+<project name="Axis_OASIS_Interop" default="compile">
+ <description>
+ generate files from WSDL description, also target to deploy
+ the service in a runing Axis (probably in Tomcat or alike)
+ </description>
+
+ <!-- The following setting assumes that all necessary libs (jars)
+ are located in a lib directory directly under wss4j. First set
+ a reference to the wss4j relative to this working directory -->
+ <property name="dir.wss4j" value="${basedir}/.."/>
+ <property name="dir.interop" value="${dir.wss4j}/interop"/>
+ <property name="dir.work" value="${dir.wss4j}/build/work"/>
+ <property name="dir.classes" value="${dir.wss4j}/build/classes"/>
+ <property name="dir.libs" value="${dir.wss4j}/lib"/>
+
+ <property name="server" value="org/apache/ws/axis/oasis/ping"/>
+ <property name="client" value="org/apache/ws/axis/oasis"/>
+
+ <path id="classpath.libraries" description=" 3rd party and Axis libs">
+ <fileset dir="${dir.libs}">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <taskdef resource="axis-tasks.properties" classpathref="classpath.libraries"/>
+
+ <target name="clientdeploy">
+ <java classname="org.apache.axis.utils.Admin" fork="true">
+ <classpath refid="classpath.libraries"/>
+ <arg value="client"/>
+ <arg file="${dir.work}/${client}/Client_deploy.wsdd"/>
+ </java>
+ </target>
+
+ <target name="serverdeploy">
+ <java classname="org.apache.axis.client.AdminClient" fork="true">
+ <classpath refid="classpath.libraries"/>
+ <arg file="${dir.work}/${server}/deploy.wsdd"/>
+ </java>
+ </target>
+
+ <target name="serverundeploy">
+ <java classname="org.apache.axis.client.AdminClient" fork="true">
+ <classpath refid="classpath.libraries"/>
+ <arg file="${dir.work}/${server}/undeploy.wsdd"/>
+ </java>
+ </target>
+
+ <target name="compile">
+ <mkdir dir="${dir.work}"/>
+ <axis-wsdl2java
+ output="${dir.work}"
+ serverSide="yes"
+ testcase="no"
+ verbose="no"
+ url="${dir.interop}/ping.wsdl">
+ <mapping
+ namespace="http://xmlsoap.org/Ping"
+ package="org.apache.ws.axis.oasis.ping"/>
+ </axis-wsdl2java>
+ <copy todir="${dir.work}/${server}" overwrite="yes">
+ <fileset dir="${dir.interop}/${server}">
+ <include name="*.java"/>
+ <include name="*.wsdd"/>
+ </fileset>
+ </copy>
+ <copy todir="${dir.work}/${client}" overwrite="yes">
+ <fileset dir="${dir.interop}/${client}">
+ <include name="*.java"/>
+ <include name="*.wsdd"/>
+ </fileset>
+ </copy>
+ <javac srcdir="${dir.work}"
+ destdir="${dir.classes}"
+ debug="true">
+ <classpath refid="classpath.libraries" />
+ <include name="${server}/*.java" />
+ <include name="${client}/*.java" />
+ </javac>
+ </target>
+
+ <target name="clean"
+ description="clean up">
+ <delete dir="${dir.work}/${server}"/>
+ <delete dir="${dir.classes}/${server}"/>
+ <delete dir="${dir.work}/${client}"/>
+ <delete dir="${dir.classes}/${client}"/>
+ </target>
+</project>
View
151 interop/org/apache/ws/axis/oasis/Client_deploy.wsdd
@@ -0,0 +1,151 @@
+<deployment xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <!-- define the service, using the WSDoAllSender security handler in request flow -->
+ <service name="Ping1">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="user" value="werner"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="UsernameToken"/>
+ <parameter name="passwordType" value="PasswordText" />
+ </handler>
+ </requestFlow>
+ </service>
+
+ <service name="Ping2">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="UsernameToken Encrypt"/>
+ <parameter name="user" value="werner"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="passwordType" value="PasswordText" />
+ <parameter name="addUTElement" value="Nonce Created" />
+ <parameter name="encryptionPropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ <parameter name="encryptionParts" value="{Element}{http://schemas.xmlsoap.org/ws/2002/07/secext}UsernameToken" />
+ </handler>
+ </requestFlow>
+ </service>
+
+ <service name="Ping3">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler name="DoSecurityReceiver" type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </responseFlow>
+ </service>
+
+ <service name="Ping4">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="EmbeddedKeyName" />
+ <parameter name="EmbeddedKeyCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </responseFlow>
+
+ </service>
+
+ <service name="Ping5">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature NoSerialization"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="signatureParts" value="{}{http://xmlsoap.org/Ping}ticket" />
+ </handler>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ </service>
+
+ <service name="Ping6">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler name="DoSecurityReceiver" type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </responseFlow>
+ </service>
+
+ <service name="Ping7">
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signatureParts"
+ value="{}{http://schemas.xmlsoap.org/soap/envelope/}Body; STRTransform" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler name="DoSecurityReceiver" type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </responseFlow>
+ </service>
+
+</deployment>
View
80 interop/org/apache/ws/axis/oasis/PWCallback.java
@@ -0,0 +1,80 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+/**
+ * @author Werner Dittmann (Werner.Dittmann@siemens.com)
+ */
+package org.apache.ws.axis.oasis;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+import java.io.IOException;
+
+/**
+ * Class PWCallback
+ */
+public class PWCallback implements CallbackHandler {
+
+ /** Field key */
+ private static final byte[] key = {
+ (byte) 0x31, (byte) 0xfd, (byte) 0xcb, (byte) 0xda, (byte) 0xfb,
+ (byte) 0xcd, (byte) 0x6b, (byte) 0xa8, (byte) 0xe6, (byte) 0x19,
+ (byte) 0xa7, (byte) 0xbf, (byte) 0x51, (byte) 0xf7, (byte) 0xc7,
+ (byte) 0x3e, (byte) 0x80, (byte) 0xae, (byte) 0x98, (byte) 0x51,
+ (byte) 0xc8, (byte) 0x51, (byte) 0x34, (byte) 0x04,
+ };
+
+ /*
+ * (non-Javadoc)
+ * @see javax.security.auth.callback.CallbackHandler#handle(javax.security.auth.callback.Callback[])
+ */
+
+ /**
+ * Method handle
+ *
+ * @param callbacks
+ * @throws IOException
+ * @throws UnsupportedCallbackException
+ */
+ public void handle(Callback[] callbacks)
+ throws IOException, UnsupportedCallbackException {
+
+ for (int i = 0; i < callbacks.length; i++) {
+ if (callbacks[i] instanceof WSPasswordCallback) {
+ WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
+
+ /*
+ * here call a function/method to lookup the password for
+ * the given identifier (e.g. a user name or keystore alias)
+ * e.g.: pc.setPassword(passStore.getPassword(pc.getIdentfifier))
+ * for Testing we supply a fixed name here.
+ */
+ if (pc.getUsage() == WSPasswordCallback.KEY_NAME) {
+ pc.setKey(key);
+ } else {
+ pc.setPassword("security");
+ }
+ } else {
+ throw new UnsupportedCallbackException(callbacks[i],
+ "Unrecognized Callback");
+ }
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario1.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario1
+ */
+public class Scenario1 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping1";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing1(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario1");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 1 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario2.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario2
+ */
+public class Scenario2 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping2";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing2(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario2");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 2 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario3.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario3
+ */
+public class Scenario3 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping3";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing3(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario3");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 3 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario4.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario4
+ */
+public class Scenario4 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping4";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing4(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario4");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 4 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario5.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario5
+ */
+public class Scenario5 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping5";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing5(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario5");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 5 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario6.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario6
+ */
+public class Scenario6 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping6";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing6(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario6");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 6 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
102 interop/org/apache/ws/axis/oasis/Scenario7.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Scenario6
+ */
+public class Scenario7 {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:9080/axis/services/Ping7";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing6(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario7");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 7 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
246 interop/org/apache/ws/axis/oasis/Server_deploy.wsdd
@@ -0,0 +1,246 @@
+<!-- Use this file to deploy some handlers/chains and services -->
+<!-- Two ways to do this: -->
+<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
+<!-- after the axis server is running -->
+<!-- or -->
+<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
+<!-- from the same directory that the Axis engine runs -->
+
+<deployment
+ xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <!-- Services from PingService WSDL service -->
+
+ <service name="Ping1" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping1"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="UsernameToken"/>
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping1"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping2" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping2"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="UsernameToken Encrypt"/>
+ <parameter name="decryptionPropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping3" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping3"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" /> -->
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+ <service name="Ping4" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping4"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="EmbeddedKeyName" />
+ <parameter name="EmbeddedKeyCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping5" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping5"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Signature"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping6" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping6"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" /> -->
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+ <service name="Ping7" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping7"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+</deployment>
View
102 interop/org/apache/ws/axis/oasis/Tester.java
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.apache.ws.axis.oasis;
+
+import org.apache.axis.utils.Options;
+import org.apache.ws.axis.oasis.ping.PingPort;
+import org.apache.ws.axis.oasis.ping.PingServiceLocator;
+import org.apache.ws.axis.oasis.ping.TicketType;
+
+/**
+ * Class Tester
+ */
+public class Tester {
+
+ /** Field address */
+ private static final java.lang.String address =
+ "http://localhost:8081/axis/services/SecHttp";
+
+ /**
+ * Method main
+ *
+ * @param args
+ * @throws Exception
+ */
+ public static void main(String[] args) throws Exception {
+
+ Options opts = new Options(args);
+ opts.setDefaultURL(address);
+
+ /*
+ * Start to prepare service call. Once this is done, several
+ * calls can be made on the port (see below)
+ *
+ * Fist: get the service locator. This implements the functionality
+ * to get a client stub (aka port).
+ */
+ PingServiceLocator service = new PingServiceLocator();
+
+ /*
+ * this is a JAX-RPC compliant call. It uses a preconfigured
+ * endpoint address (usually contained in the WSDL). Note the
+ * cast.
+ *
+ * SecPort port = (SwaPort)service.getPort(SwaPortType.class);
+ */
+
+ /*
+ * Here we use an Axis specific call that allows to override the
+ * port address (service endpoint address) with an own URL. Comes
+ * in handy for testing.
+ */
+ java.net.URL endpoint;
+
+ try {
+ endpoint = new java.net.URL(opts.getURL());
+ } catch (java.net.MalformedURLException e) {
+ throw new javax.xml.rpc.ServiceException(e);
+ }
+
+ PingPort port = (PingPort) service.getPing1(endpoint);
+
+ /*
+ * At this point all preparations are done. Using the port we can
+ * now perform as many calls as necessary.
+ */
+
+ // perform call
+ TicketType ticket = new TicketType("scenario1");
+ javax.xml.rpc.holders.StringHolder text =
+ new javax.xml.rpc.holders.StringHolder("Scenario 1 text");
+
+ port.ping(text, ticket);
+ System.out.println(text.value);
+
+ if (opts.isFlagSet('t') > 0) {
+ long startTime = System.currentTimeMillis();
+
+ for (int i = 0; i < 20; i++) {
+ port.ping(text, ticket);
+ }
+
+ long endTime = System.currentTimeMillis();
+
+ System.out.println("Time used: " + (endTime - startTime) + "ms");
+ }
+ }
+}
View
66 interop/org/apache/ws/axis/oasis/ping/PingBindingImpl.java
@@ -0,0 +1,66 @@
+/*
+ * Copyright 2003-2004 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+/**
+ * PingBindingImpl.java
+ *
+ * This file was auto-generated from WSDL
+ * by the Apache Axis 1.2dev Oct 27, 2003 (02:34:09 EST) WSDL2Java emitter.
+ */
+
+package org.apache.ws.axis.oasis.ping;
+
+import org.apache.axis.Message;
+import org.apache.axis.MessageContext;
+import org.apache.ws.axis.security.WSDoAllConstants;
+import org.apache.ws.axis.security.WSDoAllReceiverResult;
+import org.apache.ws.security.WSConstants;
+
+import java.security.Principal;
+import java.util.Vector;
+
+public class PingBindingImpl
+ implements org.apache.ws.axis.oasis.ping.PingPort {
+ public void ping(
+ javax.xml.rpc.holders.StringHolder text,
+ org.apache.ws.axis.oasis.ping.TicketType ticket)
+ throws java.rmi.RemoteException {
+ text.value = "Echo " + text.value.trim();
+ MessageContext msgContext = MessageContext.getCurrentContext();
+ Message reqMsg = msgContext.getRequestMessage();
+
+ Vector results = null;
+ if ((results =
+ (Vector) msgContext.getProperty(WSDoAllConstants.RECV_RESULTS))
+ == null) {
+ System.out.println("No security results!!");
+ }
+ System.out.println("Number of results: " + results.size());
+ for (int i = 0; i < results.size(); i++) {
+ WSDoAllReceiverResult rResult = (WSDoAllReceiverResult)results.get(i);
+ Vector principals = rResult.getPrincipals();
+ Vector actions = rResult.getActions();
+
+ for (int j = 0; j < principals.size(); j++) {
+ if (((Integer)actions.get(j)).intValue() != WSConstants.ENCR) {
+ System.out.println(((Principal)principals.get(j)).getName());
+ }
+ }
+ }
+ }
+
+}
View
265 interop/org/apache/ws/axis/oasis/ping/deploy.wsdd
@@ -0,0 +1,265 @@
+<!-- Use this file to deploy some handlers/chains and services -->
+<!-- Two ways to do this: -->
+<!-- java org.apache.axis.client.AdminClient deploy.wsdd -->
+<!-- after the axis server is running -->
+<!-- or -->
+<!-- java org.apache.axis.utils.Admin client|server deploy.wsdd -->
+<!-- from the same directory that the Axis engine runs -->
+
+<deployment
+ xmlns="http://xml.apache.org/axis/wsdd/"
+ xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+
+ <!-- Services from PingService WSDL service -->
+
+ <service name="Ping1" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping1"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="UsernameToken"/>
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping1"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping2" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping2"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="UsernameToken Encrypt"/>
+ <parameter name="decryptionPropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping3" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping3"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+ <service name="Ping4" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping4"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="EmbeddedKeyName" />
+ <parameter name="EmbeddedKeyCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping5" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping5"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Signature"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+ <service name="Ping6" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping6"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Encrypt Signature"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="DirectReference" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+ <service name="Ping7" provider="java:RPC" style="wrapped" use="literal">
+ <parameter name="wsdlTargetNamespace" value="http://xmlsoap.org/Ping"/>
+ <parameter name="wsdlServiceElement" value="PingService"/>
+ <parameter name="wsdlServicePort" value="Ping7"/>
+ <parameter name="className" value="org.apache.ws.axis.oasis.ping.PingBindingImpl"/>
+ <parameter name="wsdlPortType" value="PingPort"/>
+ <operation name="ping" qname="operNS:Ping" xmlns:operNS="http://xmlsoap.org/Ping" >
+ <parameter qname="pns:text" xmlns:pns="http://xmlsoap.org/Ping" type="tns:string" xmlns:tns="http://www.w3.org/2001/XMLSchema" mode="INOUT"/>
+ <parameter qname="pns:ticket" xmlns:pns="http://xmlsoap.org/Ping" type="tns:ticketType" xmlns:tns="http://xmlsoap.org/Ping"/>
+ </operation>
+ <parameter name="allowedMethods" value="ping"/>
+ <requestFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllReceiver">
+ <parameter name="passwordCallbackClass" value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ </handler>
+ </requestFlow>
+ <responseFlow>
+ <handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
+ <parameter name="action" value="Signature Encrypt"/>
+ <parameter name="user" value="16c73ab6-b892-458f-abf5-2f875f74882e"/>
+ <parameter name="passwordCallbackClass"
+ value="org.apache.ws.axis.oasis.PWCallback"/>
+ <parameter name="signatureKeyIdentifier" value="X509KeyIdentifier" />
+ <parameter name="signaturePropFile" value="crypto.properties" />
+ <parameter name="encryptionKeyIdentifier" value="DirectReference" />
+ <parameter name="encryptionUser" value="16c73ab6-b892-458f-abf5-2f875f74882e" />
+ </handler>
+ </responseFlow>
+
+ <typeMapping
+ xmlns:ns="http://xmlsoap.org/Ping"
+ qname="ns:ticketType"
+ type="java:org.apache.ws.axis.oasis.ping.TicketType"
+ serializer="org.apache.axis.encoding.ser.SimpleSerializerFactory"
+ deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
+ encodingStyle=""
+ />
+ </service>
+
+</deployment>
View
94 interop/ping.wsdl
@@ -0,0 +1,94 @@
+<definitions xmlns:tns="http://xmlsoap.org/Ping"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility"
+ targetNamespace="http://xmlsoap.org/Ping" name="Ping">
+ <types>
+ <schema targetNamespace="http://xmlsoap.org/Ping" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
+ <import namespace="http://schemas.xmlsoap.org/ws/2003/06/utility" schemaLocation="utility.xsd"/>
+ <!--
+ <complexType name="ticketType">
+ <sequence>
+ <element name="ticket" type="xsd:string"/>
+ </sequence>
+ <attribute ref="wsu:Id"/>
+ </complexType>
+ -->
+ <complexType name="ticketType">
+ <xsd:simpleContent>
+ <xsd:extension base="xsd:string">
+ <xsd:attribute ref="wsu:Id" />
+ </xsd:extension>
+ </xsd:simpleContent>
+ </complexType>
+ <element name="ticket" type="tns:ticketType"/>
+ <element name="text" type="xsd:string" nillable="true"/>
+ <complexType name="ping">
+ <sequence>
+ <element ref="tns:text" />
+ <element ref="tns:ticket" minOccurs="0" />
+ </sequence>
+ </complexType>
+ <complexType name="pingResponse">
+ <sequence>
+ <element ref="tns:text" />
+ </sequence>
+ </complexType>
+ <element name="Ping" type="tns:ping"/>
+ <element name="PingResponse" type="tns:pingResponse"/>
+ </schema>
+ </types>
+
+ <message name="PingRequest">
+ <part name="ping" element="tns:Ping"/>
+ </message>
+ <message name="PingResponse">
+ <part name="pingResponse" element="tns:PingResponse"/>
+ </message>
+
+ <portType name="PingPort">
+ <operation name="Ping">
+ <input message="tns:PingRequest"/>
+ <output message="tns:PingResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="PingBinding" type="tns:PingPort">
+ <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="Ping">
+ <soap:operation/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="PingService">
+ <port name="Ping1" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping1"/>
+ </port>
+ <port name="Ping2" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping2"/>
+ </port>
+ <port name="Ping3" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping3"/>
+ </port>
+ <port name="Ping4" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping4"/>
+ </port>
+ <port name="Ping5" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping5"/>
+ </port>
+ <port name="Ping6" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping6"/>
+ </port>
+ <port name="Ping7" binding="tns:PingBinding">
+ <soap:address location="http://localhost:9080/pingservice/Ping7"/>
+ </port>
+ </service>
+</definitions>
+
View
112 interop/utility.xsd
@@ -0,0 +1,112 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+OASIS takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on OASIS's procedures with respect to rights in OASIS specifications can be found at the OASIS website. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification, can be obtained from the OASIS Executive Director.
+OASIS invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to implement this specification. Please address the information to the OASIS Executive Director.
+Copyright © OASIS Open 2002. All Rights Reserved.
+This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself does not be modified in any way, such as by removing the copyright notice or references to OASIS, except as needed for the purpose of developing OASIS specifications, in which case the procedures for copyrights defined in the OASIS Intellectual Property Rights document must be followed, or as required to translate it into languages other than English.
+The limited permissions granted above are perpetual and will not be revoked by OASIS or its successors or assigns.
+This document and the information contained herein is provided on an “AS IS” basis and OASIS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
+-->
+<xsd:schema targetNamespace="http://schemas.xmlsoap.org/ws/2003/06/utility" xmlns="http://schemas.xmlsoap.org/ws/2003/06/utility" xmlns:wsu="http://schemas.xmlsoap.org/ws/2003/06/utility" xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="0.1">
+ <!-- // Fault Codes /////////////////////////////////////////// -->
+ <xsd:simpleType name="tTimestampFault">
+ <xsd:annotation>
+ <xsd:documentation>
+This type defines the fault code value for Timestamp message expiration.