You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2007/06/20 11:09:34 UTC
svn commit: r549009 - /webservices/axis2/trunk/c/axiom/test/om/test_om.c
Author: dinesh
Date: Wed Jun 20 02:09:33 2007
New Revision: 549009
URL: http://svn.apache.org/viewvc?view=rev&rev=549009
Log:
test_om restored
Modified:
webservices/axis2/trunk/c/axiom/test/om/test_om.c
Modified: webservices/axis2/trunk/c/axiom/test/om/test_om.c
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/test/om/test_om.c?view=diff&rev=549009&r1=549008&r2=549009
==============================================================================
--- webservices/axis2/trunk/c/axiom/test/om/test_om.c (original)
+++ webservices/axis2/trunk/c/axiom/test/om/test_om.c Wed Jun 20 02:09:33 2007
@@ -74,16 +74,13 @@
printf("\nstart test_om_build\n");
- /*f = fopen(filename, "r");
+ f = fopen(filename, "r");
if (!f)
return -1;
- */
+
/** create pull parser */
- /*reader = axiom_xml_reader_create_for_io(environment, read_input, NULL , NULL, NULL);*/
- buffer = "<ns1:EchoRequest xmlns:ns1 = 'http://example.com/ws/2004/09/policy' xmlns:wsu = 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd' wsu:Id = 'SigID-b3a30a12-1ef4-1dc1'><text>Hello</text></ns1:EchoRequest>" ;
+ reader = axiom_xml_reader_create_for_io(environment, read_input, NULL , NULL, NULL);
- reader = axiom_xml_reader_create_for_memory(environment,
- (void*)buffer, axutil_strlen(buffer), "utf-8", AXIS2_XML_PARSER_TYPE_BUFFER);
if (!reader)
{
printf("ERROR CREATING PULLPARSER");
@@ -193,8 +190,7 @@
/* if (buffer) */
/* AXIS2_FREE(environment->allocator, buffer); */
printf("\nend test_om_build\n");
- if (f)
- fclose(f);
+ fclose(f);
return 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org