wsdl2phpgenerator / wsdl2phpgenerator

Simple utility and class library for generating php classes from a wsdl file.
http://wsdl2phpgenerator.github.io/wsdl2phpgenerator
MIT License
810 stars 330 forks source link

soapClientClass requires leading slash. #314

Open SamMousa opened 7 years ago

SamMousa commented 7 years ago

When configuring using this approach:

[
    'namespaceName' => 'otherNS',
    'soapClientClass' => SomeNS\SoapClient::class
]

The generator does not use the absolute path to the soap client, leading to errors. Work around is to manually prefix the soap client class with \\.

kasperg commented 7 years ago

Thanks for the comment.

I think it would be nice if the generator ensures that the soapClientClass has a leading \.