삽입
URL의 대상 테이블에 대한 새 기록을 생성합니다.
입력 필드
시스템 필드를 제외한 대상 테이블의 모든 필드입니다. 시스템 딕셔너리에서 필수로 구성된 필드는 minOccurs=1 속성과 함께 WSDL에 반영됩니다.
출력 필드
| 테이블 유형 | 출력 필드 |
|---|---|
| 정규 | 대상 테이블(테이블)의 sys_id 필드와 표시 값이 반환됩니다. |
| 임포트 세트 | 임포트 세트 행의 sys_id, 변환된 대상 테이블(
삽입으로 인해 대상 행이 변환되지 않은 경우(키 값이 지정되지 않았으므로 건너뜀), sys_id 필드에는 대상 변환 테이블이 아닌 임포트 세트 행의 sys_id 포함됩니다. |
| 여러 변환이 포함된 임포트 세트 | 이 유형의 삽입에 대한 응답에는 multiInsertResponse 부모 요소에 래핑된 일반 임포트 세트 테이블 insert의 여러 필드 세트가 포함됩니다. 각 세트에는 응답을 생성한 변환 맵을 보여주는 맵 필드가 포함됩니다. |
일반 테이블에 대한 샘플 SOAP 메시지
다음 예제에서는 간단한 설명만 지정하는 삽입을 보여 줍니다.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope xmlns:tns="http://www.service-now.com/incident"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:m="http://www.service-now.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<insert xmlns="http://www.service-now.com">
<short_description xsi:type="xsd:string">This is a test</short_description>
</insert>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>결과 응답은 다음과 같습니다.
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://www.service-now.com"
xmlns:tns="http://www.service-now.com/incident" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SOAP-ENV:Body>
<insertResponse xmlns="http://www.service-now.com">
<sys_id>6b06494fc611227d00b5f87caf618831</sys_id>
</insertResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>언어별 샘플 메시지
언어별 삽입 샘플은 다음 항목을 참조하십시오.