on 05-04-2012 3:52 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.