Using content from a single XML node as the XML document, while promoting the XML nodes on the same level












0















I am receiving an XML document, which contains another XML document inside on of its nodes as seen in the structure below:



<NewTable>
<conversationID>f5296f48-90b4-4370-8f16-0115a105c161</conversationID>
<hostUTC>2018-11-20T16:29:36.04Z</hostUTC>
<msgType>INVOIC</msgType>
<msgFormat>oioUBL</msgFormat>
<msgbody>OTHER XML DOCUMENT...</msgbody>
<fromID>GLN:5790012328619</fromID>
<toID>KMDoioUBL</toID>
</NewTable>


I thought about using an Envelope schema, but in my case, I can't just use the tag as a child to the NewTable node. I don't need a schema for the XML in the msgbody tag, it should just be sent as a passthrough. What I need, is to promote some of the other XML nodes, such as msgType, so that they can be used to filter the document in Biztalk, while only sending the content in the msgbody tag.



Is this scenario possible using the Envelope schema in Biztalk?










share|improve this question



























    0















    I am receiving an XML document, which contains another XML document inside on of its nodes as seen in the structure below:



    <NewTable>
    <conversationID>f5296f48-90b4-4370-8f16-0115a105c161</conversationID>
    <hostUTC>2018-11-20T16:29:36.04Z</hostUTC>
    <msgType>INVOIC</msgType>
    <msgFormat>oioUBL</msgFormat>
    <msgbody>OTHER XML DOCUMENT...</msgbody>
    <fromID>GLN:5790012328619</fromID>
    <toID>KMDoioUBL</toID>
    </NewTable>


    I thought about using an Envelope schema, but in my case, I can't just use the tag as a child to the NewTable node. I don't need a schema for the XML in the msgbody tag, it should just be sent as a passthrough. What I need, is to promote some of the other XML nodes, such as msgType, so that they can be used to filter the document in Biztalk, while only sending the content in the msgbody tag.



    Is this scenario possible using the Envelope schema in Biztalk?










    share|improve this question

























      0












      0








      0








      I am receiving an XML document, which contains another XML document inside on of its nodes as seen in the structure below:



      <NewTable>
      <conversationID>f5296f48-90b4-4370-8f16-0115a105c161</conversationID>
      <hostUTC>2018-11-20T16:29:36.04Z</hostUTC>
      <msgType>INVOIC</msgType>
      <msgFormat>oioUBL</msgFormat>
      <msgbody>OTHER XML DOCUMENT...</msgbody>
      <fromID>GLN:5790012328619</fromID>
      <toID>KMDoioUBL</toID>
      </NewTable>


      I thought about using an Envelope schema, but in my case, I can't just use the tag as a child to the NewTable node. I don't need a schema for the XML in the msgbody tag, it should just be sent as a passthrough. What I need, is to promote some of the other XML nodes, such as msgType, so that they can be used to filter the document in Biztalk, while only sending the content in the msgbody tag.



      Is this scenario possible using the Envelope schema in Biztalk?










      share|improve this question














      I am receiving an XML document, which contains another XML document inside on of its nodes as seen in the structure below:



      <NewTable>
      <conversationID>f5296f48-90b4-4370-8f16-0115a105c161</conversationID>
      <hostUTC>2018-11-20T16:29:36.04Z</hostUTC>
      <msgType>INVOIC</msgType>
      <msgFormat>oioUBL</msgFormat>
      <msgbody>OTHER XML DOCUMENT...</msgbody>
      <fromID>GLN:5790012328619</fromID>
      <toID>KMDoioUBL</toID>
      </NewTable>


      I thought about using an Envelope schema, but in my case, I can't just use the tag as a child to the NewTable node. I don't need a schema for the XML in the msgbody tag, it should just be sent as a passthrough. What I need, is to promote some of the other XML nodes, such as msgType, so that they can be used to filter the document in Biztalk, while only sending the content in the msgbody tag.



      Is this scenario possible using the Envelope schema in Biztalk?







      xml schema biztalk envelope






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 22 '18 at 10:10









      LethLeth

      461616




      461616
























          1 Answer
          1






          active

          oldest

          votes


















          1














          I take it this is related to your question Extracting XML document in XML node from WCF-SQL message using body path expression



          The first thing you probably need to do is to removed any Min Occurs or Max Occurs from any of the nodes so that they only occur 1.
          Then you can promote the properties you want to preserve in your message context.



          The next part would be to extract the msgbody part, in your previous question the answer was to use a XPath to extract the body part in the Adapter, but then you will lose those headers before it goes through the XML dissasembler, so rather than that you will want to create a map to extract it for you instead.



          Just create a map that has the input and output set to your schema, create a link from msgbody to msgbody. Then right click on the map in Solution Explorer and click Validate map. This will generate a XSLT file. Copy that XSLT file into your project directory for the map and add it as an existing item to the project. Click on the grid of your map and set the Custom XSLT path to your XSLT.



          From your example XML file in this question your XSLT will look like



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <NewTable>
          <msgbody>
          <xsl:value-of select="msgbody/text()" />
          </msgbody>
          </NewTable>
          </xsl:template>
          </xsl:stylesheet>


          But as you only want the value of the body you will want to edit the XSLT to remove the <NewTable>,<msbody>,</msgbody> & </NewTable> and any other output nodes you don't want.



          And finally, if you XML is escaped as per your previous question, you will want to add disable-output-escaping="yes" to the select as below and as per How to unescape XML characters with help of XSLT?



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <xsl:value-of select="msgbody/text()" disable-output-escaping="yes"/>
          </xsl:template>
          </xsl:stylesheet>


          Note: Testing the map in Visual Studio you will have to disable output validation as of course it does not match the schema. However you could create a schema for that XML.






          share|improve this answer


























          • Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

            – Leth
            Nov 23 '18 at 8:28











          • Does it fail in the XML Dissasembler stage of the pipeline?

            – Dijkgraaf
            Nov 26 '18 at 0:39











          • I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

            – Leth
            Nov 26 '18 at 7:03











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428507%2fusing-content-from-a-single-xml-node-as-the-xml-document-while-promoting-the-xm%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I take it this is related to your question Extracting XML document in XML node from WCF-SQL message using body path expression



          The first thing you probably need to do is to removed any Min Occurs or Max Occurs from any of the nodes so that they only occur 1.
          Then you can promote the properties you want to preserve in your message context.



          The next part would be to extract the msgbody part, in your previous question the answer was to use a XPath to extract the body part in the Adapter, but then you will lose those headers before it goes through the XML dissasembler, so rather than that you will want to create a map to extract it for you instead.



          Just create a map that has the input and output set to your schema, create a link from msgbody to msgbody. Then right click on the map in Solution Explorer and click Validate map. This will generate a XSLT file. Copy that XSLT file into your project directory for the map and add it as an existing item to the project. Click on the grid of your map and set the Custom XSLT path to your XSLT.



          From your example XML file in this question your XSLT will look like



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <NewTable>
          <msgbody>
          <xsl:value-of select="msgbody/text()" />
          </msgbody>
          </NewTable>
          </xsl:template>
          </xsl:stylesheet>


          But as you only want the value of the body you will want to edit the XSLT to remove the <NewTable>,<msbody>,</msgbody> & </NewTable> and any other output nodes you don't want.



          And finally, if you XML is escaped as per your previous question, you will want to add disable-output-escaping="yes" to the select as below and as per How to unescape XML characters with help of XSLT?



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <xsl:value-of select="msgbody/text()" disable-output-escaping="yes"/>
          </xsl:template>
          </xsl:stylesheet>


          Note: Testing the map in Visual Studio you will have to disable output validation as of course it does not match the schema. However you could create a schema for that XML.






          share|improve this answer


























          • Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

            – Leth
            Nov 23 '18 at 8:28











          • Does it fail in the XML Dissasembler stage of the pipeline?

            – Dijkgraaf
            Nov 26 '18 at 0:39











          • I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

            – Leth
            Nov 26 '18 at 7:03
















          1














          I take it this is related to your question Extracting XML document in XML node from WCF-SQL message using body path expression



          The first thing you probably need to do is to removed any Min Occurs or Max Occurs from any of the nodes so that they only occur 1.
          Then you can promote the properties you want to preserve in your message context.



          The next part would be to extract the msgbody part, in your previous question the answer was to use a XPath to extract the body part in the Adapter, but then you will lose those headers before it goes through the XML dissasembler, so rather than that you will want to create a map to extract it for you instead.



          Just create a map that has the input and output set to your schema, create a link from msgbody to msgbody. Then right click on the map in Solution Explorer and click Validate map. This will generate a XSLT file. Copy that XSLT file into your project directory for the map and add it as an existing item to the project. Click on the grid of your map and set the Custom XSLT path to your XSLT.



          From your example XML file in this question your XSLT will look like



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <NewTable>
          <msgbody>
          <xsl:value-of select="msgbody/text()" />
          </msgbody>
          </NewTable>
          </xsl:template>
          </xsl:stylesheet>


          But as you only want the value of the body you will want to edit the XSLT to remove the <NewTable>,<msbody>,</msgbody> & </NewTable> and any other output nodes you don't want.



          And finally, if you XML is escaped as per your previous question, you will want to add disable-output-escaping="yes" to the select as below and as per How to unescape XML characters with help of XSLT?



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <xsl:value-of select="msgbody/text()" disable-output-escaping="yes"/>
          </xsl:template>
          </xsl:stylesheet>


          Note: Testing the map in Visual Studio you will have to disable output validation as of course it does not match the schema. However you could create a schema for that XML.






          share|improve this answer


























          • Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

            – Leth
            Nov 23 '18 at 8:28











          • Does it fail in the XML Dissasembler stage of the pipeline?

            – Dijkgraaf
            Nov 26 '18 at 0:39











          • I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

            – Leth
            Nov 26 '18 at 7:03














          1












          1








          1







          I take it this is related to your question Extracting XML document in XML node from WCF-SQL message using body path expression



          The first thing you probably need to do is to removed any Min Occurs or Max Occurs from any of the nodes so that they only occur 1.
          Then you can promote the properties you want to preserve in your message context.



          The next part would be to extract the msgbody part, in your previous question the answer was to use a XPath to extract the body part in the Adapter, but then you will lose those headers before it goes through the XML dissasembler, so rather than that you will want to create a map to extract it for you instead.



          Just create a map that has the input and output set to your schema, create a link from msgbody to msgbody. Then right click on the map in Solution Explorer and click Validate map. This will generate a XSLT file. Copy that XSLT file into your project directory for the map and add it as an existing item to the project. Click on the grid of your map and set the Custom XSLT path to your XSLT.



          From your example XML file in this question your XSLT will look like



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <NewTable>
          <msgbody>
          <xsl:value-of select="msgbody/text()" />
          </msgbody>
          </NewTable>
          </xsl:template>
          </xsl:stylesheet>


          But as you only want the value of the body you will want to edit the XSLT to remove the <NewTable>,<msbody>,</msgbody> & </NewTable> and any other output nodes you don't want.



          And finally, if you XML is escaped as per your previous question, you will want to add disable-output-escaping="yes" to the select as below and as per How to unescape XML characters with help of XSLT?



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <xsl:value-of select="msgbody/text()" disable-output-escaping="yes"/>
          </xsl:template>
          </xsl:stylesheet>


          Note: Testing the map in Visual Studio you will have to disable output validation as of course it does not match the schema. However you could create a schema for that XML.






          share|improve this answer















          I take it this is related to your question Extracting XML document in XML node from WCF-SQL message using body path expression



          The first thing you probably need to do is to removed any Min Occurs or Max Occurs from any of the nodes so that they only occur 1.
          Then you can promote the properties you want to preserve in your message context.



          The next part would be to extract the msgbody part, in your previous question the answer was to use a XPath to extract the body part in the Adapter, but then you will lose those headers before it goes through the XML dissasembler, so rather than that you will want to create a map to extract it for you instead.



          Just create a map that has the input and output set to your schema, create a link from msgbody to msgbody. Then right click on the map in Solution Explorer and click Validate map. This will generate a XSLT file. Copy that XSLT file into your project directory for the map and add it as an existing item to the project. Click on the grid of your map and set the Custom XSLT path to your XSLT.



          From your example XML file in this question your XSLT will look like



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <NewTable>
          <msgbody>
          <xsl:value-of select="msgbody/text()" />
          </msgbody>
          </NewTable>
          </xsl:template>
          </xsl:stylesheet>


          But as you only want the value of the body you will want to edit the XSLT to remove the <NewTable>,<msbody>,</msgbody> & </NewTable> and any other output nodes you don't want.



          And finally, if you XML is escaped as per your previous question, you will want to add disable-output-escaping="yes" to the select as below and as per How to unescape XML characters with help of XSLT?



          <?xml version="1.0" encoding="UTF-16"?>
          <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var" version="1.0">
          <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
          <xsl:template match="/">
          <xsl:apply-templates select="/NewTable" />
          </xsl:template>
          <xsl:template match="/NewTable">
          <xsl:value-of select="msgbody/text()" disable-output-escaping="yes"/>
          </xsl:template>
          </xsl:stylesheet>


          Note: Testing the map in Visual Studio you will have to disable output validation as of course it does not match the schema. However you could create a schema for that XML.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 23 '18 at 2:40

























          answered Nov 23 '18 at 2:23









          DijkgraafDijkgraaf

          7,39582744




          7,39582744













          • Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

            – Leth
            Nov 23 '18 at 8:28











          • Does it fail in the XML Dissasembler stage of the pipeline?

            – Dijkgraaf
            Nov 26 '18 at 0:39











          • I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

            – Leth
            Nov 26 '18 at 7:03



















          • Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

            – Leth
            Nov 23 '18 at 8:28











          • Does it fail in the XML Dissasembler stage of the pipeline?

            – Dijkgraaf
            Nov 26 '18 at 0:39











          • I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

            – Leth
            Nov 26 '18 at 7:03

















          Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

          – Leth
          Nov 23 '18 at 8:28





          Yes, they are related :) Thank you very much for the answer. I've followed all the steps and deployed my schema and map to Biztalk. I tried making a test by setting the receive pipeline to XML receive (and specifying my schema) and setting the inbound map to the one i made earlier, but I am getting an error executing the pipeline: "Input string was not in a correct format.". When I try to validate the document against my schema, I don't get any errors. What could be the cause for this?

          – Leth
          Nov 23 '18 at 8:28













          Does it fail in the XML Dissasembler stage of the pipeline?

          – Dijkgraaf
          Nov 26 '18 at 0:39





          Does it fail in the XML Dissasembler stage of the pipeline?

          – Dijkgraaf
          Nov 26 '18 at 0:39













          I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

          – Leth
          Nov 26 '18 at 7:03





          I figured out why I got the error. I had a promotion which was converting a field from a string to an int. I am now getting a different error on the inbound map, saying a namespace in the msgbody XML does not match any of the schemas. How can I tell it to ignore the namespaces in the msgbody xml?

          – Leth
          Nov 26 '18 at 7:03




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53428507%2fusing-content-from-a-single-xml-node-as-the-xml-document-while-promoting-the-xm%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          If I really need a card on my start hand, how many mulligans make sense? [duplicate]

          Alcedinidae

          Can an atomic nucleus contain both particles and antiparticles? [duplicate]