<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ESRI server throws error while creating an operation that does not take any parameter in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-server-throws-error-while-creating-an/m-p/653843#M3185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a REST operation that does not take any parameters as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RestOperation jsonResultOperation = new RestOperation("JsonResultOperation", new String[0], new string[]{"json"}, JsonResultOperation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the server throws error while requesting this operation from the client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it mean an operation should take at least one input parameter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log Entry : 7/12/2010 10:51:01 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ERROR:Array cannot be null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter name: bytes ::&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Text.Encoding.GetString(Byte[] bytes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.JsonWriter.PrettifyJson(Int32 indentLvl, Int32 indent, Byte[] jsonBytes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.SOE.SOERESTResponseFormatter.WriteResponse()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.ResponseFormatter.WriteFormattedResponse()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.RequestHandler.ProcessRequest()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.RestHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i add a breakpoint on the implementation of HandleRESTRequest, i never get there. However if i modify the operation to take one parameter as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RestOperation jsonResultOperation = new RestOperation("JsonResultOperation", new String[]{"text"}, new string[]{"json"}, JsonResultOperation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 15:20:28 GMT</pubDate>
    <dc:creator>PrashantKhanal</dc:creator>
    <dc:date>2010-07-12T15:20:28Z</dc:date>
    <item>
      <title>ESRI server throws error while creating an operation that does not take any parameter</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-server-throws-error-while-creating-an/m-p/653843#M3185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I created a REST operation that does not take any parameters as:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;RestOperation jsonResultOperation = new RestOperation("JsonResultOperation", new String[0], new string[]{"json"}, JsonResultOperation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the server throws error while requesting this operation from the client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does it mean an operation should take at least one input parameter?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Log Entry : 7/12/2010 10:51:01 AM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ERROR:Array cannot be null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Parameter name: bytes ::&amp;nbsp;&amp;nbsp;&amp;nbsp; at System.Text.Encoding.GetString(Byte[] bytes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.JsonWriter.PrettifyJson(Int32 indentLvl, Int32 indent, Byte[] jsonBytes)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.SOE.SOERESTResponseFormatter.WriteResponse()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.ResponseFormatter.WriteFormattedResponse()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.RequestHandler.ProcessRequest()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; at ESRI.ArcGIS.REST.RestHttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i add a breakpoint on the implementation of HandleRESTRequest, i never get there. However if i modify the operation to take one parameter as &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RestOperation jsonResultOperation = new RestOperation("JsonResultOperation", new String[]{"text"}, new string[]{"json"}, JsonResultOperation);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It works perfectly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 15:20:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-server-throws-error-while-creating-an/m-p/653843#M3185</guid>
      <dc:creator>PrashantKhanal</dc:creator>
      <dc:date>2010-07-12T15:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: ESRI server throws error while creating an operation that does not take any param</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-server-throws-error-while-creating-an/m-p/653844#M3186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem does not exist anymore in the released version. I was working on pre released version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jul 2010 14:37:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/esri-server-throws-error-while-creating-an/m-p/653844#M3186</guid>
      <dc:creator>PrashantKhanal</dc:creator>
      <dc:date>2010-07-15T14:37:52Z</dc:date>
    </item>
  </channel>
</rss>

