Posted By

burnsra on 04/22/10


Tagged

soap


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Priestd09


Soap Request


 / Published in: ColdFusion
 

  1. <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">
  2. <soapenv:Header/>
  3. <soapenv:Body>
  4. <sch:CreateItemRequest>
  5. <!--Optional:-->
  6. <sch:AuthenticationData connectString="SCHEMA=ICMADMIN">
  7. <sch:ServerDef>
  8. <!--You may enter the following 2 items in any order-->
  9. <!--Optional:-->
  10. <sch:ServerType>ICM</sch:ServerType>
  11. <sch:ServerName>scmnlsdb</sch:ServerName>
  12. </sch:ServerDef>
  13. <!--Optional:-->
  14. <sch:LoginData>
  15. <sch:UserID>rb16068</sch:UserID>
  16. <sch:Password>password</sch:Password>
  17. </sch:LoginData>
  18. </sch:AuthenticationData>
  19. <sch:Item>
  20. <sch:ItemXML>
  21. <sch:ItemImages ITEM_ID="test item #test#" ITEM_DSC="test desc #test#">
  22. <sch:ICMBASE>
  23. <sch:resourceObject MIMEType="image/png" xmlns:sch="http://www.ibm.com/xmlns/db2/cm/api/1.0/schema"><sch:label name="testtest" /></sch:resourceObject>
  24. </sch:ICMBASE>
  25. </sch:ItemImages>
  26. </sch:ItemXML>
  27. </sch:Item>
  28. <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>
  29. </sch:CreateItemRequest>
  30. </soapenv:Body>
  31. </soapenv:Envelope></cfoutput></cfsavecontent>
  32.  
  33. <cfhttp url="http://cntmgr-stg.kroger.com/CMBSpecificWebService/services/CMWebService" multipart="false" method="post" result="httpResponse">
  34. <cfhttpparam type="header" name="SOAPAction" value="urn:CreateItem" />
  35. <cfhttpparam type="header" name="content-length" value="#len(soapBody)#">
  36. <cfhttpparam type="header" name="charset" value="utf-8">
  37. <cfhttpparam type="header" name="Accept-Encoding" value="*" />
  38. <cfhttpparam type="header" name="TE" value="deflate;q=0" />
  39. <cfhttpparam type="xml" value="#trim(soapBody)#" />
  40. </cfhttp>

Report this snippet  

You need to login to post a comment.