DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone >

WCF to WebSphere Interop: ActivityId is Not Protected

Yaron Naveh user avatar by
Yaron Naveh
·
Mar. 30, 12 · · Interview
Like (0)
Save
Tweet
3.33K Views

Join the DZone community and get the full member experience.

Join For Free

I recently had to call a secured WebSphere service from a WCF client. Fine tuning all the settings was challenging so I turned on WCF tracing. The latter gave me detailed errors which helped me to see where I was wrong. But after fixing everything I knew of, I got this new error:

An element, ActivityId, with nsuri, http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics, is not protected by signing algorithm, sha1, and digest algorithm Rejected by filter; SOAP fault sent

Having no idea where this ActivityId element comes from , I took a quick look at the message my Wcf client was sending:
  <s:Header>
    <ActivityId CorrelationId="db5feb51-ae82-4c1b-bd68-1bdb2d09bbc6" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">f5aada53-669f-46d7-acc5-8d45e437ed86</ActivityId>
  </s:Header>
Where does this ActivityId come from?

Turns out this header is emitted by WCF when we turn tracing on. Wcf uses this header to color the message as it flows between various layers so it can later show a single view of it. In my case the WebSphere expected clients to sign all headers. This particular header was not signed (since WCF tracing just adds it as is) so WebSphere complained about a policy violation.

After turning off the WCF trace settings the integration worked like a charm. So you can say the whole issue was kind of a drug side affect.

Windows Communication Foundation

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • NativeScript vs. Flutter: A Comparison for Tech Businesses and Entrepreneurs
  • Reactive Kafka With Streaming in Spring Boot
  • Unified Observability Exporters: Metrics, Logs, and Tracing
  • What Is High Cardinality?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo