mercredi 16 décembre 2020

How to code for XML Request for UCC Upload in C#? [closed]

XML Request for UCC Upload:

<?xml version='1.0' encoding='utf-8'?>
<soap-env:Envelope xmlns:ns1="http://tempuri.org/" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soap-env:Header>
<ns3:Action
xmlns:ns3="http://www.w3.org/2005/08/addressing">http://tempuri.org/IMFUploadService/MFAPI</n
s3:Action>
<ns4:To
xmlns:ns4="http://www.w3.org/2005/08/addressing">http://bsestarmfdemo.bseindia.com/MFUploadS
ervice/MFUploadService.svc/Basic</ns4:To>
</soap-env:Header>
<soap-env:Body>
<ns1:MFAPI>
<ns1:Flag>02</ns1:Flag>
<ns1:UserId>1000001</ns1:UserId>
<ns1:EncryptedPassword>/OEBxWPm/KPU0j7y04lJ8RpiFrn++A8Jb2sJymYtb5lI5eNyUWCrYA==</ns1:
EncryptedPassword> <ns1:param>4|SI|01|01|Demo|||05/08/1982|M||ABCDE0000A||||P||||||SB|
50100000000000|400000006|HDFC0000001|Y||||||||||||||||||||||702, Tower, Society, Area,
|City||City|MA|400001|India|||||demo@gmail.com|E|02|||||||||||||||9000000001</ns1:param>
</ns1:MFAPI>
</soap-env:Body>
</soap-env:Envelope>

XML Response for UCC Upload:

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing"><s:Header><a:Action
s:mustUnderstand="1">http://tempuri.org/IMFUploadService/MFAPIResponse</a:Action></s:Header><
s:Body><MFAPIResponse xmlns="http://tempuri.org/"><MFAPIResult>RECORD INSERTED
SUCCESSFULLY</MFAPIResult></MFAPIResponse></s:Body></s:Envelope>

I need to write code to send soap XML request as per the above example, how to do it in asp.net web forms using c#;




Aucun commentaire:

Enregistrer un commentaire