階層 SOAP メッセージ

  • リリースバージョン: Xanadu
  • 更新日 2024年08月01日
  • 所要時間:1分
  • WSDL によって記述された階層 Web サービスから SOAP メッセージが構築され、呼び出されると、incidentu_custom_comments、および u_comment_items レコードが作成されます。

    エンドポイント URL

    https://instance.service-now.com/incident.do?SOAP&hierarchical=true

    要求

    <soapenv:Envelope
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:inc="http://www.service-now.com/incident">
       <soapenv:Header/>
       <soapenv:Body>
          <inc:insert>
             <short_description>test hierarchical</short_description>
             <u_custom_comments>
                <u_comment>comment 1</u_comment>
                <u_comment_type>travel</u_comment_type>
                <u_comment_items>
                   <u_name>name 1</u_name>
                   <u_value>value 1</u_value>
                </u_comment_items>
             </u_custom_comments>
          </inc:insert>
       </soapenv:Body>
    </soapenv:Envelope>

    応答

    <soapenv:Envelope 
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
        xmlns:inc="http://www.service-now.com/incident">
       <soapenv:Header/>
       <soapenv:Body>
          <insertResponse>
             <sys_id>8422ebe7c0a8006e7d23848c2dc8ba47</sys_id>
             <number>INC0010001</number>
          </insertResponse>
       </soapenv:Body>
    </soapenv:Envelope>