Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [OperationContract]
- [WebInvoke(Method = "PUT",
- UriTemplate = "/order/{ID}"
- , RequestFormat = WebMessageFormat.Json,
- ResponseFormat = WebMessageFormat.Json,
- BodyStyle = WebMessageBodyStyle.WrappedRequest
- )]
- string EchoWithPut(string ID, Stream stream);
- public string EchoWithPut(string ID, Stream stream)
- {
- string json = "";
- string application_name = "", application_guid = "", IP = "", session_guin = "";
- string result_message = "";
- int result = 0;
- StreamReader reader = new StreamReader(stream);...
- <?xml version="1.0" encoding="utf-8"?>
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.0" />
- </system.web>
- <system.serviceModel>
- <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true"/>
- <directoryBrowse enabled="true"/>
- </system.webServer>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement