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

message headers in WSDL

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

How are message headers represented in a WSDL?

Thanks in advance.

-Saha

 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
They are not represented in wsdl file.
They are represented in server specific deployment descriptor file.
For exmaple server-config.wsdd for Axis, webservices.xml in Websphere, etc..
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rizwan Mohammad:
They are not represented in wsdl file.



Of course they are:
  • Each header definition gets its own <message> definition
  • It doesn't appear in the <portType> definition
  • The header message definition is then referenced inside the <binding> <input> and <output> elements (where appropriate) by a soapbind header element alongside the soapbind body element.

  • See at the bottom of:
    MZ's SCDJWS Guide: Chapter 1. XML Web Service Standards
    [ December 05, 2006: Message edited by: Peer Reynders ]
     
    Saha Kumar
    Ranch Hand
    Posts: 218
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks, Peer. Could show an example? I can't access the link you've provided. Thanks in advance.

    -Saha
     
    Saha Kumar
    Ranch Hand
    Posts: 218
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hello All,

    I have found the following link which may be useful to those interested in how message headers are represented in WSDL.

    click

    Regards,
    Saha
     
    Peer Reynders
    Bartender
    Posts: 2968
    6
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
     
    Rizwan Mohammad
    Ranch Hand
    Posts: 445
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Sorry all for my wrong reply.. I thought you are asking on message handlers, lately I learnt you are asking about message headers. I use soap header terminology more than message header.
     
    Saha Kumar
    Ranch Hand
    Posts: 218
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Rizwan, no problem.

    Peer, many thanks for the snippet!

    -Saha
     
    Are we home yet? Wait, did we forget the tiny ad?
    We need your help - Coderanch server fundraiser
    https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
    reply
      Bookmark Topic Watch Topic
    • New Topic