on 10-25-2006 10:39 AM
Hi
I have an external definition imported and it looks like the following:
<xsd:element name="PayloadEntry">
<xsd:complexType>
<xsd:attribute name="format" type="xsd:string"
use="required" />
<xsd:attribute name="operation" type="xsd:string"
use="required" />
<xsd:attribute name="type" type="xsd:string"
use="required" />
</xsd:complexType>
</xsd:element>
When I send a message using this External Definition.
The order of the attributes of element PayloadEntry are changed in format, type, operation. (in External Definition it is format, operation, type)
Is this critical? How/Why can this happen?
Best Regards
Ron
Hi Ron,
Most of the time this should not cause any issues in the integration scenario. However if the receiving end is particular in the sequence of incoming attributes, you will need to make some changes to the XSD.
Regards,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can happen, as the sequence of the attributes is not fix. This should not be a problem. Otherwise you have to define a sequence inside the XSD.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ron,
Try using the following code:
<xsd:element name="PayloadEntry">
<xsd:complexType>
<xsd:sequence>
<xsd:attribute name="format" type="xsd:string"
use="required" />
<xsd:attribute name="operation" type="xsd:string"
use="required" />
<xsd:attribute name="type" type="xsd:string"
use="required" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Pls acknowledge of this works.
Regards,
Ashish
Hi Ron,
<XSD:SEQUENCE> will not work for "attributes".
There should not be any problem because of this as you see the nodes can be read say FirtNode or LastNode or Node[index] but an attribute is read only by the name. There is nothing called 1st attribute or 2nd attribute. So the order will not be a problem in anycase.
Regards,
Prakash
Hi,
Thanks for the info. I got almost the same answer on the StylusStudio forum.
What you describe about the Nodes and Attributes is general XML processing? My counterpart of the receiving system tells me that the order of the attributes is critical...
I will discuss it also with him.
Best Regards
Ron
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.