473,404 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

receive https post (asp.net)

I am currently developing an app that will post an XML file *(1 to
100MB+ in size) to an outside vendor application via HTTPS P*ost
(doing
this in a vb.net windows app). The vendor will then at some *later
date
post an updated return XML file to my webserver (asp.net). T*he
primary
problem I'm having is getting the posted stream to load in a*n
XMLDocument object. When trying to read the posted stream in*to the
XMLDocument the following error is kicked back from my webse*rver
(seen
by the vendor), "The remote server returned an error: (500) *Internal
Server Error." At minimum I want to make sure that the XML t*hey're
posting to me is well-formed so I don't need to load it into* an
XMLDocument object if there's another way to do it.
Also they're expecting to post their info to me via HTTPS, h*ow can I
set up my page so it's looking for credentials to be passed *along
with
the XML stream? I see how to send credentials to them using
System.Net.NetworkCredential, but I don't see how accept cre*dentials
from the vendor when they post to me.
Code used to accept HTTP post from Vendor:
Dim str As Stream
Dim strmContent As String
Dim strLen As Integer
Dim strRead As Integer
'Request input stream from the poster
str = Request.InputStream
'Get the length of incoming string
strLen = str.Length
'make a Byte array the size of the stream
Dim strArr(strLen) As Byte
'read the stream into the array
strRead = str.Read(strArr, 0, strLen)
'the stream will be ASCII encoded
Dim ascii As ASCIIEncoding = New ASCIIEncoding
'Get ASCII into reg. string here
strmContent = ascii.GetString(strArr)
Dim doc As XmlDocument = New XmlDocument
doc.LoadXml(strmContent)
doc.Save("D:\temp\test5.xml")
'Return Response to poster.
Response.Write("some response")
Any suggestions on what I can do to fix this or possible res*ources
that
might help me out?
Thanks!

Jul 21 '05 #1
0 1328

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Gill Bates | last post by:
I'm trying to login to a banking site (https://www.providentconnection.com) using vb.net. I've tried many variations of WebClient and HttpWebRequest; none of which I've got to work. My latest...
1
by: dave | last post by:
Hello I have one simple form (myform.asp) and it posts to query.asp I had put below code in both file on top of the page to redirect this two pages in https:// so any one can access it thru http...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
8
by: Soeren S. Joergensen | last post by:
Hi, From a win-service I do a HttpWebRequest to a secure url with some parameters to get some simple data from a remote system used later on in a worker thread. When making the request from...
2
by: Amoril | last post by:
I am currently developing an app that will post an XML file (1 to 100MB+ in size) to an outside vendor application via HTTPS Post (doing this in a vb.net windows app). The vendor will then at some...
7
by: Masahiro Ito | last post by:
I need to be login to several websites and download files that are https connections. I just tried IPWorks demo, but it does not seem to offer https. Does anyone know an https capable product,...
0
by: Amoril | last post by:
I am currently developing an app that will post an XML file ­(1 to 100MB+ in size) to an outside vendor application via HTTPS P­ost (doing this in a vb.net windows app). The vendor will then at...
0
by: David Mediavilla | last post by:
I am writing a client for an HTTPS web service using WSE 1.0 but I always get an error like "The underlying connection was closed: An unexpected error occurred on a send." Sometimes the error...
11
by: IfThenElse | last post by:
Hello, Is there a set up in IIS 6.0 on W2K3 that can automatically switch my users from http to https. I know there are scripts that can be added to do that. But is there a universal...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.