<?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: Getting a value from the url in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276893#M230023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The url am trying to access the webscript is &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/22222/workspace://SpacesStore/895b0032-90e5-4672-949c-c320891ede48" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/22222/workspace://SpacesStore/895b0032-90e5-4672-949c-c320891ede48&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have provided all the files in the first posted message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2013 08:02:09 GMT</pubDate>
    <dc:creator>sandile</dc:creator>
    <dc:date>2013-02-12T08:02:09Z</dc:date>
    <item>
      <title>Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276890#M230020</link>
      <description>Hi I am trying to retrieve the noderef and serialnumber arguments from the url.Every time i try to implement it gives me an error message "script url does not map to a webscript"&amp;lt;DESCRIPTOR file&amp;gt;&amp;lt;webscript&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;shortname&amp;gt;Update Serial Number&amp;lt;/shortname&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;description&amp;gt;Up</description>
      <pubDate>Mon, 11 Feb 2013 11:52:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276890#M230020</guid>
      <dc:creator>sandile</dc:creator>
      <dc:date>2013-02-11T11:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276891#M230021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what URL are you using to access your webscript?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2013 13:43:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276891#M230021</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2013-02-11T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276892#M230022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in order to help you, please provide all your files correctly formatted using blockcode tag and the exact url you call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So we'll be able reproduce your exact condition…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andrea&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 07:52:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276892#M230022</guid>
      <dc:creator>abarisone</dc:creator>
      <dc:date>2013-02-12T07:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276893#M230023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The url am trying to access the webscript is &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/22222/workspace://SpacesStore/895b0032-90e5-4672-949c-c320891ede48" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/22222/workspace://SpacesStore/895b0032-90e5-4672-949c-c320891ede48&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have provided all the files in the first posted message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 08:02:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276893#M230023</guid>
      <dc:creator>sandile</dc:creator>
      <dc:date>2013-02-12T08:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276894#M230024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are two ways to pass parameter &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the way you are passing parameter it going as part of url of webscript So you can access it as follow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var fullpath=url.extension.split("/");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var serialnum=fullpath[0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here url.extension is nothing but it will be your this part of URL&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;rest of the information you need to access through string operations &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but you will face problem if you use .split because noderef contains "/" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;22222/workspace://SpacesStore/895b0032-90e5-4672-949c-c320891ede48&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also It seems like URL which you are using is not proper.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 09:51:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276894#M230024</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-12T09:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276895#M230025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;please bear with me am a student learning alfresco.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please enlighten me on the proper url to use. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am trying to do is to use the serial number of the content type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am using the Alfresco training Web Scripts Student Guide version 2.1. am on lab 2&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 10:18:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276895#M230025</guid>
      <dc:creator>sandile</dc:creator>
      <dc:date>2013-02-12T10:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276896#M230026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can go to this url&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt; then click on browser all url&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then search for your script url in that list by name "Update Serial Number"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is registered properly it will be there&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there you will have some url like "GET&amp;lt;REST OF THE URL&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When you click on that link it will redirect you to the actual url of your script &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;all you need to do is replace the arguments with proper value.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 10:30:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276896#M230026</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-12T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276897#M230027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ohk that was great progress at last. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the problem is i went to the url and put in the arguments but gave me an&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ERROR 01120005 Web Script URI '/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff' not found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;mind you that this type exists.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 11:30:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276897#M230027</guid>
      <dc:creator>sandile</dc:creator>
      <dc:date>2013-02-12T11:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276898#M230028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should be something like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://localhost:8080/alfresco/service/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;and if it is showing in the url list it means it is registered&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any other error in log &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;post the screenshot of your browser with the url and result&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 11:37:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276898#M230028</guid>
      <dc:creator>mitpatoliya</dc:creator>
      <dc:date>2013-02-12T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a value from the url</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276899#M230029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;URL: &lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/service/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/service/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Web Script Status 404 - Not Found&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Web Script /alfresco/service/com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff has responded with a status of 404 - Not Found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;404 Description:&amp;nbsp;&amp;nbsp;&amp;nbsp; Requested resource is not available.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Message:&amp;nbsp;&amp;nbsp;&amp;nbsp;01120007 Script url /com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff does not map to a Web Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exception:&amp;nbsp;&amp;nbsp;&amp;nbsp;org.springframework.extensions.webscripts.WebScriptException - 01120007 Script url /com/greenenergy/em/lab2/updateserialnum/22222/85f170c7-26af-42d8-a913-6c8c6e8d51ff does not map to a Web Script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:173)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;javax.servlet.http.HttpServlet.service(HttpServlet.java:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.Thread.run(Thread.java:722)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server:&amp;nbsp;&amp;nbsp;&amp;nbsp;Community v4.2.0 (4576) schema 6,022&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Time:&amp;nbsp;&amp;nbsp;&amp;nbsp;Feb 12, 2013 2:03:48 PM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry screenshot can't be posted, i copied the whole page.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2013 12:19:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getting-a-value-from-the-url/m-p/276899#M230029</guid>
      <dc:creator>sandile</dc:creator>
      <dc:date>2013-02-12T12:19:07Z</dc:date>
    </item>
  </channel>
</rss>

