Options

XMLPort and Schema

iris2009iris2009 Member Posts: 56
edited 2012-01-27 in NAV Three Tier
Hello,

I am trying to create a Xml-File with a custom Schema using a XMLPort
I am working according to an article which I found on Partnersource:
"How to use XMLports to connect to web services in MBS Navison 4.0", which is saying:

"1. Sending XML documents

In the XMLport, the TagType “Attribute” can be used to define XML namespaces.

For example, add the following tag in an XMLport:

TagName: xmlns
TagType: Attribute
SourceType: Text
DataSource: xmlns1

Add the following C/AL code line in the OnPreXMLport() trigger of the XMLport:

xmlns1 := 'http://schemas.xmlsoap.org/soap/envelope/';"

Unfortunately it is not working, the attribute tag is always empty. Has anyone solved this problem? Thank you!

Answers

Sign In or Register to comment.