• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Nusoap and operation header

I'm having a problem with nusoap library. This is one of the operation in the wsdl:

<wsdl:operation name="consultarUbicaciones">
    <soap:operation soapAction="" style="document" />
    <wsdl:input name="consultarUbicaciones">
        <soap:header message="ns1:consultarUbicaciones" part="usuario" use="literal"></soap:header>
        <soap:header message="ns1:consultarUbicaciones" part="proveedor" use="literal"></soap:header>
        <soap:header message="ns1:consultarUbicaciones" part="password" use="literal"></soap:header>
        <soap:body parts="parameters" use="literal" />
    <wsdl:output name="consultarUbicacionesResponse">
        <soap:body use="literal" />

This is one of the operations in the wsdl, and required send usuario, proveedor and password, but are not part of the params of the function. I tried different ways but without success.



    $ws = new soapclient('http://url.com?wsdl',true);

    $header = array(
        'usuario' => 'zzzz',
        'proveedor' => 'zzzz',
        'password' => 'zzzz'

    $ret = $ws->call('consultarUbicaciones',array(),'','',$header);


Anyone can help me and say what I'm doing wrong?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.