diff options
Diffstat (limited to 'libcsoap/soap-env.c')
-rw-r--r-- | libcsoap/soap-env.c | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libcsoap/soap-env.c b/libcsoap/soap-env.c index f7c1449..265295b 100644 --- a/libcsoap/soap-env.c +++ b/libcsoap/soap-env.c @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: soap-env.c,v 1.1 2004/02/03 08:10:05 snowdrop Exp $ + * $Id: soap-env.c,v 1.2 2004/02/03 08:59:22 snowdrop Exp $ * * CSOAP Project: A SOAP client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -280,6 +280,24 @@ soap_env_get_body(SoapEnv* env) xmlNodePtr +soap_env_get_method(SoapEnv* env) +{ + + xmlNodePtr body; + + body = soap_env_get_body(env); + if (body == NULL) { + log_verbose1("body is NULL"); + return NULL; + } + + /* mehtod is the first child */ + return soap_xml_get_children(body); + +} + + +xmlNodePtr _soap_env_get_body(SoapEnv* env) { xmlNodePtr node, body; |