axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: Trouble interfacing with WCF
Date Wed, 27 Jul 2011 18:40:36 GMT

put the names of all the referenced modules into /WEB-INF/modules/modules.list here is mine
for reference

soapmonitor-1.5.mar

ping-1.5.mar

mex-1.5.mar

axis2-scripting-1.5.mar

rampart-trust-SNAPSHOT.mar

rampart-policy.mar

hth,
Martin Gainty 
______________________________________________ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni
et de confidentialité
 Ez az
üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs.  Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten
wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist
unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet
keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen
wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire
prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe
quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information
seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les
email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune
responsabilité pour le contenu fourni.


Date: Wed, 27 Jul 2011 14:25:32 -0400
Subject: Re: Trouble interfacing with WCF
From: notfed@gmail.com
To: java-dev@axis.apache.org
CC: mgainty@hotmail.com


On Fri, Jul 22, 2011 at 11:41 AM, Martin Gainty <mgainty@hotmail.com> wrote:






Hi Jay-
The Axis solution is to configure public and private keystores..create a cert with public
key and engage Rampart (Security) Module to Axis 
http://wso2.org/library/3190


Let me know if you need any guidance..i've done this about a hundred times
Martin Gainty
I could definitely use some guidance.   I'm trying to follow that guide, but it seems to be
missing a few details, which is throwing me off.  For instance, the code under "Step 3. Engaging
Rampart and Setting Authentication Information" does not show its imports.  I had to search
to find that ConfigurationContext is apache.axis2.context.ConfigurationContext (similarly
had to search for ConfigurationContextFactory and ServiceClient).  


Here's my test code:
package org.petio.magiceightball;

import org.apache.axis2.context.ConfigurationContext;
import org.apache.axis2.context.ConfigurationContextFactory;
import org.apache.axis2.client.ServiceClient;
public class MagicEightBallServiceCGClient
{

    public static void main(String[] args) throws Exception
    {
        /* Get repository context */
        ConfigurationContext ctx = ConfigurationContextFactory.createConfigurati
onContextFromFileSystem("/usr/local/axis2-1.5.5/repository", null);


        /* Get Service stub */
        MagicEightBallServiceStub stub = new MagicEightBallServiceStub(ctx);

        /* Engage rampart */
        ServiceClient sc = stub._getServiceClient();
        sc.engageModule("rampart");


        /* Consume service */
        System.out.println(stub.getAdvice());
    }
}
When I try to run this, I get this error:


org.apache.axis2.AxisFault: Unable to engage module : rampart
        at org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:358)

        at org.petio.magiceightball.MagicEightBallServiceCGClient.main(MagicEightBallServiceCGClient.java:19)


My /usr/local/axis2-1.5.5/repository directory looks like the following:


/usr/local/axis2-1.5.5/repository/modules:
    addressing-1.5.5.mar    mtompolicy-1.5.5.mar    rampart-1.6.0.mar
    mex-1.5.5.mar           ping-1.5.5.mar          scripting-1.5.5.mar
    modules.list            rahas-1.6.0.mar         soapmonitor-1.5.5.mar


/usr/local/axis2-1.5.5/repository/services:
    services.list   version.aar

And I've manually added rahas-1.6.0.mar and rampart-1.6.0.mar to modules.list (should I have??).
 Still getting the same problem.


Also, when I don't engage the rampart module, I get this error:

Exception in thread "main" org.apache.axis2.AxisFault: Must Understand check failed for header
http://www.w3.org/2005/08/addressing : Action

        at org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:97)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
        at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)

        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)
        at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
        at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)

        at org.petio.magiceightball.MagicEightBallServiceStub.getAdvice(MagicEightBallServiceStub.java:189)
        at org.petio.magiceightball.MagicEightBallServiceCGClient.main(MagicEightBallServiceCGClient.java:25)


I'm wondering if this is a side-effect of not loading rampart.  Or must I also load the "addressing"
module?

-- 
Jay Sullivan
 		 	   		  
Mime
View raw message