NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Error including a file


Joined: 24 Jan 2008
Posts: 2
Reply with quote
hi there.

I really need a little help with something I'm stuck on.

First....I'm kind of new to web services....and certainly to Nusoap as well.

I did a lot of research....viewed many examples....and I managed to write a server and a client....both working perfect for a while.....But a problem got in my way when I wanted to extract some part of the server code (a class with DB connection)....and put it in a different php file....so i could "include" it via "require" in many web services I'm about to write.

So...if I let the db connection class within the server code....everything goes ok.....But....if I put the class in another php file and include it via "require" in my server code....an error message is displayed with my client....

Error description.
"XML error parsing SOAP payload on line 2: Invalid document end"

Any ideas ??

If you need server and/or client code....I can paste it here.


BTW...the WSDL file looks fine with or without the db connection class

Thank you in advance.

Pablo.
View user's profileFind all posts by BartisoftSend private message
Problem Solved !!


Joined: 24 Jan 2008
Posts: 2
Reply with quote
I had to remove some extra lines outside <?php...?> in the php file included. That's all.

All credit to dmitri and his quick answer through private message.


Pablo
View user's profileFind all posts by BartisoftSend private message
Error including a file
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic