Solved

Why is __getLastRequest() returning null?

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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

729 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