[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Soap error debug - Server was unable to read request, There is an error in XML document

Asked by fworld in SOAP, Internet Protocols, Web APIs, PHP Scripting Language, PHP Frameworks

Tags: soap, error

I'm pretty new to SOAP. I'm attempting to make a soap call with PHP and I'm getting the following error from my call.

Array
(
    [faultcode] => soap:Client
    [faultstring] => Server was unable to read request. ---> There is an error in XML document (1, 561). ---> Input string was not in a correct format.
    [detail] =>
)

I'm using Nusoap to make the call. Here is a link to the wsdl, http://tnwebservices-test.ticketnetwork.com/tnwebservice/v3.0/WSDL/tnwebservice.xml

How do I go about debugging an xml error? Nusoap is creating and sending the xml document. Is there a way I can view the xml it is sending?

I've included the code I used to make the call.

Suggestions? How do I go about fixing this?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
$param = array(
  'websiteConfigID' => 'xoxoxoxoxoxoxoxoxoxoxoxoxox',
  'eventID' => '5829',
  'numberOfEvents' => 'null',
  'eventname' => 'null',
  'eventDate' => 'null',
  'beginDate' => 'null',
  'endDate' => 'null',
  'venueID' => 'null',
  'venueName' => 'null',
  'stateProvDesc' => 'null',
  'stateID' => 'null',
  'cityZip' => 'null',
  'nearZip' => 'null',
  'parentCategoryID' => 'null',
  'childCategoryID' => 'null',
  'grandchildCategoryID' => 'null',
  'performerID' => 'null',
  'performerName' => 'null',
  'noPerformers' => 'null',
  'lowPrice' => 'null',
  'highPrice' => 'null',
  'modificationDate' => 'null',
  'onlyMine' => 'null',
  'whereClause' => 'null',
  'orderByClause' => 'null');
					
					
//2008-10-15 - 50
//define path to server application
$serverpath = 'http://tnwebservices-test.ticketnetwork.com/tnwebservice/v3.0/tnwebservice.asmx';
 
//define method namespace
$namespace = "http://tnwebservices-test.ticketnetwork.com/tnwebservice/v3.0";
	
//client object 
$soapclient = new nusoapclient($serverpath);
	
//soap method
$soapAction = 'http://tnwebservices-test.ticketnetwork.com/tnwebservice/v3.0/GetEvents';
	
//make the cal and fetch the results
$result = $soapclient->call('GetEvents', $param, $namespace, $soapAction);
	
print_r($result);
 
Related Solutions
 
Loading Advertisement...
 
[+][-]08/12/09 02:11 AM, ID: 25076873Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/12/09 02:12 AM, ID: 25076883Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/15/09 03:36 AM, ID: 25104784Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/18/09 04:53 AM, ID: 25122119Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/18/09 04:53 AM, ID: 25122121Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08/18/09 05:34 AM, ID: 25122480Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08/18/09 09:32 AM, ID: 25125002Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08/18/09 12:37 PM, ID: 25126726Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625