<?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 Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280383#M7242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still no answer? I have same problem. Can anyone help? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Aug 2012 08:56:27 GMT</pubDate>
    <dc:creator>MiroslavVladár</dc:creator>
    <dc:date>2012-08-12T08:56:27Z</dc:date>
    <item>
      <title>Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280379#M7238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have followed the basic example for creating a SOAP Server Object Extension (SOE) using the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/SOAP_Web_services/000100000mpw000000/"&gt;walkthrough&lt;/A&gt;&lt;SPAN&gt; provided by ESRI, but have encountered a problem:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;STRONG&gt;It appears that ArcGIS Server is not looking in the "XmlClassRegistry" folder/sub-folders for files defining mappings between custom XML and COM-visible types.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The effect is that any attempt to deserialize an XML type as its corresponding COM class fails with "Exception from HRESULT: 0x80043068" (XML_SERIALIZE_E_CANT_MAP_XMLTYPE_TO_CLASS).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the custom XML/COM type mapping definitions are moved to the "XmlSupport.dat" that ArcGIS Server uses to map ESRI types, then the custom types can be correctly deserialized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a defect in ArcGIS Server related to custom type deserialization, or is the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/SOAP_Web_services/000100000mpw000000/"&gt;SOAP SOE walkthrough&lt;/A&gt;&lt;SPAN&gt; incomplete in this regard?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be greatly appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jan 2011 14:15:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280379#M7238</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2011-01-11T14:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280380#M7239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having this same problem.&amp;nbsp; Can someone at ESRI comment?&amp;nbsp; Who created this sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have followed the basic example for creating a SOAP Server Object Extension (SOE) using the &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/SOAP_Web_services/000100000mpw000000/"&gt;walkthrough&lt;/A&gt; provided by ESRI, but have encountered a problem:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[INDENT]&lt;STRONG&gt;It appears that ArcGIS Server is not looking in the "XmlClassRegistry" folder/sub-folders for files defining mappings between custom XML and COM-visible types.&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The effect is that any attempt to deserialize an XML type as its corresponding COM class fails with "Exception from HRESULT: 0x80043068" (XML_SERIALIZE_E_CANT_MAP_XMLTYPE_TO_CLASS).&lt;BR /&gt;&lt;BR /&gt;If the custom XML/COM type mapping definitions are moved to the "XmlSupport.dat" that ArcGIS Server uses to map ESRI types, then the custom types can be correctly deserialized.&lt;BR /&gt;[/INDENT]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Is there a defect in ArcGIS Server related to custom type deserialization, or is the &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/SOAP_Web_services/000100000mpw000000/"&gt;SOAP SOE walkthrough&lt;/A&gt; incomplete in this regard?&lt;BR /&gt;&lt;BR /&gt;Any help would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jan 2011 13:44:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280380#M7239</guid>
      <dc:creator>JerryGarcia</dc:creator>
      <dc:date>2011-01-24T13:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280381#M7240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, no answer about it??, I have the same problem, I can't use a custom type for a parameter, did any one find a solution for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am having this same problem.&amp;nbsp; Can someone at ESRI comment?&amp;nbsp; Who created this sample?&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2012 01:36:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280381#M7240</guid>
      <dc:creator>Kevin_FernandoEscalera_Robles</dc:creator>
      <dc:date>2012-03-26T01:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280382#M7241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If the ESRI sample does not work out of the box then my suggestion is to file an incident with ESRI support.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should be really easy for them to reproduce, right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2012 15:25:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280382#M7241</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2012-03-31T15:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280383#M7242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still no answer? I have same problem. Can anyone help? Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Aug 2012 08:56:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280383#M7242</guid>
      <dc:creator>MiroslavVladár</dc:creator>
      <dc:date>2012-08-12T08:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280384#M7243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have any solutions for this problem on ArcGIS Server 10.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I began pulling my hair out and trying every possible thing. Nothing was working....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THanks!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 13:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280384#M7243</guid>
      <dc:creator>siyufan</dc:creator>
      <dc:date>2014-02-03T13:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280385#M7244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Lots of info in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/20440-SOAP-Server-Object-Extension-(SOE)-how-to-deserialize-custom-types?p=255614#post255614"&gt;this thread&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I originally had this problem (at Arc 10.0), I believe it was attributed to my XML type-mapping file being in the wrong folder.&amp;nbsp; The correct folder would be something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]C:\Program Files\Common Files\ArcGIS\Server10.2\XmlClassRegistry\YourOrganizationName\[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The second time I had this problem (at Arc 10.1), it was related to the registering of my custom types.&amp;nbsp; See &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDgzMzAw"&gt;NIM083300&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2014 18:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280385#M7244</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2014-02-03T18:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280386#M7245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Lots of info in &lt;A href="http://forums.arcgis.com/threads/20440-SOAP-Server-Object-Extension-(SOE)-how-to-deserialize-custom-types?p=255614#post255614"&gt;this thread&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;When I originally had this problem (at Arc 10.0), I believe it was attributed to my XML type-mapping file being in the wrong folder.&amp;nbsp; The correct folder would be something like:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[INDENT]C:\Program Files\Common Files\ArcGIS\Server10.2\XmlClassRegistry\YourOrganizationName\[/INDENT]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The second time I had this problem (at Arc 10.1), it was related to the registering of my custom types.&amp;nbsp; See &lt;A href="http://support.esri.com/en/bugs/nimbus/TklNMDgzMzAw"&gt;NIM083300&lt;/A&gt;.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your reply ,ebrimhall.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried register the dll file with the command "C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe /codebase " with 64bit regasm, and it showed "Type registered successfully"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I try to deserialize the params, the same error shows up.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And the XML type-mapping file is also in XmlClassRegistry folder....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW, I am using ArcGIS 10.2&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 14:03:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280386#M7245</guid>
      <dc:creator>siyufan</dc:creator>
      <dc:date>2014-02-04T14:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280387#M7246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just in case someone else will have the same prblm. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am still have this issue to deserialize the custom type by IXMLdeserialize function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I use the following function to get the passing in xml. and create an xml parse function by myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public static string Read(this IMessage message)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; string xml;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; XMLStreamClass xmlStream = new XMLStreamClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; message.WriteXML(xmlStream);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; xml = xmlStream.SaveToString();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return xml;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help, ebrimhall!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2014 21:39:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280387#M7246</guid>
      <dc:creator>siyufan</dc:creator>
      <dc:date>2014-02-04T21:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280388#M7247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi fans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's unfortunate you're having to manually read and deserialize the XML.&amp;nbsp; At least you know that will work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have not gotten so far as to verify that this XML object deserialization works at 10.2, but I can share the results soon.&amp;nbsp; In general, I've seen problems with this functionality stem from the following areas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;XML type mapping file is missing or in the wrong location.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;XML type mapping file is malformed or has some other error.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Custom type class has a problem in its Deserialize method.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Custom type defined in SOE WSDL has an error or in some way does not align with the corresponding class.&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;BR /&gt;&lt;SPAN&gt;It's challenging to pinpoint which of the above, if any, could be causing a problem.&amp;nbsp; I typically start with the simplest implementation (e.g. a custom type with a single string attribute) and ramp things up from there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I said, I will be making the jump to 10.2 soon and update this thread with my progress.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 17:47:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280388#M7247</guid>
      <dc:creator>ErinBrimhall</dc:creator>
      <dc:date>2014-02-05T17:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: Server Object Extension (SOE) - XmlClassRegistry Files Not Used?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280389#M7248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am just falling into the deep hole of SOE deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through the example and found that the code is not for 10.1.&amp;nbsp; First I got somewhere around 20 build failures when trying to build the example.&amp;nbsp; Second it says to use RegAsm but ESRI documentation in another area now says stop using that and use ESRIRegAsm which goes back to 9.3.1.&amp;nbsp; That should give you a taste for how old that example is.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LOL the only documentation that appears to be decent and it is useless for the current software.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2014 20:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/server-object-extension-soe-xmlclassregistry-files/m-p/280389#M7248</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2014-02-05T20:35:43Z</dc:date>
    </item>
  </channel>
</rss>

