You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Bill Blough (Jira)" <ji...@apache.org> on 2025/09/21 15:56:00 UTC
[jira] [Updated] (AXIS2C-1403) Code generation having problem in Windows
[ https://issues.apache.org/jira/browse/AXIS2C-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bill Blough updated AXIS2C-1403:
--------------------------------
Component/s: code generation
(was: wsdl2c tool)
> Code generation having problem in Windows
> -----------------------------------------
>
> Key: AXIS2C-1403
> URL: https://issues.apache.org/jira/browse/AXIS2C-1403
> Project: Axis2-C
> Issue Type: Bug
> Components: code generation
> Affects Versions: 1.6.0
> Environment: Windows
> Reporter: Selvaratnam Uthaiyashankar
> Priority: Major
>
> Error reported in mailing list by Pete Maclean: http://www.mail-archive.com/axis-c-user@ws.apache.org/msg05892.html
> ===========================================================
> I am attempting to use Axis2/c 1.6.0 to generate C client stubs in Windows with the "-d adb" option for use with the Microsoft C compiler and am facing three problems.
> First I had trouble actually generating the stubs using the WSDL2C.bat file supplied in the package. I got past this obstacle by changing the line that read:
> java -classpath %AXIS2_CLASSPATH% org.apache.axis2.wsdl.WSDL2C %*
> to:
> java -classpath "%AXIS2_CLASSPATH%" org.apache.axis2.wsdl.WSDL2C %*
> Since I can see no downside to it, may I suggest that this change be made to the distribution package. It could save a bit of puzzlement and frustration.
> The other problems cause the generated code to get compilation errors. The second is that declarations are generated that are not at the top of their blocks. I see code like this:
> {
> axiom_node_t *text_node = NULL;
> text_node = axiom_node_get_first_child(parent, env);
> axiom_text_t *text_element = NULL;
> ...
> This is fine in C++ but not in plain C.
> ===========================================
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: c-dev-help@axis.apache.org