cancel
Showing results for 
Search instead for 
Did you mean: 

<element xsi:type="T3" attribute="USD">1.99</element> mapping error ......

Former Member
0 Kudos

Dear All,

I have following source structure from WSDL file which cannot be change.

I have map it with target structure by one to one mapping. But getting following error.

Please guide me do I need to use some node function/technique to map this element with target?

because direct mapping is giving error.

Structure Occurance Type

-<Node> 1..1 T1

--<element> 1..1 T2

---<attribute> 1..1 T3

<element xsi:type="T3" attribute="USD">1.99</element> it is mapped one to one graphical mapping with <element></element>

But in mapping test I am getting error:

The prefix "xsi" for attribute "xsi:type" associated with an element type "<element>" is not bound.

com.sap.aii.utilxi.misc.api.BaseRuntimeException: The prefix "xsi" for attribute "xsi:type" associated with an element type "<element>" is not bound.

at com.sap.aii.mappingtool.tf7.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:253)

at com.sap.aii.mappingtool.tf7.rt.xparser.XParser.run(XParser.java:79)

Caused by: org.xml.sax.SAXParseException: The prefix "xsi" for attribute "xsi:type" associated with an element type "<element>" is not bound.

Regards

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Rohan,

>

> Structure Occurance Type

> -<Node> 1..1 T1

> --<element> 1..1 T2

> ---<attribute> 1..1 T3

>

> <element xsi:type="T3" attribute="USD">1.99</element> it is mapped one to one graphical mapping with <element></element>

>

You really want to map attribute value to element in target structure??noamml attribute hold the property,so that was the reason you getting error.

Regards,

Raj

Former Member
0 Kudos

Hi Raj,

Thanks for reply..

I am not trying to map attribute to target element.

I am trying to map element (having value like 1.99) to the target element.

This element having type as well as attribute.

But in testing getting error"The prefix "xsi" for attribute "xsi:type" associated with an element type "element" is not bound."

But when I am removing type declaration from WSDL then there is no error: example following

<element attribute="USD">1.99</element> <<-mapped with>> <target element>

error is coming when source structure is like:

<element xsi:type="T3" attribute="USD">1.99</element> <<-mapped with>> <target element>

i.e. source structure is having both type & attribute.

Regards

Former Member
0 Kudos

close

Answers (1)

Answers (1)

former_member200962
Active Contributor
0 Kudos
The prefix "xsi" for attribute "xsi:type" associated with an element type "<element>" is not bound.

I dont think the error is due to mapping element with attribute or vice-versa......it is due to the prefix xsi not defined anywhere in your message structure.....if i have to use any prefix then i have to first declare it.....have you done it......hence when you remove xsi there is no error thrown.

Regards,

Abhishek.