Solved

Why is __getLastRequest() returning null?

Posted on 2015-02-01
1
424 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:
RQuadling 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
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…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now