<ws xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.ruedenet.com/wsdlhelppages" xsi:schemaLocation="http://www.ruedenet.com/wsdlhelppages WsdlHelpPages.xsd">
  <summary>This Web Service provides basic data access into Dynamics NAV. All these operations will lookup a NETConductor DT to perform the NAV work.</summary>
	<ws-operation name="RunCodeUnit">
		<sortname>010</sortname>
		<summary>This operation provides access to any CodeUnit in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="no" required="true" type="Int" default="0">
      Number of the CodeUnit to run - zero (0) gets mapped to the NETConductor Samples CodeUnit number.
		</parameter>
		<parameter name="parameters" type="String" default='"Function"="Test"'>Parameters to send to the OnRun function of the CodeUnit. The format of this parameter is: "p1"="v1","p2"="v2",... where p1 is the name of a parameter an v1 is it's value. If it is left empty then no parameters are sent to the OnRun function.</parameter>
		<return>The XML returned from the CodeUnit, which may hold multiple strings, hashtables, record sets or error messages.</return>
	</ws-operation>
	<ws-operation name="RunCodeUnitWithXMLParameter">
		<sortname>020</sortname>
		<summary>This operation provides access to any CodeUnit in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="no" required="true" type="Int" default="0">Number of the CodeUnit to run - zero (0) gets mapped to the NETConductor Samples CodeUnit number.</parameter>
		<parameter name="xmlParameter" type="XmlNode" lines="15" default="[BasicsRunCodeUnitWithXMLParameterSample.xml]">Parameter to send to the OnRun function of the CodeUnit. The type of this parameter is XML.</parameter>
		<return>The XML returned from the CodeUnit, which may hold multiple strings, hashtables, record sets or error messages.</return>
	</ws-operation>
	<ws-operation name="SelectFromTable">
		<sortname>030</sortname>
		<summary>This operation provides access to the data of any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">This is the number of the table to get records from.</parameter>
		<parameter name="cols" type="Int List; or *" default="*">This is a list of the columns to return. If the list is empty then no columns are returned, if '*' is put into it then all columns will be returned. Otherwise the parameter should be of the format colnum1,colnum2,colnum3,... where colnum1, colnum2 and colnum3 should be returned and no others.</parameter>
		<parameter name="filter" type='Int="String" List'>The filter to be applied to the returned records. The format of this parameter is: colnum1="f1",colnum2="f2",colnum3="f3",... where colnum1 is a number of a field in the table and f1 is the filter to be applied on that column. The filters follow the Dynamics NAV format of filtering. If left empty then no filtering will be applied and all records of the given table will be returned.</parameter>
		<parameter name="sorting" type="Int List">A list of columns, indicating the sorting of the returned records. The format of this parameter is: colnum1,colnum2,colnum3,... (i.e. 1,2,3,10,17,16). If this parameter is not given then the primary key ordering is used. If any of the columns is the capital letter 'D' then the key will be used in descending order.</parameter>
		<return>The returned XML will contain all records from the given table that fulfil the filter stated in the parameters. The sorting and detail is as given in the parameters.</return>
	</ws-operation>
	<ws-operation name="SelectFromTableEx">
		<sortname>040</sortname>
		<summary>This operation provides access to the data of any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">This is the number of the table to get records from.</parameter>
		<parameter name="cols" type="Int List; or *" default="*">This is a list of the columns to return. If the list is empty then no columns are returned, if '*' is put into it then all columns will be returned. Otherwise the parameter should be of the format colnum1,colnum2,colnum3,... where colnum1, colnum2 and colnum3 should be returned and no others.</parameter>
		<parameter name="filter" type='Int="String" List'>The filter to be applied to the returned records. The format of this parameter is: colnum1="f1",colnum2="f2",colnum3="f3",... where colnum1 is a number of a field in the table and f1 is the filter to be applied on that column. The filters follow the Dynamics NAV format of filtering. If left empty then no filtering will be applied and all records of the given table will be returned.</parameter>
		<parameter name="sorting" type="Int List">A list of columns, indicating the sorting of the returned records. The format of this parameter is: colnum1,colnum2,colnum3,... (i.e. 1,2,3,10,17,16). If this parameter is not given then the primary key ordering is used. If any of the columns is the capital letter 'D' then the key will be used in descending order.</parameter>
		<parameter name="calcs" type="Int List; or *">These are the columns to calculate. If some of the returned columns of the table are FlowFields then they need to be calculated. You may not necessarily want to calculcation all columns returned, hence this parameter. If left empty then no columns will be calculated, if '*' is put into it then all columns will be calculated. Otherwise the parameter should be of the format colnum1,colnum2,colnum3,... where colnum1, colnum2 and colnum3 should be calculated and no others.</parameter>
		<parameter name="blobs" type="Int List; or *">These are the blob columns to populate. If some of the returned columns of the table are Blob fields then they need to be explicitly populated. You may not necessarily want to populate blob columns, hence this parameter. If left empty then no blob columns are populated, if '*' is put into it then all columns returned will be populated. Otherwise the parameter should be of the format colnum1,colnum2,colnum3,... where the blob columns colnum1, colnum2 and colnum3 should be returned populated.</parameter>
		<parameter name="from" required="true" type="Int" default="0">'from' and 'to' are required parameters that hold the indexes of the first and last records to return. This means for example, that if the operation would return a 1000 records, only the first 100 could be returned by providing 'from'=1 and 'to'=100. These two parameters are required, so to return all records simply provide 0 and 0.</parameter>
		<parameter name="to" required="true" type="Int" default="0">See description of parameter 'from'.</parameter>
		<parameter name="verbosity" required="true" type="Int 0-9" default="2">
      Determines the detail of the metadata to include in returned records,
      <b>0</b>
      means no metadata,
      <b>1</b>
      means include numbers,
      <b>2</b>
      means include numbers and captions,
      <b>3</b>
      means include numbers, captions and types,
      <b>9</b>
      means include full metadata.
    </parameter>
		<parameter name="definition" required="true" type="true/false" default="false">Indicates whether to include full table definition at the top of the reply. This could be handy when full metadata is required but you don't want it returned for each and every record.</parameter>
		<return>The returned XML will contain all records from the given table that fulfil the filter stated in the parameters. The sorting and detail is as given in the parameters.</return>
	</ws-operation>
	<ws-operation name="InsertIntoTable">
		<sortname>050</sortname>
		<summary>This operation provides insert record access to any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">The number of the table to being worked with.</parameter>
		<parameter name="values" type='Int="String" List' default='1="0",2="Teskribsjon"'>These are the values to be inserted. The format of this parameter is: colnum1="v1",colnum2="v2",colnum3="v3",... where colnum1 is the number of a field and v1 is the value to use for that field. If left empty then no values are inserted, that is a blank record is inserted.</parameter>
		<parameter name="validation" required="true" type="true/false" default="false">Indicates whether to run validation code in Dynamics NAV. If so then the validation code is run for each value assigned as well as for the insert command.</parameter>
		<return>An XML indicating whether the operation was successful.</return>
	</ws-operation>
	<ws-operation name="ModifyInTable">
		<sortname>060</sortname>
		<summary>This operation provides modify record access to any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">The number of the table to being worked with.</parameter>
		<parameter name="primarykey" required="true" type='Int="String" List' default='1="0"'>This parameter contains the values of the primary key of a single record in the table. The format of this parameter is: colnum1="v1",colnum2="v2",colnum3="v3",... where colnum1 is the number of a field and v1 is the value of that field. Note that all primary key fields must be given.</parameter>
		<parameter name="values" type='Int="String" List' default='2="Description"'>These are the values to be modified. The format of this parameter is: colnum1="v1",colnum2="v2",colnum3="v3",... where colnum1 is the number of a field and v1 is the value to use for that field. If left empty then no values are modified, that is no action will be taken.</parameter>
		<parameter name="validation" required="true" type="true/false" default="false">Indicates whether to run validation code in Dynamics NAV. If so then the validation code is run for each value assigned as well as for the modify command.</parameter>
		<return>An XML indicating whether the operation was successful.</return>
	</ws-operation>
	<ws-operation name="ModifyManyInTable">
		<sortname>070</sortname>
		<summary>This operation provides modify many records access to any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">The number of the table to being worked with.</parameter>
		<parameter name="key" required="true" type="Int" default="1">This is the index of the key to use when modifying the records (1 is the primary key).</parameter>
		<parameter name="filter" type='Int="String" List' default='1="0"'>This parameter contains the filter of the records to modify in the table. The format of this parameter is: colnum1="f1",colnum2="f2",colnum3="f3",... where colnum1 is the number of a field and f1 is the filter to apply on that column. If left empty then all records will be modified.</parameter>
		<parameter name="values" type='Int="String" List' default='2="Describsjon"'>These are the values to be modified. The format of this parameter is: colnum1="v1",colnum2="v2",colnum3="v3",... where colnum1 is the number of a field and v1 is the value to use for that field. If left empty then no values are modified, that is no action will be taken.</parameter>
		<parameter name="validation" required="true" type="true/false" default="false">Indicates whether to run validation code in Dynamics NAV. If so then the validation code is run for each value assigned as well as for the modify command.</parameter>
		<return>An XML indicating whether the operation was successful.</return>
	</ws-operation>
	<ws-operation name="DeleteFromTable">
		<sortname>080</sortname>
		<summary>This operation provides delete access to any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">The number of the table to being worked with.</parameter>
		<parameter name="primarykey" required="true" type='Int="String" List' default='1="0"'>This parameter contains the values of the primary key of a single record in the table. The format of this parameter is: colnum1="v1",colnum2="v2",colnum3="v3",... where colnum1 is the number of a field and v1 is the value of that field. Note that all primary key fields must be given.</parameter>
		<parameter name="validation" required="true" type="true/false" default="false">Indicates whether to run validation code in Dynamics NAV. If so then the validation code is run for the delete command.</parameter>
		<return>An XML indicating whether the operation was successful.</return>
	</ws-operation>
	<ws-operation name="DeleteManyFromTable">
		<sortname>090</sortname>
		<summary>This operation provides delete many records access to any table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">The number of the table to being worked with.</parameter>
		<parameter name="key" required="true" type="Int" default="1">This is the index of the key to use when deleting the records (1 is the primary key).</parameter>
		<parameter name="filter" type='Int="String" List' default='1="0"'>This parameter contains the filter of the records to modify in the table. The format of this parameter is: colnum1="f1",colnum2="f2",colnum3="f3",... where colnum1 is the number of a field and f1 is the filter to apply on that column. If left empty then all records from the table will be deleted.</parameter>
		<parameter name="validation" required="true" type="true/false" default="false">Indicates whether to run validation code in Dynamics NAV. If so then the validation code is run for the delete command.</parameter>
		<return>An XML indicating whether the operation was successful.</return>
	</ws-operation>
	<ws-operation name="RunReport">
		<sortname>100</sortname>
		<summary>This operation provides access to any report in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="no" required="true" type="Int" default="1">Number of the Report to run.</parameter>
		<parameter name="parameters" type="String" default='"Parameter"="Test"'>Parameters to send to the OnRun function of the CodeUnit. The format of this parameter is: "p1"="v1","p2"="v2",... where p1 is the name of a parameter an v1 is it's value. If it is left empty then no parameters are sent to the OnRun function.</parameter>
		<parameter name="replytype" required="true" type="String" default="html">The type of document to return. Dynamics NAV can return HTML and XML but if you have installed a PDF printer driver on the DataTier server you can even get PDf files.</parameter>
		<return>XML containing the document returned from the Report, which may hold multiple multiple pages of data.</return>
	</ws-operation>
	<ws-operation name="GetTableDefinition">
		<sortname>110</sortname>
		<summary>This operation provides the definition of a table in Dynamics NAV.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="table" required="true" type="Int" default="7">This is the number of the table to get the definition of.</parameter>
		<return>An XML containing the name of the given table and all the details of all it's columns.</return>
	</ws-operation>
	<ws-operation name="RunCodeUnitModeless">
		<sortname>120</sortname>
		<summary>This operation provides access to any CodeUnit in Dynamics NAV. The difference between RunCodeUnit and RunCodeUnitModeless is that when the RunCodeUnitModeless is called then the CodeUnit is simply started and there is not waiting for it's completion or any replies.</summary>
		<parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
		<parameter name="no" required="true" type="Int" default="0">Number of the CodeUnit to run - zero (0) gets mapped to the NETConductor Samples CodeUnit number.</parameter>
    <parameter name="parameters" type="String" default='"Function"="Test"'>Parameters to send to the OnRun function of the CodeUnit. The format of this parameter is: "p1"="v1","p2"="v2",... where p1 is the name of a parameter an v1 is it's value. If it is left empty then no parameters are sent to the OnRun function.</parameter>
    <return>An XML simply indicating that the execution of the CodeUnit has been started. The CodeUnit being called cannot return any values.</return>
	</ws-operation>
  <ws-operation name="XmlPortIn">
    <sortname>130</sortname>
    <summary>This operation provides import with the given XmlPort.</summary>
    <parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
    <parameter name="no" required="true" type="Int" default="0">Number of the XmlPort to import with.</parameter>
    <parameter name="xmlParameter" type="XmlNode" lines="15" default="[BasicsXmlPortInSample.xml]">Parameter to send to the XmlPort. The type of this parameter is XML.</parameter>
    <return>The XML returned from the CodeUnit, which may hold multiple strings, hashtables, record sets or error messages.</return>
  </ws-operation>
  <ws-operation name="XmlPortOut">
    <sortname>140</sortname>
    <summary>This operation receives data from the given XmlPort.</summary>
    <parameter name="serviceName" type="CAPITAL String">The name of the NETConductor DT service to use for Dynamics NAV work (i.e. CRONUS.DT). If the 'serviceName' is left empty the operation will read the 'DefaultDataTier' setting in the 'Web.config' configuration file.</parameter>
    <parameter name="no" required="true" type="Int" default="0">Number of the XmlPort to receive data from.</parameter>
    <parameter name="parameters" type="String" default='"Function"="Test"'>Parameters to send to the XmlPort. The format of this parameter is: "p1"="v1","p2"="v2",... where p1 is the name of a parameter an v1 is it's value.</parameter>
    <return>The XML returned from the CodeUnit, which may hold multiple strings, hashtables, record sets or error messages.</return>
  </ws-operation>
</ws>

