This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Spring, define soap version and issue with @RootElement

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

Error that I am getthing:

cannot create message: incorrect content-type for SOAP version. Got: application/soap+xml; charset=UTF-8 Expected: text/xml




SoapClient.class
e WebServiceTemplate template;

   public GetNetworkOperatorsResponse operators(GetNetworkOperators request){
       template = new WebServiceTemplate(marshaller);

       GetNetworkOperatorsResponse getNetworkOperatorsResponse = (GetNetworkOperatorsResponse) template.marshalSendAndReceive("xx.xxx.xxx.xxx",request);
       return getNetworkOperatorsResponse;
   }
}

Config:

SoapConfig.class




1. How to define soap version? I need to have soap 1.2
2. Also I get when marshalling issue with RootElement

"unable to marshal as an element because it is missing an @XmlRootElement annotation".



Now I added rootelement to my class which was generated from wsdl file. How must I change "marshaller" that I will add it via code?

Thank you.
miha






 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!