Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling a .NET Webservice and type casting string to .NET XML Document

 
priyank yadav
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranchos, We have a target system which is on a .NET Webservice. They have exposed WSDL which takes one of the input as xml(XMLDocument of .NET). When we make a call we need to convert our request xml string to .NET Equivalent XMLDocument type. Please suggest a approach for the same.
The following is a sample SOAP request and response. The placeholders shown need to be replaced with actual values.

.NET Webservice
POST /WebService_ITR/WebService.asmx HTTP/1.1
Host: 10.184.151.17
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/WebService/WebService/WM_ExistingUHRegForInitInv"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<c_SoapHeader xmlns="http://tempuri.org/WebService/WebService">
<UserID>string</UserID>
<ModuleID>string</ModuleID>
</c_SoapHeader>
</soap:Header>
<soap:Body>
<WM_ExistingUHRegForInitInv xmlns="http://tempuri.org/WebService/WebService">
<objEntXml>xml</objEntXml>
</WM_ExistingUHRegForInitInv>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<WM_ExistingUHRegForInitInvResponse xmlns="http://tempuri.org/WebService/WebService">
<WM_ExistingUHRegForInitInvResult>xml</WM_ExistingUHRegForInitInvResult>
</WM_ExistingUHRegForInitInvResponse>
</soap:Body>
</soap:Envelope>


OSB Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fcis="http://tempuri.org/FCISWebService/FCISWebService">
<soapenv:Header>
<fcis:cFCIS_SoapHeader>
<!--Optional:-->
<fcis:UserID>?</fcis:UserID>
<!--Optional:-->
<fcis:ModuleID>?</fcis:ModuleID>
</fcis:cFCIS_SoapHeader>
</soapenv:Header>
<soapenv:Body>
<fcis:WM_UHACCINQUIRY>
<!--Optional:-->
<fcisbjEntXml>
<UPLOAD_UH>
<CHANNELTYPE>ATM</CHANNELTYPE>
<REQUESTORIDENTIFICATION>TESTFDSSERVER</REQUESTORIDENTIFICATION>
<DEVICEOWNER>ABB</DEVICEOWNER>
<UNITHOLDERID>000000160937</UNITHOLDERID>
<FIRSTNAME>Barack Obama</FIRSTNAME>
<IDENTIFICATIONTYPE>O</IDENTIFICATIONTYPE>
<IDENTIFICATIONNUMBER>S00000443285</IDENTIFICATIONNUMBER>
<FUNDID>ASB</FUNDID>
<INQUIRYCODE>0</INQUIRYCODE>
<TRANSACTIONDATE>03/11/2015</TRANSACTIONDATE>
<TRANSACTIONTIME>13:00</TRANSACTIONTIME>
<BANKTXNREFERENCENUMBER>100</BANKTXNREFERENCENUMBER>
<BANKCUSTPHONENUMBER>100</BANKCUSTPHONENUMBER>
</UPLOAD_UH>
</fcisbjEntXml>
</fcis:WM_UHACCINQUIRY>
</soapenv:Body>
</soapenv:Envelope>


Its a straight through processing any help w.r.t fn-bea:inlinedXML
which you want me to try. or any other solution is very much appreciated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic