/ Published in: ColdFusion
Expand |
Embed | Plain Text
<cfsavecontent variable="soapBody"><cfoutput><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://www.ibm.com/xmlns/db2/cm/beans/1.0/schema"> <soapenv:Header/> <soapenv:Body> <sch:CreateItemRequest> <!--Optional:--> <sch:AuthenticationData connectString="SCHEMA=ICMADMIN"> <sch:ServerDef> <!--You may enter the following 2 items in any order--> <!--Optional:--> <sch:ServerType>ICM</sch:ServerType> <sch:ServerName>scmnlsdb</sch:ServerName> </sch:ServerDef> <!--Optional:--> <sch:LoginData> <sch:UserID>rb16068</sch:UserID> <sch:Password>password</sch:Password> </sch:LoginData> </sch:AuthenticationData> <sch:Item> <sch:ItemXML> <sch:ItemImages ITEM_ID="test item #test#" ITEM_DSC="test desc #test#"> <sch:ICMBASE> <sch:resourceObject MIMEType="image/png" xmlns:sch="http://www.ibm.com/xmlns/db2/cm/api/1.0/schema"><sch:label name="testtest" /></sch:resourceObject> </sch:ICMBASE> </sch:ItemImages> </sch:ItemXML> </sch:Item> <sch:mtomRef ID="testtest" MimeType="image/png">iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHhSURBVDjLjZPLSxtRFIfVZRdWi0oFBf+BrhRx5dKVYKG4tLhRqlgXPmIVJQiC60JCCZYqFHQh7rrQlUK7aVUUfCBRG5RkJpNkkswrM5NEf73n6gxpHujAB/fOvefjnHM5VQCqCPa1MNoZnU/Qxqhx4woE7ZZlpXO53F0+n0c52Dl8Pt/nQkmhoJOCdUWBsvQJ2u4ODMOAwvapVAqSJHGJKIrw+/2uxAmuJgFdMDUVincSxvEBTNOEpmlIp9OIxWJckMlkoOs6AoHAg6RYYNs2kp4RqOvfuIACVFVFPB4vKYn3pFjAykDSOwVta52vqW6nlEQiwTMRBKGygIh9GEDCMwZH6EgoE+qHLMuVBdbfKwjv3yE6Ogjz/PQ/CZVDPSFRRYE4/RHy1y8wry8RGWGSqyC/nM1meX9IQpQV2JKIUH8vrEgYmeAFwuPDCHa9QehtD26HBhCZnYC8ucGzKSsIL8wgsjiH1PYPxL+vQvm5B/3sBMLyIm7GhhCe90BaWykV/Gp+VR9oqPVe9vfBTsruM1HtBKVPmFIUNusBrV3B4ev6bsbyXlPdkbr/u+StHUkxruBPY+0KY8f38oWX/byvNAdluHNLeOxDB+uyQQfPCWZ3NT69BYJWkjxjnB1o9Fv/ASQ5s+ABz8i2AAAAAElFTkSuQmCC</sch:mtomRef> </sch:CreateItemRequest> </soapenv:Body> </soapenv:Envelope></cfoutput></cfsavecontent> <cfhttp url="http://cntmgr-stg.kroger.com/CMBSpecificWebService/services/CMWebService" multipart="false" method="post" result="httpResponse"> <cfhttpparam type="header" name="SOAPAction" value="urn:CreateItem" /> <cfhttpparam type="header" name="content-length" value="#len(soapBody)#"> <cfhttpparam type="header" name="charset" value="utf-8"> <cfhttpparam type="header" name="Accept-Encoding" value="*" /> <cfhttpparam type="header" name="TE" value="deflate;q=0" /> <cfhttpparam type="xml" value="#trim(soapBody)#" /> </cfhttp>
You need to login to post a comment.
