I tried out this sample with the latest Axis2/C svn and Latest Axis2/Java svn and as I said before, the sample is working and the only change I had to do was to change the endpoint typo 'c' to 'C'.
May be you did not code generate and build the Calculator Service. There is a difference between the generated services.xml and the sample's services.xml. Regards Nandika On Fri, Jul 16, 2010 at 3:44 PM, Yasemin YILMAZ <[email protected] > wrote: > Hi Nandika, > > > > I should be say that I’ve corrected the function’s names * > adb_addResponse_get_addReturn* as *adb_addResponse_get_result* and * > adb_add_set_in0* as *adb_add_set_param_1* and *adb_add_set_in1* as * > adb_add_set_param_2* in test_calculator.c. > > > > I have modified as you said but same problem is continuing. I’ve thought > the issue can be and also, I’ve replaced *http://ws.apache.org/* as * > http://localhost:9090/* in Calculator.wsdl . But same error entries are > still written. > > > > Can the issue namespace processing of WSDL2C or SOAP version mismatch? How > can this error generate by Axis2/C? According to you, is it’s cause from > WSDL2C or client main functionality? > > > > Thanks so much for your quick reply and your helps > > > > Please clarify this topic.. > > > > Best regards, > > YY > > > > > > > > *From:* Nandika Jayawardana [mailto:[email protected]] > *Sent:* Friday, July 16, 2010 12:21 PM > *To:* Apache AXIS C User List > *Subject:* Re: WSDL2C Code Generation Problem > > > > This is due to a small issue in the test_calculator.c file. It uses the > endpoint address http://localhost:9090/axis2/services/calculator which > should be changed to http://localhost:9090/axis2/services/Calculator. I > will fix this issue in the svn. > > > > Regards > > Nandika > > > > On Fri, Jul 16, 2010 at 2:03 PM, Yasemin YILMAZ < > [email protected]> wrote: > > 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/typesbut > returned Fault| > http://schemas.xmlsoap.org/soap/envelope/|soapenv<http://schemas.xmlsoap.org/soap/envelope/%7Csoapenv> > * > > *\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 > > > > * * > > > > > -- > http://nandikajayawardana.blogspot.com/ > WSO2 Inc: http://www.wso2.com > -- http://nandikajayawardana.blogspot.com/ WSO2 Inc: http://www.wso2.com
