I have done some more investigation. I am able to get generateDS to produce
classes for "getCCMVersion" if I skip the "element.isExplicitDefine" check
in the function "generateClasses".
I understand what the code is doing, but as I am not familiar with the XML
schema can anyone explain the rationale behind not generating classes for
elements without a "type" or "ref" attribute?
Would it be valid to add a patch to generate classes if the name of the
"not explicitly defined" element is not the same as the name of its type?
In my case I will definitely need classes for this kind of element, but are
there situations (which I may not be aware of due to my lack of domain
knowledge) where this will cause things to break?
Thanks
On Wed, Oct 24, 2012 at 2:01 PM, Daniel Browne <
daniel.bro...@voss-solutions.com> wrote:
> The element "getCCMVersion" from the XSD document does not seem to be
> represented anywhere in the code generated by generateDS.
> This missing element seems to match to what I need to use in
> a successful SOAPUI request.
> I need to be able to make the XML request below via the generated code but
> I seem to be unable to do this with the "GetCCMVersionReq" class.
> How would I go about making the request with the generated code?
>
> I want to do something like this in code:
> req = GetCCMVersionReq()
> req.build() # no parameters are required
> req.export() # somehow get the XML in order to send in a soap request
>
>
> SOAPUI request:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:ns="http://www.cisco.com/AXL/API/9.0">
> <soapenv:Header/>
> <soapenv:Body>
> <ns:getCCMVersion>
> </ns:getCCMVersion>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> SOAPUI response:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> ">
> <soapenv:Body>
> <ns:getCCMVersionResponse xmlns:ns="http://www.cisco.com/AXL/API/9.0
> ">
> <return>
> <componentVersion>
> <version>9.0.1.11003(1)</version>
> </componentVersion>
> </return>
> </ns:getCCMVersionResponse>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
> XSD:
> <xsd:complexType name="GetCCMVersionReq">
> <xsd:sequence>
> <xsd:element name="processNodeName" type="axlapi:String255" minOccurs="0"
> />
> </xsd:sequence>
> </xsd:complexType>
> <xsd:element name="getCCMVersion" type="axlapi:GetCCMVersionReq"/>
>
>
> Thanks
> --
>
>
> <http://www.voss-solutions.com/>
>
> *
> Daniel Browne
> *
>
> Developer / Design Lead
>
> VOSS Development
> Mobile: +27 (0) 79 293 2044
> daniel.bro...@voss-solutions.com
>
> <https://twitter.com/voss_solutions> <http://www.linkedin.com/company/voss>
> <http://www.facebook.com/pages/VOSS-Solutions/254816747898652?sk=wall>
>
>
--
<http://www.voss-solutions.com/>
*
Daniel Browne
*
Developer / Design Lead
VOSS Development
Mobile: +27 (0) 79 293 2044
daniel.bro...@voss-solutions.com
<https://twitter.com/voss_solutions> <http://www.linkedin.com/company/voss>
<http://www.facebook.com/pages/VOSS-Solutions/254816747898652?sk=wall>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
generateds-users mailing list
generateds-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/generateds-users