SHARE
TWEET

Untitled

a guest Jun 25th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [OperationContract]
  2.     [WebInvoke(Method = "PUT",
  3.         UriTemplate = "/order/{ID}"
  4.         , RequestFormat = WebMessageFormat.Json,
  5.         ResponseFormat = WebMessageFormat.Json,
  6.         BodyStyle = WebMessageBodyStyle.WrappedRequest
  7.         )]
  8.     string EchoWithPut(string ID, Stream stream);
  9.      
  10. public string EchoWithPut(string ID, Stream stream)
  11.     {
  12.         string json = "";
  13.         string application_name = "", application_guid = "", IP = "", session_guin = "";
  14.         string result_message = "";
  15.         int result = 0;
  16.         StreamReader reader = new StreamReader(stream);...
  17.      
  18. <?xml version="1.0" encoding="utf-8"?>
  19.  <configuration>
  20.  <system.web>
  21.   <compilation debug="true" targetFramework="4.0" />
  22.   </system.web>
  23.   <system.serviceModel>
  24.    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  25.    </system.serviceModel>
  26.    <system.webServer>
  27.      <modules runAllManagedModulesForAllRequests="true"/>
  28.      <directoryBrowse enabled="true"/>
  29.    </system.webServer>
  30.   </configuration>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top