Skip to Content
1
Former Member
Sep 01, 2015 at 06:47 PM

Getting error while calling rest webservice through BODS

318 Views


Hi,

I have created Httpadapter instance and added an Adapter operation.Below is my target URL and passing parameter ' s ' with value ARE.TO.

http://finance.yahoo.com/q/hp

here is my target .xsd file.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:annotation>
<xsd:documentation xml:lang="en">
XML Schema generated by Data Services
</xsd:documentation>
</xsd:annotation>

<xsd:simpleType name="DIType-decimal-13-2">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="13"/>
<xsd:fractionDigits value="2"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:element name="STOCK_RESULT" >
<xsd:complexType>
<xsd:sequence maxOccurs="unbounded">
<xsd:element ref="STOCK_DATE" />
<xsd:element ref="OPEN" />
<xsd:element ref="HIGH" />
<xsd:element ref="LOW" />
<xsd:element ref="CLOSE" />
<xsd:element ref="VOLUME" />
<xsd:element ref="ADJ_CLOSE" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="STOCK_DATE" type = "xsd:date"/>
<xsd:element name="OPEN" type = "DIType-decimal-13-2"/>
<xsd:element name="HIGH" type = "DIType-decimal-13-2"/>
<xsd:element name="LOW" type = "DIType-decimal-13-2"/>
<xsd:element name="CLOSE" type = "DIType-decimal-13-2"/>
<xsd:element name="VOLUME" type = "xsd:integer"/>
<xsd:element name="ADJ_CLOSE" type = "DIType-decimal-13-2"/>
</xsd:schema>

But while running the BODS job I am getting below error.

5092 22512 XML-240308 09/01/2015 2:41:50 PM XML parser failed: Error: <unable to open file 'http://www.w3.org/TR/html4/strict.dtd'> at line <1>, char <91> in file <>.

Can some provide the input on why it is giving this error.

Thanks

http://finance.yahoo.com/q/hphttp://finance.yahoo.com/q/hp