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

Problem wraper #37

Closed
blueblazerchrist opened this issue Apr 10, 2017 · 0 comments
Closed

Problem wraper #37

blueblazerchrist opened this issue Apr 10, 2017 · 0 comments
Assignees
Labels

Comments

@blueblazerchrist
Copy link

I want to generate something like this you can help me

? ?

this is my class soap
class ServerController extends Controller
{

public function __construct() {

    ini_set('soap.wsdl_cache_enabled', 0);
    ini_set('soap.wsdl_cache_ttl', 0);
    ini_set('default_socket_timeout', 300);
    ini_set('max_execution_time', 0);
}

public function wsdlCreator()
{

	$location = url('url');
    $namespace = $location;
    $class = "\\App\\Http\\Controllers\\class";

    $wsdl = new WSDLCreator($class, $location);
    $wsdl->setBindingStyle(new RpcEncoded());
    // $wsdl->setBindingStyle(new DocumentLiteralWrapped());
    $wsdl->setNamespace($namespace);

    if (isset($_GET['wsdl'])) {
        $wsdl->renderWSDL();
        exit;
    }

    $wsdl->renderWSDLService();

    $server = new \SoapServer(
        url('url?wsdl'),
        array(
            'exceptions' => 1,
            'trace' => 1,
        )
    );

    $server->setClass('App\Http\Controllers\class');
    $server->handle();
    exit;
}

}

@piotrooo piotrooo self-assigned this Apr 7, 2018
@piotrooo piotrooo closed this as completed 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