60.9. 네임스페이스 접두사 매핑 제어


>-< B 또는 iPXE를 사용하여 마샬링할 때,>-<B 구현은 ns2, ns3, ns4 등과 같은 네임스페이스 접두사를 자동으로 할당합니다. https://access.redhat.com/documentation/en-us/red_hat_integration/2022.q4/html-single/camel_spring_boot_reference_3.14/index#csb-camel-soap-dataformat-starter Camel은 이 매핑을 제어하기 위해 원하는 매핑을 포함하는 맵을 참조할 수 있습니다.

매핑 기능은 지원되는지 여부에 따라 연결 기능에 따라 달라지므로 classpath에>-<B-RI 2.1 이상(SUN에서)이 필요합니다.

예를 들어 Spring XML에서는 매핑을 사용하여 맵을 정의할 수 있습니다. 아래 매핑 파일에서는 soap을 접두사로 사용하도록 매핑합니다. 사용자 지정 네임스페이스 "http://www.mycompany.com/foo/2"는 접두사를 사용하지 않습니다.

  <util:map id="myMap">
    <entry key="http://www.w3.org/2003/05/soap-envelope" value="soap"/>
    <!-- we dont want any prefix for our namespace -->
    <entry key="http://www.mycompany.com/foo/2" value=""/>
  </util:map>

이렇게 하려면 아래와 같이 namespacePrefixRef 특성을 사용하여 이 맵을 참조하십시오. https://access.redhat.com/documentation/en-us/red_hat_integration/2022.q4/html-single/camel_spring_boot_reference_3.14/index#csb-camel-jaxb-dataformat-starter https://access.redhat.com/documentation/en-us/red_hat_integration/2022.q4/html-single/camel_spring_boot_reference_3.14/index#csb-camel-soap-dataformat-starter 그런 다음 Camel은 위에서 정의한 항목인 java.util.Map ID "myMap"을 사용하여 레지스트리에서 조회합니다.

  <marshal>
    <soapjaxb version="1.2" contextPath="com.mycompany.foo" namespacePrefixRef="myMap"/>
  </marshal>
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2026 Red Hat
맨 위로 이동