GoDaddy.com Hosting

Penth

Senior member
Mar 9, 2004
933
0
0
Does anyone have a site hosted with GoDaddy.com that uses SOAP or has setup a web service. I have a site with siteturn.com and my web service that works perfectly fine on my home server doesn't work when I put it on our hosted site. I tried it with the free godaddy.com hosting because I have some domain names through them, but part of their header information adds that banner so I can't really test it.

Thanks for any help.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
More details needed. If you're just doing regular old http over port 80 then it's unlikely that it's the host's fault. You've probably misconfigured something in your test.
 

Penth

Senior member
Mar 9, 2004
933
0
0
OK, the test function is just a tax calculator, so the numbers that go in are sub=25 and rate=20 so 25 * 1.2 = 30 so the function is supposed to kick out 30. When run on my server if I do echo $client->response; I get this:

HTTP/1.1 200 OK Date: Tue, 08 Aug 2006 03:54:31 GMT Server: Apache/2.0.55 (Win32) PHP/4.4.2 X-Powered-By: PHP/4.4.2 X-SOAP-Server: NuSOAP/0.7.2 (1.94) Content-Length: 511 Connection: close Content-Type: text/xml; charset=ISO-8859-1 30

So that's the HTTP header with the proper response at the end.

If I run it on my site hosted with siteturn I get this:

HTTP/1.1 200 OK Date: Tue, 08 Aug 2006 03:06:17 GMT Server: Apache/1.3.27 (Unix) (Red-Hat/Linux) mod_ssl/2.8.12 OpenSSL/0.9.6b DAV/1.0.3 PHP/4.2.3 mod_perl/1.26 FrontPage/5.0.2 X-Powered-By: PHP/4.2.3 Connection: close Content-Type: text/html

and if I run it on the godaddy free server I get this:

HTTP/1.1 200 OK Date: Tue, 08 Aug 2006 04:02:06 GMT Server: Apache X-Powered-By: ModLayout/3.2.1 Cache-Control: no-cache Connection: close Content-Type: text/html


 

Penth

Senior member
Mar 9, 2004
933
0
0
Also, I don't know if you've seen the godaddy header for their free hosting, but it puts that twice if I echo the $client->response; So I'm thinking my header is being replaced by whatever they are doing there.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
When you say header, do you mean http header or the top of your document?

Are you manually setting the content type in your script (I assume we're talking about php here)?

Why are we talking about soap and returning xml but then returning a plain integer in the http body?
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
You say "adds that banner" which implies that something along the lines of <img******="some-ad.jpg"> is being added to the content that your application is returning. is that the case?

If so, it should be obvious why it's not working. If that's not the case, then clarify your question.
 

Penth

Senior member
Mar 9, 2004
933
0
0
I mean the actual HTTP header. This comes from Charles Web Proxy

The header is only this: Server: Apache
X-Powered-By: ModLayout/3.2.1
Cache-Control: no-cache
Connection: close
Content-Type: text/html

and the page content is this:

<html>
<head>
<title>Tax calculator Client</title>
</head>
<body>
<h1>Tax calculated:</h1>
$HTTP/1.1 200 OK
Date: Thu, 10 Aug 2006 08:01:11 GMT
Server: Apache
X-Powered-By: ModLayout/3.2.1
Cache-Control: no-cache
Connection: close
Content-Type: text/html


<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:taxCalcResponse xmlns:ns1="http://tempuri.org"><return xsi:type="xsd:float">24</return></ns1:taxCalcResponse></SOAP-
NV:Body></SOAP-ENV:Envelope></object></layer></span>
lt;/div></table></body></html><!-- adsok -->
<script language='javascript' src='<a target=_blank class=ftalternatingbarlinklarge href="https://a12.alphagodaddy.com/hosting_ads/gd01.js">https://a12.alphagodaddy.com/hosting_ads/gd01.js</a>'></script>
</body>
</html></object></layer></span></div></table></body></html><!-- adsok -->
<script language='javascript' src='<a target=_blank class=ftalternatingbarlinklarge href="https://a12.alphagodaddy.com/hosting_ads/gd01.js">https://a12.alphagodaddy.com/hosting_ads/gd01.js</a>'></script>



If it's on my local server at address http://server/taxCalcClient.php?rate=20&sub=20 it says this in the header:

HTTP/1.1 200 OK
Date: Thu, 10 Aug 2006 08:01:11 GMT
Server: Apache
X-Powered-By: ModLayout/3.2.1
Cache-Control: no-cache
Connection: close
Content-Type: text/html

and this in the body:

<html>
<head>
<title>Tax calculator Client</title>
</head>
<body>
<h1>Tax calculated:</h1>
$24HTTP/1.1 200 OK
Date: Thu, 10 Aug 2006 07:58:54 GMT
Server: Apache/2.0.55 (Win32) PHP/4.4.2
X-Powered-By: PHP/4.4.2
X-SOAP-Server: NuSOAP/0.7.2 (1.94)
Content-Length: 511
Connection: close
Content-Type: text/xml; charset=ISO-8859-1

<?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:taxCalcResponse xmlns:ns1="http://tempuri.org"><return xsi:type="xsd:float">24</return></ns1:taxCalcResponse></SOAP-ENV:Body></SOAP-ENV:Envelope></body>
</html>


So as of now it looks like both sites are passing back the correct value, but for some reason the client can't accept the value from the godaddy server. Maybe I'll have to pay for the hosting and see if it works.

On a side note, does anyone have any idea when Conroe based servers will start replacing these P4s? I want to get a dedicated host but a P4 ain't my bag.

 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
Originally posted by: Penth
So as of now it looks like both sites are passing back the correct value, but for some reason the client can't accept the value from the godaddy server.
Err, no. Both sites are passing back very wrong values. There's no way you should be getting duplicate http headers, especially on a machine that you control.

Where is this crap coming from?:
<html>
<head>
<title>Tax calculator Client</title>
</head>
<body>
<h1>Tax calculated:</h1>
 

Penth

Senior member
Mar 9, 2004
933
0
0
That crap is just in the client file above the php code. I should have clarified that.

Also, when I say both sites are passing back the correct value I meant my own server and the godaddy server. I don't mean that the entire header is correct, only the number at the end. The function just returns (sub*rate/100)+sub, so the godaddy site is semi-working when it returns 24. It is also just passing back a bunch of other crap with it that breaks the script.
 

kamper

Diamond Member
Mar 18, 2003
5,513
0
0
I don't understand how it works in the first place on your own machine. That extra stuff should be more than enough to confuse any client. I'd imagine that to do it properly you have to have '<?php' as the very first characters in your php file so that the headers don't get flushed before nusoap does its thing. So yeah, the ads are probably the difference, but I wouldn't let the other stuff go either.