axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <axel.thei...@telenor.com>
Subject SV: Borland application as Axis Web Services client
Date Thu, 13 Dec 2007 14:13:13 GMT
Thank you, we found a newer version on SVN (axis-c-1.6-Win32-trace-bin) from  24-Aug-2006 16:05.
Is this the right one?

We have now used this version creating stubs and compiling. We first had to change an include
from <cctype> to <ctype>, but then we got the same error as last time:
Error:  memory.h(185,1):Cannot convert 'const std::basic_string<char,std::string_char_traits<char>,std::allocator<char>>
*' to 'void *'
Error:  memory.h(185,1):Type mismatch in parameter 1 in call to 'operator delete(void *)'

Axel Theisen


-----Opprinnelig melding-----
Fra: axis-c-user-return-4984-axel.theisen=telenor.com@ws.apache.org [mailto:axis-c-user-return-4984-axel.theisen=telenor.com@ws.apache.org]
På vegne av Nadir Amra
Sendt: 13. desember 2007 12:40
Til: Apache AXIS C User List
Kopi: axis-c-user@ws.apache.org
Emne: Re: Borland application as Axis Web Services client

I would try building the code from SVN, there are many fixes that are not in 1.6

Nadir K. Amra


<axel.theisen@telenor.com> wrote on 12/13/2007 05:03:24 AM:

> Hi
> 
> We are trying to make our old c++ application, developed in Borland 
> C++ 5.02, use some services from a Java Web Service server. The server 
> is using (Java)Axis 1.2.1, so we were told the best was to use Axis at 
> the client side as well. We have downloaded Axis 1.6. and installed 
> it. We then used the wsdl2ws tool to create stubs from the wsdl 
> supplied from the server. We then want to use the service by taking 
> all the stub files into Borland and compile them with our application.
> 
> That's where we ran into trouble as we got he following error message 
> from the compiler:
> - Cannot convert 'char *' to 'char * *'
> 
> The code it was complaining about was in one of the stub 
> cpp-files(arrow
> marked):
> int
> Axis_DeSerialize_TestWebServiceData_TestWebServiceSubData(TestWebService
> Data_TestWebServiceSubData* param,    IWrapperSoapDeSerializer*
> pIWSDZ)
> {
> ->   xsd__string* p_testString =
> (pIWSDZ->getElementAsString("testString",0));
>    param->testString = *p_testString;
>    delete p_testString;
>    TestWebServiceData_TestWebServiceSubData_Array * array0 = new 
> TestWebServiceData_TestWebServiceSubData_Array();.
> .
> .
> 
> 
> What can be the cause of this error, and how do we fix it?
> Could the different Axis versions be the cause of the problem? Or the 
> fact that it is a Java server and a C++ client?
> Is the old Borland version the problem?
> 
> We have tried to get rid of the problem by changing to:
> ->   xsd__string p_testString =
> (pIWSDZ->getElementAsString("testString",0));
> ->   param->testString = p_testString;
> 
> which resolves the pointer error, but we then got the following error
> message:
> 
> Error:  memory.h(185,1):Cannot convert 'const 
> std::basic_string<char,std::string_char_traits<char>,std::allocator<ch
> ar
> >> *' to 'void *'
> Error:  memory.h(185,1):Type mismatch in parameter 1 in call to 
> 'operator delete(void *)'
> 
> As newcomers we would be very glad if anyone could help.
> 
> Regards
> Axel Theisen
> Invenia
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Mime
View raw message