Posted on 2009-12-08 20:07:25-08 by dstrinihome
'Typemap' branch not generating all classes
Hi Martin, All

I've run into the known issue in SOAP-WSDL (using 2.00.10) regarding the lack of support for recursion. (Problem noted by that 'Deep recursion on....' message that appears when attempting to compile a .wsdl with wsdl2perl.)

From reading other posts in the forum I tried using the 'Typemap' branch to get around the problem, which did avoid the 'recursion' failings, but it also resulted in only creating 'Interfaces', no Element information for example is generated.

However, if I use the 2.00.10 release instead of the 'Typemap' branch, then Element classes are created.

(I see the difference because I have multiple .wsdl's to compile to test this, not all of which expose the recursion limitation)

Does anyone know of a workaround or a later/different branch to try?
Direct Responses: 12001 | Write a response
Posted on 2009-12-21 22:03:03-08 by denman in response to 11896
Re: 'Typemap' branch not generating all classes
Hi - I have the same problem with the following wsdl:
https://api.betdaq.com/v2.0/API.wsdl
First there was an issue with recursion, then I tried the Typemap branch which does not throw out recursion errors but does miss Element info.
Did you find a solution to this?
Direct Responses: 12006 | Write a response
Posted on 2009-12-23 17:49:18-08 by dstrinihome in response to 12001
Re: 'Typemap' branch not generating all classes
>Did you find a solution to this?
Unfortunately no, I haven't found a solution or workaround to the problem.

The code generated from the 'Typemap' branch creates references to 'Element' classes, but doesn't
appear to create those classes.
Since the 2.00.10 tag, and versions prior create the elements for all my .wsdl files, I wasn't expecting to have a "can't create classes' bug" to appear in the typemap branch.
Direct Responses: 12007 | Write a response
Posted on 2009-12-23 21:04:57-08 by denman in response to 12006
Re: 'Typemap' branch not generating all classes
>The code generated from the 'Typemap' branch creates references to 'Element' classes, but doesn't appear to create those classes.
Yes - I have exactly the same problem.
Direct Responses: 12163 | Write a response
Posted on 2010-01-12 03:37:19-08 by dstrinihome in response to 12007
Re: 'Typemap' branch not generating all classes

Since I haven't managed a workaround
for the 'Typemap' branch to generate classes
other then interface, I decided to experiment
with the XML::Compile::SOAP / XML::Compile::WSDL11 modules.
and success! (Although there seems to be a bug in those modules
related to hexBinary type, it was workable)

XML::Compile however doesn't provide a wsdl2perl type of code generator,
which is my preferred way to create my needed set of APIs.

I'm looking forward to trying out updates to SOAP::WSDL when these
issues with deep recursion, and class generation are solved.
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.