Need suggestions on wsf c/cpp client and its deployment

ashvitech.gmail.com's picture
I am newbie to wsf/axis-c. I want to consume webservices (JBoss WS, .net) in our c++ application and working on feasibility of code generation tools. I already posted few questions on Axis/c user forum and thought to put here also. I apologize for any repeated questions. 1) Wsdl2c/wsdl2cpp generates the code for xs:string as “char* (axis2-char)” and “std::string” respectively. Is there any way to mention mapping like “wchar*” or std::wstring (c++) to toolkit considering Unicode enabled project? For example if you check typemap.dat in case of goap which gives us a easy way to map data types. Does char* processing problematic in case of Unicode string? I may need to take care of conversions ASCII-Unicode. 2) Does it mandatory to use axis2.xml, modules, WSFC_HOME/WSFCPP_HOME and same directory structure for client deployment. Considering the client , I think to many things and configuration needs to in installation. I like my client application (along with client stub) should have small footprint for distribution, so can I build stub statically for depended libraries like axiom.dll, axis2_http_sender.dll etc? Any suggestions? 3) I like provision to set options like protocol “http” or https (ssl), port , ssl certificate, client timeout and more should be done by programmatically. Does such provision is available in both C/C++ client generated code? Does SSL with no authentication is supported //// Ashok
nandika's picture

Re

1. wchar*, std:wstring has not been tested in wsf/axis2c. Idealy you should be able to define axis2_char_t as wchar and use. However this has not been tried. 2. Due to axis2 architecture, it is necessary to have axis2.xml and the modules structure for client deployment as well. But static deployment is on our roadmap and we will be working on it. 3. Some of the options are already available programmatically. For the SSL with no authentication case, we have ssl validation at the moment and hence your case is not supported. There is a pending jira for this https://issues.apache.org/jira/browse/AXIS2C-1281 Regards Nandika
ashvitech.gmail.com's picture

Thanks Nandika. For point 3,

Thanks Nandika. For point 3, Is it easy to make changes in src\core\transport\http\sender\ssl\ssl_utils.c for SSL_VERIFY_NONE?? I don't want any client authentication. Here "http://www.mail-archive.com/axis-c-user@ws.apache.org/msg02739.html", Dumindu suggest to use "SERVER_CERT" parameter only if we don't need client authentication. Though I don't want dependency on SERVER_CERT also. My server wont have any authentication. I appreciate your suggestions.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)