• diecarrion
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi,

 

I am trying to make callout to external service from salesforce , getting exception :

 

System.CalloutException: Web service callout failed: Unexpected element.
Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'

 

When i debug the callout, got following response -

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>ERROR: The requested URL could not be retrieved</TITLE>
<STYLE type="text/css"><!--BODY{background-color:#ffffff;font-family:verdana,sans-serif}PRE{font-family:sans-serif}--></STYLE>
</HEAD><BODY>
<H1>ERROR</H1>
<H2>The requested URL could not be retrieved</H2>
<HR noshade size="1px">
<P>
While trying to retrieve the URL:
<A HREF="http://dev-usmi.genworth.com/ws/GNWFileUtilsES.Services.FileUtilsSvc/GNWFileUtilsES_Services_FileUtilsSvc_Port">http://dev-usmi.genworth.com/ws/GNWFileUtilsES.Services.FileUtilsSvc/GNWFileUtilsES_Services_FileUtilsSvc_Port</A>
<P>
The following error was encountered:
<UL>
<LI>
<STRONG>
Connection to 206.83.178.91 Failed
</STRONG>
</UL>

<P>
The system returned:
<PRE><I>    (113) No route to host</I></PRE>

<P>
The remote host or network may be down.  Please try the request again.
<P>Your cache administrator is <A HREF="mailto:support@salesforce.com">support@salesforce.com</A>. 

<BR clear="all">
<HR noshade size="1px">
<ADDRESS>
Generated Tue, 17 Apr 2012 08:53:17 GMT by proxy-tyo.net.salesforce.com (squid)
</ADDRESS>
</BODY></HTML>

 After analyzed the response am sure that am getting exception because of response am getting as HTML instead of SOAP. Can anyone tell me wat issue may the cause of this response ? and how to resolve it..?

 

Any help would appreciated..