Alternative SOAP to WADL in PHP

Asked

Viewed 206 times

1

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

I tried to use some things like Httpful and PHP REST Client, but in neither of the two the post for that file worked.

    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 ; 
    }

1 answer

0


this way is correct, the error was that the server sent me the path forcing the input on port 8080 and Soapclient was not recognizing the path to the server.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.