Solved

Why is __getLastRequest() returning null?

Posted on 2015-02-01
1
494 Views
Last Modified: 2016-02-16
<?php
$WDSL = 'http://localhost/QB_build_20130416/QuickBooks/TEST.wsdl';

$client = new SoapClient( $WDSL, array('trace' => 1)); 
var_dump($client->__getFunctions());
var_dump($client->__getLastRequest());
?>

Open in new window


The dumps:
array (size=8)
  0 => string 'serverVersionResponse serverVersion(serverVersion $parameters)' (length=62)
  1 => string 'clientVersionResponse clientVersion(clientVersion $parameters)' (length=62)
  2 => string 'authenticateResponse authenticate(authenticate $parameters)' (length=59)
  3 => string 'sendRequestXMLResponse sendRequestXML(sendRequestXML $parameters)' (length=65)
  4 => string 'receiveResponseXMLResponse receiveResponseXML(receiveResponseXML $parameters)' (length=77)
  5 => string 'connectionErrorResponse connectionError(connectionError $parameters)' (length=68)
  6 => string 'getLastErrorResponse getLastError(getLastError $parameters)' (length=59)
  7 => string 'closeConnectionResponse closeConnection(closeConnection $parameters)' (length=68)
null

Open in new window

It seems the __getFunctions request is being processed, so why does __getLastRequest return null if I've enabled trace??
0
Comment
Question by:SAbboushi
1 Comment
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 500 total points
ID: 40583735
You've not made a request.

__getFunctions() isn't a SOAP request (as such), just a parse of the WSDL structure.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question