Tuesday, 14 July 2015

XML Port for complex xml type or namespace schema - NAV

Hi,

The following step need to follow in complex structure XML Schema while creating XML Port :

1. Use UseDefaultNamespace Should be true
2. In default schema "URN For the Soap services " Like http://www.w3.org/2003/05/soap-envelope
3: After defining this you need define Elemen and attribue as per structure of XML .

Below is Example of xml port



Example Of XML

<?xml version="1.0" encoding="UTF-16"?>

-<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">


-<env:Body>


-<env:CreatePortalSession xmlns:env1="https://abcd.com/start/sale/interface/Mysales/v1" xmlns:xsi="https://abcd.com/start/sale/interface/Mysales/v1">

<env:MajorVersion>1</env:MajorVersion>

<env:Language>IN</env:Language>

<env:UserId/>

</env:CreatePortalSession>

</env:Body>

</env:Envelope>

No comments:

Post a Comment