Unofficial Content

Crear un procedimiento que sea main y call protocol HTTP

escribir el siguinte código en el souce:

//&RSS es un sdt cuya definicion se puede sacar del kb de gxwiki

&httpClient.Host            = "wiki.gxtechnical.com"
&httpClient.ProxyServerHost = "10.248.16.99"
&httpClient.ProxyServerPort = 8181
&httpClient.Execute("GET","/commwiki/servlet/arecentpagesrss")

&RSS.FromXml(&httpClient.ToString())

for &rssChannel in &RSS.channels
    &items = &rssChannel.items.Count
    &item = 1
    for &item=1 to &items
        &title = &rssChannel.items.Item(&item).title
        if &title.Substring(1,5)= "user:"
            &rssChannel.items.Remove(&item)
            &items -= 1
            &item  -= 1
        endif
    endfor
endfor

&HTTPResponse.AddHeader("content-type","text/xml")
&HTTPResponse.AddString(&RSS.ToXml(true))

PD: hice esta pagina para ver si funciona!!!

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant