[英]using Velocity to create SOAP message
I need to create a SOAP message using Velocity. 我需要使用Velocity创建SOAP消息。 I am just wondering how would I be able to get a SOAP message object from the Velocity Template?
我只是想知道如何从Velocity模板获取SOAP消息对象? as far as I know that Velocity Template is evaluated into String.
据我所知,Velocity Template被评估为String。
Your help is appreciated 感谢您的帮助
的确,Velocity仅输出String
,因此您有一个选择:将XML重新解析为一个对象。
Not really sure if this is still relevant, you can generate your SOAP XML message using velocity (as a String) and then do a POST using a plain HTTP client. 不确定是否仍然有用,您可以使用Velocity(作为String)生成SOAP XML消息,然后使用纯HTTP客户端执行POST。 Are you using some kind of framework which makes it necessary to have the velocity output to be deserialized into SOAP message object?
您是否正在使用某种需要将速度输出反序列化为SOAP消息对象的框架?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.