Generate XML

Vijayalakshmi P
Kilo Sage

Hi All,

Please share suggestions on how to generate XML(say from incident) via scripts in Servicenow. (XML is defined by external system and the requirement is for system to system handshake).

Thanks,

Vijayalakshmi

10 REPLIES 10

Hi,

you can create SOAP Message and then use variable substitutions to replace incident field values

Variable substitution in outbound SOAP

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi, Can i create  SOAP message without endpoint?

Thanks

Hi,

so you don't have an endpoint for the integration?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Yes, I will generate the XML and expose a webservice for them to consume the XML.

But XML structure is defined by them.

Thanks.

Hi,

you can use Scripted SOAP service for this for custom xml structure

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader