• Post Reply Bookmark Topic Watch Topic
  • New Topic

Get XML header on Webservices

 
Diego Creador
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!

I need some orientation, Im pretty new to webservices.

What I want is to read an XML from the webservices header. I need to get some fields from the xml like:




Can you give me some example or something? Anythins is wellcome.

Thanks in advance
 
Vijay Chandran
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try to understand what exactly web services is by reading some tutorials like below:

http://docs.oracle.com/javaee/6/tutorial/doc/gijti.html

You will automatically come to know how to get the headers from the request XML.

Thanks,
Vijay


 
Rohit Chaudhary
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you referring to Soap message header here? Please provide more information like which kind of web services you are using - SOAP or REST?

In case of SOAP, soap handlers can be used to manipulate headers (read/add/remove). (http://www.mkyong.com/webservices/jax-ws/jax-ws-soap-handler-in-server-side/ - This link would help!)


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