BizTalk Gurus

Functoids: String Concatenate Functoid

rated by 0 users
Not Answered This post has 0 verified answers | 5 Replies | 2 Followers

Top 500 Contributor
3 Posts
Revanth8 posted on Mon, Jun 15 2009 5:48 AM

Hi !,

I am new to BTS 2006 R2

When i use String Concatenate Functoid, irrespective of Map and Functoid output is coming same as input.(my input ans output schemas are different). I am using File adapter and PassThruReceive and Transmit pipelines.

can any one please help me to resolve this,

Thanks in advance.

regards,

Revanth

All Replies

Top 50 Contributor
47 Posts
Wonder replied on Mon, Jun 15 2009 6:10 AM

What are you concatenating. post the sample input and output

Top 500 Contributor
3 Posts

Thx for ur rply.

i am using folling schema as input

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://Maps_POC2.Schema_POC2in" targetNamespace="http://Maps_POC2.Schema_POC2in" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="College">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Branches">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ECE" type="xs:string" />
              <xs:element name="EEE" type="xs:string" />
              <xs:element name="CSE" type="xs:string" />
              <xs:element name="IT" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

and  following schema as output.

<?xml version="1.0" encoding="utf-16"?>
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://Maps_POC2.Schema_POC2out" targetNamespace="http://Maps_POC2.Schema_POC2out" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="University">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="Colge">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Goup1" type="xs:string" />
              <xs:element name="Group2" type="xs:string" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

i am concatenating ECE and EEE from source schema to Group1 in destination schema by using String Concatenate Functoid

and mapping CSE and IT from source schema to Group2 in destination schema by using another string concatenate Functoid.

when i give the input xml as following , out put is coming as same as the input.

 <College>
 <Branches>
  <ECE>ECE_0</ECE>
  <EEE>EEE_0</EEE>
  <CSE>CSE_0</CSE>
  <IT>IT_0</IT>
  </Branches>
  </College>

pls help me.

thanks in advance,

regards,

Revanth

Top 50 Contributor
47 Posts
Wonder replied on Mon, Jun 15 2009 8:05 AM

That is strange.

How are you testing your map.

Are you right clicking on it, then select Test Map?

Top 500 Contributor
3 Posts
Revanth8 replied on Mon, Jun 15 2009 10:08 PM

Thx  Wonder. Exactly........i am right clicking on the map and selecting Testmap. Test map is coming correctly as below

<ns0:University xmlns:ns0="http://Maps_POC2.Schema_POC2out">

<Colge>
  <Goup1>ECE_0EEE_0</Goup1>
  <Group2>CSE_0IT_0</Group2> 
  </Colge>
  </ns0:University>
irrespective of giving outbound maps at send port , output is coming same as input.
Thanks in advance.
Regtads,
Revanth
Top 50 Contributor
47 Posts
Wonder replied on Wed, Jun 17 2009 3:47 AM

Redeploy the Application from Visual Studio and restart the Biztalk service.

Page 1 of 1 (6 items) | RSS