Recently, I've been getting this soap Error for a few (not all) FindCompetitorsByCompanyIDRequests in the development API. My soap Request is posted below. Any ideas what may be the issue?
I've tried both the new and old endpoints:
http://hapi-dev.hoovers.com/axis2/services/HooversAPI-20
http://hapi-dev.hoovers.com/axis2/services/HooversAPI-1810
var resp = '';
var hooversServiceUrl = 'http://hapi-dev.hoovers.com/axis2/services/HooversAPI-20';
var soapHeaders = new Array();
soapHeaders['SOAPAction'] = 'FindCompetitorsByCompanyIDRequest';
resp = nlapiRequestURL(hooversServiceUrl, soap, soapHeaders);
var responseCode = resp.getCode();
var soapText = resp.getBody();
return soapText; //This is what is returning the soap response
}
Recently, I've been getting this soap Error for a few (not all) FindCompetitorsByCompanyIDRequests in the development API. My soap Request is posted below. Any ideas what may be the issue?
I've tried both the new and old endpoints:
http://hapi-dev.hoovers.com/axis2/services/HooversAPI-20
http://hapi-dev.hoovers.com/axis2/services/HooversAPI-1810
Any idea what is going on?
Thanks.
Response:
<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>Transport error: 204 Error: No
Content
</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.hoovers.com">
<soapenv:Header>
<web:API-KEY>xxxxxxxxxxxxxxxxxxxxxxxxx</web:API-KEY>
</soapenv:Header>
<soapenv:Body>
<web:FindCompetitorsByCompanyIDRequest>
<web:uniqueId>48407840</web:uniqueId>
</web:FindCompetitorsByCompanyIDRequest>
</soapenv:Body>
</soapenv:Envelope>
NETSUITE SUITESCRIPT API CODE:
function getCompetitorResults(dunsNo) {
var soap = '';
soap += '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.hoovers.com">';
soap += '<soapenv:Header>';
soap += '<web:API-KEY>xxxxxxxxxxxxxxxxx</web:API-KEY>';
soap += '</soapenv:Header>';
soap += '<soapenv:Body>';
soap += '<web:FindCompetitorsByCompanyIDRequest>';
soap += '<web:uniqueId>' + dunsNo + '</web:uniqueId>';
soap += '</web:FindCompetitorsByCompanyIDRequest>';
soap += '</soapenv:Body>';
soap += '</soapenv:Envelope>';
var resp = '';
var hooversServiceUrl = 'http://hapi-dev.hoovers.com/axis2/services/HooversAPI-20';
var soapHeaders = new Array();
soapHeaders['SOAPAction'] = 'FindCompetitorsByCompanyIDRequest';
resp = nlapiRequestURL(hooversServiceUrl, soap, soapHeaders);
var responseCode = resp.getCode();
var soapText = resp.getBody();
return soapText; //This is what is returning the soap response
}
Tags
bhawley – 7 months ago
Hi bluemountain98,
That error means the company is not in the development database. Please see the changes announced here: http://developer.hoovers.com/forum/read/52877
Thanks,
Brian