<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Oussama さんのアクティビティ</title><link>https://www.aras.com/community/members/oussama</link><description>Oussama さんの最近のアクティビティ</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>webservice consumption</title><link>https://www.aras.com/community/f/development/9236/webservice-consumption</link><pubDate>Thu, 12 Mar 2020 11:19:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:722e428c-90f6-4eb8-b669-affcb3ad1a5f</guid><dc:creator>mouad</dc:creator><description>&lt;p&gt;Hello All,&lt;br /&gt;&lt;br /&gt;I have a question please regarding&amp;nbsp;the consumption of a webservice&lt;br /&gt;&lt;br /&gt;the goal is to create an item with 2 properties in the instance B (http://machineB/InnovatorTwo/Client) from another instance A (http://machineA/InnovatorOne/Client&lt;span&gt;)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;When i try to add&amp;nbsp; an item with&amp;nbsp;&amp;quot;POST&amp;quot; it doesn&amp;#39;t work. (see screnshoot below)&lt;br /&gt;&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/3/pastedimage1584011289246v1.png" alt=" " /&gt;&lt;br /&gt;&lt;br /&gt;Below is the&amp;nbsp;server method&amp;nbsp;that i have used in the instance InnovatorOne&amp;nbsp; that is installed in machineA to add an item :&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;const string url = &amp;quot;http://machineB/InnovatorTwo/Client&amp;quot;;&lt;br /&gt;const string db = &amp;quot;databaseOne&amp;quot;;&lt;br /&gt;const string user = &amp;quot;admin&amp;quot;;&lt;br /&gt;const string password = &amp;quot;pswd&amp;quot;;&lt;br /&gt;var httpServerConnection = IomFactory.CreateHttpServerConnection(url, db, user, password);&lt;br /&gt;&lt;br /&gt;var loginResult = httpServerConnection.Login();&lt;/p&gt;
&lt;p&gt;if (loginResult.isError()) return loginResult;&lt;/p&gt;
&lt;p&gt;var remoteInnovator = IomFactory.CreateInnovator(httpServerConnection);&lt;/p&gt;
&lt;p&gt;var remoteParts = remoteInnovator.newItem(&amp;quot;NameOfTheItem&amp;quot;, &amp;quot;add&amp;quot;);&lt;/p&gt;
&lt;p&gt;remoteParts.setProperty(&amp;quot;propertyOne&amp;quot;, &amp;quot;valueOne&amp;quot;);&lt;br /&gt;remoteParts.setProperty(&amp;quot;propertyTwo&amp;quot;, &amp;quot;valueTwo&amp;quot;);&lt;/p&gt;
&lt;p&gt;return remoteParts.apply();&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;NOTE: the error appears when i run the method from Actions &amp;gt; run server method&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>How to solve the error: The remote name could not be resolved: &amp;#39;HostUrl&amp;#39;</title><link>https://www.aras.com/community/f/development/9231/how-to-solve-the-error-the-remote-name-could-not-be-resolved-hosturl</link><pubDate>Wed, 11 Mar 2020 08:51:29 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:5d311810-9fdd-472f-a2b8-6f51e8ed9e6c</guid><dc:creator>Oussama</dc:creator><description>&lt;p&gt;Hi All,&lt;br /&gt;I am new to ARAS and i try to get familiarized with its concepts.&lt;br /&gt;In the current situation i try to connect two ARAS entities so they can send requests between each other (add, update, delete...)&lt;br /&gt;&lt;br /&gt;I created a server event method on ARAS N&amp;deg;2 to send request to ARAS N&amp;deg;1 using the code below:&lt;/p&gt;
&lt;p&gt;Innovator inn = this.getInnovator();&lt;br /&gt;string myUrlAdress= &amp;quot;&amp;quot;&amp;gt;hostOfAras1/.../anItemType&amp;quot;;&lt;br /&gt;var request = (HttpWebRequest)WebRequest.Create(myUrlAdress);&lt;br /&gt;request.Method = &amp;quot;POST&amp;quot;;&lt;br /&gt;AuthenticateHeader(request);&lt;br /&gt;string postData= &amp;quot;{\&amp;quot;_propretyOne\&amp;quot;:\&amp;quot;ValueOne\&amp;quot;,\&amp;quot;_propertyTwo\&amp;quot;: \&amp;quot;valueTwo\&amp;quot;}&amp;quot;;&lt;br /&gt;var streamWriter = new StreamWriter(request.GetRequestStream());&lt;br /&gt;streamWriter.Write(postData);&lt;br /&gt;streamWriter.Flush();&lt;br /&gt;streamWriter.Close();&lt;br /&gt;return this;&lt;br /&gt;}&lt;br /&gt;private void AuthenticateHeader(WebRequest req)&lt;br /&gt;{&lt;br /&gt;req.Headers.Add(&amp;quot;AUTHUSER&amp;quot;, &amp;quot;admin&amp;quot;);&lt;br /&gt;req.Headers.Add(&amp;quot;AUTHPASSWORD&amp;quot;, &amp;quot;607920b64fe136f9ab2389e371852af2&amp;quot;);&lt;br /&gt;req.Headers.Add(&amp;quot;DATABASE&amp;quot;, &amp;quot;DataBaseOfAras1&amp;quot;);&lt;br /&gt;req.ContentType = &amp;quot;application/json&amp;quot;;&lt;/p&gt;
&lt;p&gt;When i run it i get the following error: &lt;span style="background-color:#ffffff;color:#444444;float:none;font-family:Tahoma, Arial, Helvetica, sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-line;"&gt;The remote name could not be resolved: &amp;#39;hostOfAras1&amp;#39; of type &lt;b style="background-color:#ffffff;color:#444444;font-family:Verdana;font-size:x-small;font-style:normal;font-weight:bolder;letter-spacing:normal;text-align:start;text-indent:-10px;text-transform:none;white-space:normal;"&gt;System.Net.WebException&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;NOTE: After some debug i noticed that the error is generated by this line of code &amp;quot; var streamWriter = new StreamWriter(request.GetRequestStream()); &amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>Ask A Question I</title><link>https://www.aras.com/community/achievements/460ac7df-7ccc-4c42-a204-9e05eef3be09</link><pubDate>Wed, 11 Mar 2020 03:09:24 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:9f87079e-0228-435b-b93f-ad3675eabb84</guid><dc:creator /><description>Ask a question in a forum.</description></item></channel></rss>