Hi all,
I am working on one project and in one output message the output is coming as
<ns0:RootNode xmlns:ns0="http://www.trashdata.com/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ns0:document>request</ns0:document> <ns0:version>2.14</ns0:version> <ns0:transactionControl> <ns0:userRefNumber>12345</ns0:userRefNumber> <ns0:subscriber xsi:type="ns0:inquirySubscriber"> <ns0:industryCode>I</ns0:industryCode> <ns0:memberCode>3527939</ns0:memberCode> <ns0:inquirySubscriberPrefixCode>622</ns0:inquirySubscriberPrefixCode> <ns0:password>EH33</ns0:password> </ns0:subscriber> </ns0:transactionControl> </ns0:RootNode>
I want's to remove the ns0: from message for this i have set the property of output schema as ElementFromDefault = Unqualified
Output :
<ns0:RootNode xmlns:ns0="http://www.trashdata.com/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <document>request</document> <version>2.14</version> <transactionControl> <userRefNumber>12345</userRefNumber> <subscriber xsi:type="ns0:inquirySubscriber"> <industryCode>I</industryCode> <memberCode>3527939</memberCode> <inquirySubscriberPrefixCode>622</inquirySubscriberPrefixCode> <password>EH33</password> </subscriber> </transactionControl> </ns0:RootNode>
Expected :
<RootNode xmlns="http://www.trashdata.com/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <document>request</document> <version>2.14</version> <transactionControl> <userRefNumber>12345</userRefNumber> <subscriber xsi:type="ns0:inquirySubscriber"> <industryCode>I</industryCode> <memberCode>3527939</memberCode> <inquirySubscriberPrefixCode>622</inquirySubscriberPrefixCode> <password>EH33</password> </subscriber> </transactionControl> </RootNode>
I have tried to do this using ESB Pipeline to remove the Namespace but then the output is not what i am looking for it's coming as :
<RootNode> <document>request</document> <version>2.14</version> <transactionControl> <userRefNumber>12345</userRefNumber> <subscriber xsi:type="ns0:inquirySubscriber"> <industryCode>I</industryCode> <memberCode>3527939</memberCode> <inquirySubscriberPrefixCode>622</inquirySubscriberPrefixCode> <password>EH33</password> </subscriber> </transactionControl> </RootNode>
Not sure how to do this ?
with this output the legacy system is not understanding the message...
is there a easy way to do this on schema level ? some property or something ?
Is it possible to remove ns0: prefix from biztalk message root but still keeping namespace?