Help with connection to WebServer via VB

  • Thread starter Thread starter jitsu
  • Start date Start date
J

jitsu

Hi all,
I have a problem. I need to connect Web Server, send a xml string
(query) to it and receive another xml string (resutl).
I have location of the Web Server like: https://extranet....com:8443,
then user name and password,
then I have the certifiace (I have already installed it to my
computer) and
I know the xml query string like:

<invoicing ver="2" action="balancing">
<shpID>1</shpID>
<znaID></znaID>
<date_from>2007-01-01</date_from>
<date_to>2007-01-31</date_to>
<mask>4096</mask>
<trade>1</trade>
</invoicing>

Could someone help plese?
 
In this case, you want to use the HttpWebRequest and HttpWebResponse
classes. They will allow you to form a request to send to the web server,
and receive the response.

Normally, for this kind of thing, I would tell you to use the WebClient
class, but it doesn't allow for that level of customization, where you can
set a certificate for security on the request.
 
Back
Top