WSDL2C: Deconflicting Duplicate Types and Methods Between WSDLs

View: New views
2 Messages — Rating Filter:   Alert me  

WSDL2C: Deconflicting Duplicate Types and Methods Between WSDLs

by Andrew Grissom :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I have a project where I have multiple WSDLs that contain a types with the same name, but with different definitions, and methods with the same name but different parameters. When I generate the code using:

WSDL2C -uri MyWSDL1.wsdl -d adb -u -o $OUTPUT_DIR

Everything is fine if I create separate executables for accessing each WSDL.  However, if I compile them together I get numerous duplicate symbols.

If there a way in WSDLC to have it generate something like:

adb_<prefix>_MyType or adb_<prefix>_MyMethod_create

instead of:

adb_MyType or adb_MyMethod_create

I attempted to use the -p option when starting WSDL2C but it does not appear to do anything.

Am I missing something?


Re: WSDL2C: Deconflicting Duplicate Types and Methods Between WSDLs

by Dimuthu Gamage :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Unfortunately with the current setup there is no proper way to solve that conflict. One possible solution is to provide a parameter to set the prefix as you suggested, but there is no such thing implemented.

Can you please create a jira to implement this option?

Thanks
Dimuthu

On Sat, Oct 31, 2009 at 4:47 PM, Andrew Grissom <andrew_grissom@...> wrote:
I have a project where I have multiple WSDLs that contain a types with the same name, but with different definitions, and methods with the same name but different parameters. When I generate the code using:

WSDL2C -uri MyWSDL1.wsdl -d adb -u -o $OUTPUT_DIR

Everything is fine if I create separate executables for accessing each WSDL.  However, if I compile them together I get numerous duplicate symbols.

If there a way in WSDLC to have it generate something like:

adb_<prefix>_MyType or adb_<prefix>_MyMethod_create

instead of:

adb_MyType or adb_MyMethod_create

I attempted to use the -p option when starting WSDL2C but it does not appear to do anything.

Am I missing something?




--
Thanks,
Dimuthu Gamage

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