Need help formatting an XML Document Element
Peoplesoft 9.0; PeopleTools 8.53.28
We are attempting to create an XML document to communicate with WorldShip (UPS shipping). This has been working ConnectShip, but their XML doesn't work with WorldShip.
The issue is with the syntax in creating the document element:
Create is working:
&ShipRequestDoc = CreateXmlDoc("<?xml version='1.0' encoding='WINDOWS-1252'?><OpenShipments xmlns='x-schema:OpenShipments.xdr'/>");
But WorldShip is requiring 2 parameters in the 1st document element.
-attempt 1 failed:
&ShipRequest = &ShipRequestDoc.DocumentElement.AddElement("OpenShipment ShipmentOption='' ProcessStatus='' ");
-attempt 2 failed:
&ShipRequest = &ShipRequestDoc.CreateDocumentElement("OpenShipment ShipmentOption='' ProcessStatus='' ");
XML needs to look like this (can't get Peoplecode to create 3rd line):
Tagged:
0