AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Payload ssl delphi 712/7/2022 ![]() I don't know if using the "REST clients" are something that I need.Įdit: Using Firefox I got an extension named "Httprequester" but I can't make a successful request/POST.Įdited Novemby Mr. Maybe with a working example can I go forward. I need to read some basic documentation, but alas, I don't know how to start. Consulta ( representacionI ) finally with vAcuse do ShowMessage ( CodigoEstatus + '/ ' + EsCancelable + '/ ' + Estado + '/ ' + EstatusCancelacion ) end end doConsulta ( const representacionI : string ) var AddStrings ( S ) finallyĬonsuming the web services is a lot easier, just I need to Import the WSDL (is hidden right now but I still manage to get before), create the unit and start using the service, the consume is just: Add ( Format ( 'Response Text: %s', )) // ERROR: //HTTP/1.1 415 Cannot process the message because the content type //'application/x-www-form-urlencoded' was not the expected type 'text/xml charset=utf-8'. Add ( Format ( 'Response Code: %d', )) Memo1. IOHandler := IdSSLIOHandlerSocketOpenSSL1 // := 'application/x-Lines. Button2Click ( Sender : TObject ) var S : TStringList Post ( '', data ) //ERROR //HTTP/1.1 415 Cannot process the message because the content type 'multipart/form-data boundary=-111018174150958' //was not the expected type 'text/xml charset=utf-8'. Create try // add the used parameters for the scriptĭata. Button3Click ( Sender : TObject ) varĭata : TIdMultiPartFormDataStream beginĭata := TIdMultiPartFormDataStream. ObjectScope, IdIOHandler, IdIOHandlerSocket, IdIOHandlerStack, IdSSL, IdSSLOpenSSL. StdCtrls, IdBaseComponent, IdComponent, IdTCPConnection, IdTCPClient, IdHTTP, Xml. I'm trying using the REST clients, the Indy Http. I try something like this, using Indy but the web is a dark box for me in Delphi. Debido a que el SAT oculto la declaración del WebService en productivo lo consumiremos a través de un HTTP Request POST indicándole los datos correspondientes.īecause the SAT hidden the WebService declaration in productive, we will consume it through an HTTP Request POST indicating the corresponding data. ![]()
0 Comments
Read More
Leave a Reply. |