Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

General Validation Error: An attribute cannot appear more than once.

Ramesh ThambusamyAug 26 2008 — edited Aug 26 2008
Hi,

I tried to send xml document over ebMS. I configured two trading partners(acme-sender, GlobalChips-receiver) as per the Oracle B2B User guide. I am getting the exception while receiving the xml document in GlobalChips.

AIP-51505: General Validation Error: oracle.xml.parser.schema.XSDException: An attribute cannot appear more than once in the same start tag.
at oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin.validateXMLDocument(CustomDocumentPlugin.java:644)
at oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin.processIncomingDocument(CustomDocumentPlugin.java:425)
at oracle.tip.adapter.b2b.engine.Engine.processIncomingMessage(Engine.java:1464)
at oracle.tip.adapter.b2b.engine.Engine.incomingContinueProcess(Engine.java:1851)
at oracle.tip.adapter.b2b.engine.Engine.handleMessageEvent(Engine.java:1783)
at oracle.tip.adapter.b2b.engine.Engine.processEvents(Engine.java:1741)
at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:454)
at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:326)
at java.lang.Thread.run(Thread.java:534)
Caused by: oracle.xml.parser.schema.XSDException: An attribute cannot appear more than once in the same start tag.
at oracle.xml.parser.schema.XSDBuilder.build(XSDBuilder.java:350)
at oracle.tip.adapter.b2b.document.custom.CustomDocumentPlugin.validateXMLDocument(CustomDocumentPlugin.java:622)
... 8 more

I used the following xsd:
<xs:schema targetNamespace="http://services.mycccportal.com/SOA/normalizedmessage/v1" xmlns="http://services.mycccportal.com/SOA/normalizedmessage/v1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="PrintImageTransaction0100">
<xs:complexType>
<xs:sequence>
<xs:element name="TransactionID" type="xs:int" minOccurs ="0" maxOccurs="unbounded"/>
<xs:element name="ClaimNumber" type="xs:string" minOccurs ="0" maxOccurs="unbounded"/>
<xs:element name="ClaimType" type="xs:string" minOccurs ="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

I used the following xml:

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.3 U (http://www.xmlspy.com) by LEGO (LEGO) -->
<!--Sample XML file generated by XML Spy v4.3 U (http://www.xmlspy.com)-->
<PrintImageTransaction0100 xmlns="http://services.mycccportal.com/SOA/normalizedmessage/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://services.mycccportal.com/SOA/normalizedmessage/v1 ebMSOrder.xsd">
<TransactionID>12345</TransactionID>
<ClaimNumber>claimn12</ClaimNumber>
<ClaimType>claimtype23</ClaimType>
</PrintImageTransaction0100>

I need a help to solve this problem.

Thanks,
Ramesh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 23 2008
Added on Aug 26 2008
2 comments
2,154 views