Incremental or full land sync information for property tax
| Name | Type | Length | Description |
|---|---|---|---|
| syncType | System.String | 1 | [Required] |
| strChgDte | System.String | 1 | [Required] |
POST http://localhost/FusionServices/v3/Naviline/Land/LandSyncInfo
| Name | Description |
|---|---|
| OUT_ERRCDE | 00000 |
| OUT_ERRDSC | Success |
| OUT_MOREROWS | N |
using System.Net;
using Newtonsoft.Json.Linq;
public void MethodName(parms)
{
string uri = "http://localhost/FusionServices/v3/Naviline/Land/LandSyncInfo";
System.Collections.Specialized.NameValueCollection postParms =
new System.Collections.Specialized.NameValueCollection();
// Set paramater values
postParms.Add("syncType",System.Web.HttpUtility.UrlEncode("I"));
postParms.Add("strChgDte",System.Web.HttpUtility.UrlEncode("20250101"));
WebClient req = new WebClient();
wc.Headers.Add("Content-Type", "application/x-www-form-urlencoded");
wc.Headers.Set("X-APPID", "YOURID");
wc.Headers.Set("X-APPKEY", "YOURKEY");
byte[] responseBytes = wc.UploadValues(new Uri(uri), "POST", postParms);
string stringResult = Encoding.UTF8.GetString(responseBytes);
JObject response = JObject.Parse(stringResult);
string error = response["OutputParms"]["ErrorCode"].ToString();
if (error == "0000")
{
JArray jRows = (JArray)response["Rows"];
foreach (JObject row in jRows)
{
string LOCATIONID = row["LOCATIONID"].ToString();
string PARCELCROSSREF = row["PARCELCROSSREF"].ToString();
string STREETNUMBER = row["STREETNUMBER"].ToString();
string STREETQUALIFIERPRE = row["STREETQUALIFIERPRE"].ToString();
string STREETDIRECTION = row["STREETDIRECTION"].ToString();
string STREETNAME = row["STREETNAME"].ToString();
string STREETSUFFIX = row["STREETSUFFIX"].ToString();
string POSTSTREETDIRECTION = row["POSTSTREETDIRECTION"].ToString();
string STREETQUALIFIERPOST = row["STREETQUALIFIERPOST"].ToString();
string APARTMENTNUMBER = row["APARTMENTNUMBER"].ToString();
string CITY = row["CITY"].ToString();
string STATEPROVINCE = row["STATEPROVINCE"].ToString();
string ZIPPOSTALCODE = row["ZIPPOSTALCODE"].ToString();
string PROPERTYDESCRIPTION = row["PROPERTYDESCRIPTION"].ToString();
string PARCELNO1 = row["PARCELNO1"].ToString();
string PARCELNO2 = row["PARCELNO2"].ToString();
string PARCELNO3 = row["PARCELNO3"].ToString();
string PARCELNO4 = row["PARCELNO4"].ToString();
string PARCELNO5 = row["PARCELNO5"].ToString();
string PARCELNO6 = row["PARCELNO6"].ToString();
string PARCELNO7 = row["PARCELNO7"].ToString();
string PARCELNO8 = row["PARCELNO8"].ToString();
string PARCELNO9 = row["PARCELNO9"].ToString();
string PARCELNO10 = row["PARCELNO10"].ToString();
string RELATEDPARTYID = row["RELATEDPARTYID"].ToString();
string OWNERNAME = row["OWNERNAME"].ToString();
string OWNERADDRESS = row["OWNERADDRESS"].ToString();
string OWNERADDRESS2 = row["OWNERADDRESS2"].ToString();
string OWNERADDRESS3 = row["OWNERADDRESS3"].ToString();
string OWNERZIP = row["OWNERZIP"].ToString();
string CARRIERROUTE = row["CARRIERROUTE"].ToString();
string OWNERAREACODE = row["OWNERAREACODE"].ToString();
string OWNERPHONENUMBER = row["OWNERPHONENUMBER"].ToString();
string OWNERTYPE = row["OWNERTYPE"].ToString();
string DELIVERYPOINT = row["DELIVERYPOINT"].ToString();
string EFFECTIVEDATE = row["EFFECTIVEDATE"].ToString();
string DATEOFBIRTH = row["DATEOFBIRTH"].ToString();
string LASTCHANGEDATE = row["LASTCHANGEDATE"].ToString();
// TODO - YOUR CODE HERE
}
}
}
using System;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Collections.Specialized;
using FusionServiceHelper.Models;
// NOTE: Use the namespace generated when you add the class, so that it is correct.
namespace FusionRazor.Models
{
public class PostLandSyncInfo
{
// Add property for each input param in order to map a field to it
[Required(ErrorMessage = "Required")]
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string syncType{get; set;}
[Required(ErrorMessage = "Required")]
[RegularExpression("^(?=.{0,1}$).*", ErrorMessage = "Must be 1 characters or less. ")]
public string strChgDte{get; set;}
public PostLandSyncInfo()
{
//Set any defaults here
}
}
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostLandSyncInfo class. *@
@* NOTE: Select Edit as the Scaffold template. *@
@* NOTE: Use the @model line that is generated at the top. Replace the rest with the lines below.
@model FusionRazor.Models.PostLandSyncInfo
@{
ViewBag.Title = "PostLandSyncInfo";
}
<h2>PostLandSyncInfo</h2>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>PostLandSyncInfo</legend>
<div class="editor-label">
@Html.LabelFor(model => model.syncType)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.syncType)
@Html.ValidationMessageFor(model => model.syncType)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.strChgDte)
</div>
<div class="editor-field">
@Html.EditorFor(model => model.strChgDte)
@Html.ValidationMessageFor(model => model.strChgDte)
</div>
<p>
<input type="submit" value="Submit"/>
</p>
</fieldset>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}
using System;
using System.Collections.Specialized;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using FusionServiceHelper.Models;
// NOTE: Replace 'MyController' with the name of your controller.
//
// GET: /MyController/PostLandSyncInfo
public ActionResult PostLandSyncInfo()
{
// Create a new instance of the model to pick up any default values.
PostLandSyncInfo model = new PostLandSyncInfo();
// pass model to set to default values
// NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
return View("~/Views/MyFolderPath/PostLandSyncInfo.cshtml", model);
}
//
// POST: /MyController/PostLandSyncInfo
[HttpPost]
public ActionResult PostLandSyncInfo(FormCollection collection)
{
string url = "v3/Naviline/Land/LandSyncInfo";
// Get the value from each input field
NameValueCollection inputParms = new NameValueCollection();
inputParms.Add("syncType", collection["syncType"]);
inputParms.Add("strChgDte", collection["strChgDte"]);
try
{
// Send the request
FusionServiceRequest request = new FusionServiceRequest();
FusionServiceResult result = request.Post(url, inputParms);
return View("Result", result);
}
catch(Exception e)
{
HandleErrorInfo info = new HandleErrorInfo(e, "MyController", "PostLandSyncInfo");
return View("Error", info);
}
}