12/29/2022 0 Comments Exemplo rest delphi![]() ![]() ![]() 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
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |