NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
NuSoap and php 5.2.2
Site Admin

Joined: 13 Jul 2003
Posts: 7826
Reply with quote
You may experience problems running NuSoap library with php version 5.2.2 due to a known bug in this particular version. It's been fixed in CVS snapshot and fix will be available in 5.2.3/5.3.x, whatever comes first.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 10 May 2007
Posts: 1
Reply with quote
Does that explain why "Error: Response not of type text/xml" began appearing in one of my scripts after upgrading to PHP 5.2.2? It appears that the "?wsdl" suffix is dropped or ignored and the server script is returning the HTML documentation instead of an XML/SOAP response.

Upgrading NuSoap to 0.7.2 (1.104) does not resolve the issue.
View user's profileFind all posts by user2037Send private message


Joined: 15 May 2007
Posts: 1
Reply with quote
@ user2037

I have the same issue with yours and after upgrading to snapshot version I get no more error.
View user's profileFind all posts by sunsuronSend private message


Joined: 08 Mar 2007
Posts: 1
Location: NH
Reply with quote
Other than getting the latest PHP snapshot... or downgrading to 5.2.1, is there a workaround?
View user's profileFind all posts by troySend private message


Joined: 09 Jun 2007
Posts: 4
Reply with quote
Hi THere,

I am also trying to run web services using PHP 5.2 - with no success !

What is CVS snapshot ?

Are there any other workarounds other than using an earlier version of PHP ?

Steven M
View user's profileFind all posts by ksmatthewsSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 7826
Reply with quote
5.2.3 and 5.2.1 are supposed to work fine.
5.2.2 - won't

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 19 Aug 2006
Posts: 76
Reply with quote
ksmatthews wrote:
Hi THere,

I am also trying to run web services using PHP 5.2 - with no success !

What is CVS snapshot ?

Are there any other workarounds other than using an earlier version of PHP ?

Steven M



At your own risk:
Code:

if (phpversion() == "5.2.2")
{
    $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents("php://input");
}
View user's profileFind all posts by jlSend private message


Joined: 31 Jul 2007
Posts: 3
Reply with quote
I'm getting the same thing (response not text/xml) using php 5.2.3 and nusoap 0.7.2 on freebsd 6.2.

The previous machine this was running on had php 4.4.4 and nusoap 0.7.2 on freebsd 6.1-p11

The soap functions do mssql queries by way of freetds which has also been upgraded from 0.63 to 0.64. Freetds seems to be setup correctly as I can do everything I need to from php to mssql when not using nusoap.

I've checked for whitespace - doesn't seem to be any there. And going directly to the page (eg index.php) to view the API (grey banner and purple box with funcitons listed) works fine and then clicking the WSDL link to view the xml also works fine.

I'm starting to run dry on what could be the problem. Is it definitely fixed in php 5.2.3?
Could it be something more general like switching from php 4.x to 5.x?
View user's profileFind all posts by gtaitSend private message


Joined: 31 Jul 2007
Posts: 3
Reply with quote
I've narrowed it down - nusoap is working, it's just when used with the mssql functions that there's a problem. When I figure it out, I'll post the problem / solution in a different thread since it's not relevant to this one.
View user's profileFind all posts by gtaitSend private message


Joined: 10 Jan 2011
Posts: 1
Reply with quote
Thank you so much for the great help,i really appreciate it...


View user's profileFind all posts by ailiah27Send private messageYahoo Messenger
NuSoap and php 5.2.2
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