Talk:Web Service Samples for Java

From AlfrescoWiki

Jump to: navigation, search

A word about an error like

WSDoAllReceiver: security processing failed (actions number mismatch)

that happens with sample1 would be useful

a note on installation (which jars, where, ...)

and a link to http://wiki.alfresco.com/wiki/Web_Services_Interoperability too

[edit] security processing failed (actions number mismatch)

Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
 faultSubcode: 
 faultString: WSDoAllReceiver: security processing failed (actions number mismatch)
 faultActor: 
 faultNode: 
 faultDetail: 
	{http://xml.apache.org/axis/}stackTrace:WSDoAllReceiver:
                  security processing failed (actions number mismatch)

This error indicates that the SOAP call security header doesn't include a timestamp.

If you're using Java, change the deployment definition from

<parameter name='action' value='UsernameToken'/>

to

<parameter name='action' value='UsernameToken Timestamp'/>