Forum Moderators: coopster

Message Too Old, No Replies

PHP serialization problem.

         

npulis

9:27 pm on Jan 25, 2010 (gmt 0)



Hi,

I have an array to pass to a WSDL service. When i serialize the array, it will fail to be valid for the WSDL service. It may be because of some characters which could be found in the array, such as / \ " or '.

To serialize the array i use serialize($arr);

But when i pass it over to the WSDL I get the below error. I couldn't find any way what is exactly the problem and how its best to solve it. If anyone could give me his/ her opinion on this, it would be greatly appreciated.

Error below:

Fatal error: Uncaught SoapFault exception: [Sender] SOAP-ERROR: Encoding: string 'a:16:{s:2:"id";N;s:5:"title";s:16:"Dark Void review";s:7:"summary";s:118:"The final battle between Guybrush and Le Chuck in both the physical and spirit world in the season finale of the tales";s:7:"extract";s:16:"dark-void-review";s:7:"content";s:4559:"Published by Capcom, Dark Void promises to bring the concept of a vertical combat game with the same experience which old school players had when they used to play games such as Rocket Ranger way back in 1988 by Cinemaware which was inspired by the Rocketeer comic. At that time the Rocket Ranger used to fly around with his jet pack putting down Nazi planes and deadly zeppelins. <br><br>This time, our hero will be in-stated in a parallel universe being Rocket Ranger from way back in the 1950\'s sci-fi series but in an Avatar style world. Unfortunately the game\'s presentation isn\'t clear on the story and the background of our hero, but basically the main character William Augustus (V in E:\wamp\www\lucidlan2\post_manage\post_database.php on line 139

JS_Harris

1:43 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Some ideas

- Allow enough time before a timeout is triggered, for testing purposes set it extremely high.

- The error suggests your computers drive E is the sender, are you trying to send this from the net or your computer?

- Do you have the most recent version of PHP running? Also, one script I debugged required "nusoap_client" instead of "nusoapclient"

Without seeing the code these are shots in the dark.