Method PostOwnerSearch

Summary

Owner Address Search

Remarks

Return a list of accounts that match the owner name. For best results, enter the owner as LAST, FIRST.

Input Parameters

NameTypeLengthDescription
ownerName System.String 30 Owner Name
streetNumber numeric 7 Street Number
streetDir System.String 2 Street Direction. Ex. N,E,S,W,NE,SW
streetName System.String 25 Street Name
streetSuffix System.String 4 Street Suffix. Ex. AVE,LN,ST
memberName System.String 10 Member Name
rollCodes System.String 40 Roll Code
taxYear numeric 4 Tax Year
VINNumber yn 1 VIN Number Y/N
rows numeric 4 Number of rows to return. Used for paging
pageNumber numeric 5 Page Number. Used for paging
lastRecord numeric 4 Last record number from previous search. Used for paging

Example

POST http://localhost/FusionServices/v3/Naviline/Tax/OwnerSearch

Return Values

NameDescription
OwnerName Owner Name
PropertyDescription Property address
PropertyType Roll Code Type
TaxID Tax account number
MasterID Master account number
MasterFlag Master flag
Year Tax year
VINNumber VIN Number
ErrorCode 0000 if successful
ErrorMessage details of any error that occurred
MemberName
PageNumber Page number returned. Used with paging.
Rows Number of rows returned
More?YN More records Y/N
LastRecord Last records number returned. Pass this in to next query for paging.

Sample Responses

Sample Code

using System.Net;
using Newtonsoft.Json.Linq;

public void MethodName(parms)
{
   string uri = "http://localhost/FusionServices/v3/Naviline/Tax/OwnerSearch";
   System.Collections.Specialized.NameValueCollection postParms = 
     new System.Collections.Specialized.NameValueCollection(); 
   // Set paramater values
   postParms.Add("ownerName",System.Web.HttpUtility.UrlEncode("PARR"));
   postParms.Add("rollCodes",System.Web.HttpUtility.UrlEncode("RE"));

   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 OwnerName = row["OwnerName"].ToString();
             string PropertyDescription = row["PropertyDescription"].ToString();
             string PropertyType = row["PropertyType"].ToString();
             string TaxID = row["TaxID"].ToString();
             string MasterID = row["MasterID"].ToString();
             string MasterFlag = row["MasterFlag"].ToString();
             string Year = row["Year"].ToString();
             string VINNumber = row["VINNumber"].ToString();
             // TODO - YOUR CODE HERE
        }
   }
}

C# Razor MVC Sample Code

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 PostOwnerSearch
   {
       // Add property for each input param in order to map a field to it
       [RegularExpression("^(?=.{0,30}$).*", ErrorMessage = "Must be 30 characters or less. ")]
       public string ownerName{get; set;}

       [RegularExpression("[0-9]{0,7}", ErrorMessage = "Numeric values only. Must be 7 digits or less. ")]
       public string streetNumber{get; set;}

       [RegularExpression("^(?=.{0,2}$).*", ErrorMessage = "Must be 2 characters or less. ")]
       public string streetDir{get; set;}

       [RegularExpression("^(?=.{0,25}$).*", ErrorMessage = "Must be 25 characters or less. ")]
       public string streetName{get; set;}

       [RegularExpression("^(?=.{0,4}$).*", ErrorMessage = "Must be 4 characters or less. ")]
       public string streetSuffix{get; set;}

       [RegularExpression("^(?=.{0,10}$).*", ErrorMessage = "Must be 10 characters or less. ")]
       public string memberName{get; set;}

       [RegularExpression("^(?=.{0,40}$).*", ErrorMessage = "Must be 40 characters or less. ")]
       public string rollCodes{get; set;}

       [RegularExpression("[0-9]{0,4}", ErrorMessage = "Numeric values only. Must be 4 digits or less. ")]
       public string taxYear{get; set;}

       [RegularExpression("^[YN]{0,1}$", ErrorMessage = "Must be Y or N.")]
       public string VINNumber{get; set;}

       [RegularExpression("[0-9]{0,4}", ErrorMessage = "Numeric values only. Must be 4 digits or less. ")]
       public string rows{get; set;}

       [RegularExpression("[0-9]{0,5}", ErrorMessage = "Numeric values only. Must be 5 digits or less. ")]
       public string pageNumber{get; set;}

       [RegularExpression("[0-9]{0,4}", ErrorMessage = "Numeric values only. Must be 4 digits or less. ")]
       public string lastRecord{get; set;}

       public PostOwnerSearch()
       {
           //Set any defaults here
       }
   }
}
@* NOTE: Use Add->View to add the View. *@
@* NOTE: Check the 'Create strongly-typed view checkbox, and select the PostOwnerSearch 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.PostOwnerSearch

@{
   ViewBag.Title = "PostOwnerSearch";
}

<h2>PostOwnerSearch</h2>
@using (Html.BeginForm()) {
   @Html.AntiForgeryToken()
   @Html.ValidationSummary(true)
   <fieldset>
   <legend>PostOwnerSearch</legend>
       <div class="editor-label">
           @Html.LabelFor(model => model.ownerName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.ownerName)
           @Html.ValidationMessageFor(model => model.ownerName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetNumber)
           @Html.ValidationMessageFor(model => model.streetNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetDir)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetDir)
           @Html.ValidationMessageFor(model => model.streetDir)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetName)
           @Html.ValidationMessageFor(model => model.streetName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.streetSuffix)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.streetSuffix)
           @Html.ValidationMessageFor(model => model.streetSuffix)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.memberName)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.memberName)
           @Html.ValidationMessageFor(model => model.memberName)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.rollCodes)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.rollCodes)
           @Html.ValidationMessageFor(model => model.rollCodes)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.taxYear)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.taxYear)
           @Html.ValidationMessageFor(model => model.taxYear)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.VINNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.VINNumber)
           @Html.ValidationMessageFor(model => model.VINNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.rows)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.rows)
           @Html.ValidationMessageFor(model => model.rows)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.pageNumber)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.pageNumber)
           @Html.ValidationMessageFor(model => model.pageNumber)
       </div>
       <div class="editor-label">
           @Html.LabelFor(model => model.lastRecord)
       </div>
       <div class="editor-field">
           @Html.EditorFor(model => model.lastRecord)
           @Html.ValidationMessageFor(model => model.lastRecord)
       </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/PostOwnerSearch
public ActionResult PostOwnerSearch()
{
   // Create a new instance of the model to pick up any default values.
   PostOwnerSearch model =  new PostOwnerSearch();

   // pass model to set to default values
   // NOTE: Change 'MyFolderPath' to the path to the .cshtml file.
   return View("~/Views/MyFolderPath/PostOwnerSearch.cshtml", model);
}

// 
// POST: /MyController/PostOwnerSearch
[HttpPost]
public ActionResult PostOwnerSearch(FormCollection collection)
{
   string url = "v3/Naviline/Tax/OwnerSearch";
   // Get the value from each input field
   NameValueCollection inputParms = new NameValueCollection();
   inputParms.Add("ownerName", collection["ownerName"]);
   inputParms.Add("streetNumber", collection["streetNumber"]);
   inputParms.Add("streetDir", collection["streetDir"]);
   inputParms.Add("streetName", collection["streetName"]);
   inputParms.Add("streetSuffix", collection["streetSuffix"]);
   inputParms.Add("memberName", collection["memberName"]);
   inputParms.Add("rollCodes", collection["rollCodes"]);
   inputParms.Add("taxYear", collection["taxYear"]);
   inputParms.Add("VINNumber", collection["VINNumber"]);
   inputParms.Add("rows", collection["rows"]);
   inputParms.Add("pageNumber", collection["pageNumber"]);
   inputParms.Add("lastRecord", collection["lastRecord"]);

   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", "PostOwnerSearch");
       return View("Error", info);
   }
}