[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-dev
Subject:    RE: Trouble interfacing with WCF
From:       Martin Gainty <mgainty () hotmail ! com>
Date:       2011-07-27 18:40:36
Message-ID: BLU142-W29141D70715950D637DB84AE350 () phx ! gbl
[Download RAW message or body]

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
 		 	   		  


[Attachment #3 (text/html)]

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
put the names of all the referenced modules into /WEB-INF/modules/modules.list here \
is mine for reference<br> soapmonitor-1.5.mar<br>
ping-1.5.mar<br>
mex-1.5.mar<br>
axis2-scripting-1.5.mar<br>
rampart-trust-SNAPSHOT.mar<br>
rampart-policy.mar<br><br>hth,<br>Martin Gainty \
<br>______________________________________________ <br>Jogi és Bizalmassági \
kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de \
confidentialité<br><div>&nbsp;</div><div>Ez az üzenet bizalmas. &nbsp;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. &nbsp;Ez az üzenet csak \
ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. &nbsp;Mivel az \
electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem \
terhelhet ezen üzenet tartalma miatt.<br><br>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.<br></div><pre>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.</pre><br><br><br><div><hr id="stopSpelling">Date: Wed, 27 Jul 2011 14:25:32 \
-0400<br>Subject: Re: Trouble interfacing with WCF<br>From: notfed@gmail.com<br>To: \
java-dev@axis.apache.org<br>CC: mgainty@hotmail.com<br><br><br style="padding-left: \
1ex;" class="ecxgmail_quote"><br><div class="ecxgmail_quote">On Fri, Jul 22, 2011 at \
11:41 AM, Martin Gainty <span dir="ltr">&lt;<a \
href="mailto:mgainty@hotmail.com">mgainty@hotmail.com</a>&gt;</span> wrote:<br> \
<blockquote class="ecxgmail_quote" style="padding-left: 1ex;">



<div><div dir="ltr">
Hi Jay-<br>The Axis solution is to configure public and private keystores..create a \
cert with public key and engage Rampart (Security) Module to Axis <br><a \
href="http://wso2.org/library/3190" \
target="_blank">http://wso2.org/library/3190</a><br> <br>Let me know if you need any \
guidance..i've done this about a hundred times<br>Martin Gainty<br \
clear="all"></div></div></blockquote></div><br>I could definitely use some \
guidance.&nbsp;&nbsp; I'm trying to follow that guide, but it seems to be missing a \
few details, which is throwing me off.&nbsp; For instance, the code under "<a \
name="Step_3._Engaging_Rampart_and_setting_authentication_information" \
target="_blank">Step 3. Engaging Rampart and Setting Authentication Information"</a> \
does not show its imports.&nbsp; I had to search to find that ConfigurationContext is \
apache.axis2.context.ConfigurationContext (similarly had to search for \
ConfigurationContextFactory and ServiceClient).&nbsp; <br> <br>Here's my test \
code:<br><blockquote style="padding-left: 1ex;" class="ecxgmail_quote"><pre \
class="ecxprettyprint">package org.petio.magiceightball;<br> import \
org.apache.axis2.context.ConfigurationContext;<br>import \
org.apache.axis2.context.ConfigurationContextFactory;<br>import \
org.apache.axis2.client.ServiceClient;<br>public class \
MagicEightBallServiceCGClient<br>{<br>  public static void main(String[] args) throws \
Exception<br>    {<br>        /* Get repository context */<br>        \
ConfigurationContext ctx = \
ConfigurationContextFactory.createConfigurati<br>onContextFromFileSystem("/usr/local/axis2-1.5.5/repository", \
null);<br> <br>        /* Get Service stub */<br>        MagicEightBallServiceStub \
stub = new MagicEightBallServiceStub(ctx);<br><br>        /* Engage rampart */<br>    \
ServiceClient sc = stub._getServiceClient();<br>        \
sc.engageModule("rampart");<br> <br>        /* Consume service */<br>        \
System.out.println(stub.getAdvice());<br>    }<br>}<br></pre></blockquote>When I try \
to run this, I get this error:<br><br><blockquote style="padding-left: 1ex;" \
class="ecxgmail_quote"> <font size="1"><span style="font-family: courier \
new,monospace;">org.apache.axis2.AxisFault: Unable to engage module : \
rampart</span></font><br><font size="1"><span style="font-family: courier \
new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.client.ServiceClient.engageModule(ServiceClient.java:358)</span></font><br>
 <font size="1"><span style="font-family: courier \
new,monospace;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.petio.magiceightball.MagicEightBallServiceCGClient.main(MagicEightBallServiceCGClient.java:19)</span><span \
style="font-family: courier new,monospace;"></span></font><br> </blockquote><br>My \
/usr/local/axis2-1.5.5/repository directory looks like the \
                following:<br><br><blockquote style="padding-left: 1ex;" \
                class="ecxgmail_quote">
/usr/local/axis2-1.5.5/repository/modules:<br>&nbsp;&nbsp;&nbsp; \
addressing-1.5.5.mar&nbsp;&nbsp;&nbsp; mtompolicy-1.5.5.mar&nbsp;&nbsp;&nbsp; \
rampart-1.6.0.mar<br>&nbsp;&nbsp;&nbsp; \
mex-1.5.5.mar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
ping-1.5.5.mar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
scripting-1.5.5.mar<br>&nbsp;&nbsp;&nbsp; \
modules.list&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
rahas-1.6.0.mar&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
soapmonitor-1.5.5.mar<br> \
<br>/usr/local/axis2-1.5.5/repository/services:<br>&nbsp;&nbsp;&nbsp; \
services.list&nbsp;&nbsp; version.aar<br></blockquote><br>And I've manually added \
rahas-1.6.0.mar and rampart-1.6.0.mar to modules.list (should I have??).&nbsp; Still \
getting the same problem.<br> <br>Also, when I don't engage the rampart module, I get \
this error:<br><br><blockquote style="padding-left: 1ex;" \
class="ecxgmail_quote"><font size="1"><span style="font-family: courier \
new,monospace;">Exception in thread "main" org.apache.axis2.AxisFault: Must \
Understand check failed for header <a href="http://www.w3.org/2005/08/addressing" \
target="_blank">http://www.w3.org/2005/08/addressing</a> : Action<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.engine.AxisEngine.checkMustUnderstand(AxisEngine.java:97)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:364)<br>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:417)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)<br> \
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.petio.magiceightball.MagicEightBallServiceStub.getAdvice(MagicEightBallServiceStub.java:189)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
at org.petio.magiceightball.MagicEightBallServiceCGClient.main(MagicEightBallServiceCGClient.java:25)</span></font><br>
 </blockquote><br>I'm wondering if this is a side-effect of not loading \
rampart.&nbsp; Or must I also load the "addressing" module?<br><br>-- <br>Jay \
Sullivan<br></div> 		 	   		  </div></body> </html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic