Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Why is __getLastRequest() returning null?

Posted on 2015-02-01
1
Medium Priority
?
680 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 40

Accepted Solution

by:
Richard Quadling earned 2000 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

Threat Trends for MSPs to Watch

See the findings.
Despite its humble beginnings, phishing has come a long way since those first crudely constructed emails. Today, phishing sites can appear and disappear in the length of a coffee break, and it takes more than a little know-how to keep your clients secure.

Question has a verified solution.

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

Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

597 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