Re: string return param from service

2007-09-11 Thread Dr. Florian Steinborn


Should we fix the code to make a deep copy inside _set_retun  
function in generated code? I feel that we should. Thoughts please...


Sounds like we should...

Flori

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



Re: [AXIS2C] - problem in coding special signs in server answer

2007-08-17 Thread Dr. Florian Steinborn

The problem still persists :-)
I wanted to open a Jira but I did not know which topic to place it under.

Regards,
Flori

On Thu, 09 Aug 2007 12:04:22 +0200, Dr. Florian Steinborn  
[EMAIL PROTECTED] wrote:



Hi friends,

I am sorry but we hit another error.

When the server generates a webservice answer that contains special  
signs like  this character is not converted to amp; as expected.
Just imagine a company's name like Tools  Co. - it would be  
transferred to the client exactly like this, as you can see in the  
tcpmon snippet:


ns1:mndnameAK  Co KG/ns1:mndname

The parser on the client side fails as it interpretes  as starter of  
a something; construct and does not expect the   as next char after  
.



The WS requests from the client to the server are formatted correctly ,

ns1:param1amp;amp;amp;/ns1:param1

Thanks for listening and greetings,

Flori

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




--
--

F. Steinborn
[EMAIL PROTECTED]

Dr. Brunthaler Industrielle Informationstechnik GmbH
Motzstr. 5, D-10777 Berlin
Fon: +49.30.215081-0, Fax: +49.30.215081-88
http://www.brunthaler.de

Geschäftsführer: Prof. Dr.-Ing. Stefan Brunthaler
Sitz der Gesellschaft: Berlin
Handelsregister: HRB 27 337 Amtsgericht Charlottenburg
--
Wir sind Mitglied des inilog Netzwerks - www.inilog.de

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



Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-08-14 Thread Dr. Florian Steinborn

Hi Samisa,

thanks for the light you shed. Could you please drop some lines explaining  
how to build a working binary copy from the Axis2 sources? I know it may  
be off-topic here but we want to be able to apply changes and test them  
(just to make suggestions here). The readme-file in the source  
distribution just says


One can use maven 2.x to create the Standard Binary Distribution from  
this, by typing mvn clean install. 


But when I do it maven is working quite a long time (seems to download all  
of the sources again), finally breaks with an error and has not created  
anything (so it seems). Whats wrong?


One of the errors is:


Tests run: 358, Failures: 75, Errors: 74, Skipped: 0

[INFO]  


[ERROR] BUILD FAILURE
[INFO]  


[INFO] There are test failures.
[INFO]  


[INFO] For more information, run Maven with the -e switch
[INFO]  


[INFO] Total time: 27 minutes 49 seconds
[INFO] Finished at: Mon Aug 13 19:16:35 CEST 2007
[INFO] Final Memory: 29M/63M
[INFO]  
-


Maybe a hint?

Thanks again,

Flori

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



Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-08-13 Thread Dr. Florian Steinborn
On Wed, 08 Aug 2007 11:30:23 +0200, Samisa Abeysinghe [EMAIL PROTECTED]  
wrote:


Fixed in  
modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl


Samisa...



Great thing! I can see it in the SVN but when I download the

axis2-1.3-SNAPSHOT-src.zip  13-Aug-2007 03:40

the CADBBeanTemplateSource.xsl source dates July 25th. Why? Shouldn't it  
include your change?


Thanks,
Flori

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



Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-09 Thread Dr. Florian Steinborn

Hi,

just to let you know what we did to temporarily bypass the problem:

We added just one exclamation mark and it works:

[...]


if(has_parent)
   axutil_stream_write(stream, env, start_input_str,  
   start_input_str_len);


changed to

if(!has_parent)
   axutil_stream_write(stream, env, start_input_str,
   start_input_str_len);

[...]

Needless to say this is editing the generated source - the way we did not  
want to go.


Thanks and greetings from Berlin,

Flori

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



Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement

2007-08-09 Thread Dr. Florian Steinborn

Hi Samisa

Looks like a logic error in the generated code. I could change the style  
sheet logic to include this.

However, I would like to have a test case to ensure the change works.



attached you find a WSDL and the generated C code with the error. This  
could make it easier to see your change works.


Thanks,
Flori

adb_getSysinfoResponse.c
Description: Binary data


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

Re: Service compilation problem

2007-08-03 Thread Dr. Florian Steinborn

Hi,


I see a libmath.so file being generated. But my service doesn't work. I


what does it mean, doesn't work? Does not work at all, you cannot see an  
invocation, the service crashes? What about logging?


Greeting,
Flori

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



Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-06-25 Thread Dr. Florian Steinborn

Hi,

I checked out the source and looked into it and think the problem could be  
solved by feeding the source


modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceSkeleton.xsl

with the desired line. Unfortunately I do not understand the make  
hierarchy of Axis2 - not yet :-) Therefore I could not test my suggestion.


Greetings,
Flori

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



Re: [AXIS2C] throwing an exception from the server to the Java-client

2007-06-25 Thread Dr. Florian Steinborn

Hello experts,

unfortunately Marc replied to my mail with a different contect (at least  
my mailer shows that) - people could tend to thinking my subject is  
answered. Just wanted to say, that it is not. Still do not know how to  
generate the fault from inside the server stubs...


Thanks,
Flori

On Sat, 23 Jun 2007 01:00:12 +0200, Dr. Florian Steinborn [EMAIL PROTECTED]  
wrote:



Hi folks,

someone has a code piece that shows how to generate an exception in the  
AXIS2C server?


I can see that code was generated , the files are named  
axis2_functionFault.[ch.] but I don't know how to use the functions in  
the modules from inside axis2_svc_skel_service_invoke() function,  
where the operation is called that has to issue the exception...


Thanks,
Flori

-
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: [AXIS2C] throwing an exception from the server to the Java-client

2007-06-25 Thread Dr. Florian Steinborn

Hi Mark,

no problem at all.

Attached you find a Fehler.java, that I used to generate the  
Fehler.wsdl that is attached as well. When you generate c-server stubs  
you will find the axis2_raiseErrorFault.[ch] files. In my understanding  
the error should be raised in axis2_skel_Fehler_raiseError() function -  
that is the place where the business logic registers the error and wants  
to raise it. This function usually returns an int (as it is defined),  
but how has it have to look like, when we do not return the int but the  
fault? The return type of the function is axis2_raiseErrorResponse_t* -  
sure, you can return a NULL, but what about the raiseErrorFault?


Thanks for your patience,
Flori


Fehler.java
Description: Binary data


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

Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-06-22 Thread Dr. Florian Steinborn
On Fri, 22 Jun 2007 04:10:52 +0200, Samisa Abeysinghe [EMAIL PROTECTED]  
wrote:



Dr. Florian Steinborn wrote:
For more safety it would be desirable if the generation would add the  
memset() call.



+1 for calling memset(). Please raise a Jira on this.


Hi Samisa,

could you give me a hint how to raise a Jira? Just write to developer list  
with [jira] in subject?
Another question is: I am writing a small documentation about things I  
figured out and that could be useful for people who have first contact  
with Axis2/C. I would like to contribute it - whom could I give it that  
he/she makes it part of the Axis2/C documentation? The Get involved link  
on the Axis2/C homepage is a dead link...


Thanks again for advice,


Flori

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



Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-06-22 Thread Dr. Florian Steinborn

Meanwhile I found the way to Jira...

Thanks,
Flori

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



Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-06-22 Thread Dr. Florian Steinborn

Hi Samisa,

On Fri, 22 Jun 2007 04:10:52 +0200, Samisa Abeysinghe [EMAIL PROTECTED]  
wrote:



Dr. Florian Steinborn wrote:
For more safety it would be desirable if the generation would add the  
memset() call.

+1 for calling memset(). Please raise a Jira on this.


raised for Axis2/codegen...


To figure out the exact problem, I would like to codegen and see. Would  
it be possible to send the WSDL file you are using? (if it is OK to make  
it public only)


Of course it is ok. The wsdl is attached.

Flori


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

[AXIS2C] throwing an exception from the server to the Java-client

2007-06-22 Thread Dr. Florian Steinborn

Hi folks,

someone has a code piece that shows how to generate an exception in the  
AXIS2C server?


I can see that code was generated , the files are named  
axis2_functionFault.[ch.] but I don't know how to use the functions in  
the modules from inside axis2_svc_skel_service_invoke() function, where  
the operation is called that has to issue the exception...


Thanks,
Flori

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



|AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing

2007-06-21 Thread Dr. Florian Steinborn

Hi group,

I guess I found a problem in generated sources. I try to get in touch with  
Axis and play around with all the things... I have a service that returns  
an array of structures that contain all possible datatypes - also float  
and double.


I used this class for generating the wsdl:


public class Dat{
public long l;
public shorts;
public int  i;
public String   str;
public floatfl;
public double   dl;
}

The generated wsdl shows

xs:element name=Dat type=ns:Dat /
xs:complexType name=Dat
xs:sequence
xs:element name=dl type=xs:double /
xs:element name=fl type=xs:float /
xs:element name=i type=xs:int /
xs:element name=str nillable=true type=xs:string /
xs:element name=l type=xs:long /
xs:element name=s type=xs:short /
/xs:sequence
/xs:complexType

When you generate C-Server stubs the constructor function
shows:

AXIS2_EXTERN axis2_Dat_t* AXIS2_CALL
axis2_Dat_create(
const axutil_env_t *env )
{
axis2_Dat_t *Dat = NULL;

AXIS2_ENV_CHECK(env, NULL);

Dat = (axis2_Dat_t *) AXIS2_MALLOC(env-
allocator, sizeof(axis2_Dat_t));

/*  missing
 * memset( Dat, 0, sizeof(axis2_Dat_t));
 * *
 */

if(NULL == Dat)
{
AXIS2_ERROR_SET(env-error, AXIS2_ERROR_NO_MEMORY, AXIS2_FAILURE);
return NULL;
}
return Dat;
}

For more safety it would be desirable if the generation would add the  
memset() call. I did not initialize every field of the structure before  
returning it and the service crashed (with the server), when it tried to  
return the values. In that the generated function axis2_Date_serialize()  
is called. This function has a problem, as it tries to print (with  
sprintf()) all the numeric members of the Dat-struct into 64-bytes memory  
blocks. Printing a double with sprintf() this way into a 64-byte array  
will most likely crash, especially with uninitialized memory, as the  
resulting string will be longer than 64 bytes.


Unfortunately the user cannot call the memset himself after calling the  
constructor as the real length of the type is hidden in the module. I  
myself now know that I have to call the setter method for each member of a  
new struct.


Thanks,
Flori.

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



[AXIS2C] |AXIS2] codegen Problem

2007-06-20 Thread Dr. Florian Steinborn

Hello group,

I stumbled on a problem of the code generation machine in AXIS2/Java.

A Java function

public float  getFloat( float f)
{
   return f;
}

is generated to a wsdl


xs:element name=getFloat
xs:complexType
xs:sequence
xs:element name=param0 nillable=true type=xs:float /
/xs:sequence
/xs:complexType
/xs:element
xs:element name=getFloatResponse
xs:complexType
xs:sequence
xs:element name=return nillable=true type=xs:float /
/xs:sequence
/xs:complexType
/xs:element

When you try to define a function that does the same but takes no parameter

public float  getFloatWithNothing( )
{
float i = 0;
return i;
}

you get the generation

xs:element name=getFloatWithNothingResponse
xs:complexType
xs:sequence
xs:element name=return nillable=true type=xs:float /
/xs:sequence
/xs:complexType
/xs:element

but the generation of something like getFloatWithNothing is missing.

Is that normal?

Curiously enough, the generation of the server side stub generates a  
services.xml, that contains the operation


operation name=getFloatWithNothing/
operation name=getFloat/
/service

but the generated server stubs in C only contain an operation definition  
for getFloat in

axis2_getFloat.[ch] and
axis2_getFloatResponse.[ch]

For getFloatWithNothing I only find
axis2_getFloatWithNothingResponse.[ch]

The Java Client stubs are generated ok, but I get a generation for the  
calling of an operation that is not implemented on the server side... Is  
this a problem of the generator or did I call something wrong?


I used the
Apache Axis2 SNAPSHOT build (May 16 2007)
for generation.

Thanks for advice,

Flori

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



Re: [AXIS2C] memory management

2007-06-19 Thread Dr. Florian Steinborn

Thanks for the answers - unfortunately it raises more questions...

1. deep copy - should this mean to really copy something (by allocating  
new memory) and not just let a pointer to point to a certain piece of  
memory?


2. The function axis2_getStringResponse_set_return() is generated. The  
generated function can be seen here.


/**
  * setter for return
*/
axis2_status_t AXIS2_CALL
axis2_getStringResponse_set_return(
   axis2_getStringResponse_t* getStringResponse,
   const axutil_env_t *env,
   axis2_char_t*  param_return)
{

  AXIS2_ENV_CHECK(env, AXIS2_FAILURE);
  if(!getStringResponse)
  {
  return AXIS2_FAILURE;
  }
  getStringResponse- attrib_return = param_return;
  return AXIS2_SUCCESS;
}

The assignment of param_return does not look like a deep copy, right? As  
far as I understood, the only files that have to be touched after  
generation are the axis2_skel_SERVICE.c files for the business logic...


3. Do I understand correctly, nobody else frees the memory if not the user  
does it? Cannot imagine that - all the generated services would be giantic  
memory holes...



4. Does someone have a reference implementation of a deep copy to look  
at?


Thanks,
Flori


On Tue, 19 Jun 2007 07:51:31 +0200, Samisa Abeysinghe [EMAIL PROTECTED]  
wrote:



Shailesh Srivastava wrote:

Once the response string is formed, you need to free the local memory
allocated to retVal.

If axis2_getStringResponse_set_return method does a deep copy you can  
free retVal. This should ideally be freed by  
axis2_getStringResponse_free method, that is to be called by user.


Samisa...


[...]

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



[AXIS2C] session management

2007-06-19 Thread Dr. Florian Steinborn

Hi folks,

are there attempts to implement a session management in the AXIS2C (simple  
server)? We would be willing to implement something like this and wanted  
to know if there is a basis (also in the libraries...)


Thanks,
Flori

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



Re: [AXIS2C] memory management

2007-06-19 Thread Dr. Florian Steinborn

Hi Samisa,




3. Do I understand correctly, nobody else frees the memory if not the  
user does it? Cannot imagine that - all the generated services would be  
giantic memory holes...
The model is that the user got to free it. The notion of user got to  
free it makes sense, as the user has control over the lifetime of the  
struct instance.


I think we had a misunderstanding. Of course the user has to free the  
memory that he allocates.
I had a deeper look into the generated free-functions and see that the  
axis2_skel_servicename_getString method is called in the invoke part  
and the memory is freed by the automatic call of  axis2_getString_free().  
If there is additional memory allocated by the user he has to free it  
himself.

I see.
Thanks,

Flori


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



[AXIS2C] memory management

2007-06-18 Thread Dr. Florian Steinborn

Hi friends,

just a simple question...
When you define a webservice that has an operation that returns a string,  
you probably will get a generated function similiar to this:


/* starts here */

axis2_getStringResponse_t*
axis2_skel_servicename_getString ( const axutil_env_t *env  ,
axis2_getString_t* getString )
{
axis2_getStringResponse_t*  getStringRes = NULL;
axis2_char_t*   retVal = NULL ;

retVal = (axis2_char_t*) malloc( sizeof(char) * 20);
strncpy( retVal, NONSENS, 20);



getStringRes = axis2_getStringResponse_create( env);
axis2_getStringResponse_set_return( getStringRes, env, retVal) ;

return getStringRes;

}

/* ends here */

The big question is: who cares for the memory allocated in retVal ? Do I  
have to free it or is it freed automatically by the Axis2 machine after  
serializing the answer? A small string may not be interesting but when you  
have to fill structs or arrays of structs... ?


Thanks,

Flori

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



Re: Segmentation fault when calling webservice

2007-06-15 Thread Dr. Florian Steinborn

Hi there,
just a hint...

Yesterday I again hit the error that the server crashes with a segfault.  
But it was my problem: I misspelled the getter-function inside the lib of  
my webservice. As it is dynamically linked the linker will not recognize  
the problem during makeing. The next one to notice is the server at run  
time. It cannot resolve the function against any lib and crashes. It could  
be interesting to see if the server could learn to be tolerant like just  
stating cannot execute service.
The next time when my server crashes first I will run nm against my  
service-library and look for undefined symbols.


Greetings from Berlin,
Flori

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



Re: [AXIS2C][WSDL2C] close to despair

2007-06-14 Thread Dr. Florian Steinborn

Hi Milinda,

now I tried the way you suggested and things work fine until now. I spent  
a long time yesterday to install Axis2c on a 64bit version of a Suse SLES  
9.0 (don't ask me why but I have to compile and link it in 32bit mode and  
it was not to be done without editing makefiles and so on...).


Until now when I linked I used these params:

gcc -m32 -shared -olibName.so -I$AXIS2C_HOME/include/axis2-1.1  
-L$AXIS2C_HOME/lib -laxis2 *.o


Now this fails, because there is not libaxis2 in my AXIS2C_HOME/lib, but  
only


[EMAIL PROTECTED] 127: ls *axis2*
 256 libaxis2_axiom.a   128 libaxis2_http_sender.a
   4 libaxis2_axiom.la*   4 libaxis2_http_sender.la*
   0 libaxis2_axiom.so@   0 libaxis2_http_sender.so@
   0 libaxis2_axiom.so.0@ 0 libaxis2_http_sender.so.0@
 204 libaxis2_axiom.so.0.1.0*   128 libaxis2_http_sender.so.0.1.0*
1041 libaxis2_engine.a   40 libaxis2_libxml2.a
   4 libaxis2_engine.la*  4 libaxis2_libxml2.la*
   0 libaxis2_engine.so@  0 libaxis2_libxml2.so@
   0 libaxis2_engine.so.0@0 libaxis2_libxml2.so.0@
 813 libaxis2_engine.so.0.1.0*   48 libaxis2_libxml2.so.0.1.0*
 168 libaxis2_http_common.a  24 libaxis2_minizip.a
   4 libaxis2_http_common.la* 4 libaxis2_minizip.la*
   0 libaxis2_http_common.so@ 0 libaxis2_minizip.so@
   0 libaxis2_http_common.so.0@   0 libaxis2_minizip.so.0@
 152 libaxis2_http_common.so.0.1.0*  28 libaxis2_minizip.so.0.1.0*
  24 libaxis2_http_receiver.a40 libaxis2_parser.a
   4 libaxis2_http_receiver.la*   4 libaxis2_parser.la*
   0 libaxis2_http_receiver.so@   0 libaxis2_parser.so@
   0 libaxis2_http_receiver.so.0@ 0 libaxis2_parser.so.0@
  28 libaxis2_http_receiver.so.0.1.0*48 libaxis2_parser.so.0.1.0*


When I call it without -laxis2 it works fine.

Should we simply leave it out?

Thanks for your patience. Once I understood the things needed I promise I  
would like to contribute documentation to the project.


Flori

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



Re: [AXIS2C][WSDL2C] close to despair

2007-06-14 Thread Dr. Florian Steinborn





When I call it without -laxis2 it works fine.

Should we simply leave it out?


It works. Finally I got the Calculator-server running and can use the  
service from the generated Java-client. Thanks a lot!


Flori


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



Re: [AXIS2C][WSDL2C] close to despair

2007-06-12 Thread Dr. Florian Steinborn

Hi Samisa,



I never had problems in compiling the Axis2c sources. But when I check  
out the latest svn I have to run the autoconf.sh because there is no  
configure-script.
I have uploaded a nightly build today at :  
http://people.apache.org/dist/axis2/nightly/c/


With this, you will be able to run ./configure

Please try that.



thanks for the quick reply. Unfortunately there was no change - the same  
error happens again



Flori





When I run the configure script afterwards it fails with

+Error start +

checking for LIBXML2... configure: error: The pkg-config script could  
not be found or is too old.  Make sure it

is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.

Alternatively you may set the LIBXML2_CFLAGS and LIBXML2_LIBS  
environment variables

to avoid the need to call pkg-config.  See the pkg-config man page for
more details.
configure: error: /bin/sh './configure' failed for axiom

+Error end +

It was no error with the other releases. The installed version of  
libxml2 is 2.6.20 and the system is a Suse Linux 10.0.


Thanks,
Flori

-
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: [AXIS2C][WSDL2C] close to despair

2007-06-12 Thread Dr. Florian Steinborn

Hi Samisa,



thanks for the quick reply. Unfortunately there was no change - the  
same error happens again

What is your 'pkg-config --version'?
Also did you try setting the LIBXML2_CFLAGS and LIBXML2_LIBS environment
variables?


I can check this out this evening at my home machine. I was just wondering  
why the error suddenly arises - there was no problem with the ordinary  
Axis2C 1.0 download so I thought something changed in the generator  
sources...


When you tell me how the LIBXML2_CFLAGS and the LIBXML2_LIBS vars have to  
look like I can test that way as well...


Thanks,
Flori

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



Re: Problems while compiling using axis2c

2007-06-12 Thread Dr. Florian Steinborn

Hi Sampath,

you googled, you found the questions, but not the answers?
If you look into the archive of the axis-c-user list you will find my  
question with the subject types axutil_env_t vs. axis2_env_t


The answer is: download the latest nightly build of Axis2. The generation  
should then be using the new type names.


Concering the linker I do not know - maybe the linker errors could be  
informative.


Regards,
Flori

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



Re: [AXIS2C][WSDL2C] close to despair

2007-06-10 Thread Dr. Florian Steinborn

Dear Milinda, dear group,

I am very astonished that there was only one answer. Should this say to me  
that I am the only one who wants to organize the workflow to get  
webservices with Axis2c by:

1. define an interface in Java
2. generate the WSDL
3. generate the server stubs and adding all the logic needed
4. generate the client stubs for Java and add everything needed to use the  
servide


If someone else would go this way (that I thought would be the best one)  
shouldn't the other ones see the same problems that I encounterd?

And nobody can give me a complete example?

I really would like to learn how you start and proceed when you want/have  
to create webservices from scratch.


Meanwhile I will follow your advice and look into the databinding  
directory of AXIS2C 0.96.


Thank you all, thank you Milinda.
Greetings from Berlin

Flori


On Fri, 08 Jun 2007 04:35:40 +0200, Milinda Pathirage  
[EMAIL PROTECTED] wrote:



Hi,

Sorry about not updating the code generation samples inside
AXIS2C_HOME/samples/codegen/databinding directory. The sample
implementations in this directory are out of date because we remove  
macros

and do some changes to  naming conventions. I will change those samples
ASAP.
If you want to try WSDL2C with data binding follow the guide lines in
README.txt inside databinding directory.
These samples only provide implementations of business logic. You have to
copy other files which are generated using WSDL2C and compile them.
I'll post a more detail  guideline ASAP.

Thanks ,
Milinda

On 6/8/07, Dr. Florian Steinborn [EMAIL PROTECTED] wrote:


Dear group,

I am looking for one complete example of a web service for AXIS2C that  
was

completely created by one single WSDL file using the generator utilities
from AXIS2-Java. But I cannot find one. Can someone provide me one?

I would like to show you what I did (the webservice is just to return a
string)...

I used this interface to generate the wsdl-file I want to use...

//interface
public interface Hello {
 public String sayHello();
}

I compiled it with javac.
The resulting class file should be usable to generate the wsdl.
I used this (no special parameters):

java2wsdl Hello.class

I was lucky to find a Hello.wsdl afterwards.

This one I ran against WSDL2C to generate the server stubs.

java -classpath ${WSCP} org.apache.axis2.wsdl.WSDL2C -uri Hello.wsdl -ss
-sd -d adb

Everythings works fine until here. I understood I have to implement the
business logic in axis2_skel_Hello.c.
But looking at

axis2_sayHelloResponse_t* axis2_skel_Hello_sayHello (const axutil_env_t
{
/* TODO fill this with the necessary business logic */
return NULL;
}

I find it extremely difficult to compare this generated source with the
hand written sources in the samples directory. I am not sure which
functions I have to call and which not. I probably have to issue a call
for
axis2_sayHelloResponse_create()
to get the chance to send back my string, but once I did that: how do I
copy my string to the return variable? Somewhere I found the use of
AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ()
but HELL I cannot find the definition of this function (first I thought  
it

was a macro but I could find a macro defintion either)... Where is this
definition? How can I know that this function is useful to return a  
string

- how does it look like when I have to return a long?
Once I am sure the service is well defined and running I would like to
create the Java-client stubs from the same Hello.wsdl to connect to  
the

service - but this is another story...

Please don't think I am too impatient - I torture myself since monday.

Thanks a lot for your help,

Flori

-
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][WSDL2C] close to despair

2007-06-07 Thread Dr. Florian Steinborn

Dear group,

I am looking for one complete example of a web service for AXIS2C that was  
completely created by one single WSDL file using the generator utilities  
from AXIS2-Java. But I cannot find one. Can someone provide me one?


I would like to show you what I did (the webservice is just to return a  
string)...


I used this interface to generate the wsdl-file I want to use...

//interface
public interface Hello {
public String sayHello();
}

I compiled it with javac.
The resulting class file should be usable to generate the wsdl.
I used this (no special parameters):

java2wsdl Hello.class

I was lucky to find a Hello.wsdl afterwards.

This one I ran against WSDL2C to generate the server stubs.

java -classpath ${WSCP} org.apache.axis2.wsdl.WSDL2C -uri Hello.wsdl -ss  
-sd -d adb


Everythings works fine until here. I understood I have to implement the  
business logic in axis2_skel_Hello.c.

But looking at

axis2_sayHelloResponse_t* axis2_skel_Hello_sayHello (const axutil_env_t
{
   /* TODO fill this with the necessary business logic */
   return NULL;
}

I find it extremely difficult to compare this generated source with the  
hand written sources in the samples directory. I am not sure which  
functions I have to call and which not. I probably have to issue a call for

axis2_sayHelloResponse_create()
to get the chance to send back my string, but once I did that: how do I  
copy my string to the return variable? Somewhere I found the use of

AXIS2_ECHOSTRUCTRESPONSE_SET_RETURN ()
but HELL I cannot find the definition of this function (first I thought it  
was a macro but I could find a macro defintion either)... Where is this  
definition? How can I know that this function is useful to return a string  
- how does it look like when I have to return a long?
Once I am sure the service is well defined and running I would like to  
create the Java-client stubs from the same Hello.wsdl to connect to the  
service - but this is another story...


Please don't think I am too impatient - I torture myself since monday.

Thanks a lot for your help,

Flori

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



[AXIS2C] [WSDL2C] types axutil_env_t vs. axis2_env_t

2007-05-07 Thread Dr. Florian Steinborn

Hi there,
when I run  the WSDL2C utility provided by Axis2/Java Version 1.2 the  
generated C-sources contain a type called axis2_env_t.
It was no problem to compile and link the generated sources with the  
include files from the AXIS2C Version 0.96.
Now I installed the new version 1.0 and found that it seems the type  
axis2_env_t is no longer used. Instead of this I found another one at  
the appropriate places of function headers, called axutil_env_t.
Can you please give me a hint how to generate C-code with the correct type  
or how to compile the generated sources with the new Axis2C V.1.0 ?


Thanks a lot and greetings from Germany,

Flori


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