A little about what I am trying to accomplish
I am tyring to do a HttpWebRequest to a company called Paymentech.
Here are some of there requirements:
It supports one method of communication - HTTPS
I will only be doing HTTP POST requests.
The web address are as follows.
orbitalvar1.pay mentech.net/authorize on port 443
Now the XML gateway URL must be accessed using the https protocol. But
interfacing to the Orbital Gateway using SSL does not require us to have a
certificate. The Orbital Gateway uses a non-authenticated SSL session,
meaning the client is not authenticated using a digital certificate as a
component of the SSL negotiation.
The Orbital Gateway uses source IP authentication to authenticate the
request generation. This is only true for the production system, the
development system will not need this.
This is the code I have to try to send the xml:
Dim xmlDoc As New XmlDocument
xmlDoc.Load("C: \CreditCardAuth .xml")
Dim request As HttpWebRequest =
CType(HttpWebRe quest.Create("h ttps://orbitalvar1.pay mentech.net:443/authorize"),
HttpWebRequest)
request.Method = "POST"
Dim requestData As Byte() =
System.Text.Enc oding.UTF8.GetB ytes(xmlDoc.Out erXml)
request.Content Length = xmlDoc.OuterXml .Length
Dim requestStream As Stream = request.GetRequ estStream
requestStream.W rite(requestDat a, 0, requestData.Len gth)
requestStream.F lush()
requestStream.C lose()
Dim response As HttpWebResponse = CType(request.G etResponse,
HttpWebResponse ) Dim responseData As StreamReader = New
StreamReader(re sponse.GetRespo nseStream)
Dim sendData As Byte() = System.Text.Enc oding.UTF8.GetB ytes(xmlDoc.Out erXml)
I am getting this error on the requestStream
The underlying connection was closed: Unable to connect to the remote
server.
TIA,
Brett
I am tyring to do a HttpWebRequest to a company called Paymentech.
Here are some of there requirements:
It supports one method of communication - HTTPS
I will only be doing HTTP POST requests.
The web address are as follows.
orbitalvar1.pay mentech.net/authorize on port 443
Now the XML gateway URL must be accessed using the https protocol. But
interfacing to the Orbital Gateway using SSL does not require us to have a
certificate. The Orbital Gateway uses a non-authenticated SSL session,
meaning the client is not authenticated using a digital certificate as a
component of the SSL negotiation.
The Orbital Gateway uses source IP authentication to authenticate the
request generation. This is only true for the production system, the
development system will not need this.
This is the code I have to try to send the xml:
Dim xmlDoc As New XmlDocument
xmlDoc.Load("C: \CreditCardAuth .xml")
Dim request As HttpWebRequest =
CType(HttpWebRe quest.Create("h ttps://orbitalvar1.pay mentech.net:443/authorize"),
HttpWebRequest)
request.Method = "POST"
Dim requestData As Byte() =
System.Text.Enc oding.UTF8.GetB ytes(xmlDoc.Out erXml)
request.Content Length = xmlDoc.OuterXml .Length
Dim requestStream As Stream = request.GetRequ estStream
requestStream.W rite(requestDat a, 0, requestData.Len gth)
requestStream.F lush()
requestStream.C lose()
Dim response As HttpWebResponse = CType(request.G etResponse,
HttpWebResponse ) Dim responseData As StreamReader = New
StreamReader(re sponse.GetRespo nseStream)
Dim sendData As Byte() = System.Text.Enc oding.UTF8.GetB ytes(xmlDoc.Out erXml)
I am getting this error on the requestStream
The underlying connection was closed: Unable to connect to the remote
server.
TIA,
Brett