简体   繁体   English

“ SOAPAction:”和“ SOAPAction” HTTP请求属性之间的区别

[英]Difference between “SOAPAction:” and “SOAPAction” HTTP request property

I was checking how to perform SOAP calls without using any library like jax-ws, just using a normal HttpURLConnection. 我正在检查如何不使用jax-ws之类的库而仅使用普通的HttpURLConnection来执行SOAP调用。 When reading documentation I found in some places 阅读文档时,我在某些地方找到了

conn.setRequestProperty("SOAPAction", soapAction); conn.setRequestProperty(“ SOAPAction”,soapAction);

And in other places 在其他地方

conn.setRequestProperty("SOAPAction:", soapAction); conn.setRequestProperty(“ SOAPAction:”,soapAction);

But I couldn't find the difference between these two headers. 但是我找不到这两个标头之间的区别。 Well, I found one, when using "SOAPAction:", if the action was misspelled, the ":" was like part of the name of the action. 好吧,我发现使用“ SOAPAction:”时,如果该动作拼写错误,则“:”就像是动作名称的一部分。

Does someone know the difference? 有人知道区别吗? Or is "SOAPAction:" simply wrong? 还是“ SOAPAction:”完全错误?

SOAPAction: is wrong. SOAPAction:错误。 HTTP adds the colon. HTTP添加冒号。 A colon isn't allowed in a header name, in fact. 实际上,标头名称中不允许使用冒号。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 服务器无法识别 HTTP 标头 SOAPAction 的值: - Server did not recognize the value of HTTP Header SOAPAction: 服务器无法识别HTTP标头SOAPAction的值:“” - Server did not recognize the value of HTTP Header SOAPAction: “” 服务器无法识别HTTP标头“SOAPAction”的值 - The value of the HTTP header ' SOAPAction ' was not recognized by the server 了解HTTP标头中的SOAPAction(涉及Java) - Understanding SOAPAction in http header (Java somewhat involved) HTTP标头中缺少Spring WebServiceTemplate SOAPAction - Spring WebServiceTemplate SOAPAction missing in HTTP Header 使用轴调用Web服务中的SOAPACTION_URI_PROPERTY - SOAPACTION_URI_PROPERTY in Call webservice with axis NET和JAVA或网络/基础架构代理之间的互操作性问题是否可以更改SOAP REQUEST的SoapAction - Can the SoapAction of a SOAP REQUEST be altered by interoperability issues between .NET and JAVA or a network/infraestructure proxy Spring Boot Server无法识别HTTP标头SOAPAction的值 - Spring Boot Server did not recognize the value of HTTP Header SOAPAction 响应引发错误:服务器无法识别HTTP标头SOAPAction的值 - Response throwing error: Server Did not recognize the value of HTTP Header SOAPAction 使用 HTTP header 中的 SOAPAction 来消费 ZC71E8D17D41C21DE0D1FFZ26088 中的 SOAP 服务 - Using SOAPAction in HTTP header to consume SOAP Service in JAVA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM