Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing
I have packed and hosted the latest snapshot with Java svn head here: http://people.apache.org/~samisa/1.1.0-RC1/ Please have a look. Thanks, Samisa... Samisa Abeysinghe wrote: Dr. Florian Steinborn wrote: 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? This is because the snapshots are created using the 1.3 Axis2/Java branch, and I commited the patch to the svn head. Now that 1.3 release of Axis2/Java is done, they will hopefully change to svn head for the nightly builds. If not, I can post a snapshot for you for the time being. Samisa... Thanks, Flori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samisa Abeysinghe - http://people.apache.org/~samisa/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing
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: [Rampart/C | Neethi/C] Possible to get the current x509security certificate from a policy?
Sorry for not being overly clear. Basically I've loaded a policy using: neethi_policy* policy = neethi_util_create_policy_from_file( axisEnv, fileName ); Then applied it to the service client using: axis2_svc_client_set_policy( svcClient, axisEnv, policy ); Now if possible I would like to be able to get the OpenSSL structures (i.e. the struct named 'X509'); or just some way of obtaining the subject DN and certificate string from the certificate in that policy. I suppose the filename of that certificate would also suffice, as I could then load it in manually, though a pre-loaded one would be preferable. The ultimate goal is to access the current security token to include it in my message payload (not as part of the security header, or ws-security, which is why I was wary about mentioning rampart). Hopefully that clears things up :) Cheers, Jamie -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 05:01 To: Apache AXIS C User List Subject: Re: [Rampart/C | Neethi/C] Possible to get the current x509security certificate from a policy? Hi Jamie, Please see my comments inline. BTW Your requirement is not very clear. Can you please emphasize more on this. On Mon, 2007-08-13 at 16:51 +0100, Jamie Lyon wrote: Hi, Is it possible to get the OpenSSL construct (or some other form) of policy out of the current neethi policy? OpenSSL functions are called from Rampart/C, not through Neethi. Here what do You mean by OpenSSL construct of policy? I'm basically trying to get the subjectDN and base64 encoded cert to include in my message. I can encode the data to a base64 string from a char array, so no worries there, so long as I can somehow access the data. If you have the buffer containing the base64 string of the key you can attached it to the message by setting it in the rampart_context. You can use the following functions, rampart_context_set_certificate() and rampart_context_set_certificate_type. But to do this you need to create a rampart_context outside of rampart and set it as a value in a axis2_parameter called RAMPART_CONFIGURATION. Otherwise you need to change the code. -Manjula Any suggestions are highly welcome. Cheers, Jamie - 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: |AXIS2] [AXIS2C] c-stubs: memset in axis2_TYPE_create missing
Dr. Florian Steinborn wrote: 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? Please try with : mvn clean install -Dmaven.test.skip=true Alternatively, I have posted the binary release as well in the link that I gave, you may try with that binary. Samisa... -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Rampart/C | Neethi/C] Possible to get the current x509security certificate from a policy?
On Tue, 2007-08-14 at 09:34 +0100, Jamie Lyon wrote: Hi Jamie, Neethi/C Security policy extension is for building and ordering the security header. It has nothing to do with the content of the payload. So in your requirement to include the security token in the payload You need to do it in your own. You can use OpenSSL directly to read from certficate or can use methods in rampart/src/omxmlsec/openssl seperately. please see rampart/src/omxmlsec/openssl/x509.C to get an idea of using openssl functions. Thanks -Manjula. Sorry for not being overly clear. Basically I've loaded a policy using: neethi_policy* policy = neethi_util_create_policy_from_file( axisEnv, fileName ); Then applied it to the service client using: axis2_svc_client_set_policy( svcClient, axisEnv, policy ); Now if possible I would like to be able to get the OpenSSL structures (i.e. the struct named 'X509'); or just some way of obtaining the subject DN and certificate string from the certificate in that policy. I suppose the filename of that certificate would also suffice, as I could then load it in manually, though a pre-loaded one would be preferable. The ultimate goal is to access the current security token to include it in my message payload (not as part of the security header, or ws-security, which is why I was wary about mentioning rampart). Hopefully that clears things up :) Cheers, Jamie -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 05:01 To: Apache AXIS C User List Subject: Re: [Rampart/C | Neethi/C] Possible to get the current x509security certificate from a policy? Hi Jamie, Please see my comments inline. BTW Your requirement is not very clear. Can you please emphasize more on this. On Mon, 2007-08-13 at 16:51 +0100, Jamie Lyon wrote: Hi, Is it possible to get the OpenSSL construct (or some other form) of policy out of the current neethi policy? OpenSSL functions are called from Rampart/C, not through Neethi. Here what do You mean by OpenSSL construct of policy? I'm basically trying to get the subjectDN and base64 encoded cert to include in my message. I can encode the data to a base64 string from a char array, so no worries there, so long as I can somehow access the data. If you have the buffer containing the base64 string of the key you can attached it to the message by setting it in the rampart_context. You can use the following functions, rampart_context_set_certificate() and rampart_context_set_certificate_type. But to do this you need to create a rampart_context outside of rampart and set it as a value in a axis2_parameter called RAMPART_CONFIGURATION. Otherwise you need to change the code. -Manjula Any suggestions are highly welcome. Cheers, Jamie - 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]
RE: [Rampart/C | Neethi/C] Possible to get the currentx509security certificate from a policy?
Thanks, that part is fine -- there's some very useful helper functions there. My primary question however is that in my policy.xml I've got: rampc:RampartConfig xmlns:rampc=http://ws.apache.org/rampart/c/policy; rampc:Certificate/my/path/mycert.pem/rampc:Certificate rampc:PrivateKey/my/path/mykey.pem/rampc:PrivateKey /rampc:RampartConfig This works fine, and the correct certificates/keys are included in rampart, but I can't work out how, in code, to get the filenames listed in policy.xml. This is why I mention neethi -- I want to be able to access some of the information in that loaded policy, but I can't seem to work out the correct way of doing so. In pseudo-code, this is what I'd like to be able to do: neethi_policy_t* policy = neethi_util_create_policy_from_file( axisEnv, filename ); ///*** This line is what I need to be able to do char* certFilename = get_certificate_filename_from_policy( policy ); ///* X509* cert; openssl_x509_load_from_pem( axisEnv, certFilename, cert ); Thanks, Jamie -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 12:21 To: Apache AXIS C User List Subject: RE: [Rampart/C | Neethi/C] Possible to get the currentx509security certificate from a policy? On Tue, 2007-08-14 at 09:34 +0100, Jamie Lyon wrote: Hi Jamie, Neethi/C Security policy extension is for building and ordering the security header. It has nothing to do with the content of the payload. So in your requirement to include the security token in the payload You need to do it in your own. You can use OpenSSL directly to read from certficate or can use methods in rampart/src/omxmlsec/openssl seperately. please see rampart/src/omxmlsec/openssl/x509.C to get an idea of using openssl functions. Thanks -Manjula. Sorry for not being overly clear. Basically I've loaded a policy using: neethi_policy* policy = neethi_util_create_policy_from_file( axisEnv, fileName ); Then applied it to the service client using: axis2_svc_client_set_policy( svcClient, axisEnv, policy ); Now if possible I would like to be able to get the OpenSSL structures (i.e. the struct named 'X509'); or just some way of obtaining the subject DN and certificate string from the certificate in that policy. I suppose the filename of that certificate would also suffice, as I could then load it in manually, though a pre-loaded one would be preferable. The ultimate goal is to access the current security token to include it in my message payload (not as part of the security header, or ws-security, which is why I was wary about mentioning rampart). Hopefully that clears things up :) Cheers, Jamie -Original Message- From: Manjula Peiris [mailto:[EMAIL PROTECTED] Sent: 14 August 2007 05:01 To: Apache AXIS C User List Subject: Re: [Rampart/C | Neethi/C] Possible to get the current x509security certificate from a policy? Hi Jamie, Please see my comments inline. BTW Your requirement is not very clear. Can you please emphasize more on this. On Mon, 2007-08-13 at 16:51 +0100, Jamie Lyon wrote: Hi, Is it possible to get the OpenSSL construct (or some other form) of policy out of the current neethi policy? OpenSSL functions are called from Rampart/C, not through Neethi. Here what do You mean by OpenSSL construct of policy? I'm basically trying to get the subjectDN and base64 encoded cert to include in my message. I can encode the data to a base64 string from a char array, so no worries there, so long as I can somehow access the data. If you have the buffer containing the base64 string of the key you can attached it to the message by setting it in the rampart_context. You can use the following functions, rampart_context_set_certificate() and rampart_context_set_certificate_type. But to do this you need to create a rampart_context outside of rampart and set it as a value in a axis2_parameter called RAMPART_CONFIGURATION. Otherwise you need to change the code. -Manjula Any suggestions are highly welcome. Cheers, Jamie - 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
java.io.IOException: Cannot run rc program
Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Help me please!!! Thanks!!! .
Re: java.io.IOException: Cannot run rc program
Velesevich Ilya escribió: Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Perhaps you are missing to set your JAVA_HOME and/or CLASSPATH environment variables, if so, make sure the file rt.jar (which HAS to be with your java virtual machine) is in the classpath. i.e. I have installed Java Development Kit (aka JDK) in C:\j2sdk1.6.0_06 (that's how Java 6 update 6 looks like ;) ) then my environment variables would look like this: JAVA_HOME=C:\jdk1.6.0_06 CLASSPATH=C:\jdk1.6.0_06\jre\lib Help me please!!! Thanks!!! . Hope that works for you ;) cheers Carlos Escobar No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 13/08/2007 10:15
Re: java.io.IOException: Cannot run rc program
Velesevich Ilya escribió: Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Help me please!!! Thanks!!! . No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 13/08/2007 10:15 Oops, wrong answer, sorry :P didn't look it was for C... perhaps you should try leaving only one rc in your path, always make sure you don't have two definitions of the same program in your nv. variables, programs usually don't like it ;)
Axic C++. Is it using and fixing????
Using Axis C++ 1.x - Is it actual at now?? I want call web-service And this call must be cross-platform. I think Axis C++ help me. But I want ask: Is it stable product? And Is it fixing now?? How used is it now???
Re: java.io.IOException: Cannot run rc program
I want exactly question: this fail in build.xml at 82 line: Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified exec executable=rc !--arg =/fo '${basedir}/build/version.res' '${basedir}/build/version.temp.rc'/-- arg value=/fo/ arg value=${basedir}/build/version.res/ arg value=${basedir}/build/version.temp.rc/ /exec version.temp.rc file situated in D:\ws-axis\c\build version.res file not exist generally. Please help me!!! And may be If anybody have win32-bin files of Axis C++ (was building by latest source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c) send me on my mail pleeease!!! 2007/8/14, Velesevich Ilya [EMAIL PROTECTED]: Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Help me please!!! Thanks!!! .
Re: java.io.IOException: Cannot run rc program
as for the axis-c++ binaries, you should be able to find them in http://www.apache.org/dist/ws/axis-c/ Velesevich Ilya escribió: I want exactly question: this fail in build.xml at 82 line: Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified exec executable=rc !--arg =/fo '${basedir}/build/version.res' '${basedir}/build/version.temp.rc'/-- arg value=/fo/ arg value=${basedir}/build/version.res/ arg value=${basedir}/build/version.temp.rc/ /exec version.temp.rc file situated in D:\ws-axis\c\build version.res file not exist generally. Please help me!!! And may be If anybody have win32-bin files of Axis C++ (was building by latest source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c) send me on my mail pleeease!!! 2007/8/14, Velesevich Ilya [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] : Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Help me please!!! Thanks!!! . No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 13/08/2007 10:15
Re: java.io.IOException: Cannot run rc program
Yes I'm know but if you want call web service from client stub(client stub create using WSDL2Ws Axis C++ 1.6b) You will very unhappy when simple WebService whith method HelloWorld do not run twice; and code generate HTTPTransport exception. This exception like here: http://mail-archives.apache.org/mod_mbox/ws-axis-c-user/200708.mbox/[EMAIL PROTECTED] And resolve this problem is building latest code an one of axis user: http://mail-archives.apache.org/mod_mbox/ws-axis-c-user/200708.mbox/[EMAIL PROTECTED] Thanks for your attention for my problem but it not resolved. Build as before failed at ibid. 2007/8/14, Carlos Escobar Zarzar [EMAIL PROTECTED]: as for the axis-c++ binaries, you should be able to find them in http://www.apache.org/dist/ws/axis-c/ Velesevich Ilya escribió: I want exactly question: this fail in build.xml at 82 line: Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified exec executable=rc !--arg =/fo '${basedir}/build/version.res' '${basedir}/build/version.temp.rc'/-- arg value=/fo/ arg value=${basedir}/build/version.res/ arg value=${basedir}/build/version.temp.rc/ /exec version.temp.rc file situated in D:\ws-axis\c\build version.res file not exist generally. Please help me!!! And may be If anybody have win32-bin files of Axis C++ (was building by latest source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c) send me on my mail pleeease!!! 2007/8/14, Velesevich Ilya [EMAIL PROTECTED] : Hi ! I have download source from http://svn.apache.org/repos/asf/webservices/axis/trunk/c I have install Ant 1.7.0 by http://ws.apache.org/axis/cpp/developers-guide.html I try build source using Ant 1.7.0 but after running Ant I have exception: build.xml:82 Execute failed java.io.IOException: Cannot run rc program ... System cannot find program specified I found two rc program on my computer. It situated in VS 2003 directory. What rc program will find Ant??? May be I'm lose sight of something; Help me please!!! Thanks!!! . -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.476 / Virus Database: 269.11.17/951 - Release Date: 13/08/2007 10:15
Re: Axiom Questions
Hey Kaushalye, I noticed that ip_stream is of type axis2_byte_t. Looking at the definition of axis2_byte_t in axutil_utils_defines.h, I realized that it is nothing but a char. I am wondering if I read a part of a binary file from disk using pread and store the read data in void *buffer and then type cast the buffer in to a axis2_byte_t, if that will cause a problem? Does my question make sense? TIA Subra On 8/13/07, Kaushalye Kapuruge [EMAIL PROTECTED] wrote: Subra A Narayanan wrote: Hey Samisa, With regards to my second question: I am not talking about reading part of the attachment. What I am asking is can I read part of the file from the disk and attach it to the message? 'axiom_data_handler_create' takes in a file name but no offset. I can read a part of the file using pread, but but do I convert the void *buff in to a data handler? Have you tried this? axiom_data_handler_set_binary_data(data_handler, env, ip_stream, len); First of all you'll have to keep you data(i.e. ip_stream) using axis2_byte_t*. Cheers, Kaushalye Subra On 8/13/07, *Samisa Abeysinghe* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Subra A Narayanan wrote: Hello everyone, Its Monday morning and I am back with my questions. :-) Not sure if these questions belong here but will ask anyways. Please let me know if I should be sending this mail to some other mailing list. I am using Axis2 and have 2 basic questions about Axiom. I did some searching on the web and tried looking through the Axis2/C source code but don't have my answer. Here it goes: Q1) I have a web service with 4 operations. The first 3 parameters are the same for all the 4 operations. In other words, the first 3 child elements inside the SoapBodyOperation Name/Operation Name/SoapBody are the same for the 4 operations. So I created a function, called ReadFirst3Params which gets called from all the 4 operations. Since, Axiom is based on a pull parser, I know I have to have a reference to the 3rd parameter node to be able to read the 4th parameter. Now my question is, do I need to return a reference to the 3rd parameter node from my ReadFirst3Params function so that I can continue reading the other params in the operation. Not really, one can read the rest of the OM tree the way they want, as an example, using the qname (see axiom_element_get_children_with_qname). Or is there any other way of doing this. For e.g. an internal pointer that Axiom maintains which will tell me the position with in the XML document. (I hope my question makes sense) Q2) One of the operation returns an attachment to the client as an mtom attachment. I use axiom_data_handler_create to read in the binary file. I have a requirement to be able to read in a part of the file rather than the whole file. Just like pread function in 'C' where I can specify an offset and the file is read from the beginning to the offset. Is there a function in axiom to be able to do that? If not, how do I solve the above problem? We do not have provision to read part of the attachment as of now. Is there any way you can break the attachment to multiple parts and send that in the SOAP message. If you can do that, then you can read only the first attachment and forget about the rest and pass it on, I hope. Samisa... Thanks again for ur help! Subra -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services http://wso2.org/projects/wsf/c?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework/C%C2%A0-%C2%A0Open%C2%A0source%C2%A0C%C2%A0library%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services http://wso2.org/projects/wsf/c?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework/C%C2%A0-%C2%A0Open%C2%A0source%C2%A0C%C2%A0library%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- http://kaushalye.blogspot.com/ http://wso2.org/ - To unsubscribe, e-mail: [EMAIL
Call web service on C#
Hi !! I have web service written on C# I want call this service from code on C/C++ (I want that this code stably working) What is better way to do this call? What framework better use? Axis C++ 1.xor Axis2C ??? Thanks!
Re: Axiom Questions
Subra A Narayanan wrote: Hey Kaushalye, I noticed that ip_stream is of type axis2_byte_t. Looking at the definition of axis2_byte_t in axutil_utils_defines.h, I realized that it is nothing but a char. I am wondering if I read a part of a binary file from disk using pread and store the read data in void *buffer and then type cast the buffer in to a axis2_byte_t, if that will cause a problem? It should not. Because you give the length of the buffer alongside the buffer itself. FYI, the axiom_data_handler_set_binary_data function signature is as follows: axiom_data_handler_set_binary_data( axiom_data_handler_t *data_handler, const axutil_env_t *env, axis2_byte_t* input_stream, int input_stream_len) BTW, you could try this out and see for yourself ;) -Dumindu. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axiom Questions
Dumindu, Thanks for the reply! I am going to try it out for myself but just wanted to make sure that this was a no issue :-) Thanks again! Subra On 8/14/07, Dumindu Pallewela [EMAIL PROTECTED] wrote: Subra A Narayanan wrote: Hey Kaushalye, I noticed that ip_stream is of type axis2_byte_t. Looking at the definition of axis2_byte_t in axutil_utils_defines.h, I realized that it is nothing but a char. I am wondering if I read a part of a binary file from disk using pread and store the read data in void *buffer and then type cast the buffer in to a axis2_byte_t, if that will cause a problem? It should not. Because you give the length of the buffer alongside the buffer itself. FYI, the axiom_data_handler_set_binary_data function signature is as follows: axiom_data_handler_set_binary_data( axiom_data_handler_t *data_handler, const axutil_env_t *env, axis2_byte_t* input_stream, int input_stream_len) BTW, you could try this out and see for yourself ;) -Dumindu. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axic C++. Is it using and fixing????
Velesevich, It is stable, and fixes are being incorporated, although not many developers are working on it, I am putting fixes in when I,, but only to the client side, which is what you want. Ensure you get source and build from SVN since 1.6b is backlevel. Nadir K. Amra Velesevich Ilya [EMAIL PROTECTED] wrote on 08/14/2007 08:17:43 AM: Using Axis C++ 1.x - Is it actual at now?? I want call web-service And this call must be cross-platform. I think Axis C++ help me. But I want ask: Is it stable product? And Is it fixing now?? How used is it now??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Large Attachment support in Axis2/C
Hello folks, My webservice receives/sends attachments from/to clients using Axis2/C MTOM. Today we noticed that when a client was trying to send a 1.3 MB file, the server only received about 1/2 of it (around 760 KB) I was reading the MTOM guide = http://ws.apache.org/axis2/1_2/mtom-guide.html#41 Under advanced topics, it talks about file caching for large files in Axis2/Java. Is similar kind of support available in Axis2/C as well? I looked at the axis2.xml file and there is nothing in there. The application I am working on requires to support the sending and receiving of very large files. As usual thanks for all the help! Subra
Re: Call web service on C#
Velesevich Ilya wrote: Hi !! I have web service written on C# I want call this service from code on C/C++ (I want that this code stably working) What is better way to do this call? What framework better use? Axis C++ 1.x or Axis2C ??? Well I cannot comment on the suitability of Axis2 C++, because I did not use it for some time. And I could not test it with C#. But on Axis2/C, you can interop with .NET. Also, if you want WS-* stuff, such as WS-Addressing, WS-Security and WS-RM, then you would be better off using Axis2/C as it has proved to work with .NET with those specs. Thanks, Samisa... Thanks! -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Large Attachment support in Axis2/C
Subra A Narayanan wrote: Hello folks, My webservice receives/sends attachments from/to clients using Axis2/C MTOM. Today we noticed that when a client was trying to send a 1.3 MB file, the server only received about 1/2 of it (around 760 KB) There was a bug that we fond out yesterday with chunked clients where the size of the attachment was limited to 1MB. Is your client using HTTP chinking? If yes, cold you turn that off and see how it goes? Alternatively you can use the latest svn. I was reading the MTOM guide = http://ws.apache.org/axis2/1_2/mtom-guide.html#41 Under advanced topics, it talks about file caching for large files in Axis2/Java. Is similar kind of support available in Axis2/C as well? I looked at the axis2.xml file and there is nothing in there. Axis2/C does not have caching support as yet. We would have to look into the details and implement it with Axis2/C MTOM model. Samisa... The application I am working on requires to support the sending and receiving of very large files. As usual thanks for all the help! Subra -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]