Re: Using AXIS2C from scripting environment
Hello Nandika, Is axiom_xml_reader_init (); an exported function? I do not find it any of the lib files. In this case, how should I link it? I get a linker error due to this call. Regards, Yuva On 8/9/07, Nandika Jayawardana [EMAIL PROTECTED] wrote: Hi Yuva, There are few posibilities that might produce this error. Try putting axiom_xml_reader_init (); function at the start of your code. This function initializes the parser for threaded environment. Thanks Nandika On 8/8/07, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello, I am trying to use AXIS2C from a scripting environment. I get a access violation at axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE that causes my environment to crash. To detect the problem, I tried to build the axutil dll on VC++ express edition only to find that the dll I create is generating error much earlier!! Any clues? Regards, Yuva -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: Using AXIS2C from scripting environment
Hi Yuvaraj, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] writes: Hello Dinesh, This is what the log file says: Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\phase.c (195) Invoke the handler AddressingOutHandler within the phase MessageOut It is quite difficult to me to understand this piece of logfile only. Could you please attach your logfile. If possible , could you please give us some rough idea about your use case. It will help us to locate possible errors. thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com/ GPG 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: Using AXIS2C from scripting environment
Hello Dinesh, I am trying to do exactly what the yahoo_client.c sample does from a scripting language called J available here http://www.jsoftware.com/.[1] 1) Running yahoo_client.c crashes at axis2_svc_client_free(svc_client, env); Debugging via VC revels the crash at (one of these two lines) if (transport_out-param_container) { axutil_param_container_free(transport_out-param_container, env); } if (transport_out-out_flow) { axis2_flow_free(transport_out-out_flow, env); } Note: I added proxy statement since I work behind a firewall. 2) From J, I can invoke dlls. This requires parameter passing. Here, at the point of axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE I have a crash. I notice that with yahoo_client.c at this point, the parent process console window appears briefly since that address space is accessed. 3) I was hoping you will tell me when is the Transport Sender set. This can give me a clue to what is causing the corruption. Further, my local build of axutil project causes a crash much earlierso any pointers on building axutil on VC will also be appreciated since that could tell me what is causing the corruption that causes the crash. I also know that my implementation in J could be the cause. So, all I need is some guidance on a) where is this set? b) are there any configuration parameters that need to be set? c) when I build local axutil project, the path separator is / instead of \ for windows. That could lead to the fact that the dlls relevant (module\addressing\axis2_mod_addr.dll) is not getting loaded. Attached is the complete log file when invoked from the scripting language. Regards, Yuva Encl: [1] http://www.jsoftware.com/ On 8/9/07, Dinesh Premalal [EMAIL PROTECTED] wrote: Hi Yuvaraj, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] writes: Hello Dinesh, This is what the log file says: Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\phase.c (195) Invoke the handler AddressingOutHandler within the phase MessageOut It is quite difficult to me to understand this piece of logfile only. Could you please attach your logfile. If possible , could you please give us some rough idea about your use case. It will help us to locate possible errors. thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com/ GPG 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] test_yahoo.log Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement
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
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. Samisa... Dr. Florian Steinborn wrote: 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] -- Samisa Abeysinghe : a href=http://wso2.org/projects/wsf/c;WSO2 Web Services Framework/C - Open source C library for providing and consuming Web services/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using AXIS2C from scripting environment
Hi Yuvaraj, To build axis2c from vc project, use the vc2005 project solution file located in AXIS2 SOURCE DIRides\vc\axis2c folder. It will build axis2c to a folder named deploy in AXIS2 SOURCE DIRides\vc\axis2c directory. Regards Nandika On 8/9/07, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello Dinesh, I am trying to do exactly what the yahoo_client.c sample does from a scripting language called J available here http://www.jsoftware.com/.[1] 1) Running yahoo_client.c crashes at axis2_svc_client_free(svc_client, env); Debugging via VC revels the crash at (one of these two lines) if (transport_out-param_container) { axutil_param_container_free(transport_out-param_container, env); } if (transport_out-out_flow) { axis2_flow_free(transport_out-out_flow, env); } Note: I added proxy statement since I work behind a firewall. 2) From J, I can invoke dlls. This requires parameter passing. Here, at the point of axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE I have a crash. I notice that with yahoo_client.c at this point, the parent process console window appears briefly since that address space is accessed. 3) I was hoping you will tell me when is the Transport Sender set. This can give me a clue to what is causing the corruption. Further, my local build of axutil project causes a crash much earlierso any pointers on building axutil on VC will also be appreciated since that could tell me what is causing the corruption that causes the crash. I also know that my implementation in J could be the cause. So, all I need is some guidance on a) where is this set? b) are there any configuration parameters that need to be set? c) when I build local axutil project, the path separator is / instead of \ for windows. That could lead to the fact that the dlls relevant (module\addressing\axis2_mod_addr.dll) is not getting loaded. Attached is the complete log file when invoked from the scripting language. Regards, Yuva Encl: [1] http://www.jsoftware.com/ On 8/9/07, Dinesh Premalal [EMAIL PROTECTED] wrote: Hi Yuvaraj, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] writes: Hello Dinesh, This is what the log file says: Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c (129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c(129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c-src-1.0.0\ axis2c-src-1.0.0\src\core\engine\phase.c (195) Invoke the handler AddressingOutHandler within the phase MessageOut It is quite difficult to me to understand this piece of logfile only. Could you please attach your logfile. If possible , could you please give us some rough idea about your use case. It will help us to locate possible errors. thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com/ GPG 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: [WSDL2C] Bug in C - ServerStubs - Unexpected Subelement
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: Using AXIS2C from scripting environment
Hello Nandika, Can you also tell me the location from where I can download the following? a) libapr-1.lib apr-1.lib libhttpd.lib associated dlls b) libcurl_imp.lib associated dlls [should I choose with SSL or without?] c) httpd.lib associated dlls d) ssl ( I have got the installation from Shining Light Productions - is this ok)? My builds fail without these. Thanks, Yuva On 8/9/07, Nandika Jayawardana [EMAIL PROTECTED] wrote: Hi Yuvaraj, To build axis2c from vc project, use the vc2005 project solution file located in AXIS2 SOURCE DIRides\vc\axis2c folder. It will build axis2c to a folder named deploy in AXIS2 SOURCE DIRides\vc\axis2c directory. Regards Nandika On 8/9/07, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello Dinesh, I am trying to do exactly what the yahoo_client.c sample does from a scripting language called J available here http://www.jsoftware.com/ .[1] 1) Running yahoo_client.c crashes at axis2_svc_client_free(svc_client, env); Debugging via VC revels the crash at (one of these two lines) if (transport_out-param_container) { axutil_param_container_free(transport_out-param_container, env); } if (transport_out-out_flow) { axis2_flow_free(transport_out-out_flow, env); } Note: I added proxy statement since I work behind a firewall. 2) From J, I can invoke dlls. This requires parameter passing. Here, at the point of axis2_engine_send::AXIS2_TRANSPORT_SENDER_INVOKE I have a crash. I notice that with yahoo_client.c at this point, the parent process console window appears briefly since that address space is accessed. 3) I was hoping you will tell me when is the Transport Sender set. This can give me a clue to what is causing the corruption. Further, my local build of axutil project causes a crash much earlierso any pointers on building axutil on VC will also be appreciated since that could tell me what is causing the corruption that causes the crash. I also know that my implementation in J could be the cause. So, all I need is some guidance on a) where is this set? b) are there any configuration parameters that need to be set? c) when I build local axutil project, the path separator is / instead of \ for windows. That could lead to the fact that the dlls relevant (module\addressing\axis2_mod_addr.dll) is not getting loaded. Attached is the complete log file when invoked from the scripting language. Regards, Yuva Encl: [1] http://www.jsoftware.com/ On 8/9/07, Dinesh Premalal [EMAIL PROTECTED] wrote: Hi Yuvaraj, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] writes: Hello Dinesh, This is what the log file says: Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c (129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c(231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_resolver.c (231) module name is:addressing [Thu Aug 09 11:27:28 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\phaseresolver\phase_holder.c (129) Add handler AddressingOutHandler to phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\engine\engine.c(572) Invoking phase MessageOut [Thu Aug 09 11:27:45 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\ axis2c-src-1.0.0\src\core\engine\phase.c (195) Invoke the handler AddressingOutHandler within the phase MessageOut It is quite difficult to me to understand this piece of logfile only. Could you please attach your logfile. If possible , could you please give us some rough idea about your use case. It will help us to locate possible errors. thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com/ GPG 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: Using AXIS2C from scripting environment
Yuvaraj Athur Raghuvir wrote: Can you also tell me the location from where I can download the following? a) libapr-1.lib apr-1.lib libhttpd.lib associated dlls These libs are in the lib/ directory of your apache installation. DLLs can be found inside bin/ directory. You can download apache win32 binaries from: http://www.apache.org/dist/httpd/binaries/win32/ b) libcurl_imp.lib associated dlls [should I choose with SSL or without?] We don't have SSL support for libcurl transport yet. :( However, we do have our own client SSL transport. Anyway you can find the libs in the directory you extracted libcurl package, if you downloaded it from the official site. Whether to build with SSL or without, is up to you and depends on your requirement. c) httpd.lib associated dlls Same as in a). d) ssl ( I have got the installation from Shining Light Productions - is this ok)? As far as it contains the necessary libs, it is fine :) Regards, Dumindu. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Service compilation problem
I followed ur suggestion and looked at the gcc command options as generated by the make file. That solved the problem. Thanks! On 8/7/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Subra A Narayanan wrote: Thanks Samisa. I tried your solution and it worked for the 'math' sample. So I tried the same thing with my own web service, but that fails. This is what I see in the axis2c log. The processing just stops after this line == class_loader.c(135) Object loaded successfully as you can see below. So I modified the make file that came with the samples so that it now builds my own webservice too along with the other sample web services. And that makes my web service work!!! I have no idea whats going on here. Any help is greatly appreciated! What you can do is, when you run make, see the gcc commands run by make. Then you can see the compile options passed by make to gcc. If you copy those and run gcc with those options, then that would work. Samisa... -- Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web Services Developers' Portal) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2/C]: SOAP request with line breaks fails
Samisa Abeysinghe wrote: Subra A Narayanan wrote: Hey Samisa, It still doesn't work. Anything else that I can do to solve this problem? I tested it on my machine, with newlines in the payload, and it works with the latest svn. I tested with a PHP client and echo service. You seem to have tested with SOAP 1.1 in place. I am not sure if this is related to SOAP version. I tested with SOAP 1.2, I will test with SOAP 1.1 and let you know. I tested with SOAP 1.1 as well, and it seems to work fine with the latest svn when there are newlines in the payload. To help solve the problem, what you can do is to run Axis2/C server with gdb and send us the back trace of the crash point. Thanks, Samisa... -- Samisa Abeysinghe : a href=http://wso2.org/projects/wsf/c;WSO2 Web Services Framework/C - Open source C library for providing and consuming Web services/a - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]