복잡한 중첩, 반복 메시지를 맵핑하기 위한 메시지 플로우 및 메시지 모델 개발

시작하기 전에
이 단계는 단순 메시지 강화를 수행하기 위한 시나리오의 다섯 번째 단계입니다. 이 주제에서는 복잡한 중첩, 반복 메시지를 맵핑하기 위한 메시지 플로우 및 메시지 모델 개발 방법에 대해 설명합니다. 해당 인스턴스 문서 개발에도 관련됩니다.
  1. COMPLEX 메시지 정의의 'www.complex.net' 네임스페이스에서 다음과 같은 구조의 addev3 메시지를 작성하십시오.
      addev3
       choice
          sstr                     (xsd:string) local element
          intrep                  (xsd:int) local element, minOcc=2, maxOcc=6
          dur                      (xsd:duration) local element
       choice
          comp1                local complex element
             dat1                 (xsd:date) local element
             sval                  (xsd:string) local element
          comp2                local complex element
             bool1               (xsd:boolean) local element
             dat2                 (xsd:date) local element
          comprep             local complex element, minOcc=1, maxOcc=4
             int1                  (xsd:int) local element
             dec1                (xsd:decimal) local element
       binel                       (xsd:hexBinary) local element
       lelem                      local complex element, base type xsd:string
          latt                      (xsd:int) local attribute
       lcomp                     local complex element
          head                    (xsd:string) local element
          incomp                local complex element
             count                (xsd:int) local element
             comp:gcompel   global complex element, minOcc=0, maxOcc=-1
                fstr                 (xsd:string) local element
                multel             local complex element
                   in1              (xsd:boolean) local element
                   in2              (xsd:string) local element
                   in3              (xsd:float) local element
          footer                  (xsd:string) local element
       repstr                      (xsd:string) local element, minOcc=1, maxOcc=-1
  2. MQInput > Mapping > MQOutput 맵핑을 포함하는 addev3 메시지 플로우를 작성하십시오.
  3. 맵을 열고 addev3을 소스와 대상 둘 다로 선택하십시오.
  4. 각 소스 요소를 해당 대상 요소에 맵핑하십시오.
    sstr --- sstr
    intrep --- intrep
    dur --- dur
    dat1 --- dat1
    sval --- sval
    bool1 --- bool1
    dat2 --- dat2
    int1 --- int1
    dec1 --- dec1
    binel --- binel
    lelem --- lelem
    latt --- latt
    head --- head
    count --- count
    fstr --- fstr
    multel --- multel
    footer --- footer
    repstr --- repstr
  5. 스프레드시트 분할창에서 첫 번째 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/sstr)로 변경하십시오.
  6. 두 번째 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/intrep)로 변경하십시오.
  7. 세 번째 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/dur)로 변경하십시오.
  8. 첫 번째 복합 선택 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/comp1)로 변경하십시오.
  9. 두 번째 복합 선택 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/comp2)로 변경하십시오.
  10. 세 번째 복합 선택 조건의 경우 fn:true()를 fn:exists($source/comp:addev3/comprep)로 변경하십시오.
  11. 적절한 RFH2 헤더를 사용하여 다음 인스턴스 메시지를 작성하십시오.
    <comp:addev3 xmlns:comp="http://www.complex.net">
    <sstr>first</sstr>
    <comp1>
    <dat1>2005-06-24</dat1>
    <sval>date value</sval>
    </comp1>
    <binel><![CDATA[3132333435]]></binel>
    <lelem latt="24">twenty four</lelem>
    <lcomp>
    <head>nesting start</head>
    <incomp>
    <count>3</count>
    <comp:gcompel>
    <fstr>first</fstr>
    <multel>
    <in1>1</in1>
    <in2>C</in2>
    <in3>2.45E+1</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>second</fstr>
    <multel>
    <in1>1</in1>
    <in2>D</in2>
    <in3>7.625E+3</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>third</fstr>
    <multel>
    <in1>0</in1>
    <in2>C</in2>
    <in3>4.9E+0</in3>
    </multel>
    </comp:gcompel>
    </incomp>
    <footer>nesting end</footer>
    </lcomp>
    <repstr>abc</repstr>
    <repstr>def</repstr>
    <repstr>ghi</repstr>
    <repstr>jkl</repstr>
    <repstr>mno</repstr>
    </comp:addev3>
    <comp:addev3 xmlns:comp="http://www.complex.net">
    <intrep>45</intrep>
    <intrep>12</intrep>
    <intrep>920</intrep>
    <comp2>
    <bool1>1</bool1>
    <dat2>2005-06-24</dat2>
    </comp2>
    <binel><![CDATA[3132333435]]></binel>
    <lelem latt="24">twenty four</lelem>
    <lcomp>
    <head>nesting start</head>
    <incomp>
    <count>5</count>
    <comp:gcompel>
    <fstr>first</fstr>
    <multel>
    <in1>1</in1>
    <in2>C</in2>
    <in3>2.45E+1</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>second</fstr>
    <multel>
    <in1>1</in1>
    <in2>D</in2>
    <in3>7.625E+3</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>third</fstr>
    <multel>
    <in1>0</in1>
    <in2>C</in2>
    <in3>4.9E+0</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>fourth</fstr>
    <multel>
    <in1>1</in1>
    <in2>F</in2>
    <in3>2.98E+1</in3>
    </multel>
    </comp:gcompel>
    <comp:gcompel>
    <fstr>fifth</fstr>
    <multel>
    <in1>0</in1>
    <in2>D</in2>
    <in3>8.57E-2</in3>
    </multel>
    </comp:gcompel>
    </incomp>
    <footer>nesting end</footer>
    </lcomp>
    <repstr>abc</repstr>
    </comp:addev3>
    <comp:addev3 xmlns:comp="http://www.complex.net">
    <dur>P2Y2M</dur>
    <comp3>
    <int1>6</int1>
    <dec1>2821.54</dec1>
    </comp3>
    <comp3>
    <int1>41</int1>
    <dec1>0.02</dec1>
    </comp3>
    <binel><![CDATA[3132333435]]></binel>
    <lelem latt="24">twenty four</lelem>
    <lcomp>
    <head>nesting start</head>
    <incomp>
    <count>0</count>
    </incomp>
    <footer>nesting end</footer>
    </lcomp>
    <repstr>abc</repstr>
    <repstr>def</repstr>
    <repstr>ghi</repstr>
    <repstr>jkl</repstr>
    <repstr>mno</repstr>
    <repstr>pqr</repstr>
    <repstr>stu</repstr>
    <repstr>vwx</repstr>
    </comp:addev3>
다음과 같은 자원을 작성했습니다.
이제 메시지 세트 및 메시지 플로우를 전개하십시오.

메시지 세트 및 메시지 플로우 전개

이 단계는 단순 메시지 강화를 수행하기 위한 시나리오의 여섯 번째 단계입니다. 이 주제에서는 메시지 세트 및 메시지 플로우를 전개하고 브로커를 통해 인스턴스 메시지를 실행하는 방법에 대해 설명합니다.
  1. BAR 파일 addev3을 작성하십시오.
  2. MAPPING3_COMPLEX_messages 메시지 세트 및 addev3 메시지 플로우를 BAR 파일에 추가하십시오.
  3. 브로커에 BAR 파일을 전개하십시오.
  4. 인스턴스 문서를 입력 큐에 넣으십시오.
출력 메시지는 다음과 같습니다.
<comp:addev3 xmlns:comp="http://www.complex.net">
<sstr>first</sstr>
<comp1>
<dat1>2005-06-24</dat1>
<sval>date value</sval>
</comp1>
<binel><![CDATA[3132333435]]></binel>
<lelem latt="24">twenty four</lelem>
<lcomp>
<head>nesting start</head>
<incomp>
<count>3</count>
<comp:gcompel>
<fstr>first</fstr>
<multel>
<in1>1</in1>
<in2>C</in2>
<in3>2.45E+1</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>second</fstr>
<multel>
<in1>1</in1>
<in2>D</in2>
<in3>7.625E+3</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>third</fstr>
<multel>
<in1>0</in1>
<in2>C</in2>
<in3>4.9E+0</in3>
</multel>
</comp:gcompel>
</incomp>
<footer>nesting end</footer>
</lcomp>
<repstr>abc</repstr>
<repstr>def</repstr>
<repstr>ghi</repstr>
<repstr>jkl</repstr>
<repstr>mno</repstr>
</comp:addev3>
<comp:addev3 xmlns:comp="http://www.complex.net">
<intrep>45</intrep>
<intrep>12</intrep>
<intrep>920</intrep>
<comp2>
<bool1>1</bool1>
<dat2>2005-06-24</dat2>
</comp2>
<binel><![CDATA[3132333435]]></binel>
<lelem latt="24">twenty four</lelem>
<lcomp>
<head>nesting start</head>
<incomp>
<count>5</count>
<comp:gcompel>
<fstr>first</fstr>
<multel>
<in1>1</in1>
<in2>C</in2>
<in3>2.45E+1</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>second</fstr>
<multel>
<in1>1</in1>
<in2>D</in2>
<in3>7.625E+3</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>third</fstr>
<multel>
<in1>0</in1>
<in2>C</in2>
<in3>4.9E+0</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>fourth</fstr>
<multel>
<in1>1</in1>
<in2>F</in2>
<in3>2.98E+1</in3>
</multel>
</comp:gcompel>
<comp:gcompel>
<fstr>fifth</fstr>
<multel>
<in1>0</in1>
<in2>D</in2>
<in3>8.57E-2</in3>
</multel>
</comp:gcompel>
</incomp>
<footer>nesting end</footer>
</lcomp>
<repstr>abc</repstr>
</comp:addev3>
<comp:addev3 xmlns:comp="http://www.complex.net">
<dur>P2Y2M</dur>
<comp3>
<int1>6</int1>
<dec1>2821.54</dec1>
</comp3>
<comp3>
<int1>41</int1>
<dec1>0.02</dec1>
</comp3>
<binel><![CDATA[3132333435]]></binel>
<lelem latt="24">twenty four</lelem>
<lcomp>
<head>nesting start</head>
<incomp>
<count>0</count>
</incomp>
<footer>nesting end</footer>
</lcomp>
<repstr>abc</repstr>
<repstr>def</repstr>
<repstr>ghi</repstr>
<repstr>jkl</repstr>
<repstr>mno</repstr>
<repstr>pqr</repstr>
<repstr>stu</repstr>
<repstr>vwx</repstr>
</comp:addev3>
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 2006/08/21
ar25251_5_