Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IATA NDC schemas 16.2 not working #38

Closed
nerijusza opened this issue Aug 19, 2017 · 2 comments
Closed

IATA NDC schemas 16.2 not working #38

nerijusza opened this issue Aug 19, 2017 · 2 comments

Comments

@nerijusza
Copy link

This package is really awesome. Tried on some simpler xsd it works perfect. Thank you for your work.

Now trying to use for IATA NDC schemas and it does not work. More about NDC:
http://www.iata.org/whatwedo/airline-distribution/ndc/Pages/default.aspx

Schemas location:
https://github.com/iata-ndc/ndc-xsd-162

Sample xml RQ/RS location:
https://github.com/iata-ndc/ndc-xml-162

Basically you can try deserialize any of sample message and should get error. IATA really big player, and schemas are used by many big systems. So I think is correct.

Can not serialize or deserialize. Fatal error occurs when serializer trying to load generated php class from metadata. I think wrong metadata is generated from xsd.

Added 4 tests. First three tests trying to deserialize sample xml to objects, fourth test trying to serialize created object to xml. Results:

  1. Fatal error: Uncaught ReflectionException: Class TestNs\MyApp\SeatAvailabilityRQ\TravelersAType\TravelerAType does not exist in
  2. Fatal error: Uncaught ReflectionException: Class TestNs\MyApp\SellerCoreRepType\ContactsAType\ContactAType does not exist in
  3. OK. Trying to deserialize same data as in case "2", but removed xml part which failing.
  4. Fatal error: Uncaught ReflectionException: Class TestNs\MyApp\SellerCoreRepType\ContactsAType\ContactAType does not exist in

Please see attached files.

files no generated data.zip
files with generated data.zip

@goetas
Copy link
Member

goetas commented Aug 23, 2017

can you share the scrip used to generate the classes and metadata?

obviously the SellerCoreRepType is missing. now is to figure out why...

@goetas
Copy link
Member

goetas commented Aug 23, 2017

solved with #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants