axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Maclean <gro...@maclean.com>
Subject Problems using Axis2/c in Windows
Date Wed, 14 Oct 2009 04:48:09 GMT
<html>
<body>
I am attempting to use Axis2/c 1.6.0 to generate C client stubs in
Windows with the &quot;-d adb&quot; option for use with the Microsoft C
compiler and am facing three problems.<br><br>
First I had trouble actually generating the stubs using the WSDL2C.bat
file supplied in the package.&nbsp; I got past this obstacle by changing
the line that read:<br><br>
<font face="Courier New, Courier">java -classpath %AXIS2_CLASSPATH%
org.apache.axis2.wsdl.WSDL2C %*<br><br>
</font>to:<br><br>
<font face="Courier New, Courier">java -classpath
&quot;%AXIS2_CLASSPATH%&quot; org.apache.axis2.wsdl.WSDL2C %*<br><br>
</font>Since I can see no downside to it, may I suggest that this change
be made to the distribution package.&nbsp; It could save a bit of
puzzlement and frustration.<br><br>
The other problems cause the generated code to get compilation
errors.&nbsp; The second is that declarations are generated that are not
at the top of their blocks.&nbsp; I see code like this:<br><br>
<dl>
<dd><font face="Courier New, Courier">{
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>axiom_node_t
*text_node = NULL;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>text_node
=
axiom_node_get_first_child(parent, env);
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>axiom_text_t
*text_element = NULL;
<dd><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><x-tab>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>...<br><br></font>
</dl>This is fine in C++ but not in plain C.<br><br>
The third problem is one that I have yet to fully analyze and I will post
about it later.<br><br>
By the way, I previously posted a version of this message to the
axis-user mailing list having not realized at the time that there is an
axis-c-user list.<br><br>
My thanks for any assistance,<br><br>
Pete Maclean </body>
</html>


Mime
View raw message