help posting xml data to remote web form

Posted on 2011-04-19
Last Modified: 2012-05-11
I need help in posting xml data to a remotely hosted webform in a C# application. The mechanics of it aren't too complex. On my end, I've got an web app which needs to communicate with a remote application. Basically, a button is pushed and the application will pop open a new window, and post xml data to a remotely hosted webform.

I've got the beginnings finished and working. First, I call a web service which returns a session ID. I store that in a local variable. Then I collect local data in MY form into an xml object which is converted to a string (NOT stored as a file, it stays in memory).

The next step is to pop the window locally, and in that new window, post the data to a given url, so that the new window has a pre-populated form on the remote end. I don't have to worry about any of the data once its there, what I am getting stuck on is the actual posting of the xml data to this webform. Can anyone lend me a hand?

One suggestion that was given to me by a co-worker is to create a holder/proxy page. We'll call it "dummy.aspx". I collect the xml data that will be posted, and the url that will eventually be posted TO in session variables. Using a simple JS, I pop the dummy.aspx in a window.

On the dummy.aspx side, I run a window.navigate or something to the URL to be posted to, along with the xml data as multi-part in the form. So the dummy.aspx kind of acts like a "placeholder" for the real stuff after the post happens.

This seems to be really roundabout though... isnt there an easier way to do this?

So to summarize:

My end - web form, collected data in xml string, url to be posted to
Their end - remotely hosted webform, expecting a post from me with xml data
The goal - pop the window on my webform, posting the xml data I collected to the url to be posted to

Thanks! Let me know if I can be more specific with anything.
Question by:nuvium
    1 Comment
    LVL 30

    Accepted Solution


    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now