Re: WS-Addressing Reference Properties Confusion

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Lucien (*lucien*_at_MicrosoftAccount.com)
Date: 02/26/04

  • Next message: Lucien: "Re: Limit in number of References in a Signature element?"
    Date: Thu, 26 Feb 2004 11:42:32 -0800
    
    

    For WSE 2.0 you would construct a From with reference properties. Then at
    serializing the request the referenceproperties will be serialized as soap
    header(s).

    "Fraser Goffin" <anonymous@discussions.microsoft.com> wrote in message
    news:2D0A28F3-1638-413A-BB33-6DB51E22C277@microsoft.com...
    > The WS-Addressing spec and schema describe the From, ReplyTo, FaultTo and
    Recipient headers to be of type EndPointReference :-
    >
    > <xs:element name="From" type="wsa:EndpointReferenceType"/><xs:element
    name="ReplyTo" type="wsa:EndpointReferenceType"/><xs:element name="FaultTo"
    type="wsa:EndpointReferenceType"/><xs:element name="Recipient"
    type="wsa:EndpointReferenceType"/
    >
    > ... and an EndPointReference type is described as follows :-
    >
    > <xs:element name="EndpointReference"
    type="wsa:EndpointReferenceType"/><xs:complexType
    name="EndpointReferenceType"><xs:sequence><xs:element name="Address"
    type="wsa:AttributedURI"/><xs:element name="ReferenceProperties"
    type="wsa:ReferencePropertiesType" minOccurs="0"/><xs:element
    name="PortType" type="wsa:AttributedQName" minOccurs="0"/><xs:element
    name="ServiceName" type="wsa:ServiceNameType" minOccurs="0"/><xs:any
    namespace="##other" processContents="lax" minOccurs="0"
    maxOccurs="unbounded"/></xs:sequence><xs:anyAttribute namespace="##other"
    processContents="lax"/></xs:complexType>
    >
    > One could imagine the serialisation of say the ReplyTo element being thus
    :-
    >
    > <ReplyTo
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing"><Address>myURI</Add
    ress><ReferenceProperties/><PortType>Q:name</PortType><ServiceName
    PortName="NCName">Q:name</ServiceName></ReplyTo>
    >
    > Reading on, the spec talks about how when using a SOAP binding the
    ReferenceProperties should be encoded, in short, each should become
    independant header blocks.
    >
    > My confusion is this....
    >
    > Say I want to construct a message which informs the receiver to send in
    the response a CustomerNo. Should I construct a From header which includes
    the ReferenceProperty 'CustomerNo' like this ? (i.e. NOT a header block, but
    part of the From header within ReferenceProperties) : -
    >
    > <From
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing"><Address>senderURI<
    /Address><ReferenceProperties><frg:CustomerNo>abc123</frg:CustomerNo></Refer
    enceProperties></From>
    >
    > such that when the receiver is constructing the response they encode it as
    :-
    >
    > <soap:Envelope xmlns:soap="http://www.w3.org/2002/12/soap-envelope"
    xmlns:frg="some-uri"><soap:Header><To
    xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">senderURI</To><frg:
    CustomerNo>abc123</frg:CustomerNo>
    > ... other header blocks
    >
    > This spec is quite thin on implementation detail (or it might just be me
    being a bit slow :-), but any help greatly appreciated.
    >
    > Regards
    >
    > Fraser.
    >


  • Next message: Lucien: "Re: Limit in number of References in a Signature element?"