Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can we add WSS TimeToLive request property to jaxws client  RSS feed

 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I generated a WebService from a WSDL using JAXWS and import the finally generated WSDL to my SOAPUI to send out the request and view the response. For some reason, I always have to set WSS TimeToLive as 1000 in the request properties, else I get an error in the response.

Now, I generated a client from the WSDL. I wonder if I need to set the WSS TimeToLive here as well? If yes, how can I add it?
 
Vijitha Kumara
Bartender
Posts: 3974
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think some implementations uses a default value if not specified or in case of the invalid value, may depends on the provider being used.
 
rasster shib
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know how I can set it?
 
Vijitha Kumara
Bartender
Posts: 3974
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It may be different based on the provider used, for example see a sample Axis2 client configuration here.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!