473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

large return array => XML error parsing SOAP payload on line 1: unclosed token

I'm stuck with the following problem:

My nusoap-client calls a server-function giveCombination(). The
function giveCombination should return something like

array(
[0] => array(
'a_id' => 6,
'b_id' => 9,
'c_id' => 3,
'd_id' => 43,
'a' => 'test',
'b' => 'exb',
'c' => 'exc',
'd' => 'sdfkjh'

)
[1] => array(
etc..
)
)

Now, this return-array grows quite large. Growing beyond 15
combinations nusoaps' returned value is false and nusoap gives the
error: "XML error parsing SOAP payload on line 1: unclosed token"

Indeed, the client->resonse ends like:
"></ns1:giveCominationResponse></SOAP-ENV:Body></SOAP-ENV:Envelope"

This only happens when the return-array is counts more then 15. When I
manually limit the return-array, the data is being recieved normally by
the client. Now the 16th enty does NOT contain any strange characters.

The function giveCombination is registered like
$server->register('giveCombination',
array(),
array('return' => 'tns:xCombinations'),
'urn:myserver',
'urn:myserver#giveCombination',
'rpc',
'encoded',
'no comment'
);

and

$server->wsdl->addComplexType(
'xCombinations',
'complexType',
'array',
'',
'SOAP-ENC:Array',
array(),
array(array('ref'=>'SOAP-ENC:arrayType','wsdl:arrayType'=>'tns:xCombination[]')),
'xCombination'
);

$server->wsdl->addComplexType(
'xCombination',
'complexType',
'struct',
'all',
'',
array(
'a_id' => array('name' => 'a_id', 'type' => 'xsd:int'),
'b_id' => array('name' => 'b_id', 'type' => 'xsd:int'),
'c_id' => array('name' => 'c_id', 'type' => 'xsd:int'),
'd_id' => array('name' => 'd_id', 'type' => 'xsd:int'),
'a' => array('name' => 'a', 'type' => 'xsd:string'),
'b' => array('name' => 'b', 'type' => 'xsd:string'),
'c' => array('name' => 'c', 'type' => 'xsd:string'),
'd' => array('name' => 'd', 'type' => 'xsd:string')
)
);

Anyone any ideas how to solve my problem, any suggestions where to look
for?

Oct 10 '05 #1
0 6432

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Andrew James | last post by:
Gentlemen, I'm running into a problem whilst testing the parsing of a language I've created with TPG . It seems that for some reason, TPG balks when I try to parse an expression whose first...
15
by: Geoff Cox | last post by:
Hello, Can I separately declare and initialize a string array? How and where would I do it in the code below? It was created using Visual C++ 2005 Express Beta 2 ... In C# I would have ...
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
6
by: comp.lang.php | last post by:
if (!function_exists('bigfile')) { /** * Works like file() in PHP except that it will work more efficiently with very large files * * @access public * @param mixed $fullFilePath * @return...
2
by: andy | last post by:
I have a routine I call to post XML from vb.net to a url over http It can be the XML file can be quite a size sometime I expect it to exceed 10mb. I started using a routine to post the file to a...
5
by: John Nagle | last post by:
This, which is from a real web site, went into BeautifulSoup: <param name="movie" value="/images/offersBanners/sw04.swf?binfot=We offer fantastic rates for selected weeks or days!!&blinkt=Click...
11
by: Joseph Geretz | last post by:
I've been looking at two approaches for the maintenance of Session state for a Web Service application. One approach uses the old familiar Session object which I've used in the past for Web...
0
by: palabat | last post by:
Hello. I'm getting this error , "XML error parsing SOAP payload : Empty Document" when I try to execute a NuSOAP client in consuming a .NET web service. The response from the web service server...
2
by: Zvi | last post by:
Hi All, Can someone tell me why id the following not working? I have a soap response envelope, for test purpose it's just a string and I create ElementTree from it. Then I try to find Response...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.