none
Conversion of datatypes in orchestration - expression RRS feed

  • Question

  • Hi,

    I need to convert the datatype of a value picked from the xml message received on a receive shape from string to integer inside an orchestration. Please let me know how to do this.
    Wednesday, September 9, 2009 3:22 PM

Answers

All replies

  • 1. create orchestration variable.
    2. using XPATH get the particular element's value and assign to variable.
    3. Try System.Convert.ToInt32

    This link might help you.
    http://www.biztalkgurus.com/blogs/biztalk/archive/2004/10/25/Using-XPath-Inside-BizTalk-Orchestrations.aspx

    If any BTS general questions, please post into BizTalk General Forum


    Thanks, Raja
    Wednesday, September 9, 2009 3:56 PM
  • Thanks Raja....
    Wednesday, September 9, 2009 4:18 PM
  • This is exactly what I am doing, I am using the receive pipeline that Decode into JSON and disassembled to XML doing the transformation by using responses of these 2 api.<o:p></o:p>

    But this does set the NULL value into map for the response that convert JSON to XML. <o:p></o:p>

    I confirmed that I am getting value into response as shown below, then why it is not setting up into map?<o:p></o:p>

     

    <ns0:ServiceResponse xmlns:ns0="http:// ServiceResponse_JSO"><o:p></o:p>

      <Response>yMWEyY2M</Response><o:p></o:p>

    </ns0:ServiceResponse>" <o:p></o:p>

    Monday, October 24, 2016 4:28 PM