• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

message headers in WSDL

 
Saha Kumar
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

How are message headers represented in a WSDL?

Thanks in advance.

-Saha

 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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..
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • 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
    • 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
    • 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
    • Quote
    • Report post to moderator
     
    Rizwan Mohammad
    Ranch Hand
    Posts: 445
    • Mark post as helpful
    • send pies
    • 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
    • Quote
    • Report post to moderator
    Rizwan, no problem.

    Peer, many thanks for the snippet!

    -Saha
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic