Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: Abstract elements  (Read 18989 times)
Michael L.
Posts: 23


« 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
  1. [...]
  2. <xsd:element ref="nc:LocationCountry" minOccurs="0" maxOccurs="1"/>
  3. [...]
  4.  <xsd:element name="LocationCountry" abstract="true">
  5.    <xsd:annotation>
  6.      <xsd:documentation>A country, territory, dependency, or other such geopolitical subdivision of a location.</xsd:documentation>
  7.    </xsd:annotation>
  8.  </xsd:element>
  9. [...]

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
Sisavanh S.
Four Js
Posts: 80


« Reply #1 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,
Michael L.
Posts: 23


« Reply #2 on: May 10, 2012, 04:36:29 pm »

Thank you, I have sent in a request to support.
Michael L.
Posts: 23


« Reply #3 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.
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines