Sample 1 GetClassification Code from Level 1 Using Treepath Notation

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.tibco.com/cim/services/dataservice/wsdl/2.0">
  <soapenv:Header />
  <soapenv:Body>
    <ns:ClassificationCodeRequest>
      <ns:UserInfo>
        <ns:UserName>a</ns:UserName>
        <ns:Password>abc</ns:Password>
        <ns:Enterprise>ws</ns:Enterprise>
      </ns:UserInfo>
      <ns:Repository>
        <ns:Name>FBT</ns:Name>
        <ns:ClassificationScheme>
          <ns:Id>236901</ns:Id>
          <ns:Name>FBT-Scheme</ns:Name>
        </ns:ClassificationScheme>
      </ns:Repository>
      <ns:ClassificationCodeHierarchy>
        <ns:FetchDepth>1</ns:FetchDepth>
        <ns:ClassificationCodeTreePath>
          <ns:TreePath>
            <ns:Path level="1">50180000</ns:Path>
          </ns:TreePath>
        </ns:ClassificationCodeTreePath >
      </ns:ClassificationCodeHierarchy>
    </ns:ClassificationCodeRequest>
  </soapenv:Body>
</soapenv:Envelope >

Response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/	"xmlns:ns="http://www.tibco.com/cim/services/dataservice/wsdl/2.0">
   <soapenv:Body>
      <ns:ClassificationCodeResponse >
         <ns:ClassificationCode Level="2">
            <ns:Code>50181700</ns:Code>
            <ns:Name>BAKING MIXES</ns:Name>
            <ns:Description>Baking Mixes</ns:Description>
         </ns:ClassificationCode>
         <ns:ClassificationCode Level="2">
            <ns:Code>50181900</ns:Code>
            <ns:Name>BREAD</ns:Name>
            <ns:Description>Bread</ns:Description>
         </ns:ClassificationCode>
         <ns:ClassificationCode Level="2">
            <ns:Code>50182000</ns:Code>
            <ns:Name>SWEET BAKERY PRODUCTS</ns:Name>
            <ns:Description>Sweet Bakery Products</ns:Description>
         </ns:ClassificationCode>
         <ns:ClassificationCode Level="2">
            <ns:Code>50182100</ns:Code>
            <ns:Name>BISCUITS/COOKIES</ns:Name>
            <ns:Description>Biscuits/Cookies</ns:Description>
         </ns:ClassificationCode>
         <ns:ClassificationCode Level="2">
            <ns:Code>50182200</ns:Code>
            <ns:Name>SAVOURY BAKERY PRODUCTS</ns:Name>
            <ns:Description>Savoury Bakery Products</ns:Description>
         </ns:ClassificationCode>
         <ns:ClassificationCode Level="2">
            <ns:Code>50182300</ns:Code>
            <ns:Name>BREAD PRODUCTS VARIETY PACKS</ns:Name>
            <ns:Description>Bread Products Variety Packs</ns:Description>
         </ns:ClassificationCode>
      </ns:ClassificationCodeResponse>
   </soapenv:Body>
</soapenv:Envelope>