Win a copy of Learning Java by Building Android Games this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

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

 
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
Boost this thread!