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

Handling Namespaces #8

Closed
rhelms opened this issue May 22, 2014 · 1 comment
Closed

Handling Namespaces #8

rhelms opened this issue May 22, 2014 · 1 comment
Assignees
Labels

Comments

@rhelms
Copy link
Contributor

rhelms commented May 22, 2014

If I have a class that I want to generate a WSDL for, and it has a namespace, the resulting targetNamespace in the WSDL will generate an invalid URI.

For example

namespace App\Controller;

use WSDL\WSDLCreator;

$wsdl = new WSDLCreator('\App\Controller\ExampleSoapServer', 'http://localhost/ExampleSoapServer.php');
$wsdl->setNamespace('http://localhost/');

$wsdl->renderWSDL();

class ExampleSoapServer {
    ...
}

generates

<definitions 
    name="\App\Controller\ExampleSoapServer"     
    targetNamespace="http://localhost/\app\controller\examplesoapserver"
    xmlns:tns="http://localhost/\app\controller\examplesoapserver" 
    ....

Either the namespace should be stripped from the end class name, or the slashes in the fully qualified class name should be converted for use in the URI, and the leading slash removed, so there isn't a double slash.

@rhelms
Copy link
Contributor Author

rhelms commented May 22, 2014

Nevermind. I followed the composer instructions from master, and had installed 1.0.0. I've updated to 1.* in composer, which installed 1.1.1, and it now works.

@rhelms rhelms closed this as completed May 22, 2014
@piotrooo piotrooo self-assigned this Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants