on 06-30-2017 2:35 PM
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"?>
<application xmlns="http://wadl.dev.java.net/2009/02">
<doc xml:lang="en" title="http://....."/>
<grammars>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="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>
<representation mediaType="application/xml; charset=UTF-8" element="ProductInformation" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<param name="context" default="CE-de" type="xs:string" required="false" style="query" xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
<param name="workspace" default="Main" type="xs:string" required="false" style="query" xmlns:xs="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?
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.