Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I solve the "Response not of type text/xml: text/html" Error?
    primarykey
    data
    text
    <p>I am trying to communicate with a web service, but keep on getting this error message: "Response not of type text/xml: text/html" How do I resolve this issue?</p> <p>Below is my Client php code generating a request:</p> <pre><code>&lt;?php // Pull in the NuSOAP code require_once('lib/nusoap.php'); // Create the client instance $client = new nusoap_client('http://www.atomtel.com/MobileCashPayout.asmx'); // Check for an error $client = new nusoap_client('http://www.atomtel.com/MobileCashPayout.asmx'); $err = $client-&gt;getError(); if ($err) { // Display the error echo '&lt;h2&gt;Constructor error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;'; // At this point, you know the call that follows will fail } // Call the SOAP method //$result = $client-&gt;call('hello', array('name' =&gt; 'Scott')); //$client = new SoapClient("some.wsdl", array('soap_version' =&gt; SOAP_1_1)); $result = $client-&gt;call('Payout', array('testmerc', 'testmerc', '256750000005', '256753986532', '256750000005','100.00','2222', '', 'BETNET')); // Check for a fault if ($client-&gt;fault) { echo '&lt;h2&gt;Fault&lt;/h2&gt;&lt;pre&gt;'; print_r($result); echo '&lt;/pre&gt;'; } else { // Check for errors $err = $client-&gt;getError(); if ($err) { // Display the error echo '&lt;h2&gt;Error&lt;/h2&gt;&lt;pre&gt;' . $err . '&lt;/pre&gt;'; } else { // Display the result echo '&lt;h2&gt;Result&lt;/h2&gt;&lt;pre&gt;'; print_r($result); echo '&lt;/pre&gt;'; } } ?&gt; &lt;?php // Display the request and response echo '&lt;h2&gt;Request&lt;/h2&gt;'; echo '&lt;pre&gt;' . htmlspecialchars($client-&gt;request, ENT_QUOTES) . '&lt;/pre&gt;'; echo '&lt;h2&gt;Response&lt;/h2&gt;'; echo '&lt;pre&gt;' . htmlspecialchars($client-&gt;response, ENT_QUOTES) . '&lt;/pre&gt;'; ?&gt; </code></pre> <p>Then the Error message I get I get: <code>Error</code></p> <pre><code>Response not of type text/xml: text/html </code></pre> <p>Request As you can see the request is done in text/xml format however...</p> <pre><code>POST /MobileCashPayout.asmx HTTP/1.0 Host: www.atomtel.com User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml; charset=ISO-8859-1 SOAPAction: "" Content-Length: 971 &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;&lt;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/"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns6434:Payout xmlns:ns6434="http://tempuri.org"&gt;&lt;__numeric_0 xsi:type="xsd:string"&gt;testmerc&lt;/__numeric_0&gt;&lt;__numeric_1 xsi:type="xsd:string"&gt;testmerc&lt;/__numeric_1&gt;&lt;__numeric_2 xsi:type="xsd:string"&gt;256750000005&lt;/__numeric_2&gt;&lt;__numeric_3 xsi:type="xsd:string"&gt;256753986532&lt;/__numeric_3&gt;&lt;__numeric_4 xsi:type="xsd:string"&gt;256750000005&lt;/__numeric_4&gt;&lt;__numeric_5 xsi:type="xsd:string"&gt;100.00&lt;/__numeric_5&gt;&lt;__numeric_6 xsi:type="xsd:string"&gt;2222&lt;/__numeric_6&gt;&lt;__numeric_7 xsi:type="xsd:string"&gt;&lt;/__numeric_7&gt;&lt;__numeric_8 xsi:type="xsd:string"&gt;BETNET&lt;/__numeric_8&gt;&lt;/ns6434:Payout&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt; </code></pre> <p>Response ....the response comes back in text/html format. This is what the client has an issue with. Any suggestions are welcome.</p> <pre><code>HTTP/1.1 200 OK Date: Mon, 16 Jul 2012 23:40:19 GMT Server: IBM_HTTP_Server Last-Modified: Thu, 20 Oct 2011 17:26:13 GMT Content-Length: 13726 Cache-Control: public Connection: close Content-Type: text/html Content-Language: en &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;title&gt;atomtel&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt; &lt;TITLE&gt;atomtel Prepaid mobile plans and hello tunes, atomtel postpaid plans &lt;/TITLE&gt; &lt;META NAME="Description" CONTENT="atomtel offers mobile plans that fits customers necessity, atomtel prepaid and postpaid plans with hello tunes services "/&gt; &lt;META NAME="Keywords" CONTENT="atomtel prepaid, atomtel postpaid, atomtel mobile plans, atomtel postpaid plans, atomtel postpaid plan, atomtel prepaid plans, atomtel prepaid plan, atomtel hello tunes, hello tunes, atomtel prepaid mobile plans, atomtel prepaid mobile plan, atomtel hello tune, hello tune services"/&gt; &lt;META NAME="robots" CONTENT="index, follow"&gt; &lt;META name="distribution" content="global"&gt; &lt;meta name="language" content="EN-US"&gt; &lt;meta name="doc-type" content="Public"&gt; &lt;link href="/wps/wcm/404_page/404_page/css/style.css" rel="stylesheet" type="text/css" /&gt; &lt;link href="/wps/wcm/404_page/404_page/css/for_you.css" rel="stylesheet" type="text/css" /&gt; &lt;script type="text/javascript"&gt; function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i&lt;a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function pre_s() { document.getElementById('pre_a').style.display='block'; document.getElementById('pre').style.display='none'; document.getElementById('post').style.display='block'; document.getElementById('post_a').style.display='none'; document.getElementById('content_one').style.display='block'; document.getElementById('content_two').style.display='none'; } function post_s() { document.getElementById('pre_a').style.display='none'; document.getElementById('pre').style.display='block'; document.getElementById('post').style.display='none'; document.getElementById('post_a').style.display='block'; document.getElementById('content_one').style.display='none'; document.getElementById('content_two').style.display='block'; } &lt;/script&gt; &lt;script type="text/javascript" src="/wps/wcm/404_page/404_page/js/jquery-1.4.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" SRC="/wps/wcm/404_page/404_page/js/new_menu.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/wps/wcm/404_page/404_page/js/jquery.cycle.all.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/wps/wcm/404_page/404_page/js/main.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="/wps/wcm/404_page/404_page/js/common.js"&gt;&lt;/script&gt; &lt;link href="/wps/wcm/404_page/404_page/css/menu.css" rel="stylesheet" type="text/css" /&gt; &lt;link href="/wps/wcm/404_page/404_page/css/smenu.css" rel="stylesheet" type="text/css" /&gt; &lt;/head&gt; &lt;body&gt; &lt;table width="770" border="0" align="center" cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td bgcolor="#FFFFFF" class="main_container"&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td width="160" align="left" valign="middle" id="header_logo"&gt;&lt;a href="http://www.atomtel.in/"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/atomtel_Logo.PNG" alt="" border="0" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td align="right" valign="middle" class="arial11lightgrey" id="topnav"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/about+bharti+atomtel/Bharti+atomtel/About+bharti+atomtel/?WCM_Page.ResetAll=TRUE&amp;CACHE=NONE&amp;CONTENTCACHE=NONE&amp;CONNECTORCACHE=NONE&amp;SRV=Page" class="arial11lightgrey"&gt;About bharti atomtel&lt;/a&gt;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&amp;nbsp;&lt;a href="http://atomtel.in/wps/wcm/connect/about+bharti+atomtel/Bharti+atomtel/Investor+Relations/? WCM_Page.ResetAll=TRUE&amp;amp;CACHE=NONE&amp;amp;CONTENTCACHE=NONE&amp;amp;CONNECTORCACHE=NONE&amp;amp;SRV=Page" class="arial11lightgrey"&gt;Investor Relations&lt;/a&gt;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&amp;nbsp;&lt;a href="http://www.atomtel.in/wps/wcm/connect/about+bharti+atomtel/Bharti+atomtel/Media+Centre/" class="arial11lightgrey"&gt;Media Centre&lt;/a&gt;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&lt;a href="http://www.atomtel.in/wps/wcm/connect/about+bharti+atomtel/Bharti+atomtel/Careers/" class="arial11lightgrey"&gt;Careers&lt;/a&gt;&amp;nbsp;&amp;nbsp;| &amp;nbsp;&amp;nbsp;&lt;a href="http://www.atomtel.in/wps/wcm/connect/about+bharti+atomtel/Bharti+atomtel/Contact+Us/" class="arial11lightgrey"&gt;Contact Us&lt;/a&gt;&lt;/td&gt; &lt;td valign="middle" class="topsearch"&gt;&lt;input name="textfield2" type="text" class="search_txtbox" id="textfield2" value="search" onfocus="if (this.value == 'search') { this.value=''; }" onblur="if (this.value == '') { this.value='search'; }" /&gt; &lt;a href="#"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/search_button.gif" alt="" width="24" height="20" border="0" align="top" class="search_btn" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td width="66" valign="top"&gt;&lt;a href="http://www.atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/for_me.gif" alt="For Me" width="66" height="21" border="0" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td width="1" valign="top"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/top_separator.gif" width="1" height="21" /&gt;&lt;/td&gt; &lt;td width="140" valign="top"&gt;&lt;a href="http://www.atomtel.in/wps/wcm/connect/atomtelinAES/AES/Home/"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/for_enterprise.gif" alt="For Enterprise Business" width="140" height="21" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td valign="top"&gt;&amp;nbsp;&lt;/td&gt; &lt;td width="54" valign="top" style="padding-bottom: 5px;"&gt;&lt;a href="http://atomtel.in/social/"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/social-icon.jpg" width="118" height="27" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td width="70" valign="top" style="padding-top:5px;"&gt;&lt;a href="https://ebpp.atomtelworld.com/cares/wps/myportal"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/my_atomtel.gif" alt="My atomtel" width="70" height="21" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td width="6" valign="top"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/nav_left_corner.gif" width="6" height="36" /&gt;&lt;/td&gt; &lt;td align="left" valign="bottom" class="mainmenu" id="sitenav"&gt;&lt;ul class="nav-container"&gt; &lt;li id="nav1" class="nav"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/foryou/mobile/" id="nav_mobile" &gt;Mobile&lt;/a&gt; &lt;div class="nav_menu"&gt; &lt;div class="nav_menu_outer"&gt; &lt;div class="colimg"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/mega_mobile.gif" width="28" height="45" alt="Mobile" /&gt;&lt;/div&gt; &lt;div class="nav_menu_inner"&gt; &lt;div class="nav_menu_links"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/forme_newuser/mobile/prepaid+services/"&gt;Prepaid Plans&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/forme_newuser/mobile/postpaid+services/"&gt;Postpaid Plans&lt;/a&gt;&lt;/li&gt; &lt;li class="last"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel_Live/Home/"&gt;Hello Tunes&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt;&lt;img src="/wps/wcm/404_page/404_page/images/nav_separator.gif" width="4" height="36" /&gt;&lt;/li&gt; &lt;li id="nav2" class="nav"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/forme_newuser/broadband+and+fixed+line/" id="nav_broadband"&gt;Broadband &amp;amp; Fixed Line&lt;/a&gt; &lt;div class="nav_menu"&gt; &lt;div class="nav_menu_outer"&gt; &lt;div class="colimg"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/mega_broadband.gif"/&gt;&lt;/div&gt; &lt;div class="nav_menu_inner"&gt; &lt;div class="nav_menu_links"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/foryou/broadband+and+fixed+line/broadband/"&gt;Broadband Plans&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/foryou/broadband+and+fixed+line/fixed+line/tariffs/"&gt;Fixed Fine Tariffs&lt;/a&gt;&lt;/li&gt; &lt;li class="last"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/forme_newuser/broadband+and+fixed+Line/broadband/coverage/"&gt;Coverage&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt;&lt;img src="/wps/wcm/404_page/404_page/images/nav_separator.gif" width="4" height="36" /&gt;&lt;/li&gt; &lt;li id="nav3" class="nav"&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/forme_newuser/dth+services/" id="nav_dth"&gt;Broadband &amp;amp; Fixed Line&lt;/a&gt; &lt;div class="nav_menu"&gt; &lt;div class="nav_menu_outer"&gt; &lt;div class="colimg"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/mega_digital.gif" /&gt;&lt;/div&gt; &lt;div class="nav_menu_inner"&gt; &lt;div class="nav_menu_links"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="http://atomtel.in/wps/wcm/connect/DTH/Bharti%20DTH/Home"&gt;Digital Tv&lt;/a&gt;&lt;/li&gt; &lt;li class="last"&gt;&lt;a href="http://216.205.49.67/iptv/"&gt;IPTV&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/li&gt; &lt;li&gt;&lt;img src="/wps/wcm/404_page/404_page/images/nav_separator.gif" width="4" height="36" /&gt;&lt;/li&gt; &lt;li id="nav4" class="nav"&gt;&lt;a href="http://www.atomtel.in/atomtel3G/" id="nav_3g"&gt;3G services&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt;&lt;/td&gt; &lt;td width="6" valign="top"&gt;&lt;img src="/wps/wcm/404_page/404_page/images/nav_right_corner.gif" width="6" height="36" /&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td height="6" valign="top"&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td valign="top"&gt;&lt;table width="752" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td width="752" align="left" valign="top"&gt;&lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td height="407" valign="top" class="page_content_not" style="background:#ed1d24 url(/wps/wcm/404_page/404_page/images/bg_atomtel.jpg) no-repeat right top;"&gt;&lt;div class="content"&gt; &lt;img src="/wps/wcm/404_page/404_page/images/404_img.jpg" width="166" height="71" style="padding:0 0 28px 40px;" /&gt; &lt;p&gt;&lt;strong style="font-size:13px;"&gt;Sorry! The page you are looking for could not be found!&lt;/strong&gt;&lt;/p&gt; This could be because of the following reasons: &lt;ul&gt; &lt;li&gt; A mistyped address&lt;/li&gt; &lt;li&gt; Temporary unavailability of the site&lt;/li&gt; &lt;li&gt; Removal of the link &lt;/li&gt; &lt;/ul&gt; &lt;p&gt;Please try later or go to the &lt;a href="http://www.atomtel.in/"&gt;home page.&lt;/a&gt;&lt;/p&gt; &lt;p&gt;You can also keep browsing through the &lt;br /&gt; rest of the website using the top navigation. &lt;/p&gt; &lt;/div&gt;&lt;/td&gt; &lt;td align="right" valign="top" style="background:url(/wps/wcm/404_page/404_page/images/img_maginifier.jpg) no-repeat right top"&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table width="770" border="0" align="center" class="footer" cellpadding="0" cellspacing="0"&gt; &lt;tr&gt; &lt;td height="28" align="left" valign="middle"&gt;&amp;copy; atomtel India 2010, All Rights Reserved. &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt; &lt;td align="right" valign="middle"&gt;&lt;a href="http://www.atomtel.in/fraudAlert/fraudalert.html" target="_blank"&gt;Important Alerts&lt;/a&gt; | &lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/privacy+statement/" target="_blank"&gt;Privacy Statement&lt;/a&gt; | &lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/do+not+disturb+registry/"&gt;Do Not Disturb Registry&lt;/a&gt; | &lt;a href="http://atomtel.in/wps/wcm/connect/atomtel.in/atomtel.in/home/telemarketer+registration/" target="_blank"&gt;Telemarketer Registration&lt;/a&gt; &amp;nbsp;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;script type="text/javascript"&gt; var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); &lt;/script&gt; &lt;script type="text/javascript"&gt; var pageTracker = _gat._getTracker("UA-4570700-1"); pageTracker._initData(); pageTracker._trackPageview(); &lt;/script&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload