Re: [Axis2]VC2005 Build problem (was Re: hello)

2007-01-24 Thread ritu gaud
hi nandika,
   
  thanks a lot. i got .exe by ur help.
   
  thanks,
   
  bye. 

Nandika Jayawardana <[EMAIL PROTECTED]> wrote:
  hi ritu,

you need to have following .lib files in your LIB path to avoid there errors,
The libraries are 
   axis2_util.lib  axis2_engine.lib axiom.lib axis2_parser.lib

you will find these libraries in \lib directory. 

If you are building using a vc project , add these to 
properties->linker->input->Additional Dependencies.

regards
Nandika


  On 1/24/07, ritu gaud <[EMAIL PROTECTED]> wrote:hello,
   
  these r the linking errors
   
  error LNK2019: unresolved external symbol __imp__axis2_log_impl_log_error 
referenced in function _wmain 
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain 
   
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function "struct axiom_node * __cdecl 
build_om_payload_for_echo_svc(struct axis2_env const *)" (? 
build_om_payload_for_echo_svc@@YAPAUaxiom_node@@PBUaxis2_env@@@Z )
   
  
Nandika Jayawardana < [EMAIL PROTECTED]> wrote:   Hi ritu,

can you send the link error messages,

Thanks
Nandika

  On 1/24/07, Dinesh Premalal < [EMAIL PROTECTED] > wrote:   Hi Urvashi,

ritu gaud < [EMAIL PROTECTED]> writes:


> i downloaded the VC2005 Express Edition and set all the library and home path
> correctly, still i hv a problem while linking, same errors are persisting.
> is there any other settings also?
> which source file u compiled and linkd to generate .exe, i tried both echo.c
> and math.c, hv u made any changes to code?
These days there is performance tuning changes in 
progress. Therefore  there may be major changes to code base but we
always make sure to keep a stable build. I think linking problem
occur not because changes in code base but some other reason. I'm
afraid , I'm not familiar with VC to suggest a solution. Be patient :) 


thanks,
Dinesh

ps: please make sure to have [Axis2] prefix for axis2c related threads :)

--
Dinesh Premalal
[EMAIL PROTECTED] 
WSO2, Inc.; http://www.wso2.com/
GPG Key ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C 

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





  
  
-
  Here's a new way to find what you're looking for - Yahoo! Answers   





-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: [Axis2]VC2005 Build problem (was Re: hello)

2007-01-24 Thread Nandika Jayawardana

hi ritu,

you need to have following .lib files in your LIB path to avoid there
errors,
The libraries are
  axis2_util.lib  axis2_engine.lib axiom.lib axis2_parser.lib

you will find these libraries in \lib directory.

If you are building using a vc project , add these to
properties->linker->input->Additional Dependencies.

regards
Nandika


On 1/24/07, ritu gaud <[EMAIL PROTECTED]> wrote:


hello,

these r the linking errors

error LNK2019: unresolved external symbol __imp__axis2_log_impl_log_error
referenced in function _wmain

math.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function _wmain

math.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function _wmain

math.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function _wmain

math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED]
referenced in function _wmain

math.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function _wmain


math.obj : error LNK2019: unresolved external symbol
[EMAIL PROTECTED] referenced in function "struct axiom_node *
__cdecl build_om_payload_for_echo_svc(struct axis2_env const *)" (?
build_om_payload_for_echo_svc@@YAPAUaxiom_node@@PBUaxis2_env@@@Z)


*Nandika Jayawardana <[EMAIL PROTECTED]>* wrote:

Hi ritu,

can you send the link error messages,

Thanks
Nandika

On 1/24/07, Dinesh Premalal <[EMAIL PROTECTED] > wrote:
>
> Hi Urvashi,
>
> ritu gaud < [EMAIL PROTECTED]> writes:
>
>
> > i downloaded the VC2005 Express Edition and set all the library and
> home path
> > correctly, still i hv a problem while linking, same errors are
> persisting.
> > is there any other settings also?
> > which source file u compiled and linkd to generate .exe, i tried both
> echo.c
> > and math.c, hv u made any changes to code?
> These days there is performance tuning changes in
> progress. Therefore  there may be major changes to code base but we
> always make sure to keep a stable build. I think linking problem
> occur not because changes in code base but some other reason. I'm
> afraid , I'm not familiar with VC to suggest a solution. Be patient :)
>
>
> thanks,
> Dinesh
>
> ps: please make sure to have [Axis2] prefix for axis2c related threads
> :)
>
> --
> Dinesh Premalal
> [EMAIL PROTECTED]
> WSO2, Inc.; http://www.wso2.com/
> GPG Key ID : A255955C
> GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255
> 955C
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

--
Here's a new way to find what you're looking for - Yahoo! 
Answers




Re: [Axis2]VC2005 Build problem (was Re: hello)

2007-01-24 Thread ritu gaud
  hello,
   
  these r the linking errors
   
  error LNK2019: unresolved external symbol __imp__axis2_log_impl_log_error 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function _wmain
   
   
  math.obj : error LNK2019: unresolved external symbol [EMAIL PROTECTED] 
referenced in function "struct axiom_node * __cdecl 
build_om_payload_for_echo_svc(struct axis2_env const *)" (? 
build_om_payload_for_echo_svc@@YAPAUaxiom_node@@PBUaxis2_env@@@Z)
   

Nandika Jayawardana <[EMAIL PROTECTED]> wrote:  Hi ritu,

can you send the link error messages,

Thanks
Nandika

  On 1/24/07, Dinesh Premalal <[EMAIL PROTECTED] > wrote:  Hi Urvashi,

ritu gaud < [EMAIL PROTECTED]> writes:


> i downloaded the VC2005 Express Edition and set all the library and home path
> correctly, still i hv a problem while linking, same errors are persisting.
> is there any other settings also?
> which source file u compiled and linkd to generate .exe, i tried both echo.c
> and math.c, hv u made any changes to code?
These days there is performance tuning changes in 
progress. Therefore  there may be major changes to code base but we
always make sure to keep a stable build. I think linking problem
occur not because changes in code base but some other reason. I'm
afraid , I'm not familiar with VC to suggest a solution. Be patient :) 


thanks,
Dinesh

ps: please make sure to have [Axis2] prefix for axis2c related threads :)

--
Dinesh Premalal
[EMAIL PROTECTED]
WSO2, Inc.; http://www.wso2.com/
GPG Key ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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






-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: [Axis2]VC2005 Build problem (was Re: hello)

2007-01-24 Thread Nandika Jayawardana

Hi ritu,

can you send the link error messages,

Thanks
Nandika

On 1/24/07, Dinesh Premalal <[EMAIL PROTECTED]> wrote:


Hi Urvashi,

ritu gaud <[EMAIL PROTECTED]> writes:


> i downloaded the VC2005 Express Edition and set all the library and home
path
> correctly, still i hv a problem while linking, same errors are
persisting.
> is there any other settings also?
> which source file u compiled and linkd to generate .exe, i tried both
echo.c
> and math.c, hv u made any changes to code?
These days there is performance tuning changes in
progress. Therefore  there may be major changes to code base but we
always make sure to keep a stable build. I think linking problem
occur not because changes in code base but some other reason. I'm
afraid , I'm not familiar with VC to suggest a solution. Be patient :)


thanks,
Dinesh

ps: please make sure to have [Axis2] prefix for axis2c related threads :)

--
Dinesh Premalal
[EMAIL PROTECTED]
WSO2, Inc.; http://www.wso2.com/
GPG Key ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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




[Axis2]VC2005 Build problem (was Re: hello)

2007-01-24 Thread Dinesh Premalal
Hi Urvashi,

ritu gaud <[EMAIL PROTECTED]> writes:


> i downloaded the VC2005 Express Edition and set all the library and home path
> correctly, still i hv a problem while linking, same errors are persisting.
> is there any other settings also?
> which source file u compiled and linkd to generate .exe, i tried both echo.c
> and math.c, hv u made any changes to code?
These days there is performance tuning changes in
progress. Therefore  there may be major changes to code base but we
always make sure to keep a stable build. I think linking problem
occur not because changes in code base but some other reason. I'm
afraid , I'm not familiar with VC to suggest a solution. Be patient :) 


thanks,
Dinesh

ps: please make sure to have [Axis2] prefix for axis2c related threads :)

-- 
Dinesh Premalal
[EMAIL PROTECTED]
WSO2, Inc.; http://www.wso2.com/
GPG Key ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

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



Re: hello

2007-01-24 Thread ritu gaud
hello,
  i downloaded the VC2005 Express Edition and set all the library and home path 
correctly, still i hv a problem while linking, same errors are persisting.
  is there any other settings also?
  which source file u compiled and linkd to generate .exe, i tried both echo.c 
and math.c, hv u made any changes to code?
  plz guide me.

  thank you,
  Urvashi.
   
  
Nabeel Yoosuf <[EMAIL PROTECTED]> wrote:
  

  On 1/16/07, ritu gaud <[EMAIL PROTECTED]> wrote:hello,
   thank u very much for ur such useful help, bt i got stucked again,
  i am trying to run math.c (math_skeleton.c, math.h) to generate math.exe, bt 
this project get compiled successfully, bt while linking gvs me errors like 
   
  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED] 

  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED] 

  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED] 

  math_skeleton.obj : error LNK2001: unresolved external symbol [EMAIL 
PROTECTED] 

  math_skeleton.obj : error LNK2001: unresolved external symbol [EMAIL 
PROTECTED]

  LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/math.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
  math.exe - 7 error(s), 0 warning(s) 
   
  hv u tried to generate exe? which file shud i include in vc++ project, to 
remove above linking errors?
  
According to the errors, vc++ cannot find the axiom and util libraries. It 
seems that either path to axis2 lib is incorrect or not set. In the vc project 
check whether you have set the library path to $AXIS2C_FOLDER/lib. 

Nabeel.

PS. I am using VC 2005 Express edition, which is available free of charge.


thank you.
   
  Urvashi

 
  
Nabeel Yoosuf < [EMAIL PROTECTED]> wrote:
  Hi,

If you are using the 0.96 binary distribution, for the time being you can 
compile in Linux/Windows with the following steps. (Windows bin release does 
not provide assistance on building samples yet, I'll file a JIRA for you.) 

In Windows [vc project]
==
download and extract mathvc.zip from [1] to $AXIS2C_FOLDER/samples/client
you'll need to set include path to $AXIS2C_FOLDER/include and set path to other 
required libraries listed in the installation guide 

This will place the math.exe file inside Debug folder

In Windows [with nmake]
===
download and extract build.zip from [1] to $AXIS2C_FOLDER
you'll need to update $AXIS2C_FOLDER/build/win32/configure.in 

vcvars32.bat
nmake axis2_client_math

This will place math.exe in $AXIS2C_FOLDER/bin/samples

In Linux
==
cd $AXIS2C_FOLDER/samples
./configure

This will create the Makefile for each sample. 

cd client/math
make

If you are using Windows src distribution, there are VC projects under ide 
section.

HTH,
Nabeel.
[1] http://people.apache.org/~nabeel/axis2c/tmp/ 

  On 1/15/07, ritu gaud <[EMAIL PROTECTED] > wrote:   hello,
  can plz anyone guide me, how the 
   
  axis2_math_stub.c , 
  math_client.c , 
  math_skeleton.c and
  math.c  
   
  files are used to generate the final exe i.e math.exe ?
   
  thank you. 
   
  Urvashi 
-
  Here's a new way to find what you're looking for - Yahoo! Answers   




  
  
-
  Here's a new way to find what you're looking for - Yahoo! Answers   






-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: hello

2007-01-16 Thread Nabeel Yoosuf

On 1/16/07, ritu gaud <[EMAIL PROTECTED]> wrote:


hello,
 thank u very much for ur such useful help, bt i got stucked again,
i am trying to run math.c (math_skeleton.c, math.h) to generate math.exe,
bt this project get compiled successfully, bt while linking gvs me errors
like

math.obj : error LNK2001: unresolved external symbol
[EMAIL PROTECTED]
math.obj : error LNK2001: unresolved external symbol
[EMAIL PROTECTED]
math.obj : error LNK2001: unresolved external symbol
[EMAIL PROTECTED]
math_skeleton.obj : error LNK2001: unresolved external symbol
[EMAIL PROTECTED]
math_skeleton.obj : error LNK2001: unresolved external symbol
[EMAIL PROTECTED]
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/math.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
math.exe - 7 error(s), 0 warning(s)

hv u tried to generate exe? which file shud i include in vc++ project, to
remove above linking errors?



According to the errors, vc++ cannot find the axiom and util libraries. It
seems that either path to axis2 lib is incorrect or not set. In the vc
project check whether you have set the library path to $AXIS2C_FOLDER/lib.

Nabeel.

PS. I am using VC 2005 Express edition, which is available free of charge.

thank you.


Urvashi



*Nabeel Yoosuf <[EMAIL PROTECTED]>* wrote:

Hi,

If you are using the 0.96 binary distribution, for the time being you can
compile in Linux/Windows with the following steps. (Windows bin release does
not provide assistance on building samples yet, I'll file a JIRA for you.)

In Windows [vc project]
==
download and extract mathvc.zip from [1] to $AXIS2C_FOLDER/samples/client
you'll need to set include path to $AXIS2C_FOLDER/include and set path to
other required libraries listed in the installation guide

This will place the math.exe file inside Debug folder

In Windows [with nmake]
===
download and extract build.zip from [1] to $AXIS2C_FOLDER
you'll need to update $AXIS2C_FOLDER/build/win32/configure.in

vcvars32.bat
nmake axis2_client_math

This will place math.exe in $AXIS2C_FOLDER/bin/samples

In Linux
==
cd $AXIS2C_FOLDER/samples
./configure

This will create the Makefile for each sample.

cd client/math
make

If you are using Windows src distribution, there are VC projects under ide
section.

HTH,
Nabeel.
[1] http://people.apache.org/~nabeel/axis2c/tmp/


On 1/15/07, ritu gaud <[EMAIL PROTECTED]> wrote:
>
> hello,
>   can plz anyone guide me, how the
>
>   axis2_math_stub.c ,
>   math_client.c ,
>   math_skeleton.c and
>   math.c
>
>   files are used to generate the final exe i.e math.exe ?
>
>   thank you.
>
>   Urvashi
> --
> Here's a new way to find what you're looking for - Yahoo! Answers
> 
>


--
Here's a new way to find what you're looking for - Yahoo! 
Answers




Re: hello

2007-01-15 Thread ritu gaud
hello,
   thank u very much for ur such useful help, bt i got stucked again,
  i am trying to run math.c (math_skeleton.c, math.h) to generate math.exe, bt 
this project get compiled successfully, bt while linking gvs me errors like 
   
  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED]

  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED]

  math.obj : error LNK2001: unresolved external symbol [EMAIL PROTECTED]

  math_skeleton.obj : error LNK2001: unresolved external symbol [EMAIL 
PROTECTED]

  math_skeleton.obj : error LNK2001: unresolved external symbol [EMAIL 
PROTECTED]

  LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/math.exe : fatal error LNK1120: 6 unresolved externals
Error executing link.exe.
  math.exe - 7 error(s), 0 warning(s)
   
  hv u tried to generate exe? which file shud i include in vc++ project, to 
remove above linking errors?
   
  thank you.
   
  Urvashi
  
 
  
Nabeel Yoosuf <[EMAIL PROTECTED]> wrote:
  Hi,

If you are using the 0.96 binary distribution, for the time being you can 
compile in Linux/Windows with the following steps. (Windows bin release does 
not provide assistance on building samples yet, I'll file a JIRA for you.) 

In Windows [vc project]
==
download and extract mathvc.zip from [1] to $AXIS2C_FOLDER/samples/client
you'll need to set include path to $AXIS2C_FOLDER/include and set path to other 
required libraries listed in the installation guide 

This will place the math.exe file inside Debug folder

In Windows [with nmake]
===
download and extract build.zip from [1] to $AXIS2C_FOLDER
you'll need to update $AXIS2C_FOLDER/build/win32/configure.in 

vcvars32.bat
nmake axis2_client_math

This will place math.exe in $AXIS2C_FOLDER/bin/samples

In Linux
==
cd $AXIS2C_FOLDER/samples
./configure

This will create the Makefile for each sample. 

cd client/math
make

If you are using Windows src distribution, there are VC projects under ide 
section.

HTH,
Nabeel.
[1] http://people.apache.org/~nabeel/axis2c/tmp/ 

  On 1/15/07, ritu gaud <[EMAIL PROTECTED]> wrote:  hello,
  can plz anyone guide me, how the 
   
  axis2_math_stub.c , 
  math_client.c , 
  math_skeleton.c and
  math.c  
   
  files are used to generate the final exe i.e math.exe ?
   
  thank you. 
   
  Urvashi
-
  Here's a new way to find what you're looking for - Yahoo! Answers   





-
 Here’s a new way to find what you're looking for - Yahoo! Answers 

Re: hello

2007-01-15 Thread Nabeel Yoosuf

Hi,

If you are using the 0.96 binary distribution, for the time being you can
compile in Linux/Windows with the following steps. (Windows bin release does
not provide assistance on building samples yet, I'll file a JIRA for you.)

In Windows [vc project]
==
download and extract mathvc.zip from [1] to $AXIS2C_FOLDER/samples/client
you'll need to set include path to $AXIS2C_FOLDER/include and set path to
other required libraries listed in the installation guide

This will place the math.exe file inside Debug folder

In Windows [with nmake]
===
download and extract build.zip from [1] to $AXIS2C_FOLDER
you'll need to update $AXIS2C_FOLDER/build/win32/configure.in

vcvars32.bat
nmake axis2_client_math

This will place math.exe in $AXIS2C_FOLDER/bin/samples

In Linux
==
cd $AXIS2C_FOLDER/samples
./configure

This will create the Makefile for each sample.

cd client/math
make

If you are using Windows src distribution, there are VC projects under ide
section.

HTH,
Nabeel.
[1] http://people.apache.org/~nabeel/axis2c/tmp/

On 1/15/07, ritu gaud <[EMAIL PROTECTED]> wrote:


hello,
  can plz anyone guide me, how the

  axis2_math_stub.c ,
  math_client.c ,
  math_skeleton.c and
  math.c

  files are used to generate the final exe i.e math.exe ?

  thank you.

  Urvashi

--
Here's a new way to find what you're looking for - Yahoo! 
Answers



Re: Hello Word from C++ client to Java service returns "(null)", huh??

2005-09-06 Thread Gavin M. Bell

Okay...
So After re-building everything, thinking that perhaps there were issues 
with regards to the codebase and any stray interactions, I was able to 
again run my WSDL2Ws on my wsdl and get my generated code.  My lil 
client calls a simple "hello world" echo method.


This is what I get on the command line (same as the original post)
[output from my program]
Using service at http://localhost:1596/NaracWS/services/HelloModel

Instantiating remote endpoint stub... [OK]
attempting to send the string [cpp test]
*Before remote call - Result: 
*After  remote call - Result: (null)

Notice that the result I get back is set to "(null)" somewhere!

My web service's logs say that it is behaving just fine, and responding 
correctly, corroborated by my java ws client can speak to my service 
without a problem.


I have attached the trace from the TCPMON program...
It looks as through the right XML is coming in from the service. (check 
the trace and double check me on that).


So, I am thinking the only problem would be deep in the axis code.  
However, this all seems silly.  This is a simple hello world echo 
service passing a string and getting a string.  This had to have been 
done before from a C++ client to a SERVICE



Adrian Dick wrote:


Hi,

Would it be possible to capture the SOAP request and response?   You can
use tcpmonitor, which is part of axis.jar, to do this.
Also, it would be useful if you can provide your WSDL, so we can confirm
the message is as expected, and the stubs are being correctly generated.

Adrian
___
Adrian Dick ([EMAIL PROTECTED])


"Gavin M. Bell" <[EMAIL PROTECTED]> wrote on 24/08/2005 17:17:34:

 


Hello Gentle-people,

I have been going through the exercise of getting axis-c++ to work.
I am using the axis-c-1.5.0-linux-bin distribution.  I have created a
Java 'helloworld' echo service.
A simple service, you pass it a string and it returns to you the same
string prepended with an ack string.

I used axis to build the stub and header files for my serice.  I then
run my serice the java axis service gets the string (as evidenced by
the log output) and then returns.  The client returns "(null)".

Why is that?  Why does it not return the echo string sent by the service?
I have been reading the list and have set multiRef to false in the axis
service-config.wsdd file:


 
 
 
 
 
 
  
   
  
  
   
   
  
 


I am using resin-3.0.14 as my service container...

My service side code (java) is:
...
   public java.lang.String request( java.lang.String msg ) {
   if(msg == null) msg = "";
   System.out.println("some thing: "+msg);
   return "This is the hello world! - \""+msg+"\"";
   }
...

My client side code (c++) is:
...
int
main (int argc, char *argv[])
{
 char endpoint[256];
 char original[256];
 const char *server = "localhost";
 const char *port = "1595";
 const char *inputString = "";
 const char *resultString = "";

 // Set default service URL
 sprintf (endpoint,
   


"http://localhost:1595/NaracWS/services/HelloModel";);
 


 sprintf (original, endpoint);

 try{
 if (argc < 1)
   {
 usage (argv[0], endpoint);
 return 2;
   }

 cout << endl << " Using service at " << endpoint << endl << endl;
 cout << "Instantiating remote endpoint stub... ";
 HelloModel ws(endpoint);
 cout << "[OK]" << endl;

 cout << "attempting to send the string [cpp test]" setEndpointURI("http://localhost:1595/NaracWS/services/HelloModel
 


");
}

HelloModel::~HelloModel()
{
}


/*Methods corresponding to the web service methods*/

/*
* This method wrap the service method request
*/
xsd__string HelloModel::request(xsd__string Value0)
{
  xsd__string Ret;
  memset(&Ret,0,sizeof(xsd__strin

Re: Hello Word from C++ client to Java service returns "(null)", huh??

2005-08-25 Thread Adrian Dick
Hi,

Would it be possible to capture the SOAP request and response?   You can
use tcpmonitor, which is part of axis.jar, to do this.
Also, it would be useful if you can provide your WSDL, so we can confirm
the message is as expected, and the stubs are being correctly generated.

Adrian
___
Adrian Dick ([EMAIL PROTECTED])


"Gavin M. Bell" <[EMAIL PROTECTED]> wrote on 24/08/2005 17:17:34:

> Hello Gentle-people,
>
> I have been going through the exercise of getting axis-c++ to work.
> I am using the axis-c-1.5.0-linux-bin distribution.  I have created a
> Java 'helloworld' echo service.
> A simple service, you pass it a string and it returns to you the same
> string prepended with an ack string.
>
> I used axis to build the stub and header files for my serice.  I then
> run my serice the java axis service gets the string (as evidenced by
> the log output) and then returns.  The client returns "(null)".
>
> Why is that?  Why does it not return the echo string sent by the service?
> I have been reading the list and have set multiRef to false in the axis
> service-config.wsdd file:
>
>  
>   
>value="org.apache.axis.attachments.AttachmentsImpl"/>
>   
>   
>   
>   
>
> 
>
>
> 
> 
>
>   
>  
>
> I am using resin-3.0.14 as my service container...
>
> My service side code (java) is:
> ...
> public java.lang.String request( java.lang.String msg ) {
> if(msg == null) msg = "";
> System.out.println("some thing: "+msg);
> return "This is the hello world! - \""+msg+"\"";
> }
> ...
>
> My client side code (c++) is:
> ...
> int
> main (int argc, char *argv[])
> {
>   char endpoint[256];
>   char original[256];
>   const char *server = "localhost";
>   const char *port = "1595";
>   const char *inputString = "";
>   const char *resultString = "";
>
>   // Set default service URL
>   sprintf (endpoint,
"http://localhost:1595/NaracWS/services/HelloModel";);
>   sprintf (original, endpoint);
>
>   try{
>   if (argc < 1)
> {
>   usage (argv[0], endpoint);
>   return 2;
> }
>
>   cout << endl << " Using service at " << endpoint << endl << endl;
>   cout << "Instantiating remote endpoint stub... ";
>   HelloModel ws(endpoint);
>   cout << "[OK]" << endl;
>
>   cout << "attempting to send the string [cpp test]" <   printf ("Before remote call - Result: %s\n", resultString);
>   resultString = ws.request("cpp test");
>   printf ("After  remote call - Result: %s\n", resultString);
>   }
>   catch (AxisException & e){printf ("\nException : %s\n", e.what ());}
>   catch (exception & e){printf ("\nUnknown exception has occured\n");}
>   catch (...) { printf ("\nUnknown exception has occured\n");}
>   return 0;
> }
>
> C++ client output:
>
>  Using service at http://localhost:1595/NaracWS/services/HelloModel
>
> Instantiating remote endpoint stub... Warning - The WSDDFilePath file
> (/home/obj/etc/server.wsdd) in the AXISCPP.CONF file does not exist.
> [OK]
> attempting to send the string [cpp test]
> Before remote call - Result: 
> After  remote call - Result: (null)
>
> To build it:
>  g++ *.cpp -I/home/cue/workbench/axis-c-1.5.0-linux-bin/include
> -L/home/cue/workbench/axis-c-1.5.0-linux-bin/lib/ -ldl -l axis_client
> -ohello_echo
>
> I am at my wit's end.  Please, any help would be appreciated.
> (I have attached the generated stub and header file)
>
>
> --
>
>
> --
>Gavin M. Bell
>Computer Science Research Scientist
>Computing Applications and Research Dept.
>Lawrence Livermore National Labs
>L-103
>[EMAIL PROTECTED]
> ---
>
> "I'm trying real hard to be the shepherd."
> -Samuel Jackson (Pulp Fiction)
>
> /*
>  * This file was auto-generated by the Axis C++ Web Service
> Generator (WSDL2Ws)
>  * This file contains Client Stub implementation for remote web service.
>  */
>
> #include "HelloModel.hpp"
>
> #include 
> #include 
>
> using namespace std;
>
>  HelloModel::HelloModel(const char* pchEndpointUri,
> AXIS_PROTOCOL_TYPE eProtocol)
> :Stub(pchEndpointUri, eProtocol)
> {
> }
>
> HelloModel::HelloModel()
> :Stub(" ", APTHTTP1_1)
> {
>
m_pCall->setEndpointURI("http://localhost:1595/NaracWS/services/HelloModel
> ");
> }
>
> HelloModel::~HelloModel()
> {
> }
>
>
> /*Methods corresponding to the web service methods*/
>
> /*
>  * This method wrap the service method request
>  */
> xsd__string HelloModel::request(xsd__string Value0)
> {
>xsd__string Ret;
>memset(&Ret,0,sizeof(xsd__string));
>const char* pcCmplxFaultName;
>try
>{
>   if (AXIS_SUCCESS != m_pCall->initialize(CPP_RPC_PROVIDER))
>  return Ret;
>if (NULL==m_pCall->getTransportProperty("SOAPAction",false))
>{
>   m_pCall->setTransportProperty(SOAPACTION_HEADER , "");
>}
>   m_pCall->setSOAPVersion(SOAP_VER_1_1);
>   m_pCall->setOperation("request", "http://localhost:
> 1595/NaracWS/services/HelloModel");
>   app