Advertisement
Guest User

Untitled

a guest
May 30th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
  2. xmlns:soap="http://soap.ipr.tfp.com/">
  3. <soapenv:Header/>
  4. <soapenv:Body>
  5. <soap:create>
  6. <arg0>
  7. <attribute_1>abc</attribute_1>
  8. <attribute_2></attribute_2>
  9. <attribute_3>abc123</attribute_3>
  10. <attribute_4>abc234</attribute_4>
  11. <attribute_5></attribute_5>
  12. </arg0>
  13. </soap:create>
  14. </soapenv:Body>
  15. </soapenv:Envelope>
  16.  
  17. <cfscript>
  18. ws = CreateObject("webservice", [HTTPS URL]?wsdl);
  19. //show web service methods for debugging purposes
  20. writeDump(ws);
  21.  
  22. // construct arguments
  23. args = {attribute_1="abc"
  24. , attribute_2=""
  25. , attribute_3="abc123"
  26. , attribute_4="abc234"
  27. , attribute_5=""
  28. };
  29. // call the method
  30. result = ws.create(arg0=args);
  31.  
  32. writeDump(result)
  33. </cfscript>
  34.  
  35. Cannot perform web service invocation create.
  36. The fault returned when invoking the web service operation is:
  37. AxisFault
  38. faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
  39. faultSubcode:
  40. faultString: These policy alternatives can not be satisfied:
  41. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}AsymmetricBinding: Received Timestamp does not match the requirements
  42. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token: The received token does not match the token inclusion requirement
  43. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}X509Token
  44. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}InitiatorToken
  45. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}RecipientToken
  46. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}IncludeTimestamp: Received Timestamp does not match the requirements
  47. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}SignedParts: {http://schemas.xmlsoap.org/soap/envelope/}Body not SIGNED
  48. {http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702}EncryptedParts: {http://schemas.xmlsoap.org/soap/envelope/}Body not ENCRY...
  49.  
  50. <cfhttp
  51. url = "[HTTPS URL]?wsdl"
  52. method ="post"
  53. result ="httpResponse"
  54. charset ="utf-8">
  55. <cfhttpparam
  56. type="header"
  57. name="accept-encoding"
  58. value="no-compression"
  59. />
  60. <cfhttpparam
  61. type="xml"
  62. value="#trim( soapBody )#"
  63. />
  64.  
  65. ws = CreateObject("webservice", [HTTPS URL]);
  66.  
  67. ws = CreateObject(
  68. "webservice",
  69. "[HTTPS URL]",
  70. {wsversion="1"}
  71. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement