• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

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
     
    pie. tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic