简体   繁体   中英

How can I add SVN properties for WSDL and XSD which JAX-WS RI generate?

I have two web service. The first web service has WSDL and XSD in project. I added following SVN properties to WSDL:

<wsdl:documentation>
    $Revision:$
    $Date: $
</wsdl:documentation>

and It is working. Now I want to add these SVN properties for second web service. Here is POJO:

@WebService
@Stateless(mappedName = "ejb", name = "SecondService")
public class SecondService implements SecondServiceRemote, SecondServiceLocal {
(...)
}

It doesn't has WSDL and XSD in project. My WebLogic server published SecondService's XSD and WSDL. Published and generated by JAX-WS RI. RI's version is Oracle JAX-WS 2.1.5.

My question is : How can I add SVN properties for my SecondService's XSD and WSDL?

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM