Solved

Why is __getLastRequest() returning null?

Posted on 2015-02-01
1
536 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 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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 …

726 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