axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rico M <rickom...@gmail.com>
Subject SoapAction retrived as NULL
Date Fri, 15 Oct 2010 09:37:09 GMT
Hi ,

I am facing a strange problem while trying to retrieve the soap Action value
from the HTTP headers.

*Following is the header : *

POST /axis2/services/ReceiveMessageAsync HTTP/1.1
User-Agent: Axis2C/1.7.0
SOAPAction: "http://abc.org#RecAsync"
Content-Length: 693
Content-Type: text/xml;charset=UTF-8
Host: local host:8080

This is how I am retrieving the value :

axiom_node_t *AXIS2_CALL ReceiveMessageAsync_invoke( axis2_svc_skeleton_t *
svc_skeleton, const axutil_env_t * env, axiom_node_t * node, axis2_msg_ctx_t
* msg_ctx)
{

    if(node)
    {
        const axis2_char_t *action1 = NULL;
        axis2_char_t *action = "kk";
        const struct axutil_string *itstring =
axis2_msg_ctx_get_soap_action(msg_ctx, env);
        if(itstring==NULL)
                AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,"NULL VAL ON
SOAPACTION");

        action1 =
axutil_string_get_buffer(axis2_msg_ctx_get_soap_action(msg_ctx, env), env);
        AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI,"Value ist %s",action1);
    }
    return node;
}


The above is printing NULL in both cases.  Any suggestions?

Mime
View raw message