cancel
Showing results for 
Search instead for 
Did you mean: 

SUP Rest - Execution failed: The element type must be terminated by the matching end-tag

Former Member
0 Kudos

Hi,

I am trying to create a REST web service MBO with PUT HTTP method.

But I keep on getting the error message below (Execution failed: The element type must be terminated by the matching end-tag)

I have checked my Request XSD and I found no error in the XSD

<?xml version="1.0" encoding="utf-8"?>

<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

  <xsd:element name="Timesheet">

    <xsd:complexType>

      <xsd:sequence>

        <xsd:element maxOccurs="unbounded" name="TimesheetEntry">

          <xsd:complexType>

            <xsd:sequence>

              <xsd:element name="Code" type="xsd:string" />

              <xsd:element name="Date" type="xsd:string" />

              <xsd:element name="WBSElement" type="xsd:string" />

              <xsd:element name="ActivityCode" type="xsd:string" />

              <xsd:element name="WorkType" type="xsd:string" />

              <xsd:element name="Hours" type="xsd:string" />

            </xsd:sequence>

          </xsd:complexType>

        </xsd:element>

      </xsd:sequence>

    </xsd:complexType>

  </xsd:element>

</xsd:schema>

This is my request XML.

<?xml version="1.0"?>

<Timesheet>

<TimesheetEntry>

<Code> </Code>

<Date>20120409</Date>

<WBSElement>001510</WBSElement>

<ActivityCode>M1</ActivityCode>

<WorkType>WORK</WorkType>

<Hours>8.00</Hours>

</TimesheetEntry>

</Timesheet>

This is my structure data type values.

Any Thought ?

Regards,

HK Kang

Accepted Solutions (0)

Answers (1)

Answers (1)

sujith_prathap
Advisor
Advisor
0 Kudos

I think  that the styling info also somehow got embedded in the XML. The xml below is a cleaned up version of your XML. Can you copy paste the xml below and see if it works?

<?xml version="1.0" encoding="utf-8"?>

<xsd:schema attributeFormDefault="unqualified" elementFormDefault="qualified" version="1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="Timesheet">

<xsd:complexType>

<xsd:sequence>

<xsd:element maxOccurs="unbounded" name="TimesheetEntry">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="Code" type="xsd:string" />

<xsd:element name="Date" type="xsd:string" />

<xsd:element name="WBSElement" type="xsd:string" />

<xsd:element name="ActivityCode" type="xsd:string" />

<xsd:element name="WorkType" type="xsd:string" />

<xsd:element name="Hours" type="xsd:string" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

</xsd:schema>

Regards,

Sujith