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

Include all files from classMap manually #295

Open
cherrycoding opened this issue Jun 28, 2023 · 5 comments
Open

Include all files from classMap manually #295

cherrycoding opened this issue Jun 28, 2023 · 5 comments
Assignees

Comments

@cherrycoding
Copy link

Hi,
when I run the tutorial.php I am getting an error:
Fatal error: Uncaught Error: Class 'ServiceType\Create' not found
ClassMap is included do I have to include all ServiceTypes, StructTypes and Enum manually? Because I got more than 500 files from the generator (it's a large wsdl)
Or is there any full tutorial about how to work with the StructTypes?
Thanks

@mikaelcom
Copy link
Member

The tutorial.php file contains a line, require_once __DIR__ . '/vendor/autoload.php'; loading the composer autoloader class which takes care of loading any used class imported or used with its FQCN such as in https://github.com/WsdlToPhp/PackageEws365/blob/develop/tutorial.php.

@mikaelcom mikaelcom self-assigned this Jun 28, 2023
@cherrycoding
Copy link
Author

Thanks for your reply, I have this line in my file for the autoloader like generated from your class but I am still getting the error:
Fatal error: Uncaught Error: Class 'ClassMap' not found

@mikaelcom
Copy link
Member

Are you under Windows or a Unix system? Do you have a vendor dir with composer subdir and autoload files?

@cherrycoding
Copy link
Author

I am running it on my managed server (ubuntu) and yes I have vendor directory with sub dirs like (bin, composer, wsdl2php, autoload.php).

@mikaelcom
Copy link
Member

Did you succeed to make it work? I sincerely don't know why you can't make it work otherwise, you have to debug it on your side. Feel free to inform me about your discovery

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

No branches or pull requests

2 participants