RequestSoapContext MessageId

RequestSoapContext MessageId

Post by VG9uaW » Wed, 11 Aug 2004 15:51:02


Hello,
Is there a way of obtaining the addressing messageId of the
RequestSoapContext in a web service client ? I am using the following code:

string packet = "a";
PingServiceWebClient.PingServiceWse pingService = new
PingServiceWebClient.PingServiceWse();
Console.WriteLine("RequestSoapContext Addressing MessageId = " +
pingService.RequestSoapContext.Addressing.MessageID.Value.AbsolutePath);
pingService.Ping(ref packet);
Console.WriteLine("RequestSoapContext Addressing MessageId = " +
PingService.RequestSoapContext.Addressing.MessageID.Value.AbsolutePath);
Console.WriteLine("ResponseSoapContext Addressing RelatesTo = " +
pingService.ResponseSoapContext.Addressing.RelatesTo.Value.AbsolutePath);
Console.WriteLine("ResponseSoapContext Addressing MessageId = " +
pingService.ResponseSoapContext.Addressing.MessageID.Value.AbsolutePath);

and gets the following results:

RequestSoapContext Addressing MessageId = 25d933ff-8fb1-4735-bf5d-24fb262e4acd
RequestSoapContext Addressing MessageId = 265335cc-94f8-4c58-a1f7-4ec384b47ee1
ResponseSoapContext Addressing RelatesTo =
93dbc2bb-f49e-40e6-bdc2-8301fc2326ec
ResponseSoapContext Addressing MessageId =
6726c330-ea52-44c0-a846-5104dcd84647

Notice that I always get a different messageId in the RequestSoapContext and
it never is the same as the RelatesTo id in the ResponseSoapContext.

Thanks!
 
 
 

1. messageID and in-reply-to-messageID mail header info

2. How do I get access to RequestSoapContext with C++ coding ?

I have a C++ web service interface, generated from sproxy.exe, which creates
the interface class derived from CSoapRootHandler i.e.

class CLocationServiceT :
public TClient,
public CSoapRootHandler
{
...
};

However, as the interface is done using https and security, I need to add a
security toked (already generated) by calling
RequestSoapContext.Security.Tokens.Add - however I can not seem to get to the
RequestSoapContext in the web service class. I assume that CSoapRootHandler
should provide an interface to this or CSoapRootHandler should be replaced
with a class from WSE2 ?

Any help on this matter would be most appreciated.

Penny

3. HELP!!! RequestSoapContext.Current always Nothing...

4. SoapExtensions & RequestSoapContext

5. soap:Fault and the RequestSoapContext

6. proxy has no RequestSoapContext?

7. BTS.MessageID

8. Assigning Promoted Field value to BTS.MessageID

9. Accessing MessageID from a Map, without using an orchestration

10. pipeline component MessageID = InterchangeID?

11. Where is the %MessageID% in the HAT?

12. Getting context of a passed message (BTS.MessageID)

13. Accessing %MessageID% in the mapper

14. CDO MessageId vs IMessage EntryID

15. messageID for journaled emails