ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From manj...@apache.org
Subject svn commit: r583067 - in /webservices/axis2/trunk/c/neethi: ./ test/ test/policies/
Date Tue, 09 Oct 2007 07:56:57 GMT
Author: manjula
Date: Tue Oct  9 00:56:56 2007
New Revision: 583067

URL: http://svn.apache.org/viewvc?rev=583067&view=rev
Log:
Improving the tests in neethi.

Added:
    webservices/axis2/trunk/c/neethi/test/policies/asymmetric_binding_policy.xml
    webservices/axis2/trunk/c/neethi/test/policies/symmetric_binding_policy.xml
Removed:
    webservices/axis2/trunk/c/neethi/test/_test.c
    webservices/axis2/trunk/c/neethi/test/build.sh
    webservices/axis2/trunk/c/neethi/test/main
    webservices/axis2/trunk/c/neethi/test/policy1.xml
    webservices/axis2/trunk/c/neethi/test/policy2.xml
    webservices/axis2/trunk/c/neethi/test/policy3.xml
Modified:
    webservices/axis2/trunk/c/neethi/Makefile.am
    webservices/axis2/trunk/c/neethi/configure.ac
    webservices/axis2/trunk/c/neethi/test/Makefile
    webservices/axis2/trunk/c/neethi/test/Makefile.am
    webservices/axis2/trunk/c/neethi/test/Makefile.in
    webservices/axis2/trunk/c/neethi/test/test
    webservices/axis2/trunk/c/neethi/test/test.c

Modified: webservices/axis2/trunk/c/neethi/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/Makefile.am?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/Makefile.am (original)
+++ webservices/axis2/trunk/c/neethi/Makefile.am Tue Oct  9 00:56:56 2007
@@ -1,4 +1,4 @@
-SUBDIRS = src 
+SUBDIRS = src test 
 includedir=$(prefix)/include/axis2-1.1
 include_HEADERS=$(top_builddir)/include/*.h
 #data_DATA= INSTALL README AUTHORS NEWS CREDITS LICENSE COPYING

Modified: webservices/axis2/trunk/c/neethi/configure.ac
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/configure.ac?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/configure.ac (original)
+++ webservices/axis2/trunk/c/neethi/configure.ac Tue Oct  9 00:56:56 2007
@@ -67,6 +67,7 @@
     src/secpolicy/Makefile \
     src/secpolicy/model/Makefile \
     src/secpolicy/builder/Makefile \
+    test/Makefile \
     ])
     
 AC_OUTPUT

Modified: webservices/axis2/trunk/c/neethi/test/Makefile
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/Makefile?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/Makefile (original)
+++ webservices/axis2/trunk/c/neethi/test/Makefile Tue Oct  9 00:56:56 2007
@@ -1,5 +1,5 @@
 # Makefile.in generated by automake 1.9.6 from Makefile.am.
-# test/omxmlsec/Makefile.  Generated from Makefile.in by configure.
+# test/Makefile.  Generated from Makefile.in by configure.
 
 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
 # 2003, 2004, 2005  Free Software Foundation, Inc.
@@ -15,12 +15,12 @@
 
 
 srcdir = .
-top_srcdir = ../..
+top_srcdir = ..
 
-pkgdatadir = $(datadir)/rampartc-src
-pkglibdir = $(libdir)/rampartc-src
-pkgincludedir = $(includedir)/rampartc-src
-top_builddir = ../..
+pkgdatadir = $(datadir)/neethi-src
+pkglibdir = $(libdir)/neethi-src
+pkgincludedir = $(includedir)/neethi-src
+top_builddir = ..
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 INSTALL = /usr/bin/install -c
 install_sh_DATA = $(install_sh) -c -m 644
@@ -37,8 +37,8 @@
 build_triplet = i686-pc-linux-gnu
 host_triplet = i686-pc-linux-gnu
 target_triplet = i686-pc-linux-gnu
-noinst_PROGRAMS = test_oxs$(EXEEXT)
-subdir = test/omxmlsec
+noinst_PROGRAMS = test$(EXEEXT)
+subdir = test
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
@@ -48,15 +48,11 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 PROGRAMS = $(noinst_PROGRAMS)
-am_test_oxs_OBJECTS = test.$(OBJEXT)
-test_oxs_OBJECTS = $(am_test_oxs_OBJECTS)
-test_oxs_DEPENDENCIES = $(top_builddir)/src/util/librampart_util.la \
-	$(top_builddir)/src/omxmlsec/libomxmlsec.la \
-	$(top_builddir)/src/omxmlsec/openssl/libomopenssl.la \
-	$(top_builddir)/src/omxmlsec/tokens/liboxstokens.la \
-	${AXIS2C_HOME}/lib/libaxutil.la \
-	${AXIS2C_HOME}/lib/libaxis2_axiom.la \
-	${AXIS2C_HOME}/lib/libaxis2_parser.la
+am_test_OBJECTS = test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES = $(top_builddir)/src/libneethi.la \
+	../../axiom/src/om/libaxis2_axiom.la \
+	../../util/src/libaxutil.la ../src/libneethi.la
 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
@@ -68,25 +64,23 @@
 CCLD = $(CC)
 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-SOURCES = $(test_oxs_SOURCES)
-DIST_SOURCES = $(test_oxs_SOURCES)
+SOURCES = $(test_SOURCES)
+DIST_SOURCES = $(test_SOURCES)
 ETAGS = etags
 CTAGS = ctags
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = ${SHELL} /home/manjula/rampart/c/missing --run aclocal-1.9
+ACLOCAL = ${SHELL} /home/manjula/axis2/c/neethi/missing --run aclocal-1.9
 AMDEP_FALSE = #
 AMDEP_TRUE = 
-AMTAR = ${SHELL} /home/manjula/rampart/c/missing --run tar
+AMTAR = ${SHELL} /home/manjula/axis2/c/neethi/missing --run tar
 AR = ar
-AUTOCONF = ${SHELL} /home/manjula/rampart/c/missing --run autoconf
-AUTOHEADER = ${SHELL} /home/manjula/rampart/c/missing --run autoheader
-AUTOMAKE = ${SHELL} /home/manjula/rampart/c/missing --run automake-1.9
+AUTOCONF = ${SHELL} /home/manjula/axis2/c/neethi/missing --run autoconf
+AUTOHEADER = ${SHELL} /home/manjula/axis2/c/neethi/missing --run autoheader
+AUTOMAKE = ${SHELL} /home/manjula/axis2/c/neethi/missing --run automake-1.9
 AWK = mawk
-AXIOMINC = 
-AXIS2INC = -I/home/manjula/axis2/c/deploy/include/axis2-1.0
 CC = gcc
 CCDEPMODE = depmode=gcc3
-CFLAGS = -g3 -O0 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration
+CFLAGS = -g3 -O0 -D_LARGEFILE64_SOURCE -ansi -Wall -Werror -Wno-implicit-function-declaration

 CPP = gcc -E
 CPPFLAGS = 
 CXX = g++
@@ -115,22 +109,21 @@
 LIBTOOL = $(SHELL) $(top_builddir)/libtool
 LN_S = ln -s
 LTLIBOBJS = 
-MAKEINFO = ${SHELL} /home/manjula/rampart/c/missing --run makeinfo
+MAKEINFO = ${SHELL} /home/manjula/axis2/c/neethi/missing --run makeinfo
 OBJEXT = o
-PACKAGE = rampartc-src
+PACKAGE = neethi-src
 PACKAGE_BUGREPORT = 
-PACKAGE_NAME = rampartc-src
-PACKAGE_STRING = rampartc-src 0.96
-PACKAGE_TARNAME = rampartc-src
-PACKAGE_VERSION = 0.96
+PACKAGE_NAME = neethi-src
+PACKAGE_STRING = neethi-src 0.90
+PACKAGE_TARNAME = neethi-src
+PACKAGE_VERSION = 0.90
 PATH_SEPARATOR = :
 RANLIB = ranlib
 SET_MAKE = 
 SHELL = /bin/sh
 STRIP = strip
-UTILINC = 
-VERSION = 0.96
-XMLSCHEMAINC = 
+VERSION = 0.90
+VERSION_NO = 1:0:1
 ac_ct_CC = gcc
 ac_ct_CXX = g++
 ac_ct_F77 = 
@@ -141,8 +134,8 @@
 am__include = include
 am__leading_dot = .
 am__quote = 
-am__tar = tar --format=ustar -chf - "$$tardir"
-am__untar = tar -xf -
+am__tar = ${AMTAR} chof - "$$tardir"
+am__untar = ${AMTAR} xf -
 bindir = ${exec_prefix}/bin
 build = i686-pc-linux-gnu
 build_alias = 
@@ -162,7 +155,7 @@
 htmldir = ${docdir}
 includedir = ${prefix}/include
 infodir = ${datarootdir}/info
-install_sh = /home/manjula/rampart/c/install-sh
+install_sh = /home/manjula/axis2/c/neethi/install-sh
 libdir = ${exec_prefix}/lib
 libexecdir = ${exec_prefix}/libexec
 localedir = ${datarootdir}/locale
@@ -182,22 +175,19 @@
 target_cpu = i686
 target_os = linux-gnu
 target_vendor = pc
-TESTS = test_oxs
-
-#AM_CFLAGS = -g -O2 -pthread
-test_oxs_SOURCES = test.c
+TESTS = 
+AM_CFLAGS = -g -O2 -pthread
+test_SOURCES = test.c
 INCLUDES = -I$(top_builddir)/include \
-		    -I ../../include \
-		    -I/home/manjula/axis2/c/deploy/include/axis2-1.0
-
-test_oxs_LDADD = $(top_builddir)/src/util/librampart_util.la \
-                    $(top_builddir)/src/omxmlsec/libomxmlsec.la \
-                    $(top_builddir)/src/omxmlsec/openssl/libomopenssl.la \
-                    $(top_builddir)/src/omxmlsec/tokens/liboxstokens.la \
-		    ${AXIS2C_HOME}/lib/libaxutil.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_axiom.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_parser.la \
-           -lxml2
+			-I ../../util/include \
+			-I ../../axiom/include \
+		    -I ../../include
+
+test_LDADD = $(top_builddir)/src/libneethi.la \
+			../../axiom/src/om/libaxis2_axiom.la \
+			../../util/src/libaxutil.la \
+			../src/libneethi.la \
+			-lxml2
 
 all: all-am
 
@@ -212,9 +202,9 @@
 	      exit 1;; \
 	  esac; \
 	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/omxmlsec/Makefile'; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/Makefile'; \
 	cd $(top_srcdir) && \
-	  $(AUTOMAKE) --gnu  test/omxmlsec/Makefile
+	  $(AUTOMAKE) --gnu  test/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 	@case '$?' in \
@@ -239,9 +229,9 @@
 	  echo " rm -f $$p $$f"; \
 	  rm -f $$p $$f ; \
 	done
-test_oxs$(EXEEXT): $(test_oxs_OBJECTS) $(test_oxs_DEPENDENCIES) 
-	@rm -f test_oxs$(EXEEXT)
-	$(LINK) $(test_oxs_LDFLAGS) $(test_oxs_OBJECTS) $(test_oxs_LDADD) $(LIBS)
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) 
+	@rm -f test$(EXEEXT)
+	$(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)

Modified: webservices/axis2/trunk/c/neethi/test/Makefile.am
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/Makefile.am?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/Makefile.am (original)
+++ webservices/axis2/trunk/c/neethi/test/Makefile.am Tue Oct  9 00:56:56 2007
@@ -1,16 +1,17 @@
-TESTS = test_round2
-noinst_PROGRAMS = test_round2
+TESTS = 
+noinst_PROGRAMS = test
 
-#AM_CFLAGS = -g -O2 -pthread
+AM_CFLAGS = -g -O2 -pthread
 
-test_round2_SOURCES =  test.c
+test_SOURCES = test.c
 
 INCLUDES = -I$(top_builddir)/include \
-		    -I ../../include \
-		    @AXIS2INC@
+			-I ../../util/include \
+			-I ../../axiom/include \
+		    -I ../../include
 
-test_round2_LDADD   = $(top_builddir)/src/util/libneethi.la \
-		    ${AXIS2C_HOME}/lib/libaxutil.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_axiom.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_parser.la \
-           -lxml2
+test_LDADD = $(top_builddir)/src/libneethi.la \
+			../../axiom/src/om/libaxis2_axiom.la \
+			../../util/src/libaxutil.la \
+			../src/libneethi.la \
+			-lxml2

Modified: webservices/axis2/trunk/c/neethi/test/Makefile.in
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/Makefile.in?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/Makefile.in (original)
+++ webservices/axis2/trunk/c/neethi/test/Makefile.in Tue Oct  9 00:56:56 2007
@@ -20,7 +20,7 @@
 pkgdatadir = $(datadir)/@PACKAGE@
 pkglibdir = $(libdir)/@PACKAGE@
 pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ../..
+top_builddir = ..
 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
 INSTALL = @INSTALL@
 install_sh_DATA = $(install_sh) -c -m 644
@@ -37,8 +37,8 @@
 build_triplet = @build@
 host_triplet = @host@
 target_triplet = @target@
-noinst_PROGRAMS = test_oxs$(EXEEXT)
-subdir = test/omxmlsec
+noinst_PROGRAMS = test$(EXEEXT)
+subdir = test
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
 am__aclocal_m4_deps = $(top_srcdir)/configure.ac
@@ -48,15 +48,11 @@
 CONFIG_HEADER = $(top_builddir)/config.h
 CONFIG_CLEAN_FILES =
 PROGRAMS = $(noinst_PROGRAMS)
-am_test_oxs_OBJECTS = test.$(OBJEXT)
-test_oxs_OBJECTS = $(am_test_oxs_OBJECTS)
-test_oxs_DEPENDENCIES = $(top_builddir)/src/util/librampart_util.la \
-	$(top_builddir)/src/omxmlsec/libomxmlsec.la \
-	$(top_builddir)/src/omxmlsec/openssl/libomopenssl.la \
-	$(top_builddir)/src/omxmlsec/tokens/liboxstokens.la \
-	${AXIS2C_HOME}/lib/libaxutil.la \
-	${AXIS2C_HOME}/lib/libaxis2_axiom.la \
-	${AXIS2C_HOME}/lib/libaxis2_parser.la
+am_test_OBJECTS = test.$(OBJEXT)
+test_OBJECTS = $(am_test_OBJECTS)
+test_DEPENDENCIES = $(top_builddir)/src/libneethi.la \
+	../../axiom/src/om/libaxis2_axiom.la \
+	../../util/src/libaxutil.la ../src/libneethi.la
 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
 depcomp = $(SHELL) $(top_srcdir)/depcomp
 am__depfiles_maybe = depfiles
@@ -68,8 +64,8 @@
 CCLD = $(CC)
 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
 	$(AM_LDFLAGS) $(LDFLAGS) -o $@
-SOURCES = $(test_oxs_SOURCES)
-DIST_SOURCES = $(test_oxs_SOURCES)
+SOURCES = $(test_SOURCES)
+DIST_SOURCES = $(test_SOURCES)
 ETAGS = etags
 CTAGS = ctags
 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
@@ -82,8 +78,6 @@
 AUTOHEADER = @AUTOHEADER@
 AUTOMAKE = @AUTOMAKE@
 AWK = @AWK@
-AXIOMINC = @AXIOMINC@
-AXIS2INC = @AXIS2INC@
 CC = @CC@
 CCDEPMODE = @CCDEPMODE@
 CFLAGS = @CFLAGS@
@@ -128,9 +122,8 @@
 SET_MAKE = @SET_MAKE@
 SHELL = @SHELL@
 STRIP = @STRIP@
-UTILINC = @UTILINC@
 VERSION = @VERSION@
-XMLSCHEMAINC = @XMLSCHEMAINC@
+VERSION_NO = @VERSION_NO@
 ac_ct_CC = @ac_ct_CC@
 ac_ct_CXX = @ac_ct_CXX@
 ac_ct_F77 = @ac_ct_F77@
@@ -182,22 +175,19 @@
 target_cpu = @target_cpu@
 target_os = @target_os@
 target_vendor = @target_vendor@
-TESTS = test_oxs
-
-#AM_CFLAGS = -g -O2 -pthread
-test_oxs_SOURCES = test.c
+TESTS = 
+AM_CFLAGS = -g -O2 -pthread
+test_SOURCES = test.c
 INCLUDES = -I$(top_builddir)/include \
-		    -I ../../include \
-		    @AXIS2INC@
-
-test_oxs_LDADD = $(top_builddir)/src/util/librampart_util.la \
-                    $(top_builddir)/src/omxmlsec/libomxmlsec.la \
-                    $(top_builddir)/src/omxmlsec/openssl/libomopenssl.la \
-                    $(top_builddir)/src/omxmlsec/tokens/liboxstokens.la \
-		    ${AXIS2C_HOME}/lib/libaxutil.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_axiom.la \
-		    ${AXIS2C_HOME}/lib/libaxis2_parser.la \
-           -lxml2
+			-I ../../util/include \
+			-I ../../axiom/include \
+		    -I ../../include
+
+test_LDADD = $(top_builddir)/src/libneethi.la \
+			../../axiom/src/om/libaxis2_axiom.la \
+			../../util/src/libaxutil.la \
+			../src/libneethi.la \
+			-lxml2
 
 all: all-am
 
@@ -212,9 +202,9 @@
 	      exit 1;; \
 	  esac; \
 	done; \
-	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/omxmlsec/Makefile'; \
+	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  test/Makefile'; \
 	cd $(top_srcdir) && \
-	  $(AUTOMAKE) --gnu  test/omxmlsec/Makefile
+	  $(AUTOMAKE) --gnu  test/Makefile
 .PRECIOUS: Makefile
 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
 	@case '$?' in \
@@ -239,9 +229,9 @@
 	  echo " rm -f $$p $$f"; \
 	  rm -f $$p $$f ; \
 	done
-test_oxs$(EXEEXT): $(test_oxs_OBJECTS) $(test_oxs_DEPENDENCIES) 
-	@rm -f test_oxs$(EXEEXT)
-	$(LINK) $(test_oxs_LDFLAGS) $(test_oxs_OBJECTS) $(test_oxs_LDADD) $(LIBS)
+test$(EXEEXT): $(test_OBJECTS) $(test_DEPENDENCIES) 
+	@rm -f test$(EXEEXT)
+	$(LINK) $(test_LDFLAGS) $(test_OBJECTS) $(test_LDADD) $(LIBS)
 
 mostlyclean-compile:
 	-rm -f *.$(OBJEXT)

Added: webservices/axis2/trunk/c/neethi/test/policies/asymmetric_binding_policy.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/policies/asymmetric_binding_policy.xml?rev=583067&view=auto
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/policies/asymmetric_binding_policy.xml (added)
+++ webservices/axis2/trunk/c/neethi/test/policies/asymmetric_binding_policy.xml Tue Oct 
9 00:56:56 2007
@@ -0,0 +1,70 @@
+<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+    <wsp:ExactlyOne>
+        <wsp:All>
+            <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:InitiatorToken>
+                        <wsp:Policy>
+                            <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+                                <wsp:Policy>
+                                    <sp:WssX509V3Token10/>
+                                </wsp:Policy>
+                            </sp:X509Token>
+                        </wsp:Policy>
+                    </sp:InitiatorToken>
+                    <sp:RecipientToken>
+                        <wsp:Policy>
+                            <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+                                <wsp:Policy>
+                                    <sp:WssX509V3Token10/>
+                                </wsp:Policy>
+                            </sp:X509Token>
+                        </wsp:Policy>
+                    </sp:RecipientToken>
+                    <sp:AlgorithmSuite>
+                        <wsp:Policy>
+                            <sp:Basic256Rsa15/>
+                        </wsp:Policy>
+                    </sp:AlgorithmSuite>
+                    <sp:Layout>
+                        <wsp:Policy>
+                            <sp:Strict/>
+                        </wsp:Policy>
+                    </sp:Layout>
+                    <sp:IncludeTimestamp/>
+                    <sp:EncryptSignature/>
+                    <sp:EncryptBeforeSigning/>
+                </wsp:Policy>
+            </sp:AsymmetricBinding>
+            <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+            <wsp:Policy>
+                <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always"/>
+            </wsp:Policy>
+            </sp:SignedSupportingTokens>
+            <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:MustSupportRefKeyIdentifier/>
+                    <sp:MustSupportRefEmbeddedToken/>
+                    <sp:MustSupportRefIssuerSerial/>
+                </wsp:Policy>
+            </sp:Wss10>
+            <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <sp:Body/>
+            </sp:EncryptedParts>
+            <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <sp:Body/>
+                <sp:Header Namespace="http://www.w3.org/2005/08/addressing"/>
+            </sp:SignedParts>
+            <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
+                <rampc:User>Alice</rampc:User>
+                <rampc:TimeToLive>360</rampc:TimeToLive>
+                <rampc:EncryptionUser>a</rampc:EncryptionUser>
+                <rampc:PasswordType>Digest</rampc:PasswordType>
+                <rampc:PasswordCallbackClass>AXIS2C_HOME/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass>
+                <rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/bob_cert.cert</rampc:ReceiverCertificate>
+                <rampc:Certificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_cert.cert</rampc:Certificate>
+                <rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_key.pem</rampc:PrivateKey>
+            </rampc:RampartConfig>
+        </wsp:All>
+    </wsp:ExactlyOne>
+</wsp:Policy>

Added: webservices/axis2/trunk/c/neethi/test/policies/symmetric_binding_policy.xml
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/policies/symmetric_binding_policy.xml?rev=583067&view=auto
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/policies/symmetric_binding_policy.xml (added)
+++ webservices/axis2/trunk/c/neethi/test/policies/symmetric_binding_policy.xml Tue Oct  9
00:56:56 2007
@@ -0,0 +1,75 @@
+<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+    <wsp:ExactlyOne>
+        <wsp:All>
+           <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:ProtectionToken>
+                        <wsp:Policy>
+                            <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never">
+                                <wsp:Policy>
+                                    <sp:RequireDerivedKeys/>
+                                    <!--sp:RequireThumbprintReference/-->
+                                    <sp:WssX509V3Token10/>
+                                </wsp:Policy>
+                            </sp:X509Token>
+                        </wsp:Policy>
+                    </sp:ProtectionToken>
+                    <sp:AlgorithmSuite>
+                        <wsp:Policy>
+                            <sp:Basic256/>
+                        </wsp:Policy>
+                    </sp:AlgorithmSuite>
+                    <sp:Layout>
+                        <wsp:Policy>
+                            <sp:Strict/>
+                        </wsp:Policy>
+                    </sp:Layout>
+                    <sp:IncludeTimestamp/>
+                    <sp:EncryptSignature/>
+                    <sp:OnlySignEntireHeadersAndBody/>
+                </wsp:Policy>
+            </sp:SymmetricBinding>
+            <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
+                        <wsp:Policy>
+                            <sp:WssUsernameToken10/>
+                        </wsp:Policy>
+                    </sp:UsernameToken>
+                </wsp:Policy>
+            </sp:SignedSupportingTokens>
+            <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:MustSupportRefKeyIdentifier/>
+                    <sp:MustSupportRefIssuerSerial/>
+                    <sp:MustSupportRefThumbprint/>
+                    <sp:MustSupportRefEncryptedKey/>
+                </wsp:Policy>
+            </sp:Wss11>
+            <!--sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <wsp:Policy>
+                    <sp:MustSupportIssuedTokens/>
+                    <sp:RequireClientEntropy/>
+                    <sp:RequireServerEntropy/>
+                </wsp:Policy>
+            </sp:Trust10--> 
+            <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <sp:Body/>
+            </sp:EncryptedParts>
+            <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
+                <sp:Body/>
+                <sp:Header Namespace="http://www.w3.org/2005/08/addressing"/>
+            </sp:SignedParts>
+            <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy">
+                <rampc:User>Alice</rampc:User>
+                <rampc:TimeToLive>360</rampc:TimeToLive>
+                <rampc:EncryptionUser>a</rampc:EncryptionUser>
+                <rampc:PasswordType>Digest</rampc:PasswordType>
+                <rampc:PasswordCallbackClass>AXIS2C_HOME/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass>
+                <rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/bob_cert.cert</rampc:ReceiverCertificate>
+                <rampc:Certificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_cert.cert</rampc:Certificate>
+                <rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_key.pem</rampc:PrivateKey>
+            </rampc:RampartConfig>
+        </wsp:All>
+    </wsp:ExactlyOne>
+</wsp:Policy>

Modified: webservices/axis2/trunk/c/neethi/test/test
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/test?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
Binary files - no diff available.

Modified: webservices/axis2/trunk/c/neethi/test/test.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/neethi/test/test.c?rev=583067&r1=583066&r2=583067&view=diff
==============================================================================
--- webservices/axis2/trunk/c/neethi/test/test.c (original)
+++ webservices/axis2/trunk/c/neethi/test/test.c Tue Oct  9 00:56:56 2007
@@ -6,6 +6,7 @@
 #include <stdio.h>
 #include <axiom_xml_reader.h>
 #include <neethi_engine.h>
+#include <axutil_array_list.h>
 
 axis2_status_t AXIS2_CALL om_node_serialize(
     axiom_node_t * node,
@@ -74,7 +75,8 @@
                     printf("Policy Creation fails\n");
                     return 0;
                 }
-                else
+
+                /*else
                 {
                     axiom_node_t *s_node = NULL;
                     s_node = neethi_engine_serialize(neethi_policy, env);
@@ -85,7 +87,7 @@
                     }
                     if (om_node_serialize(s_node, env) != AXIS2_SUCCESS)
                         return 0;
-                }
+                }*/
             }
         }
     }
@@ -125,6 +127,8 @@
 
     printf("\nend test_om_serialize\n");
 
+    return AXIS2_SUCCESS;
+
 }
 
 axutil_array_list_t *AXIS2_CALL
@@ -140,7 +144,7 @@
     axiom_node_t *root = NULL;
     axiom_element_t *root_ele = NULL;
     int i = 0;
-    axutil_array_list *arraylist = NULL;
+    axutil_array_list_t *arraylist = NULL;
 
     arraylist = axutil_array_list_create(env, 0);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message