[英]How can I add SVN properties for WSDL and XSD which JAX-WS RI generate?
I have two web service. 我有两个Web服务。 The first web service has WSDL and XSD in project.
第一个Web服务在项目中具有WSDL和XSD。 I added following SVN properties to WSDL:
我在WSDL中添加了以下SVN属性:
<wsdl:documentation>
$Revision:$
$Date: $
</wsdl:documentation>
and It is working. 并且正在工作。 Now I want to add these SVN properties for second web service.
现在,我想为第二个Web服务添加这些SVN属性。 Here is POJO:
这是POJO:
@WebService
@Stateless(mappedName = "ejb", name = "SecondService")
public class SecondService implements SecondServiceRemote, SecondServiceLocal {
(...)
}
It doesn't has WSDL and XSD in project. 它在项目中没有WSDL和XSD。 My WebLogic server published SecondService's XSD and WSDL.
我的WebLogic服务器发布了SecondService的XSD和WSDL。 Published and generated by JAX-WS RI.
由JAX-WS RI发布和生成。 RI's version is Oracle JAX-WS 2.1.5.
RI的版本是Oracle JAX-WS 2.1.5。
My question is : How can I add SVN properties for my SecondService's XSD and WSDL? 我的问题是:如何为SecondService的XSD和WSDL添加SVN属性?
Thanks for any advice! 感谢您的任何建议!
Short answer 简短答案
you can't do it, because svn:keywords is property of versioned file, existing in repository, translated into some value only on checkout into Working Copy 您不能这样做,因为svn:keywords是版本库文件的属性,存在于存储库中,仅在结帐到工作副本时才转换为某些值
Longer answer 更长的答案
Because in secod case WSDL is generated by POJO and changed WSDL means "something was changed in POJO" you can use $Revision$
and $Date$
values of POJO inside <wsdl:documentation>
node definition in POJO 因为在第二种情况下WSDL是由POJO生成的,并且更改了WSDL意味着“ POJO中的某些内容已更改”,所以可以在POJO中的
<wsdl:documentation>
节点定义内使用POJO的$Revision$
和$Date$
值
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.