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

case insensitive soap message tags  RSS feed

 
Jina Lu
Greenhorn
Posts: 26
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm creating web service using jax-ws. One of the requirements is to support case insensitive tags. The tags <model> and <Model> should be both successfully unmarshalled as the same variable, but I can't find such feature.
Using cxf-codegen-plugin maven to generate jaxb annotated classes and jaxws:endpoint to define my ws.
Thank you for any ideas in advance.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the requirements is to support case insensitive tags.

This is an extremely unusual requirement; how and why did it come about? What is its point?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since Java and XML have always cared about case, I don't think you are going to find a handy tool to do that.

You could pre-process the XML stream as plain text and fix your tags that way. Presumably as a Filter to the request stream.

Much better to rethink the logic that got you that requirement in the first place.

Bill

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!