You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by COURTAULT Francois <Fr...@gemalto.com> on 2010/04/06 20:24:29 UTC

Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service

Hello everybody,

I have tried to write a sample Axis2 client that talks to a Web Service hosted in Weblogic v10.3.1 which has security policy activated (policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml) but I failed.

Any idea for writing such client?

BR.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


RE: Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service

Posted by COURTAULT Francois <Fr...@gemalto.com>.
First: thanks for trying to help me.

But, the problem is that my Web Services is not hosted in TC (Tomcat) server but in Weblogic server !

So is there a way to know what happens with the error I got ?

Best Regards.
________________________________
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: mercredi 7 avril 2010 23:40
To: java-user@axis.apache.org
Subject: RE: Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service

Rampart is a axis module which builds as RAMPART_version.mar

the rampart distribution should have the necessary build.xml to create the mar
cd %RAMPART_HOME%\java
//then create the mar
ant dist
cp %RAMPART_HOME%\dist\RAMPART\rampart-snapshot.mar

it should be (copied) cp'ed to %CATALINA_HOME%\webapps\axis2\WEB-INF\modules
the same folder contains a modules listing file called modules.list which looks like
addressing-1.5.mar
soapmonitor-1.5.mar
ping-1.5.mar
mex-1.5.mar
axis2-scripting-1.5.mar
rampart-SNAPSHOT.mar

reboot TC and you should be all set

Bon Chance!
Martin Gainty
______________________________________________
Note de déni et de confidentialité

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.





> From: Francois.COURTAULT@gemalto.com
> To: java-user@axis.apache.org
> Date: Wed, 7 Apr 2010 18:34:59 +0200
> Subject: Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service
>
> Hello,
>
> I have made little progress on this subject. I have looked at rampart samples.
> The one that is close to my use-case is the Tomcat sample (UT over transport).
>
> So I have modified, a little bit, the policy of this sample in order to use plain text Username token (see attached the policy I have used + the sources generated by the WSDL2Java tool and the client itself).
>
> Nevertheless I still have issue:
>
> 7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
> INFO: No services directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
> 7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
> INFO: No modules directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
> org.apache.axis2.AxisFault: Error on verifying message against security policy Error code:1000
> at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
> at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
> 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 gemalto.test.GemaltoEJBServiceStub.helloWorld(GemaltoEJBServiceStub.java:187)
> at gemalto.test.GemaltoEJBWSClient.main(GemaltoEJBWSClient.java:37)
>
> Any idea ?
>
> Best Regards.
>
> -----Original Message-----
>
>
> Hello everybody,
>
> I have tried to write a sample Axis2 client that talks to a Web Service hosted in Weblogic v10.3.1 which has security policy activated (policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml) but I failed.
>
> Any idea for writing such client?
>
> BR.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. Get busy.<http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5>

RE: Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service

Posted by Martin Gainty <mg...@hotmail.com>.
Rampart is a axis module which builds as RAMPART_version.mar

 

the rampart distribution should have the necessary build.xml to create the mar

cd %RAMPART_HOME%\java

//then create the mar

ant dist

cp %RAMPART_HOME%\dist\RAMPART\rampart-snapshot.mar

 

it should be (copied) cp'ed to %CATALINA_HOME%\webapps\axis2\WEB-INF\modules
the same folder contains a modules listing file called modules.list which looks like

addressing-1.5.mar
soapmonitor-1.5.mar
ping-1.5.mar
mex-1.5.mar
axis2-scripting-1.5.mar

rampart-SNAPSHOT.mar

 

reboot TC and you should be all set

 

Bon Chance!
Martin Gainty 
______________________________________________ 
Note de déni et de confidentialité


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.




 

> From: Francois.COURTAULT@gemalto.com
> To: java-user@axis.apache.org
> Date: Wed, 7 Apr 2010 18:34:59 +0200
> Subject: Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service
> 
> Hello,
> 
> I have made little progress on this subject. I have looked at rampart samples.
> The one that is close to my use-case is the Tomcat sample (UT over transport).
> 
> So I have modified, a little bit, the policy of this sample in order to use plain text Username token (see attached the policy I have used + the sources generated by the WSDL2Java tool and the client itself).
> 
> Nevertheless I still have issue:
> 
> 7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
> INFO: No services directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
> 7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
> INFO: No modules directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
> org.apache.axis2.AxisFault: Error on verifying message against security policy Error code:1000
> at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
> at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
> 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 gemalto.test.GemaltoEJBServiceStub.helloWorld(GemaltoEJBServiceStub.java:187)
> at gemalto.test.GemaltoEJBWSClient.main(GemaltoEJBWSClient.java:37)
> 
> Any idea ?
> 
> Best Regards.
> 
> -----Original Message-----
> 
> 
> Hello everybody,
> 
> I have tried to write a sample Axis2 client that talks to a Web Service hosted in Weblogic v10.3.1 which has security policy activated (policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml) but I failed.
> 
> Any idea for writing such client?
> 
> BR.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
> 
 		 	   		  
_________________________________________________________________
The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail. 
http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5

Try to write an Axis2 v1.5.1 client that invokes a Weblogic v10.3.1 Web Service

Posted by COURTAULT Francois <Fr...@gemalto.com>.
Hello,

I have made little progress on this subject. I have looked at rampart samples.
The one that is close to my use-case is the Tomcat sample (UT over transport).

So I have modified, a little bit, the policy of this sample in order to use plain text Username token (see attached the policy I have used + the sources generated by the WSDL2Java tool and the client itself).

Nevertheless I still have issue:

7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
INFO: No services directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
7 avr. 2010 17:57:26 org.apache.axis2.deployment.DeploymentEngine prepareRepository
INFO: No modules directory was found under D:\Documents and Settings\fcourtau\workspace\WebServiceProject.
org.apache.axis2.AxisFault: Error on verifying message against security policy Error code:1000
	at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:435)
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:371)
	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 gemalto.test.GemaltoEJBServiceStub.helloWorld(GemaltoEJBServiceStub.java:187)
	at gemalto.test.GemaltoEJBWSClient.main(GemaltoEJBWSClient.java:37)

Any idea ?

Best Regards.

-----Original Message-----


Hello everybody,

I have tried to write a sample Axis2 client that talks to a Web Service hosted in Weblogic v10.3.1 which has security policy activated (policy:Wssp1.2-2007-Https-UsernameToken-Plain.xml) but I failed.

Any idea for writing such client?

BR.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org