Guest User

Untitled

a guest
Apr 16th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(url);
  2. webRequest.Headers.Add("SOAPAction", action);
  3. webRequest.ContentType = "text/xml;charset="utf-8"";
  4. webRequest.Accept = "text/xml";
  5. webRequest.Method = "POST";
  6.  
  7. <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
  8. <s:Header>
  9. <h:Header_Request xmlns:h="http://example/common" xmlns="http://example/common" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  10. <T_SYS>FIN</T_SYS>
  11. <T_SYS_ENV>FIN</T_SYS_ENV>
  12. <R_SYS>FIN</R_SYS>
  13. <TOKEN>e36437dd54c7447f03fb48d28701be0ff7118175</TOKEN>
  14. <TIMESTAMP>20170530154225</TIMESTAMP>
  15. </h:Header_Request>
  16. </s:Header>
  17. <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  18. <Operator_Request_Element xmlns="http://example/Operator">
  19. <Operator>
  20. <DOCUMENTO_GENERALE>
  21. <T_MODALITA>ELETTRONICA</T_MODALITA>
  22. </DOCUMENTO_GENERALE>
  23. <DOCUMENTO_OPERAZIONE>
  24. <FLAG_EPCM>true</FLAG_EPCM>
  25. </DOCUMENTO_OPERAZIONE>
  26. </OPERATORE>
  27. <CLIENTE>
  28. <CODICE_CLIENTE>20170530090406800</CODICE_CLIENTE>
  29. <NDG>000000620676</NDG>
  30. </CLIENTE>
  31. <DATI_DETTAGLIO_PRODOTTO>
  32. <VALORE>S</VALORE>
  33. </DATI_DETTAGLIO_PRODOTTO>
  34. </Operator>
  35. </Operator_Request_Element>
  36. </s:Body>
  37. </s:Envelope>
Add Comment
Please, Sign In to add comment