on 05-10-2010 11:10 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.