SOAP alternative to WADL in PHP

1

I'm trying to send some parameters to the pounds file? wadl via POST from SOAP, but from what I'm understanding SOAP does not recognize the WADL format.

I tried to use some things like Httpful and PHP REST Client, but in neither of them did the post for this file work.

    try 
    {  
        //funcao que sera executada pelo servidor
        $function = 'revisionRequestInfo';

        //Caminho onde sera salvo esse arquivo WSDL ( WADL )
        $options = array( 'location' => 'myURl/services/libras/request/revision' );

        //parametros para gerar o arquivo WDLS ( WADL )
        $arguments = array( 'revisionRequestInfo' => array(
                        'identifier' => 'testIdentifier',
                        'institution' => 'testInstitution',
                        'department' => 'testDepartment',
                        'email' => 'testEmail',
                        'reason' => 'reason' 
                ));

        //caminho onde o arquivo WSDL ( WADL ) esta
        $client = new SoapClient( null, array( 
                    'location' => 'myURL/libras?_wadl'
                     ) );

    //chama o client SOAP 
    $result = $client->__soapCall( $function, $arguments, $options );

    }
    catch ( SoapFault $E ) 
    {  
        echo $E->faultstring ; 
    }
    
asked by anonymous 10.07.2015 / 17:04

1 answer

0

This way is correct, the error was that the server sent me the path forcing the entry on port 8080 and SoapClient was not recognizing the path to the server.

    
14.07.2015 / 20:30