Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Synchronization Staging giving SOAP header Security error View modes: 
User avatar
Member
Member
christine - 2/5/2013 3:06:58 PM
   
Synchronization Staging giving SOAP header Security error
Hello,

Today the synchronization client started to return this error every time a sync is attempted
"Synchronization client error: Exception occurred: System.Web.Services.Protocols.SoapHeaderException: SOAP header Security was not understood. at System.Web.Services.Protocols.SoapHeaderHandling.SetHeaderMembers(SoapHeaderCollection headers, Object target, SoapHeaderMapping[] mappings, SoapHeaderDirection direction, Boolean client) at System.Web.Services.Protocols.SoapServerProtocol.CreateServerInstance() at System.Web.Services.Protocols.WebServiceHandler.Invoke() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()"

Yesterday this was working just fine, but now today I can get nothing to work with it. I have gone through and checked all the usernames and passwords for the staging servers and nothing has been changed recently (to my knowledge) that would affect this at all.

Version numbers between the two sites match up (both are version 7.0.13 and show 7.0.4738 when hovered over)

Any help would be greatly appreciated

- Christine

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/6/2013 2:20:18 AM
   
RE:Synchronization Staging giving SOAP header Security error
Hello Christine,

Could you please try to add following lines to the system.web section in the web.config file?
<webServices>
<soapExtensionImporterTypes>
<add type="Microsoft.Web.Services3.Description.WseExtensionImporter, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</soapExtensionImporterTypes>
<soapServerProtocolFactory type="Microsoft.Web.Services3.WseProtocolFactory, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<protocols>
<add name="HttpSoap"/>
<remove name="HttpPost" />
<remove name="HttpGet" />
</protocols>
</webServices>

References:
- geeknotes.wordpress.com/2007/03/15/wse-30-hell-soap-header-security-was-not-understood/
- forums.asp.net/t/1126448.aspx

Best regards,
Martin Danko

User avatar
Member
Member
christine - 2/6/2013 8:38:53 AM
   
RE:Synchronization Staging giving SOAP header Security error
Thank you for the help! It now works! Do you have any ideas why it would have stopped working suddenly though?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 2/6/2013 9:06:08 AM
   
RE:Synchronization Staging giving SOAP header Security error
Hi Christine,

I'm really glad that it helps. The reason is that you need to register WSE soapExtension also at Service side via web.config.

Best regards,
Martin Danko

User avatar
Member
Member
abithaldas-gmail - 12/24/2013 3:19:09 PM
   
RE:Synchronization Staging giving SOAP header Security error
Hi,

I am facing the same issue but i am using a console application. From that I am calling the web service. I don't have control over the server part to change anything. So, I don't have web.config. Could you please suggest some alternative solution for this.

Thanks in Advance,
Arvind

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/25/2013 3:52:17 AM
   
RE:Synchronization Staging giving SOAP header Security error
Hi Arvind,

Sorry, but I'm not sure how you can use the Kentico without web.config file?

Best regards,
Martin Danko

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/27/2013 6:18:53 AM
   
RE:Synchronization Staging giving SOAP header Security error
Can you specify your setup? Specifically your console application, do you have any Kentico dll's referenced?

User avatar
Member
Member
scott_hancock-urmc.rochester - 3/19/2014 4:02:57 PM
   
RE:Synchronization Staging giving SOAP header Security error
But why did this suddenly stop working?