• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

New to Spring-WS

 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I want to get the complete Input XML with the header and all in the same way it has been sent by the client while calling the web service. How can I do that in a spring web service?

Thanks,
Me
 
Ranch Hand
Posts: 85
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really sure about this...

For a webservice client in Spring we had to grab the XML being sent to the called system, So we wrote Interceptors that used to grab the XML and we use to log it.

Possibly you can write Interceptors that can grab and give you the request XML before the Unmarshallers deserialize the XML into java objects.

Hope it points to some solution
 
M Mehta
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Vivek for pointing to interceptor. I will be using that to capture the incomig XML.

Also, I have once more doubt. is it possible to send an already created XML file in the response without calling the marshaller to create the XML from the java object. However, the incoming request should go though the normal unmarshalling process. If I don't set the marshaller property in the applicationContext will it work that way?

Thanks,
Me
 
Vivek K Singh
Ranch Hand
Posts: 85
Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can register an EndpointInterceptor with spring-ws and manipulate the response to your liking. I think Spring-WS will try to add SOAP stuff to your XML (as it is SOAP centric implementation), So you will have to use interceptors.
 
reply
    Bookmark Topic Watch Topic
  • New Topic