Skip to Content
avatar image
Former Member

REST Webservice delivered invalid xml. Is the wadl wrong?

Hi,

I created a data store of Type Web Service REST. Everyting is valid and be imported and executed.

At the xml root element should be attributes. See WADL

<?xml version="1.0" encoding="UTF-8"?>
http://wadl.dev.java.net/2009/02">
<doc xml:lang="en" title="http://....."/>
<grammars>
http://www.w3.org/2001/XMLSchema">
<xs:element name="ProductInformation">
<xs:complexType>
<xs:sequence>
<xs:element name="Lists">
.....
</xs:element>
</xs:sequence>
<xs:attribute name="ContextID" type="xs:string"/>
<xs:attribute name="WorkspaceID" type="xs:string"/>
</xs:complexType>
</xs:element>
</xs:schema>
</grammars>

<resources base="http://xxxx">
<resource path="restapi/integrationendpoints/xxx_import_lov/upload" id="Upload">
<doc xml:lang="en" title="Upload"/>
<method name="POST" id="Upload">
<doc xml:lang="en" title="Upload"/>
<request>
http://www.w3.org/2001/XMLSchema"/>

http://www.w3.org/2001/XMLSchema"/>
http://www.w3.org/2001/XMLSchema"/>
</request> ....
</method>
</resource>
</resources>
</application>

But the result is a invalid xml with the attributes without the tag.

<?xml version="1.0" encoding="utf-8"?>
<ProductInformation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> WorkspaceID = „Main" ContextID = "GL-gl“

<Lists>

...

Has anybody a solution?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers