Title: Abstract elements Post by: Michael L. on May 09, 2012, 10:52:00 pm Hi there,
I am trying to get the fglwsdl tool to generate client stub code from a published web service. I am running into difficulty when the tool encounters an element that is defined as abstract, such as the following in an xsd file: Code
The error I get when using fglwsdl is: ERROR : Cannot instantiate abstract element 'LocationCountry'. Version information: fglwsdl -V fglwsdl 2.21.13 build-102278 Four J's WSDL and XSD generator (c) 1989-2011 Four J's Development Tools Can anyone give me some ideas on what I can try here? I kind of understand the error, but this webservice I am trying to connect to is currently in production and apparently others have been able to get it to work with whatever tools they are using. Does fglwsdl support this type of element definition? Or is there a way for it to skip over it? Thanks, Michael Laporte Title: Re: Abstract elements Post by: Sisavanh S. on May 10, 2012, 12:17:53 pm Hi,
It is a support question. I suggest that you contact your local support center. As you have "abstract" elements you might need to use option "-fInheritance" of fglwsdl. Many regards, Title: Re: Abstract elements Post by: Michael L. on May 10, 2012, 04:36:29 pm Thank you, I have sent in a request to support.
Title: Re: Abstract elements Post by: Michael L. on May 15, 2012, 06:11:43 pm Thank you, I have sent in a request to support. Just to follow-up on this, support confirmed that this is an issue with fglwsdl option -fInheritance. They have filed bugs: 22644 - fglwsdl doesn't support pure abstract type and element 22643 - fglwsdl -disk does not save WSDL and all the dependencies when it cannot generate a stub The workaround has been to change the definition of the element from using abstract="true" to abstract="false" and that allowed me to create the client stub. |