axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From topcoder1 <topcod...@gmail.com>
Subject Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL
Date Wed, 03 Oct 2007 20:21:11 GMT
thanks guys, both of you for the pointer, yes that was my problem,
AXIS2C_HOME needs to point to the repo location.

On 10/2/07, Samisa Abeysinghe <samisa@wso2.com> wrote:
> Have you set AXIS2C_HOME environment to point to the repo location?
>
> Samisa...
>
> topcoder1 wrote:
> > hi folks, I am new to axis2/c, I try to get the following simple c
> > client to work, but for some reason
> > axis2_stub_create_with_endpoint_ref_and_client_home always returns
> > NULL.  The env and endpoint_ref I pass to the function both seem to be
> > valid.  Any idea what the problem might be?
> > thanks!
> >
> >  axis2_stub_t *stub = NULL;
> >         axis2_endpoint_ref_t *endpoint_ref = NULL;
> >         const axutil_env_t *env = NULL;
> >         const axis2_char_t *endpoint_uri = NULL;
> >        const axis2_char_t *client_home = NULL;
> >        AXIS2_FUNC_PARAM_CHECK ( client_home, env, NULL)
> >
> >        address = "http://localhost:8080/test/services/test";
> >
> > client_home = AXIS2_GETENV("AXIS2C_HOME");
> >        if (!client_home || !strcmp (client_home, ""))
> >
> >                client_home = "./";
> >
> >        env = axutil_env_create_all("test_client.log", AXIS2_LOG_LEVEL_TRACE);
> >
> >         if (NULL == endpoint_uri)
> >         {
> >            endpoint_uri =
> > axis2_stub_ReportGenerate_get_endpoint_uri_from_wsdl( env );
> >         }
> >
> >         endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri);
> >
> >         stub = axis2_stub_create_with_endpoint_ref_and_client_home (
> > env, endpoint_ref, client_home );//stub is null
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/PHP
> "http://wso2.org/projects/wsf/php?WSO2&nbsp;Web&nbsp;Services&nbsp;Framework%2FPHP&nbsp;-&nbsp;Open&nbsp;source&nbsp;PHP&nbsp;extention&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services&nbsp;in&nbsp;PHP"
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

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


Mime
View raw message