Re: Related to Axis2C generated client issue

2008-01-09 Thread Trasca Virgil
Hi Dimuthu,
 
  Thank you for the help. Meenwhile starting from a previous mail of you I 
started to suspect the error is in the server side and I confirmed that with 
some tests. My issue now is that I don't know how to enable logging in my Axis2 
server in order to track the problem in detail.

Thank you anyway,
Virgil

- Original Message 
From: Dimuthu Gamage [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Thursday, January 10, 2008 5:25:10 AM
Subject: Related to Axis2C generated client issue


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

It works for me when I tried it with following demo logic.

 public
burster.publicserviceinterface.GetSettingsResponse getSettings
  (

  )
{
//TODO : fill this with the necessary business logic
//throw new
java.lang.UnsupportedOperationException(Please implement  +
this.getClass().getName() + #getSettings);
burster.publicserviceinterface.GetSettingsResponse res
= new burster.publicserviceinterface.GetSettingsResponse();

burster.generated.jaxb2.xsd.BurstSettings setting =
new burster.generated.jaxb2.xsd.BurstSettings();
burster.generated.jaxb2.xsd.DefaultEmailMessage email
= new burster.generated.jaxb2.xsd.DefaultEmailMessage();
burster.generated.jaxb2.xsd.EmailServer emailServer=
new burster.generated.jaxb2.xsd.EmailServer();

email.setEmailMessage(Hi, this is a test mail);
email.setEmailSubject(Mr.TEST);

emailServer.setDebug(false);
emailServer.setEmailAddressFrom(someone here?);
emailServer.setEmailAddressFromLabel(hi all);

emailServer.setHost(localhost);
emailServer.setId(3);
emailServer.setKeyFile(key);
emailServer.setPort(50);
emailServer.setRootCertFile(when);
emailServer.setServerCertFile(this);
emailServer.setType(finish?);
emailServer.setUseSSL(true);
emailServer.setUseTLS(true);
emailServer.setUserId(3);
emailServer.setUserPassword(mypassword);
setting.setEmailServer(emailServer);
setting.setDefaultEmailMessage(email);
res.set_return(setting);

return res;
}

So no doubt this is a problem with your server logic.


PS. I tried to send this as a reply to the mail in the thread. And I
was receiving delivery failures repeatedly. Worse thing it says I m
spamming,
So here I m trying to send minimum..

Thanks
Dimuthu
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: http://firegpg.tuxfamily.org

iD8DBQFHhZALBsYqdCP8GrkRAs8IAKCKZ+C1CGV/+POK+T7HypTx6Tx3DgCeNirD
57+CKKI8mweavTrI9FHhr3g=
=HQg7
-END PGP SIGNATURE-

-
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]



Axis2C generated code Documentation

2008-01-08 Thread Trasca Virgil
Hi,

   Is there some kind of documentation/tutorial on how to use the code 
generated by wsdl2c? I am trying for couple of days to use such code without 
much luck. Axis2C samples are simple and are not with code generated by wsdl2C. 
Using such a sample I was able to call a very simple service but when I come to 
more realistic services generated with wsld2c I was not able to handle.

Thank you,
Virgil

- Original Message 
From: Trasca Virgil [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Tuesday, January 8, 2008 9:05:12 PM
Subject: Re: Axis2C generated client issue (please see atached code for details)


Hi Dimuthu,

  I tried what you said but without success. Result is NULL again.
 But I tried also something else. Please check the attached pictures.
 First picture is the list of services exposed, second is a very simple
 service which I am able to call it also from C client , and third one
 should returns some values from an XML config files but is returning NULL
 from c. Please see my atached picture.

Thank you,
Virgil



- Original Message 
From: Trasca Virgil [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Tuesday, January 8, 2008 9:20:36 AM
Subject: Re: Axis2C generated client issue (please see atached code for
 details)


Hi,

I will try that. BTW this is how I generated my c client code

target name=generate.service.c.client
 depends=generate.service.wsdl
java classname=org.apache.axis2.wsdl.WSDL2C fork=true
arg value=-uri/
arg
 file=${resources.dir}/wsdl/BursterPublic.wsdl/
arg value=-d/
arg value=adb/
arg value=-u/
arg value=-o/
arg value=${src.generated.dir}/axis2/c/
classpath refid=axis2.classpath/ 
/java

/target

Thank you,
Virgil

- Original Message 
From: Dimuthu Gamage [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Tuesday, January 8, 2008 8:45:46 AM
Subject: Re: Axis2C generated client issue (please see atached code for
 details)


Actually Payload can be null, in a case of an empty request (If the
WSDL says your request message is empty). There have been places where
users meet simmilar situations[1]. There the user could solved his
problem using the changed endpoint. That should be the solution for
this case as well.


[1]


 
http://www.nabble.com/codegeneration-and-service-with-no-parameters-td14338901.html#a14374273

Thanks
Dimuthu

On Jan 8, 2008 11:57 AM, Trasca Virgil [EMAIL PROTECTED] wrote:
 Hi,

Thank you for helping.
I attached also the wsdl file. Regarding compiling you can
 easily remove 1 wxWidgets stuff and it will compile. What I observed
 debugging and is strange is that generated line code

 ret_node =  axis2_svc_client_send_receive_with_op_qname(
  svc_client, env, op_qname, payload);

 comes to execute with payload = NULL and I think this is incorrect.
 But this is generated code so because of that I don't know what to do.

 I am calling my webservice which is up from Settings.cpp.

 Thank you,
 Virgil


 - Original Message 
 From: Dimuthu Gamage [EMAIL PROTECTED]
 To: Apache AXIS C User List axis-c-user@ws.apache.org
 Sent: Tuesday, January 8, 2008 3:52:40 AM
 Subject: Re: Axis2C generated client issue (please see atached code
 for details)


 On Jan 8, 2008 7:18 AM, Dimuthu Gamage [EMAIL PROTECTED] wrote:
  Yea, It s better we have the WSDL file to figure out what has
  happened.  I cant compile the code since I dont have installed
  wxWidget. :(
 
  I assume this is a problem of dispatching the request with empty
  body.
  ( I noticed that your soap action is not the way Axis2 expected to
  dispatch).
 
 
  So can you try out setting the endpoint uri to.
 
 
 http://your_actual_endpoint/axis2/services/BursterPublic/getStting;

 Correction: this should be
 http://your_actual_endpoint/axis2/services/BursterPublic/getSetting;
  (notice the end it is the operation name)
 
 
  Thanks
  Dimuthu
 
 
 
  On Jan 8, 2008 4:01 AM, Mark Nüßler [EMAIL PROTECTED]
  wrote:
   Hello Trasca,
  
   [sry last mail i said Virgil not Trasca]
  
   can you please send the wsdl-file and the command
   you use to generate you code ?
  
   i think you have to you tcpmon, otherwise
   you wouldn't see what was transmitted - if
   something was really transmitted.
  
   mfg derMark
  
  
   Trasca Virgil schrieb:
  
Hi,
   
I am a newbie to Axis2C client and I have an issue. My
 server
  is Axis2 Java 1.3 and is up with a service getSettings() which is
  correct (I am 100% about that).
   
The client is C and is generated with wsdl2c codegent. The
 issue
  is than when I call getSettings from C I got NULL all the time even
 is
  the service is working.
I tried to use tcpmon but with not success.
   
in Settings.cpp
I have

Re: Axis2C generated client issue (please see atached code for details)

2008-01-07 Thread Trasca Virgil
Hi,

   Thank you for helping.
   I attached also the wsdl file. Regarding compiling you can easily remove 
1 wxWidgets stuff and it will compile. What I observed debugging and is strange 
is that generated line code

ret_node =  axis2_svc_client_send_receive_with_op_qname(
 svc_client, env, op_qname, payload);

comes to execute with payload = NULL and I think this is incorrect. But this is 
generated code so because of that I don't know what to do.

I am calling my webservice which is up from Settings.cpp.

Thank you,
Virgil

- Original Message 
From: Dimuthu Gamage [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Tuesday, January 8, 2008 3:52:40 AM
Subject: Re: Axis2C generated client issue (please see atached code for details)


On Jan 8, 2008 7:18 AM, Dimuthu Gamage [EMAIL PROTECTED] wrote:
 Yea, It s better we have the WSDL file to figure out what has
 happened.  I cant compile the code since I dont have installed
 wxWidget. :(

 I assume this is a problem of dispatching the request with empty
 body.
 ( I noticed that your soap action is not the way Axis2 expected to
 dispatch).


 So can you try out setting the endpoint uri to.

 http://your_actual_endpoint/axis2/services/BursterPublic/getStting;

Correction: this should be
http://your_actual_endpoint/axis2/services/BursterPublic/getSetting;
 (notice the end it is the operation name)


 Thanks
 Dimuthu



 On Jan 8, 2008 4:01 AM, Mark Nüßler [EMAIL PROTECTED]
 wrote:
  Hello Trasca,
 
  [sry last mail i said Virgil not Trasca]
 
  can you please send the wsdl-file and the command
  you use to generate you code ?
 
  i think you have to you tcpmon, otherwise
  you wouldn't see what was transmitted - if
  something was really transmitted.
 
  mfg derMark
 
 
  Trasca Virgil schrieb:
 
   Hi,
  
   I am a newbie to Axis2C client and I have an issue. My server
 is Axis2 Java 1.3 and is up with a service getSettings() which is
 correct (I am 100% about that).
  
   The client is C and is generated with wsdl2c codegent. The issue
 is than when I call getSettings from C I got NULL all the time even is
 the service is working.
   I tried to use tcpmon but with not success.
  
   in Settings.cpp
   I have function getSettings() which is returning all the time
 NULL even if I consider that I did all the pre-requites correctly. This
 function should not return NULL but a corect value.
  
  
   adb_getSettingsResponse_t* Settings::getSettings()
   {
  return axis2_stub_BursterPublic_getSettings(stub,env);
   }
  
  
   What I observed by debugging and is strange is that in generated
 code
  
   axis2_stub_BursterPublic_getSettings
  
   there is a call to
  
   ret_node =  axis2_svc_client_send_receive_with_op_qname(
 svc_client, env, op_qname, payload); and here payload comes all the time NULL
 as it is initialized
  
   earlier in the function with NULL and is not changed before
 calling axis2_svc_client_send_receive_with_op_qname.
  
   I thing payload should not be null at this point . Please assist
 me.
  
   Thank you,
   Virgil.
  
  
  
  
 
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release Date:
 07.01.2008 09:14
 
 
 -
  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]





axisc_generated.rar
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Fw: Axis2C license questions

2008-01-06 Thread Trasca Virgil
Hello Dinesh,
   
  Please check my comment related with this on your blog.

Thank you,
Virgil

- Original Message 
From: Dinesh Premalal [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Sunday, January 6, 2008 3:06:39 PM
Subject: Re: Fw: Axis2C license questions


Hi Virgil,

 Please see my comments inline.

On Jan 5, 2008 3:09 PM, Trasca Virgil [EMAIL PROTECTED] wrote:



On Jan 5, 2008 2:22 AM, Trasca Virgil 
[EMAIL PROTECTED] wrote:


Hi,


I see that Axis2C has following dependencies

libxml2.dll [http://www.xmlsoft.org - download the version =

libxml2-2.6.27.win32
] (optional - required only if you are not using Guththila parser)iconv.dll [
http://www.gnu.org/software/libiconv/ - download the

version = iconv-1.9.1.win32]zlib1.dll [


http://www.gzip.org/zlib/ - download the version =

zlib-1.2.3.win32]libxslt.dll [http://www.xmlsoft.org - download the 
version = 
libxslt-1.1.24.win32

]http://ws.apache.org/axis2/c/docs/installationguide.html#win_binary

These dependencies are not comming directly with Axis2C binaries but only links 
to download are provided in the documentation.


iconv is from 
www.gnu.org.






 



So my questions is how are these dependencies licensed and how compatible is 
Apache2 license of Axis with these dependencies licenses? Why these are not 
comming bundled in Axis2C binaries and only links to download are provided?







First of all I'm not a licensing expert :), Please correct me If I'm wrong. I 
think licenses of softwares you mentioned above is not compatible with Apache 
Axis2/C licensing (Apache 
2.0), Therefore I think we could not bundled them with Axis2/C. However I think 
it is upto user to download them and use. I also having questions regarding 
licensing , I'm glad you ask this question.

thanks,

Dinesh




-- 
Dinesh Premalal
http://xydinesh.wordpress.com





Re: Issue compiling Axis2C client with VS2005/C++

2008-01-05 Thread Trasca Virgil
Hi,

I am doing C++ with VS2005 on windows.
data_source = (axiom_data_source_t
*) was only 1 issue from many. For a small wsdl I got 19 cast errors.
 
The rest were mostly about 

   current_element = (axiom_element_t *)axiom_node_get_data_element( 
current_node, env);

The cast I added it was missing.

Now is compiling fine, I am in the process of trying to use it.

Thank you,
Virgil


- Original Message 
From: Dimuthu Gamage [EMAIL PROTECTED]
To: Apache AXIS C User List axis-c-user@ws.apache.org
Sent: Saturday, January 5, 2008 4:32:23 PM
Subject: Re: Issue compiling Axis2C client with VS2005/C++


Hi Trasca,

I m mostly doing WSDL2C generated code tests only in linux and in c,
So until I can test it in windows, It would be really helpful if you
can point out the casting errors you met,

If your error come from following line,

data_source = (axiom_data_source_t
*)axiom_node_get_data_element(current_node, env);

It s already fixed in the nightly build[1].

And AFAIK there are no run-time failures reported recently due to
casting issues. So it s worth doing a try.

Thanks
Dimuthu


[1] http://people.apache.org/dist/axis2/nightly/



On Jan 5, 2008 6:59 PM, Trasca Virgil [EMAIL PROTECTED] wrote:
 Hello,

 Thank you for the help. I did not added explicit cast from 2
 reasons:

 1) I would prefer not to touch generated code. Also I was sure I was
 not the first one that I tried to use wsdl2c generated code from C++ so
 I was sure the solution is not to add explicit cast by hand.(maybe a
 compiler switch??)

 2) I read previously that somebody added explicit cast by hand and it
 was compiling well but it was failing at run-time.

 Because of that 2 reasons I preferred to wait some answers from the
 axis2c mail-list.

 But I will also try explicit cast as it is a quick way to see if it
 is working or not.

 Thank you,
 Virgil


 - Original Message 
 From: Mark Nüßler [EMAIL PROTECTED]
 To: Apache AXIS C User List axis-c-user@ws.apache.org
 Sent: Saturday, January 5, 2008 3:05:03 PM
 Subject: Re: Issue compiling Axis2C client with VS2005/C++

  Hello Virgil,

 have you tried an explicit cast ?

 have a look at :
 http://www.mail-archive.com/axis-c-user@ws.apache.org/msg02568.html

 mfg derMark


 Trasca Virgil schrieb:
  Hi,
 
I have an issue trying to compile the Axis2C client code
 generated  with wsdl2c in VS2005  C++ environment. I know that Axis2C code is
  only C but I need to compile it in an C++ environment.
 
  When I try to compile as C++ in Visual Studioa 2005 I get following
  error messages:
 
   error C2440: '=' : cannot convert from 'void *' to
  'axiom_data_source_t *'
 
  There is an option in VS2005 if the program should be compiled as
 C++  or as C and if I change to C this error disapears but I need to
  compile as C++ as my project will be C++.
 
  How can I compile axis2c client code as C++ in Visual Studio?
 
  Thank you,
  Virgil
 
 
 
 
 
 -
  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]





 -
 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]





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