C 使用wwsapi更改soap消息中的命名空间前缀
我在C项目中使用WWSAPI通过发送和接收SOAP消息与web服务通信 我遇到的错误是服务器希望看到C 使用wwsapi更改soap消息中的命名空间前缀,c,soap,native,ws-security,wwsapi,C,Soap,Native,Ws Security,Wwsapi,我在C项目中使用WWSAPI通过发送和接收SOAP消息与web服务通信 我遇到的错误是服务器希望看到标记,而我的程序生成的消息没有标记。相反,它有一个标记。有没有办法在WWSAPI for C/C++中指定名称空间前缀 这是我的要求: <s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <
标记,而我的程序生成的消息没有标记。相反,它有一个
标记。有没有办法在WWSAPI for C/C++中指定名称空间前缀
这是我的要求:
<s:Envelope xmlns:a="http://www.w3.org/2005/08/addressing" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<a:Action s:mustUnderstand="1">http://ge.evse.com/getAllGeneratedPasswords</a:Action>
<a:MessageID>urn:uuid:1fc3d3dc-a1c1-4fcf-bfca-96e712afba1b</a:MessageID>
<a:To s:mustUnderstand="1">https://services.stg.gewattstation.com/EVSEManufacturingServices/services/EVSEManufacturingServices</a:To>
<o:Security s:mustUnderstand="1" xmlns:o="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<Timestamp xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<Created>2012-06-08T19:00:59.476Z</Created>
<Expires>2012-06-08T19:05:59.476Z</Expires>
</Timestamp>
<o:UsernameToken>
<o:Username>joe</o:Username>
<o:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"><!--censored sensitive information--></o:Password>
</o:UsernameToken>
</o:Security>
</s:Header>
<s:Body>
<getAllGeneratedPasswords xmlns="http://service.services.manufacturing.evse.inds.ge.com/">
<userType xmlns="">user</userType>
</getAllGeneratedPasswords>
</s:Body>
</s:Envelope>
http://ge.evse.com/getAllGeneratedPasswords
urn:uuid:1FC3DDC-a1c1-4fcf-bfca-96e712afba1b
https://services.stg.gewattstation.com/EVSEManufacturingServices/services/EVSEManufacturingServices
2012-06-08T19:00:59.476Z
2012-06-08T19:05:59.476Z
乔
用户
下面是来自web服务的响应:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode xmlns:ns1="http://docs.oas is-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd ">ns1:InvalidSecurity</faultcode>
<faultstring>An error was discovered processing the <wsse:Security> header</faultstring>
</soap:Fault>
</soap:Body>
</soap:Envelope>
ns1:无效安全
处理wsse:Security>标头时发现错误
正如您所看到的,它正在查找
,但没有看到它。。。有人知道这件事吗