On 5/16/2012 9:46 AM, obrian wrote:
>
> Learning by doing - the man said ;-)
>
> I can't reply on the Pub-Channel - it goes via the Sub-Channel ...
> Lessen learned! ;-)


Perhaps it is better to say, replies go through teh Output Transform,
which is not technically part of either channel, regardless of what the
fishbone view might indicate.

You point of type='Ping' being stripped is unclear, could you offer more
advice?


> My initial problem was, I get this (POST) from remote host:
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soap:Body>
> <Ping xmlns="http://dk.itst"/>
> </soap:Body>
> <operation-data context="/" remote-host="x.x.x.x"
> url="http://x.x.x.x:xxxxx/"/>
> </soap:Envelope>
>
> and the remote host expects an answer.
>
> My solution:
> I match it with this:
> <xsl:template match="//*[local-name()='Ping']">
>
> then "convert" it to an:
> <status level="success" type="ping">
>
> this I match on the Subscriber-channel with:
> <xsl:template match="status">
>
> <!-- and "reply" this: -->
>
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <soap:Body>
> <PingResponse xmlns="http://dk.itst">
> <PingResult>
> <StandardRetur xmlns="urnio:sagdok:2.0.0">
> <StatusKode>200</StatusKode>
> <FejlbeskedTekst>OK</FejlbeskedTekst>
> </StandardRetur>
> <Item>true</Item>
> </PingResult>
> </PingResponse>
> </soap:Body>
> </soap:Envelope>
>
> </xsl:template>
>
> I'm not sure if that is the right way to do it - but it works! :-)
>
> My last question is now, how do i match the @type='ping' on the
> Subscriber-channel - it seems to be striped on the way over there?
>
> regards
> Brian
>
>