Conversion of xml to string with characters (XML Doc) Biztalk
hey have formed xml need convert xml doc below ,
well formed schema :
<batch_process><applicant><name last_name="bermuda digital communications" /><address><address_line1>5 reid street kitson building, 2nd floor
hamilton,hm 11
bmu</address_line1><city>hamilton</city><postal_code>hm 11</postal_code><country country_code="bmu" /></address><phone>5637190327</phone><account_number>31000000840</account_number></applicant><applicant><name last_name="blackberry" /><address><address_line1>295 phillip street
waterloo,onn2l 3w8
can</address_line1><city>waterloo</city><state>on</state><postal_code>n2l 3w8</postal_code><country country_code="can" /></address><phone /><account_number>31000000843</account_number></applicant><applicant><name last_name="boolchand pessoomal (b.e) b.v" /><address><address_line1>freezone block d-i # 1
curacao
ant</address_line1><city>curacao</city><country country_code="ant" /></address><phone>5637190347</phone><account_number>31000000846</account_number></applicant><applicant><name last_name="avadanian & associates" /><address><address_line1>281 young harris st suite d pmb 273
blairsville,ga30512
usa</address_line1><city>blairsville</city><state>ga</state><postal_code>30512</postal_code><country country_code="usa" /></address><phone /><account_number>31000000830</account_number></applicant><applicant><name last_name="advantage wireless miami" /><address><address_line1>2700 nw 72 nd ave
miami,fl33122
usa</address_line1><city>miami</city><state>fl</state><postal_code>33122</postal_code><country country_code="usa" /></address><phone>5637190362</phone><account_number>31000000807</account_number></applicant><applicant><name last_name="am wireless uruguay s.a." /><address><address_line1>avenida general san martin 246
montevideo,ury</address_line1><city>montevideo</city><country country_code="ury" /></address><phone>5637190367</phone><account_number>31000000817</account_number></applicant><applicant><name last_name="aeg wireless, inc" /><address><address_line1>1923 mcdonald ave suite b
brooklyn,ny11223
usa</address_line1><city>brooklyn</city><state>ny</state><postal_code>11223</postal_code><country country_code="usa" /></address><phone>5637190381</phone><account_number>31000000808</account_number></applicant><applicant><name last_name="amx paraguay s.a." /><address><address_line1>av. mariscal lopez 1730
asuncion,pry</address_line1><city>asuncion</city><country country_code="pry" /></address><phone>5637190391</phone><account_number>31000000821</account_number></applicant><applicant><name last_name="2p agency usa, inc" /><address><address_line1>1674 east 22nd street 1st floor
brooklyn,ny11229
usa</address_line1><city>brooklyn</city><state>ny</state><postal_code>11229</postal_code><country country_code="usa" /></address><phone>5637190398</phone><account_number>31000000801</account_number></applicant><applicant><name last_name="bahamas telecommunications co." /><address><address_line1>batelco marketing dept.
nassau
bhs</address_line1><city>nassau</city><state>fl</state><postal_code>33054</postal_code><country country_code="bhs" /></address><phone>5637190403</phone><account_number>31000000832</account_number></applicant></batch_process>
need convert to:
<s:envelope xmlns:s='http://schemas.xmlsoap.org/soap/envelope/'>
<s:body>
<ns2:checkapplicants xmlns:ns2='http://webservice.sentinel.truthtechnologies.com/'>
<arg0>username</arg0>
<arg1>password</arg1>
<arg2>
<?xml version="1.0" encoding="utf-8"?>
<batch_process xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" >
xsi:nonamespaceschemalocation="applicantbatch.xsd">
<username>username</username>
<applicant>
<name first_name="john" middle_name="" last_name="doe"/>
<company_data> <company_name></company_name>
<address>
<address_line1></address_line1>
<city></city>
<state></state>
<postal_code></postal_code>
<country country_code=""/>
</address>
</company_data>
<account_number>account123</account_number>
</applicant>
<applicant>
<name first_name="jane" middle_name="" last_name="doe"/>
<company_data> <company_name></company_name>
<address>
<address_line1></address_line1>
<city></city>
<state></state>
<postal_code></postal_code>
<country country_code=""/>
</address>
</company_data>
<account_number>account456</account_number>
</applicant>
<applicant>
<name first_name="?" middle_name="" last_name="?"/>
<company_data> <company_name></company_name>
<address>
<address_line1></address_line1>
<city></city>
<state></state>
<postal_code></postal_code>
<country country_code=""/>
</address>
</company_data>
<account_number>account456</account_number>
</applicant>
</batch_process>
</arg2>
</ns2:checkapplicants>
</s:body>
</s:envelope>
ashwin
hey tried both link , getting error.can me out.i want create simple project , check how works/
ashwin
we have covered error facing on fresh thread have open this.
please mark answer or vote helpful if reply does
BizTalk Server > BizTalk Server General
Comments
Post a Comment