• 大小: 0.07M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: webservice  c  web  NET  d  

资源简介

Net Core调用WebService示例Demo

资源截图

代码片段和文件信息

using System;
using System.Collections;
using System.IO;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Text.Regularexpressions;
using System.xml;
using System.xml.Serialization;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            //HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(“http://www.baidu.com/“);
            //request.Method = “GET“;
            //request.ContentType = “text/xml; charset=utf-8“;
            //request.Accept = “text/html application/xhtml+xml */*“;

            //var resp = (HttpWebResponse)request.GetResponseAsync().Result;
            //StreamReader sr = new StreamRe

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2017-04-20 15:38  ConsoleApp1\
     目录           0  2017-04-20 15:38  ConsoleApp1\.vs\
     目录           0  2017-04-20 15:38  ConsoleApp1\.vs\ConsoleApp1\
     目录           0  2017-04-20 15:38  ConsoleApp1\.vs\ConsoleApp1\v15\
     文件       19968  2017-04-21 10:56  ConsoleApp1\.vs\ConsoleApp1\v15\.suo
     目录           0  2017-04-21 10:59  ConsoleApp1\ConsoleApp1\
     文件        1000  2017-04-20 15:38  ConsoleApp1\ConsoleApp1.sln
     目录           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\bin\
     目录           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\bin\Debug\
     目录           0  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\
     文件        3026  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\ConsoleApp1.deps.json
     文件       10240  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\ConsoleApp1.dll
     文件        2156  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\ConsoleApp1.pdb
     文件         117  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\ConsoleApp1.runtimeconfig.dev.json
     文件         125  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\bin\Debug\netcoreapp1.1\ConsoleApp1.runtimeconfig.json
     文件         529  2017-04-20 17:55  ConsoleApp1\ConsoleApp1\ConsoleApp1.csproj
     目录           0  2017-04-20 17:55  ConsoleApp1\ConsoleApp1\obj\
     文件        1509  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.props
     文件         294  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\ConsoleApp1.csproj.nuget.g.targets
     目录           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\Debug\
     目录           0  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\
     文件        1099  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\ConsoleApp1.AssemblyInfo.cs
     文件        1156  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\ConsoleApp1.csproj.FileListAbsolute.txt
     文件      213706  2017-04-20 17:56  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\ConsoleApp1.csprojResolveAssemblyReference.cache
     文件       10240  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\ConsoleApp1.dll
     文件        2156  2017-04-21 11:00  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\ConsoleApp1.pdb
     文件          42  2017-04-20 17:55  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\CoreCompileInputs.cache
     文件           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs
     文件           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs
     文件           0  2017-04-20 15:38  ConsoleApp1\ConsoleApp1\obj\Debug\netcoreapp1.1\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs
     文件      323492  2017-04-20 17:55  ConsoleApp1\ConsoleApp1\obj\project.assets.json
............此处省略1个文件信息

评论

共有 条评论