Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net核心Soap服务器响应_.net_Asp.net Core_Soap_.net Core - Fatal编程技术网

.net核心Soap服务器响应

.net核心Soap服务器响应,.net,asp.net-core,soap,.net-core,.net,Asp.net Core,Soap,.net Core,我使用.net core 2.2响应一个示例Soap请求,如下所示: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap

我使用
.net core 2.2
响应一个示例Soap请求,如下所示:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">      
  <soap:Header>
    <UserCredentials xmlns="http://tempuri.org/">
      <userName>string</userName>
      <password>string</password>
    </UserCredentials>
  </soap:Header>
  <soap:Body>
    <GetSubxmlns="http://tempuri.org/">
      <value>10</value>
    </GetSub>
  </soap:Body>
</soap:Envelope>

一串
一串
10
但是我不知道如何获取
用户名
密码

我搜索了很多,但没有找到一个明确的解决方案,所以有人能帮我吗

注意: 我无法编辑我的请求模型