[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-c-dev
Subject:    WSDL2C Code Generation Problem
From:       "Yasemin YILMAZ" <yasemin.yilmaz () arise ! com ! tr>
Date:       2010-07-16 8:26:12
Message-ID: 001a01cb24c0$8d5156f0$a7f404d0$ () yilmaz () arise ! com ! tr
[Download RAW message or body]

Hi all,

 

The following error messages have been encountered when implementing
Calculator sample in codegen_utest_blocking.log under logs directory:

 

 

\adb_addresponse.c(197) Failed in building adb object for addResponse :
Expected addResponse|http://ws.apache.org/axis2/services/Calculator/types
but returned Fault|http://schemas.xmlsoap.org/soap/envelope/|soapenv

\axis2_stub_calculator.c(271) NULL returnted from the
adb_addResponse_deserialize: This should be due to an invalid XML

 

 

I've used WSDL2C tool in order to generate stub and skeleton files for
Calculator sample shipped with Axis2/C binary distribution. Calculator.wsdl
has been used under the directory ..\services\Calculator. The following
commands are executed to generate server- and client-side codes
respectively:

 

. WSDL2C.bat -uri Calculator.wsdl -ss -sd -d adb -u

. WSDL2C.bat -uri Calculator.wsdl -u -d adb

For skeleton files, implemented on MS Windows:

to compile,

cl.exe /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "AXIS2_DECLARE_EXPORT" /D
"AXIS2_SVR_MULTI_THREADED" /w /nologo /I %AXIS2C_HOME%\include /c *.c

to link,

link.exe /nologo /LIBPATH:%AXIS2C_HOME%\lib axutil.lib axiom.lib
axis2_parser.lib axis2_engine.lib /DLL /OUT:calculator.dll *.obj

For stub files, implemented on MS Windows:

to compile,

cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /I %AXIS2C_HOME%\include
/c *.c

to link,

link.exe /LIBPATH:%AXIS2C_HOME%\lib axutil.lib axiom.lib axis2_parser.lib
axis2_engine.lib /OUT:calculator.exe *.obj
 
Note: test_calculator.c has been used as the client-side main source file
under ..\samples\src\codegen\client\calculator
 
 
What does this error message mean? Can it be WSDL2C tool's bug?
 
Thanks in advance for your helps and clarifications..
 
Best regards,
YY

 

 


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"Courier New TUR";
	panose-1:2 7 3 9 2 2 5 2 4 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:"Courier New";}
.MsoChpDefault
	{mso-style-type:export-only;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
	{page:WordSection1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=WordSection1>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier New"'>Hi
all,<o:p></o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier \
New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier \
New"'>The following error messages have been encountered when implementing Calculator
sample in codegen_utest_blocking.log under logs directory:<o:p></o:p></span></p>

<div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext \
1.0pt; padding:0cm 0cm 1.0pt 0cm'>

<p class=MsoNormal style='border:none;padding:0cm'><span lang=TR
style='font-size:9.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='border:none;padding:0cm'><span lang=TR
style='font-size:9.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

</div>

<p class=MsoNormal style='text-autospace:none'><b><i><span lang=TR
style='font-size:8.0pt;font-family:"Courier New TUR"'>\adb_addresponse.c(197)
Failed in building adb object for addResponse : Expected
addResponse|http://ws.apache.org/axis2/services/Calculator/types but returned
Fault|http://schemas.xmlsoap.org/soap/envelope/|soapenv<o:p></o:p></span></i></b></p>

<div style='mso-element:para-border-div;border:none;border-bottom:solid windowtext \
1.0pt; padding:0cm 0cm 1.0pt 0cm'>

<p class=MsoNormal style='text-autospace:none;border:none;padding:0cm'><b><i><span
lang=TR style='font-size:8.0pt;font-family:"Courier New \
TUR"'>\axis2_stub_calculator.c(271) NULL returnted from the \
adb_addResponse_deserialize: This should be due to an invalid \
XML<o:p></o:p></span></i></b></p>

</div>

<p class=MsoNormal style='text-autospace:none'><b><i><span lang=TR
style='font-size:8.0pt;font-family:"Courier New \
TUR"'><o:p>&nbsp;</o:p></span></i></b></p>

<p class=MsoNormal style='text-autospace:none'><span lang=TR style='font-size:
10.0pt;font-family:"Courier New TUR"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier \
New"'>I&#8217;ve used WSDL2C tool in order to generate stub and skeleton files for \
Calculator sample shipped with Axis2/C binary distribution. Calculator.wsdl has been \
used under the directory ..\services\Calculator. The following commands are executed
to generate server- and client-side codes respectively:<o:p></o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier \
New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier New"'>.
WSDL2C.bat -uri Calculator.wsdl -ss -sd -d adb -u<o:p></o:p></span></p>

<p class=MsoNormal><span lang=TR style='font-size:9.0pt;font-family:"Courier New"'>.
WSDL2C.bat -uri Calculator.wsdl -u -d adb<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Courier New"'>For skeleton files, implemented
on MS Windows:<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Courier New"'>to compile,<o:p></o:p></span></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:9.0pt;
font-family:"Courier New"'>cl.exe /D &quot;WIN32&quot; /D &quot;_WINDOWS&quot;
/D &quot;_MBCS&quot; /D &quot;AXIS2_DECLARE_EXPORT&quot; /D
&quot;AXIS2_SVR_MULTI_THREADED&quot; /w /nologo /I %AXIS2C_HOME%\include /c \
*.c<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Courier New"'>to link,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Courier New"'>link.exe
/nologo /LIBPATH:%AXIS2C_HOME%\lib axutil.lib axiom.lib axis2_parser.lib
axis2_engine.lib /DLL /OUT:calculator.dll *.obj<o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Courier New"'>For stub files, implemented on
MS Windows:<o:p></o:p></span></p>

<p><span style='font-size:9.0pt;font-family:"Courier New"'>to \
compile,<o:p></o:p></span></p>

<pre style='margin-bottom:12.0pt'><span style='font-size:9.0pt'>cl.exe /nologo /D \
&quot;WIN32&quot; /D &quot;_WINDOWS&quot; /D &quot;_MBCS&quot; /I \
%AXIS2C_HOME%\include /c *.c<o:p></o:p></span></pre>

<p><span style='font-size:9.0pt;font-family:"Courier New"'>to \
link,<o:p></o:p></span></p>

<pre><span style='font-size:9.0pt'>link.exe /LIBPATH:%AXIS2C_HOME%\lib axutil.lib \
axiom.lib axis2_parser.lib axis2_engine.lib /OUT:calculator.exe \
*.obj<o:p></o:p></span></pre><pre><span \
style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span \
style='font-size:9.0pt'>Note: test_calculator.c has been used as the client-side main \
source file under ..\samples\src\codegen\client\calculator<o:p></o:p></span></pre><pre><span
 style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span
style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span
style='font-size:9.0pt'>What does this error message mean? Can it be WSDL2C \
tool&#8217;s bug?<o:p></o:p></span></pre><pre><span \
style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span \
style='font-size:9.0pt'>Thanks in advance for your helps and \
clarifications..<o:p></o:p></span></pre><pre><span \
style='font-size:9.0pt'><o:p>&nbsp;</o:p></span></pre><pre><span \
style='font-size:9.0pt'>Best regards,<o:p></o:p></span></pre><pre><span \
style='font-size:9.0pt'>YY<o:p></o:p></span></pre>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:9.0pt;font-family:"Courier New"'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><b><span lang=TR style='font-size:9.0pt;font-family:"Courier \
New"'><o:p>&nbsp;</o:p></span></b></p>

</div>

</body>

</html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic