XMLport trouble with different xmlns.
Dolsha
Member Posts: 41
Hi all!
I'll convert xmlport from 9 to 16 NAV.
Part of structure in 9 version:

Part of structure in 16 version:

But when i Run my xmlport i'll have error:

After Export in 9 version i'll take:
Have any idea how i can fix my xmlport to take this result in 16 version?
P.S. I'll try do this with default namespace, but that global, and when in code i'll try
I'll convert xmlport from 9 to 16 NAV.
Part of structure in 9 version:

Part of structure in 16 version:

But when i Run my xmlport i'll have error:

After Export in 9 version i'll take:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <StaticForm xmlns="urn:customs.ru:Information:CustomsDocuments:StaticForm:5.0.3"> <CustomsProcedure>ЭК</CustomsProcedure> <TransportModeCode>30</TransportModeCode> <ReportingDate>2014-04</ReportingDate> <Consignor> <OrganizationName xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">***</OrganizationName> <RFOrganizationFeatures xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">
Have any idea how i can fix my xmlport to take this result in 16 version?
P.S. I'll try do this with default namespace, but that global, and when in code i'll try
SF1 := 'urn:customs.ru:CommonAggregateTypes:5.0.3';i'll have my error like: The prefix '' cannot be redefined from '***' to '***'
0
Answers
-
TY, but I'll see this before and i don't need prefix.
Need diferent xmlns in diferent element of xml.
Like:
<StaticForm xmlns="urn:customs.ru:Information:CustomsDocuments:StaticForm:5.0.3">
<CustomsProcedure>ЭК</CustomsProcedure>
<TransportModeCode>30</TransportModeCode>
<ReportingDate>2014-04</ReportingDate>
<Consignor>
<OrganizationName xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">***</OrganizationName>
<RFOrganizationFeatures xmlns="urn:customs.ru:CommonAggregateTypes:5.0.3">0 -
Hi Dolsha
Were you able to solve this without the prefix?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 326 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions