• 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Get XML header on Webservices

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!)


 
I found a beautiful pie. And a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic