multiple soap calls fail

2007-10-08 Thread topcoder1
Hi,
I am using generated client stub to make 2 blocking calls
consecutively, first call always goes ok, but the second one will
cause a seg fault.I tried to create a new service client for every
call, but it doesn't help.
has anyone encountered the same problem?  May I see an example of two
consecutive calls?
thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mixing C++ code with axis2/c

2007-10-06 Thread topcoder1
hi folks,
I currrently have a C++ project and I want to incorporate some
generated  c stub client code into it, the problem is that I need to
compile these c code differently from C++ code I already have
otherwise I will have compilation error.  from My C++ code I can
include these c headers like this:
#ifdef __cplusplus
extern "C" {
#include "adb_myccode.h"
}
#endif

but adb_myccode.c  needs to be compiled as c in a different setting,
which means I can't have it and my other C++ code in the same
project...(unless there's a trick I don't know in MSVC)
so does that mean my best option is to create a win32 dll from these c
code and then use it from my C++ project?

thanks!

-Jonathan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: config.h

2007-10-06 Thread topcoder1
Ok These compilation error is due to the fact that I compile them as
C++ code in MSVC settings, if I compile them as C code then there's no
error.  However I have other C++ code in the projects so I can't
compile them as C code.  what can I do?

On 10/5/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> topcoder1 wrote:
> > It's Axis2/C 1.3
> >
> You meann Axis2/Java 1.3 for codegen and Axis2/C?
>
> Samisa...
>
> > On 10/5/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> >
> >> What is the Axis2/C version you are using?
> >>
> >> Samisa...
> >>
> >> topcoder1 wrote:
> >>
> >>> Hi thanks!  I added the preprocessor definitions 
> >>> WIN32;AXIS2_DECLARE_EXPORT
> >>> it still says error C2664: 'axis2_options_set_soap_action' : cannot
> >>> convert parameter 3 from 'const axutil_string_t *' to 'axutil_string_t
> >>> *'  I have to do a manual casts for lots of these parameters...  It's
> >>> not a Console application, it's other Win32 application though,  I am
> >>> integrating axis2 into a 3d game engine.
> >>> anything I missed that will get solve this problem?
> >>> thanks
> >>>
> >>>
> >>> On 10/5/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> Hi,
> >>>> You seems started the project as General-> Empty Project (if you are
> >>>> developing on Visual Studio). I also got the same error in that path.
> >>>>
> >>>> Either you can start a new project Win32-> Console Application or you can
> >>>> just add preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT to solve the
> >>>> problem.
> >>>>
> >>>> Thanks
> >>>> Dimuthu
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On 10/4/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>> I added WIN32 in preprocessor definitions, now I am getting tons of
> >>>>> errors like this:
> >>>>> error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
> >>>>> Conversion from 'void*' to pointer to non-'void' requires an
> >>>>> explicit cast
> >>>>>
> >>>>> current_element = axiom_node_get_data_element( parent, env);
> >>>>> please help, thanks!
> >>>>>
> >>>>> On 10/3/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>> when compiling the client stub code generated from axis2c tool I got
> >>>>>>
> >>>>>>
> >>>> this error:
> >>>>
> >>>> L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
> >>>>
> >>>>
> >>>>>> fatal error C1083: Cannot open include file: 'config.h': No such file
> >>>>>> or directory
> >>>>>> i can't find config.h anywhere within the axis2c installation, any 
> >>>>>> idea?
> >>>>>> thanks
> >>>>>> #ifndef AXUTIL_CONFIG_H
> >>>>>> #define AXUTIL_CONFIG_H
> >>>>>>
> >>>>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>>>> #undef PACKAGE
> >>>>>> #undef PACKAGE_BUGREPORT
> >>>>>> #undef PACKAGE_NAME
> >>>>>> #undef PACKAGE_STRING
> >>>>>> #undef PACKAGE_TARNAME
> >>>>>> #undef PACKAGE_VERSION
> >>>>>> #undef VERSION
> >>>>>>
> >>>>>> #include < config.h>
> >>>>>>
> >>>>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>>>> #undef PACKAGE
> >>>>>> #undef PACKAGE_BUGREPORT
> >>>>>> #undef PACKAGE_NAME
> >>>>>> #undef PACKAGE_STRING
> >>>>>> #undef PACKAGE_TARNAME
> >>>>>> #undef PACKAGE_VERSION
> >>>>>> #undef VERSION
> >>>>>>
> >>>>>> #endif  /* AXIS2_UTILS_H */
> >>>>>>
> >>>>>>
> >>>>>>
> >>>> -
> >>>>
> >>>>
> >>>>> To unsubscribe, e-mail:
> >>>>>
> >>>>>
> >>>> [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >> --
> >> Samisa Abeysinghe : WSO2 WSF/PHP
> >> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/PHP
> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: config.h

2007-10-06 Thread topcoder1
Yes I mean Axis2/java1.3 for codegen and Axis2?c 1.1.0
any idea?
thanks!

On 10/5/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> topcoder1 wrote:
> > It's Axis2/C 1.3
> >
> You meann Axis2/Java 1.3 for codegen and Axis2/C?
>
> Samisa...
>
> > On 10/5/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> >
> >> What is the Axis2/C version you are using?
> >>
> >> Samisa...
> >>
> >> topcoder1 wrote:
> >>
> >>> Hi thanks!  I added the preprocessor definitions 
> >>> WIN32;AXIS2_DECLARE_EXPORT
> >>> it still says error C2664: 'axis2_options_set_soap_action' : cannot
> >>> convert parameter 3 from 'const axutil_string_t *' to 'axutil_string_t
> >>> *'  I have to do a manual casts for lots of these parameters...  It's
> >>> not a Console application, it's other Win32 application though,  I am
> >>> integrating axis2 into a 3d game engine.
> >>> anything I missed that will get solve this problem?
> >>> thanks
> >>>
> >>>
> >>> On 10/5/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
> >>>
> >>>
> >>>> Hi,
> >>>> You seems started the project as General-> Empty Project (if you are
> >>>> developing on Visual Studio). I also got the same error in that path.
> >>>>
> >>>> Either you can start a new project Win32-> Console Application or you can
> >>>> just add preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT to solve the
> >>>> problem.
> >>>>
> >>>> Thanks
> >>>> Dimuthu
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>> On 10/4/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>>>
> >>>>
> >>>>> I added WIN32 in preprocessor definitions, now I am getting tons of
> >>>>> errors like this:
> >>>>> error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
> >>>>> Conversion from 'void*' to pointer to non-'void' requires an
> >>>>> explicit cast
> >>>>>
> >>>>> current_element = axiom_node_get_data_element( parent, env);
> >>>>> please help, thanks!
> >>>>>
> >>>>> On 10/3/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>>>>
> >>>>>
> >>>>>> when compiling the client stub code generated from axis2c tool I got
> >>>>>>
> >>>>>>
> >>>> this error:
> >>>>
> >>>> L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
> >>>>
> >>>>
> >>>>>> fatal error C1083: Cannot open include file: 'config.h': No such file
> >>>>>> or directory
> >>>>>> i can't find config.h anywhere within the axis2c installation, any 
> >>>>>> idea?
> >>>>>> thanks
> >>>>>> #ifndef AXUTIL_CONFIG_H
> >>>>>> #define AXUTIL_CONFIG_H
> >>>>>>
> >>>>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>>>> #undef PACKAGE
> >>>>>> #undef PACKAGE_BUGREPORT
> >>>>>> #undef PACKAGE_NAME
> >>>>>> #undef PACKAGE_STRING
> >>>>>> #undef PACKAGE_TARNAME
> >>>>>> #undef PACKAGE_VERSION
> >>>>>> #undef VERSION
> >>>>>>
> >>>>>> #include < config.h>
> >>>>>>
> >>>>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>>>> #undef PACKAGE
> >>>>>> #undef PACKAGE_BUGREPORT
> >>>>>> #undef PACKAGE_NAME
> >>>>>> #undef PACKAGE_STRING
> >>>>>> #undef PACKAGE_TARNAME
> >>>>>> #undef PACKAGE_VERSION
> >>>>>> #undef VERSION
> >>>>>>
> >>>>>> #endif  /* AXIS2_UTILS_H */
> >>>>>>
> >>>>>>
> >>>>>>
> >>>> -
> >>>>
> >>>>
> >>>>> To unsubscribe, e-mail:
> >>>>>
> >>>>>
> >>>> [EMAIL PROTECTED]
> >>>>
> >>>>
> >>>>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>> -
> >>> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >> --
> >> Samisa Abeysinghe : WSO2 WSF/PHP
> >> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/PHP
> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: config.h

2007-10-05 Thread topcoder1
It's Axis2/C 1.3

On 10/5/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote:
> What is the Axis2/C version you are using?
>
> Samisa...
>
> topcoder1 wrote:
> > Hi thanks!  I added the preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT
> > it still says error C2664: 'axis2_options_set_soap_action' : cannot
> > convert parameter 3 from 'const axutil_string_t *' to 'axutil_string_t
> > *'  I have to do a manual casts for lots of these parameters...  It's
> > not a Console application, it's other Win32 application though,  I am
> > integrating axis2 into a 3d game engine.
> > anything I missed that will get solve this problem?
> > thanks
> >
> >
> > On 10/5/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
> >
> >> Hi,
> >> You seems started the project as General-> Empty Project (if you are
> >> developing on Visual Studio). I also got the same error in that path.
> >>
> >> Either you can start a new project Win32-> Console Application or you can
> >> just add preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT to solve the
> >> problem.
> >>
> >> Thanks
> >> Dimuthu
> >>
> >>
> >>
> >>
> >>
> >> On 10/4/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>
> >>> I added WIN32 in preprocessor definitions, now I am getting tons of
> >>> errors like this:
> >>> error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
> >>> Conversion from 'void*' to pointer to non-'void' requires an
> >>> explicit cast
> >>>
> >>> current_element = axiom_node_get_data_element( parent, env);
> >>> please help, thanks!
> >>>
> >>> On 10/3/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >>>
> >>>> when compiling the client stub code generated from axis2c tool I got
> >>>>
> >> this error:
> >>
> >> L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
> >>
> >>>> fatal error C1083: Cannot open include file: 'config.h': No such file
> >>>> or directory
> >>>> i can't find config.h anywhere within the axis2c installation, any idea?
> >>>> thanks
> >>>> #ifndef AXUTIL_CONFIG_H
> >>>> #define AXUTIL_CONFIG_H
> >>>>
> >>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>> #undef PACKAGE
> >>>> #undef PACKAGE_BUGREPORT
> >>>> #undef PACKAGE_NAME
> >>>> #undef PACKAGE_STRING
> >>>> #undef PACKAGE_TARNAME
> >>>> #undef PACKAGE_VERSION
> >>>> #undef VERSION
> >>>>
> >>>> #include < config.h>
> >>>>
> >>>> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> >>>> #undef PACKAGE
> >>>> #undef PACKAGE_BUGREPORT
> >>>> #undef PACKAGE_NAME
> >>>> #undef PACKAGE_STRING
> >>>> #undef PACKAGE_TARNAME
> >>>> #undef PACKAGE_VERSION
> >>>> #undef VERSION
> >>>>
> >>>> #endif  /* AXIS2_UTILS_H */
> >>>>
> >>>>
> >>>
> >> -
> >>
> >>> To unsubscribe, e-mail:
> >>>
> >> [EMAIL PROTECTED]
> >>
> >>> For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/PHP
> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: config.h

2007-10-05 Thread topcoder1
Hi thanks!  I added the preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT
it still says error C2664: 'axis2_options_set_soap_action' : cannot
convert parameter 3 from 'const axutil_string_t *' to 'axutil_string_t
*'  I have to do a manual casts for lots of these parameters...  It's
not a Console application, it's other Win32 application though,  I am
integrating axis2 into a 3d game engine.
anything I missed that will get solve this problem?
thanks


On 10/5/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote:
> Hi,
> You seems started the project as General-> Empty Project (if you are
> developing on Visual Studio). I also got the same error in that path.
>
> Either you can start a new project Win32-> Console Application or you can
> just add preprocessor definitions WIN32;AXIS2_DECLARE_EXPORT to solve the
> problem.
>
> Thanks
> Dimuthu
>
>
>
>
>
> On 10/4/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> >
> > I added WIN32 in preprocessor definitions, now I am getting tons of
> > errors like this:
> > error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
> > Conversion from 'void*' to pointer to non-'void' requires an
> > explicit cast
> >
> > current_element = axiom_node_get_data_element( parent, env);
> > please help, thanks!
> >
> > On 10/3/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> > > when compiling the client stub code generated from axis2c tool I got
> this error:
> > >
> L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
> > > fatal error C1083: Cannot open include file: 'config.h': No such file
> > > or directory
> > > i can't find config.h anywhere within the axis2c installation, any idea?
> > > thanks
> > > #ifndef AXUTIL_CONFIG_H
> > > #define AXUTIL_CONFIG_H
> > >
> > > /* undef unwated cnfig macros to avoid conflicts with APR macros */
> > > #undef PACKAGE
> > > #undef PACKAGE_BUGREPORT
> > > #undef PACKAGE_NAME
> > > #undef PACKAGE_STRING
> > > #undef PACKAGE_TARNAME
> > > #undef PACKAGE_VERSION
> > > #undef VERSION
> > >
> > > #include < config.h>
> > >
> > > /* undef unwated cnfig macros to avoid conflicts with APR macros */
> > > #undef PACKAGE
> > > #undef PACKAGE_BUGREPORT
> > > #undef PACKAGE_NAME
> > > #undef PACKAGE_STRING
> > > #undef PACKAGE_TARNAME
> > > #undef PACKAGE_VERSION
> > > #undef VERSION
> > >
> > > #endif  /* AXIS2_UTILS_H */
> > >
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: config.h

2007-10-03 Thread topcoder1
I added WIN32 in preprocessor definitions, now I am getting tons of
errors like this:
 error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast

current_element = axiom_node_get_data_element( parent, env);
please help, thanks!

On 10/3/07, topcoder1 <[EMAIL PROTECTED]> wrote:
> when compiling the client stub code generated from axis2c tool I got this 
> error:
> L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
> fatal error C1083: Cannot open include file: 'config.h': No such file
> or directory
> i can't find config.h anywhere within the axis2c installation, any idea?
> thanks
> #ifndef AXUTIL_CONFIG_H
> #define AXUTIL_CONFIG_H
>
> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> #undef PACKAGE
> #undef PACKAGE_BUGREPORT
> #undef PACKAGE_NAME
> #undef PACKAGE_STRING
> #undef PACKAGE_TARNAME
> #undef PACKAGE_VERSION
> #undef VERSION
>
> #include 
>
> /* undef unwated cnfig macros to avoid conflicts with APR macros */
> #undef PACKAGE
> #undef PACKAGE_BUGREPORT
> #undef PACKAGE_NAME
> #undef PACKAGE_STRING
> #undef PACKAGE_TARNAME
> #undef PACKAGE_VERSION
> #undef VERSION
>
> #endif  /* AXIS2_UTILS_H */
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



config.h

2007-10-03 Thread topcoder1
when compiling the client stub code generated from axis2c tool I got this error:
L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
fatal error C1083: Cannot open include file: 'config.h': No such file
or directory
i can't find config.h anywhere within the axis2c installation, any idea?
thanks
#ifndef AXUTIL_CONFIG_H
#define AXUTIL_CONFIG_H

/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef VERSION

#include 

/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef VERSION

#endif  /* AXIS2_UTILS_H */

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-03 Thread topcoder1
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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
>
> --
> Samisa Abeysinghe : WSO2 WSF/PHP
> "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP";
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-02 Thread topcoder1
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]