We help IT Professionals succeed at work.

c# from web form to xml request and response

ITsolutionWizard
on
1,868 Views
Last Modified: 2019-01-28
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?

Thanks
Comment
Watch Question

Developer
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Hope to have some samples codes to read in aspx net c#
Nitin SontakkeDeveloper
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
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
Nitin SontakkeDeveloper
CERTIFIED EXPERT

Commented:
Nitin SontakkeDeveloper
CERTIFIED EXPERT

Commented:
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.

Author

Commented:
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.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.