Avatar of ITsolutionWizard
ITsolutionWizardFlag for United States of America asked on

c# from web form to xml request and response

I have simple asp.net webpage with contact form. So when a button is clicked, it want to generate xml

String firstname = FirstName.Text,

String xmlstring = “<xml><person><firstname>” + firstname + “</firstname></person></xml>”;

And then, want to take the xml string, and do a post method soap request to the server.abc.com.

And then, I should get response from the server.abc.com

How can I get start it using c#/asp.net?


Avatar of undefined
Last Comment

8/22/2022 - Mon
Nitin Sontakke

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Hope to have some samples codes to read in aspx net c#
Nitin Sontakke

Honestly, you will find loads of code samples should just google in separate parts (asp.net capture form data example, C# xml serialisation example, c# soap request example, etc.) All of these are independent of each other hence separate searches.

However, happy to help if you could share whatever you already have.

Still would insist to do it yourself as that would help you best.

I can't find any good working samples on google. Let me know if you have any good sources so I can start from there
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Nitin Sontakke

Nitin Sontakke

In addition, if you have a wsdl of the web-service, just include a web-reference in your project and call a method as if the that method is in your C# project. Adding web-reference generate all the code required to make a soap request. Virtually NO CODE is required in this approach, but you almost no control over soap envelop.

Actually, I look for something that work with request and response xml in common. I only want to see response status is successful or not.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.