問題描述
使用 Dotnet 客戶端與 Java 服務器進行 Https 通信 (Https Communication to Java Server with Dotnet Client)
I need to send financial messages(transactions) to a bank with the help of HTTPS
communication. Bank server is written on Java
while my application is in .Net
.
Following are only details I received from their side:
Https request: • The entire ISO request for https should be sent as an attachment to the following servlet: https:///Servlet/IBSOtherVendorRequestServlet
What are other components or documents required from their side and which namespace
of .Net
can I use for this communication?
Kindly help me on how to proceed.
‑‑‑‑‑
參考解法
方法 1:
You have to know how to query the servlet : SOAP ? REST ? what are the parameters and which method should be used ? result in plain text, XML or JSON ?
It looks like you have to POST a request to this Servlet. You have to know what is an "entire ISO request" then POST it to this url using HttpClient or HttpWebRequest. It will probably look like this : Upload files with HTTPWebrequest (multipart/form‑data)
(by user1602495、Guillaume)