Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WSDoAllReceiver: security processing failed (actions mismatch)

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I've got an issue when trying to encrypt my web service... I'm gonna show you some of the related files that I think that might be causing this problem...

services.xml:




client.properties:



The Exception:



Does anybody know what the problem is? I've read somewhere that people also set the axis2.xml file which is in the axis' conf directory... if so, what do I need to do with it?

Thanks in advance,

Gus.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, you generally do not need to alter the axis2.xml file (assuming you're talking about the server-side axis2.xml file).

You will need to adapt the client-side configuration file, which sometimes is also called axis2.xml or client.axis2.xml, so that it includes a similar section about InflowSecurity and OutflowSecurity. Do you have that? If so, post it here; if not, there's your problem.
 
Gustavo Santos
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmmm so I guess that we figured out what my problem is... I don't have this axis2.xml file, and I'm not sure where to place it. I thought I would only need the server.xml to do the encryption. Should place this axis2.xml in META-INF directory inside my .aar file?

Many thanks,

Gus.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No. The META-INF/services.xml file is already in the .aar file, and it determines what security will be done on the *server*.

The file I'm talking about is used on the *client*. The security for both sides needs to match, or you'll get a mismatch error.

You'd use the client-side file name as value for the "axis2.xml" property that you pass to the client. (That's assuming that you're using Axis2 on the client side as well. If you're using some other client SOAP framework, then you need to consult its documentation for how to set its security options.)
 
Gustavo Santos
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you so much,

I built my axis2.xml file and everything seemed to go well until I got another problem... I've been trying in any ways to make this work but seems that I'm not giving the right path of my client.properties file or something like this.



and here is a snippet of my axis2.xml:



this is my main method:

 
Onion rings are vegetable donuts. Taste this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic