axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Gamage" <dimut...@gmail.com>
Subject Re: Potential name clashes when using multiple services
Date Wed, 07 Jan 2009 16:35:38 GMT
Hi Catalina Caloian,

Looks like your two wsdls use (may be imported) same schema structure. If so
the two adb structures, operations should be identical, so you can delete
one set of them and use the same generated files for both services.

Normally in a wsdl, schema is not associated with a service. so we don't
have a way to have service name inside adb structure.

Thanks
Dimuthu

On Wed, Jan 7, 2009 at 3:25 PM, Catalina Caloian <
Catalina.Caloian@quintiq.com> wrote:

> Hello
>
> Scenario:
>        - an application needs to use two services - let's call their
> respective wsdl files Mapping.wsdl and Geocoding.wsdl
>        - both services use a type called Coordinate
>        - upon generating C code from the wsdl files using WSDL2C, we get
> two adb_Coordinate.c and two adb_Coordinate.h files (one for each wsdl),
> with two adb_Coordinate_create(const axutil_env_t* env) functions etc.
>        - this leads to linkage errors
>
> I've tried to change CADBBeanTemplateHeader.xsl and
> CADBBeanTemplateSource.xsl so that the service name is used when creating
> the name of the structures - so adb_Coordinate_* becomes
> adb_Mapping_Coordinate_* and adb_Geocoding_Coordinate_* etc. However, it
> seems that the service name is not available in the intermediate xml file
> used for code generation - or I haven't been able to find it.
>
> The workaround was to manually rename everything. However, it would be nice
> if the service name would be automatically incorporated in the name of the
> generated structures and thus avoid potential name clashes between services.
>
> Thank you.
>
>
> Catalina-Georgiana Caloian
> Software Engineer
>
> Quintiq
>
> T +31 (0) 73 691 07 39
> F +31 (0) 73 691 07 54
> M +31 (0) 65 247 63 99
> E catalina.caloian@quintiq.com
> I www.quintiq.com
>
>
> Quintiq Conference "Quintessence 09" Tuesday May 12th, 2009, Country Estate
> Duin & Kruidberg, near Amsterdam Schiphol, The Netherlands - for more
> information visit www.quintiq.com
>
> This message contains information that may be privileged or confidential
> and is the property of Quintiq. It is only intended for the person to whom
> it is addressed. If you are not the intended recipient, you are not
> authorized to read, print, retain, copy, disseminate, distribute or use this
> message or any part thereof. If you have received this message in error,
> please notify the sender immediately and delete all copies of this message.
> Please note that e-mails are susceptible to change, therefore they are not
> binding.
>



-- 
Thanks,
Dimuthu Gamage

http://www.dimuthu.org
http://www.wso2.org

Mime
View raw message