axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nadir Amra <a...@us.ibm.com>
Subject Re: Borland application as Axis Web Services client
Date Thu, 13 Dec 2007 11:40:04 GMT
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<char
> >> *' 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


Mime
View raw message