SOAP PHP Client returns missing params but soapUI works fine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • randyrr
    New Member
    • Apr 2012
    • 1

    SOAP PHP Client returns missing params but soapUI works fine

    I created the following php soap client and the service continues to report missing or invalid adminPassword, version. When I use soapUI the method and parameters passed works fine, so not sure why the php client not is working.

    I'm also getting a Notice msg so not sure if that has anything to do w/ it "Notice: Array to string conversion in /var/www/html/index.php on line 5 stdClass"

    Response: ( [method] => getUsageReport_ v1 [statusCode] => GEN006 [statusMessage] => The following required parameters are missing or invalid: adminPassword,v ersion. [version] => 1.0 [monthlyReceiveR eports] => [monthlySendRepo rts] => [receiveReports] => [sendReports] => )

    Client (masking adminId and adminPassword):

    $client = new SoapClient("htt ps://www.efaxcorpora te.com/corp/services/CorpAdmin?wsdl" );
    $parm = array("adminId" => "*****","versio n" => "1.0", "adminPassw ord" => "***",);
    print_r($client->getUsageReport _v1(array($parm )));

    Thanks for any help on this
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    what data type does getUsageReport_ v1() expect?

    which is line 5?

    Comment

    Working...