Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on May 07, 2012 at 09:24 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.