.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
但是我不知道如何获取用户名
,密码
我搜索了很多,但没有找到一个明确的解决方案,所以有人能帮我吗
注意:
我无法编辑我的请求模型