nishigandharajurkar / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Object name collisions when using multiple generated proxies in a project. #46

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Generate proxy code from two separate web services into two separate
directories.
2. Import both sets of code files into xcode
3. Attempt to compile

There are multiple issues including the file names of the generated classes
all start with tns as well as the USGlobals class will have its namespaces
overridden by the second service to be used.

The solution seems to allow the user to specify a user generated value as a
prefix for the namespace prefixes.  This can be a simple text box in the
user interface that is used instead of the hardcoded value @"tns" in
USParser.h (processDefinitionsElement and processImportElement) 

For the files that are static, it is acceptable to just not include them. 
The problem with USGlobals.h appears that it will be handled correctly if
the prefixes are able to be specified by the user.  

If a fix can not be done in the next couple of days, let me know and I will
work on submitting a patch.

Thank you for this generator!

Original issue reported on code.google.com by tony%cha...@gtempaccount.com on 15 Oct 2009 at 11:47

GoogleCodeExporter commented 9 years ago
When going through the code, I realized two things:  the default prefix for the 
classes 
created is actually taken from the namespace prefix used to define the service 
endpoints.  Manually changing them from tns to something different fixed this 
problem 
for me.  There are a couple places in the code that specify a "tns" constant 
that looks 
like it is used if there is no namespace prefix specified on the endpoint.  

Original comment by tony%cha...@gtempaccount.com on 3 Nov 2009 at 1:30

GoogleCodeExporter commented 9 years ago
Is there anything new about this Issue ? I have the same problem.

Original comment by kukuda...@googlemail.com on 29 Dec 2009 at 11:01

GoogleCodeExporter commented 9 years ago
Same problem here

Original comment by edwin.ve...@gmail.com on 18 Jan 2011 at 9:02

GoogleCodeExporter commented 9 years ago
Also, I have the same problem.

Original comment by human.z...@gmail.com on 17 Mar 2011 at 8:28