soa-model icon indicating copy to clipboard operation
soa-model copied to clipboard

The comparison does not seem to take extensions into account

Open frabac72 opened this issue 4 years ago • 3 comments

In the code that my WSDL and XSD file are generated from I have a few classes extending other classes. That results in some of the complex types in my XSD being the extension of other complex types. For instance: <xs:complexType name="changePaymentDayChanges"> xs:complexContent <xs:extension base="tns:scheduleChanges"> xs:sequence <xs:element name="billingDayDelta" type="xs:int"/> <xs:element minOccurs="0" name="changePaymentDayParameters" type="tns:changePaymentDay"/> <xs:element name="previousBillingDay" type="xs:int"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> In the two versions I am comparing, scheduleChanges changed. For the operations in the WSDL that use scheduleChanges directly, the change is reported, for instance: Definitions: PortType ExtendedRescheduleEnquiryService: Operation loadRescheduleInformation: Output: Message loadRescheduleInformationResponse: Part result: Element loadRescheduleInformationResponse: ComplexType http://ws.chpconsulting.com/alfa/reschedule/v1/enquiry/loadRescheduleInformationResponse: Sequence: Element return: ComplexType http://ws.chpconsulting.com/alfa/reschedule/v1/scheduleChanges: ... On the contrary, no mention is made that changePaymentDayChanges has changed (and that the operations using it are affected).

Any idea what I can do to bridge this apparent gap with extensions?

Thanks!

frabac72 avatar Mar 19 '22 00:03 frabac72

Thanks for reporting.

predic8 avatar Mar 22 '22 12:03 predic8

I would be happy to discuss the workaround I adopted, maybe not here though?

frabac72 avatar Mar 22 '22 14:03 frabac72

Hi @frabac72, thanks for thoughts. SOA Model has not a high priority on our list anymore since Web Services and XML Schema are outdated. He make updates from time to time when we ourself need something. Feel free to fix the code and send a pull request if you want to.

predic8 avatar Mar 24 '22 10:03 predic8