rmarra Posted December 6, 2010 Report Share Posted December 6, 2010 Boa noite a todos.. Senhores, eu baixei da parte de dicas na pagina principal do site uma classe que faz uso de webservice, e por sinal funciona muito bem. http://www.fivewin.com.br/exibedicas.asp?id=480 Mas gostaria de usar com proxy, é possivel? Se sim, poderiam compartilhar? Antecipadamente agradeço. Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 6, 2010 Author Report Share Posted December 6, 2010 Boa noite a todos.. Senhores, eu baixei da parte de dicas na pagina principal do site uma classe que faz uso de webservice, e por sinal funciona muito bem. http://www.fivewin.com.br/exibedicas.asp?id=480 Mas gostaria de usar com proxy, é possivel? Se sim, poderiam compartilhar? Antecipadamente agradeço. Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
vailtom Posted December 7, 2010 Report Share Posted December 7, 2010 Procure por PocketSoap que ele faz isto que vc deseja. Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 7, 2010 Author Report Share Posted December 7, 2010 Bom dia Vailton! é que para este sistema que preciso ainda é em 16 bits. Tem alguma solução? Obrigado! Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
Marca Posted December 7, 2010 Report Share Posted December 7, 2010 citação:Boa noite a todos.. Senhores, eu baixei da parte de dicas na pagina principal do site uma classe que faz uso de webservice, e por sinal funciona muito bem. http://www.fivewin.com.br/exibedicas.asp?id=480 Mas gostaria de usar com proxy, é possivel? Se sim, poderiam compartilhar? Antecipadamente agradeço. Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop id=quote>id=quote>Bom dia a todos Rondinelli Vc poderia mostrar algum exemplo de aplicação com esta classe ? Marcelo Ferro Petrópolis - Rj Fwh9.01/xHarbour 1.1.0 Simplex /SqlLib /xMate/WS e Pelles Quote Link to comment Share on other sites More sharing options...
vailtom Posted December 7, 2010 Report Share Posted December 7, 2010 citação:Bom dia Vailton! é que para este sistema que preciso ainda é em 16 bits. Tem alguma solução?id=quote>id=quote>xi... infelizmente nenhuma ideia me vem a cabeca agora. =( Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 7, 2010 Author Report Share Posted December 7, 2010 Olá Marcelo, tb. estou começando a ver agora. No exemplo abaixo, ele me retorna o conteúdo xml. Meu problema é usar com proxy por ainda ser 16 bits. Ex: ws:=TdWebService():new() msgalert(ws:OpenWS('http://www.medifacil.com.br/httpservice.php?servico=1&usuario=3245&senha=cb0f889221cccf709f727cac52c27f8c&beneficiario=MG-0000-000000')) Assim que evoluir posto demais exemplos. Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 14, 2010 Author Report Share Posted December 14, 2010 Senhores, a classe funciona perfeita, porém tem esta questão do proxy. Será que realmente não tem como ajustar para funcionar com proxy? Obrigado!! Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
Geo_sts Posted December 14, 2010 Report Share Posted December 14, 2010 Boa tarde Posta ai a maneira que vc tem q passar! pq tem q ser via PROXY ? Geovanni Holior Analista de Sistema Clip53 * FHW 9.1/../9.5 MySql skype:geovanni.holior " Tudu Posso naquele que me Fortalece!" Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 14, 2010 Author Report Share Posted December 14, 2010 É porque o cliente usa proxy na sua rede. Precisaria passar o Login, Senha, IP e porta para liberação para acesso a internet. Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
FiveWinBr Posted December 14, 2010 Report Share Posted December 14, 2010 Esse PRG que vc esta usando não é para WebService é um POG. ( com apenas o nome de webservice ) O que vc esta precisando neste caso é uma forma de usar proxy com a "wininet.dll", que faz conexão com HTTP ( Hypertext Transfer Protocol ) e não WSDL ( Web Service Definition Language ) você deve procurar a forma de se usar proxy com ele, e nao webservice que é totalmente diferente. O que pode lhe ajudar: http://msdn.microsoft.com/en-us/library/aa384075(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/aa384240(v=VS.85).aspx Att. Lailton http://www.lailton.com.br E-mail/MSN: suporte@redstarsoft.com.br xHarbour 1.2.1 | Fivewin 10.10 | Borland 5.8.2 | Dolphin MySQL Quote Link to comment Share on other sites More sharing options...
Geo_sts Posted December 15, 2010 Report Share Posted December 15, 2010 da uma olhada http://forums.fivetechsupport.com/viewtopic.php?f=6&t=20281&p=107648&hilit=proxy#p107648 ve se ajuda! Geovanni Holior Analista de Sistema Clip53 * FHW 9.1/../9.5 MySql skype:geovanni.holior " Tudu Posso naquele que me Fortalece!" Quote Link to comment Share on other sites More sharing options...
Geo_sts Posted December 15, 2010 Report Share Posted December 15, 2010 acho q essa clareia mais: #include "FiveWin.ch" #define HTTPREQUEST_PROXYSETTING_DEFAULT 0 #define HTTPREQUEST_PROXYSETTING_PRECONFIG 0 #define HTTPREQUEST_PROXYSETTING_DIRECT 1 #define HTTPREQUEST_PROXYSETTING_PROXY 2 Function Main() MsgInfo( Tipo_de_cambio(), "US Dollar" ) Return Nil Function Tipo_de_cambio() Local oHttp, ; cResp := "" Try oHttp := CreateObject("winhttp.winhttprequest.5.1") oHttp:Open("GET","http://www.peru.gob.pe/",.f.) oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_DEFAULT ) // toma valores del registro // oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, "proxy_server:80", "192.10.1.7" ) // explÃcito oHttp:Send() cResp := oHttp:ResponseText() Catch MsgStop( "Error" ) Return cResp End Try cResp := SubStr( cResp, At( "Tipo de cambio C: S/. ", cResp ) ) cResp := StrTran( StrTran( Substr( cResp, 1, At( "", cResp ) - 1 ), "C: S/.", "Compra: S/." ), "V: S/.", ; "Venta: S/." ) Return cResp Geovanni Holior Analista de Sistema Clip53 * FHW 9.1/../9.5 MySql skype:geovanni.holior " Tudu Posso naquele que me Fortalece!" Quote Link to comment Share on other sites More sharing options...
rmarra Posted December 16, 2010 Author Report Share Posted December 16, 2010 Obrigado Geovanni, vou testar! Rondinelli - Itaocara-RJ Clipper 5.3b, Fivewin 2.6, Blinker 7, WorkShop Quote Link to comment Share on other sites More sharing options...
sambomb Posted December 17, 2010 Report Share Posted December 17, 2010 citação:acho q essa clareia mais: #include "FiveWin.ch" #define HTTPREQUEST_PROXYSETTING_DEFAULT 0 #define HTTPREQUEST_PROXYSETTING_PRECONFIG 0 #define HTTPREQUEST_PROXYSETTING_DIRECT 1 #define HTTPREQUEST_PROXYSETTING_PROXY 2 Function Main() MsgInfo( Tipo_de_cambio(), "US Dollar" ) Return Nil Function Tipo_de_cambio() Local oHttp, ; cResp := "" Try oHttp := CreateObject("winhttp.winhttprequest.5.1") oHttp:Open("GET","http://www.peru.gob.pe/",.f.) oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_DEFAULT ) // toma valores del registro // oHttp:SetProxy( HTTPREQUEST_PROXYSETTING_PROXY, "proxy_server:80", "192.10.1.7" ) // explÃcito oHttp:Send() cResp := oHttp:ResponseText() Catch MsgStop( "Error" ) Return cResp End Try cResp := SubStr( cResp, At( "Tipo de cambio C: S/. ", cResp ) ) cResp := StrTran( StrTran( Substr( cResp, 1, At( "", cResp ) - 1 ), "C: S/.", "Compra: S/." ), "V: S/.", ; "Venta: S/." ) Return cResp Geovanni Holior Analista de Sistema Clip53 * FHW 9.1/../9.5 MySql skype:geovanni.holior " Tudu Posso naquele que me Fortalece!" id=quote>id=quote>Só tem que levar em consideração que 16 bits não aceita Try - Catch SamirSSabreu@gmail.com samirabreu@hotmail.com Skype: SamirAbreu xHarbour 1.1.0 + FwXh 8.02id=black>"Acreditar é mais fácil do que pensar: Daà existem muito mais crentes do que pensadores.†Bruce Calvert Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.