Re: AXIS 2 with WSIF 2.0

2008-02-22 Thread sushant
Thanks Philipp.



Philipp Leitner <[EMAIL PROTECTED]> wrote: Hi Sushant,

"thus i am trying to find a solution, that is common across."

I wonder how WSIF would help you with that problem? WSIF is based on a 
rather old Axis1 version, which is iirc not exactly an interoperability 
miracle. I think you would be better off using either Axis2, Codehaus 
XFire or Apache CXF as a client for all three service hosts (Jboss, 
Axis2, Oracle). I would recommnd WSIF only if you really need one of the 
distinguising features of WSIF, not if you just want to build a generic 
Web service client. IMHO there are just better alternatives available 
for the standard use cases.

/philipp

sushant schrieb:
> Hi Tobias,
> 
> It is not mandatory for me to use WSIF.
> Its just, i might have web services deployed on Jboss,Axis 2 and oracle 
> app server,
> thus i am trying to find a solution, that is common across.
> 
> Thanks
> Sushant
> 
> 
> */Tobias Anstett /* wrote:
> 
> 
> Hi Sushant,
> 
> 
> Can somebody point me to an example of creating web service
> client with WSIF and the web service is developed for AXIS 2.13
> 
> 
> As far as i know WSIF is the Web Service Invocation Framework
> integrated for example in the Rational Application Developer. I
> think your axis client is configured correctly, but WSIF needs
> custom serializers / deserializers to map the response or create the
> request. I have worked with WSIF two years ago and finally switched
> to axis.
> 
> Is there any reason why you won't create a client with axis instead
> of WSIF ?
> 
> Regards, Tobias
> 
> 
> 
> Meet people who discuss and share your passions. Join them now. 
>  
> 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




 
Sushant 

   
-
 5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.

Re: SCT

2008-02-22 Thread Ruchith Fernando
Hi Hardev,

Your messages exchanges sounds fine up to the point where the callback
handler accesses the STS to obtain the symm key. IMHO WS-Trust doesn't
provide a specific way to obtain a key at this point of a standard
WS-Trust exchange.

We have you use case implemented in a slightly different approach:

- Client contacts the STS and obtains a SAML token to talk to a service
- The STS includes a symm key encrypted for the service within the SAML token
- The RSTR (response from the STS to the client) will have that *same*
symm key for the client to extract
- (When using Rampart/Rahas the client uses
org.apache.rahas.client.STSClient which will extract this information
and bundle all of it into a org.apache.rahas.Token instance)
- Now this SAML token (assertion) will be added to the Security header
of the message from client to service and the symm key that is
associated with the SAML token will be used to encrypt/sign the
message as specified by the service policy.
- At the service the SAML assertion in the Security header will be
processed and the symm key will be extracted.
- Processing at the service will use this extracted symm key to
decrypt/verify signature where necessary.

A sample client that does this sort of a message exchange is available
here : [1]


Now ... SCT usage scenario is usually a WS-SecureConversation scenario
where rampart/rahas supports the application service it self to act as
an STS. In this case since the service and the STS both are the same
the symm key created is known at the service, and it is not included
in the SecurityContextToken (SCT) itself. Are you sure you want to use
this SCT scenario in the context of WS-SecureConversation or are you
looking for a pure WS-Trust scenario as I explained above.

Thanks,
Ruchith

1. 
https://wso2.org/repos/wso2/trunk/wsas/java/modules/samples/sts-sample/src/org/wso2/wsas/sample/sts/client/Client.java

On Sat, Feb 23, 2008 at 3:06 AM, Hardev Sian <[EMAIL PROTECTED]> wrote:
> Hi Dimuthu,
>
> I have had a look at that sample but it doesn't provide what I am looking
> for. My use case is that I have acquired a SCT from an STS service. I want
> to now embed that token in the outgoing request which can then be accessed
> by a callback handler. The callback handler can access the STS to get the
> symmetric key for that token and encrypt the outbound data with that.
> Similarly the callback at the handler can access the same to decrypt, the
> response can be handled in the same manner. I am just not familiar enough
> how to set the policies to achieve this.
>
> Any help in doing this is greatly appreciated.
>
> Thank you,
>
> Hardev
>
>
> Dimuthu Leelarathne <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> You can find a SCT sample inside the rampart 1.3 distribution.
>
> samples/policy/sample04
>
> Thank you,
> Dimuthu
>
> On Fri, 2008-02-22 at 16:52 +1100, Hardev Sian wrote:
> >
> >
> > I know that rahas has been integrated into rampart but I was
> > interested at looking at this example :
> >
> http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario3Test.java
> >
> > which talks about using an acquired SCT token to secure the web
> > service requests/responses.
> >
> > Can anybody help in locating this or something similar.
> >
> > Thanks,
> >
> > Hardev
> >
> > __
> > Get the name you always wanted with the new y7mail email address.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>  
>  Get the name you always wanted with the new y7mail email address.



-- 
http://blog.ruchith.org
http://wso2.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem accessing policy via external URI

2008-02-22 Thread dmike

I created the following JIRA for this: 
https://issues.apache.org/jira/browse/AXIS2-3536.

Thanks,
Michael



Pete-60 wrote:
> 
> Hello Michael,
> 
> I was not able to get this to work either. Did you post to the 'dev' list?
> 
> If it's not already, it probably should be on the Apache2 bug list at
> https://issues.apache.org/jira/secure/Dashboard.jspa
> 
> -P
> 
> - Original Message 
> From: dmike <[EMAIL PROTECTED]>
> To: axis-user@ws.apache.org
> Sent: Thursday, February 21, 2008 12:49:08 PM
> Subject: Problem accessing policy via external URI
> 
> 
> I would like to store my policy information in a separate file and
> reference
> it from within WSDL via wsp:PolicyReference/@URI attribute.  This does not
> seem to work for me.
> 
> When I embed the policy details within the WSDL and then reference the
> policy internally (e.g. )
> running wsdl2code produces desired results.  However when referencing the
> same policy information via an external URI (e.g.  URI="http://host/policy.xml#operation_policy"/>) the policy is ignored
> while
> wsdl2code prints out an error "ERROR: Ignoring policy - null".
> 
> Having traced this flow I can see that the policy is retrieved from the
> external URI, however when the call is made to
> AxisPolicyLocator.register()
> the latter raises an UnsupportedOperationException which causes the
> "Ignoring policy" message to be printed.  Can someone advise as to whether
> Axis2 supports policy references via external URI's.  I understand that I
> can modify the client code to get the policy from an external file, but I
> would like to see this done automatically by wsdl2code utility when
> processing my WSDL.  Any help would be much appreciated!
> 
> Thanks,
> Michael
> -- 
> View this message in context:
> http://www.nabble.com/Problem-accessing-policy-via-external-URI-tp15618306p15618306.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
>  
> 
> Never miss a thing.  Make Yahoo your home page. 
> http://www.yahoo.com/r/hs
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-accessing-policy-via-external-URI-tp15618306p15646749.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SCT

2008-02-22 Thread Hardev Sian
Hi Dimuthu,
   
  I have had a look at that sample but it doesn't provide what I am looking 
for. My use case is that I have acquired a SCT from an STS service. I want to 
now embed that token in the outgoing request which can then be accessed by a 
callback handler. The callback handler can access the STS to get the symmetric 
key for that token and encrypt the outbound data with that. Similarly the 
callback at the handler can access the same to decrypt, the response can be 
handled in the same manner. I am just not familiar enough how to set the 
policies to achieve this.
   
  Any help in doing this is greatly appreciated.
   
  Thank you,
   
  Hardev

Dimuthu Leelarathne <[EMAIL PROTECTED]> wrote:
  Hi,

You can find a SCT sample inside the rampart 1.3 distribution.

samples/policy/sample04

Thank you,
Dimuthu

On Fri, 2008-02-22 at 16:52 +1100, Hardev Sian wrote:
> 
> 
> I know that rahas has been integrated into rampart but I was
> interested at looking at this example : 
> http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario3Test.java
> 
> which talks about using an acquired SCT token to secure the web
> service requests/responses.
> 
> Can anybody help in locating this or something similar.
> 
> Thanks,
> 
> Hardev
> 
> __
> Get the name you always wanted with the new y7mail email address.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



   
-
Get the name you always wanted with the new y7mail email address.

Re: Problem accessing policy via external URI

2008-02-22 Thread Pete
Hello Michael,

I was not able to get this to work either. Did you post to the 'dev' list?

If it's not already, it probably should be on the Apache2 bug list at 
https://issues.apache.org/jira/secure/Dashboard.jspa

-P

- Original Message 
From: dmike <[EMAIL PROTECTED]>
To: axis-user@ws.apache.org
Sent: Thursday, February 21, 2008 12:49:08 PM
Subject: Problem accessing policy via external URI


I would like to store my policy information in a separate file and reference
it from within WSDL via wsp:PolicyReference/@URI attribute.  This does not
seem to work for me.

When I embed the policy details within the WSDL and then reference the
policy internally (e.g. )
running wsdl2code produces desired results.  However when referencing the
same policy information via an external URI (e.g. http://host/policy.xml#operation_policy"/>) the policy is ignored while
wsdl2code prints out an error "ERROR: Ignoring policy - null".

Having traced this flow I can see that the policy is retrieved from the
external URI, however when the call is made to AxisPolicyLocator.register()
the latter raises an UnsupportedOperationException which causes the
"Ignoring policy" message to be printed.  Can someone advise as to whether
Axis2 supports policy references via external URI's.  I understand that I
can modify the client code to get the policy from an external file, but I
would like to see this done automatically by wsdl2code utility when
processing my WSDL.  Any help would be much appreciated!

Thanks,
Michael
-- 
View this message in context: 
http://www.nabble.com/Problem-accessing-policy-via-external-URI-tp15618306p15618306.html
Sent from the Axis - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Server unable to read request - goes away on restart

2008-02-22 Thread E Zaffar
Hi,

I am using Axis 1.4 to consumer a web service that is
on a .Net platform. The application server being used
is Tomcat 5.5.16. It is throwing error from time to
time with thse types of messages:
-
Server was unable to read request. --> There is an
error in XML
document (1, 836147). --> 'soapenv:mustUnderstand' is
a duplicate
attribute name. Line 1, position 836299.

Server was unable to read request. --> There is an
error in XML
document (1, 1605495). --> This is an unexpected
token. The expected
token is 'EQUALS'. Line 1, position 1605633

-

The service starts to respond okay once I restart
Tomcat. This seems to be happenning once every week or
so. I am wondering what is causing this. If its a
formatting issue why doesn't it happen everytime. Why
does this go away on Tomcat restart?
I would appreciate any clue anyone can provide on
this.

Thanks.



  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AXIS 2 with WSIF 2.0

2008-02-22 Thread Philipp Leitner

Hi Sushant,

"thus i am trying to find a solution, that is common across."

I wonder how WSIF would help you with that problem? WSIF is based on a 
rather old Axis1 version, which is iirc not exactly an interoperability 
miracle. I think you would be better off using either Axis2, Codehaus 
XFire or Apache CXF as a client for all three service hosts (Jboss, 
Axis2, Oracle). I would recommnd WSIF only if you really need one of the 
distinguising features of WSIF, not if you just want to build a generic 
Web service client. IMHO there are just better alternatives available 
for the standard use cases.


/philipp

sushant schrieb:

Hi Tobias,

It is not mandatory for me to use WSIF.
Its just, i might have web services deployed on Jboss,Axis 2 and oracle 
app server,

thus i am trying to find a solution, that is common across.

Thanks
Sushant


*/Tobias Anstett <[EMAIL PROTECTED]>/* wrote:


Hi Sushant,


Can somebody point me to an example of creating web service
client with WSIF and the web service is developed for AXIS 2.13


As far as i know WSIF is the Web Service Invocation Framework
integrated for example in the Rational Application Developer. I
think your axis client is configured correctly, but WSIF needs
custom serializers / deserializers to map the response or create the
request. I have worked with WSIF two years ago and finally switched
to axis.

Is there any reason why you won't create a client with axis instead
of WSIF ?

Regards, Tobias



Meet people who discuss and share your passions. Join them now. 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2][Savan] Is there WS Eventing for Axis2/Java

2008-02-22 Thread samir shaikh
Hi Leon,

I was able to get around to the service not executing
the function by defining a simple servlet as the event
listeners vs. using the listener service in the sample
code.

I see a SOAP message as an event, do you of a way to
tweek this to get a simple xml.

What advantage did you get by moving from AXIOM to
ADB.

Samir

--- Leon Searl <[EMAIL PROTECTED]> wrote:

> Hi Samir,
> 
> No we are getting into an area that I am not very
> familiar with.
> 
> I saw the same behavior with the savan sample.
> I turned on a whole bunch of debugging and found
> out that the publication message within the
> listener service was getting
> through most of the phases but seemed to be
> getting dropped at the point where
> axis2 uses reflection to try to find the method
> in the service implementation class to invoke for
> the operation. I did not look any further
> to try to determine what the problem was.
> 
> I made a whole bunch of changes to savan to
> support services and clients using ADB instead
> of Axiom which
> seems to have solved the problem for me.
> 
> leon
> 
> samir shaikh wrote:
> > Leon,
> > 
> > I was just hoping to include a payload in the
> > subscribe request... but apparently as per the
> > specification thats not the way this is supposed
> to
> > work.
> > 
> > I also noticed that it looks like fireandforget
> method
> > is used for publishing events to the event
> listener.
> > In my case the event does not appear to be getting
> > processed by the listener even though a Http
> Status
> > code is being returned by the ListenerService.
> > 
> > I suspect this because I can see the same behavior
> > when I do a fireandforget vs. a sendRecieve from
> my
> > subscriber client.
> > 
> > Any ideas or configuration on the web server or on
> > savan to get around to this?
> > 
> > Samir
> > 
> > 
> > --- Leon Searl <[EMAIL PROTECTED]> wrote:
> > 
> >> Hi Samir,
> >>
> >> I'm not sure what you mean.
> >> I assume that what you want to do is add some
> data
> >> to the
> >> subscription request that the publisher/eventing
> >> service would then add
> >> to the published data sent to a subscriber
> service
> >> when
> >> an event occurs.
> >>
> >> If you take a look
> >> at the specification for WS-Eventing you'll
> >> see that there is not much extra that you can put
> >> into the subscribe request. So I doubt that
> >> it is possible to do what you ask.
> >>
> >> There is nothing to prevent you from adding more
> >> operations to an eventing service where one
> >> operation
> >> would for storing the extra data that you want
> >> sent out with event notifications.
> >>
> >> leon
> >>
> >> samir shaikh wrote:
> >>> Hi Leon,
> >>>
> >>> Is there a way to put a payload in the subscribe
> >>> request? I was hoping to call a service on the
> >> server
> >>> with the subscribe request.
> >>>
> >>> Thanks,
> >>> Samir
> >>>
> >>> --- Leon Searl <[EMAIL PROTECTED]> wrote:
> >>>
>  Hi Samir,
> 
>  Please look at
>  https://issues.apache.org/jira/browse/SAVAN-4
>  I've attached a couple of patches that should
> fix
>  the
>  savan-config.xml issue that I described below.
> 
>  leon
> 
>  Leon Searl wrote:
> > Hi Samir,
> >
> > I've made several changes.
> >
> > - There was a problem with the module class
> >   loader looking for the savan-config.xml
> >   file in the jar file. The config file does
> not
>  get
> >   included in the jar if you do a clean build.
> >   Although it will get included in the jar if
> >   you do two builds in a row without a clean
> >   in between.
> >   I changed the module class init function to
> >   only look for the savan-config.xml in the
> mar
> >   file.
> >
> > - It is redundant to have all of the classes
> in
> >   both the jar and mar files. I made a change
> >   so that only the savan-module.class was in
> the
> >   mar.
> >
> > - I made a change to support using ADB for the
> >   client, publisher and subscriber.
> >
> > - I was not able to make the sample work. I
> >   think that something must have changed
> >   in axis2 1.3 to stop it from working.
> >   Everything works until the published
> messaged
> >   message gets to the subscriber. The message
> is
> >   getting dropped somewhere just before the
> >   business logic would get invoked. I believe
> >   that it has something to do with addressing
> >   being 'on' on the publisher out side but
>  addressing
> >   not being 'on' in the subscriber. But
> >   I'm not sure about this.
> >
> > leon
> >
> > samir shaikh wrote:
> >> Leon,
> >>
> >> I was able to make it work finally!
> >>
> >> Just curious, what changes are you making to
>  Savan...
> >> anything that is needed to get WS-Eventing
> >> going?
> >> Samir
> >>
> >> --- Leon Searl <[EMAIL PROTECTED]> wrote:
> >>
>

RE: Nightly Rampart Build?

2008-02-22 Thread Simon Nunn
Nandana,

  The build directory does not appear to contain a complete distribution,
but rather individual jars files.  I am looking for a complete nightly
distribution(samples, etc).  Does that exist?

-Simon

-Original Message-
From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 21, 2008 7:51 PM
To: axis-user@ws.apache.org
Subject: Re: Nightly Rampart Build?

Hi Simon,

> Is there a nightly rampart build available.

http://people.apache.org/repo/m2-snapshot-repository/org/apache/rampart/

regards,
/nandana

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AXIS 2 with WSIF 2.0

2008-02-22 Thread sushant
Hi Tobias,

It is not mandatory for me to use WSIF.
Its just, i might have web services deployed on Jboss,Axis 2 and oracle app 
server,
thus i am trying to find a solution, that is common across.

Thanks
Sushant


Tobias Anstett <[EMAIL PROTECTED]> wrote: 
Hi Sushant,


Can somebody point me to an example of creating web service client with WSIF 
and the web service is developed for AXIS 2.13
 
As far as i know WSIF is the Web Service Invocation Framework integrated for 
example in the Rational Application Developer. I think your axis client is 
configured correctly, but WSIF needs custom serializers / deserializers to map 
the response or create the request. I have worked with WSIF two years ago and 
finally switched to axis.
 
Is there any reason why you won't create a client with axis instead of WSIF ?

Regards, Tobias


 

   
-
 Meet people who discuss and share your passions.  Join them now.

Re: jaxws-calculator

2008-02-22 Thread Milan Kuchtiak

Thanks for the hint.
Unfortunately that didn't help.
I got the same error.

Milan

Lahiru Sandakith wrote:

Hi Milan,

did you tried upgrading snapshots with

mvn clean install -U

Thanks
Lahiru

On Fri, Feb 22, 2008 at 8:18 PM, Milan Kuchtiak 
<[EMAIL PROTECTED] > wrote:


Hi,

I was never able to build Axis2 jaxws-calculator example.

Why this is the only example that can be build with maven, and not
with
ant .
Is there any principal problem with that ?

Today  (after 15 minutes of maven scripts downloading) I got an
error :

-
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Internal error in the plugin manager executing goal
'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find
the mojo 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the
plugin 'org.apache.axis2:axis2-aar-maven-plugin'

Is there any source for jaxws-calculator.aar ?

Milan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, e-mail: [EMAIL PROTECTED]





--
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Axis2] Maven2 Source Jars?

2008-02-22 Thread Edward Bush
All,
 
Are the source JAR files not made available?  This would be handy
sometimes, I think :-)
 
Eddie Bush
Software Analyst
Clinical Reference Laboratory
913-693-1519
[EMAIL PROTECTED]
 

CONFIDENTIALITY NOTICE:
The information in this message, and any attachment, is intended for the 
sole use of the individual and entity to whom it is addressed. This 
information may be privileged, confidential, and protected from 
disclosure. If you are not the intended recipient you are hereby notified 
that you have received this communication in error and that any review, 
disclosure, dissemination, distribution or copying of it, or its contents, 
is strictly prohibited. If you think that you have received this message 
in error please notify the sender and destroy all copies of this 
communication and any attachments. Thank you.


Re: jaxws-calculator

2008-02-22 Thread Lahiru Sandakith
Hi Milan,

did you tried upgrading snapshots with

mvn clean install -U

Thanks
Lahiru

On Fri, Feb 22, 2008 at 8:18 PM, Milan Kuchtiak <[EMAIL PROTECTED]>
wrote:

> Hi,
>
> I was never able to build Axis2 jaxws-calculator example.
>
> Why this is the only example that can be build with maven, and not with
> ant .
> Is there any principal problem with that ?
>
> Today  (after 15 minutes of maven scripts downloading) I got an error :
>
> -
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] Internal error in the plugin manager executing goal
> 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find
> the mojo 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the
> plugin 'org.apache.axis2:axis2-aar-maven-plugin'
>
> Is there any source for jaxws-calculator.aar ?
>
> Milan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Thanks
Lahiru Sandakith

http://sandakith.wordpress.com/
GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC  1AB1 FE5E 7464 1F01 9A0F


AW: Generating service.xml with wsdl2java

2008-02-22 Thread Matthias.Gaiser
Hi,

 

I thought about a solution with an ant script calling an XSLT
transformation to synchronize my old service.xml (with references to
modules) with my new generated one by wsdl2java.

Has anybody done this already? Is there an easier way to do this?

 

In order to provide a generic solution I'd need a xsd or a complete
description of the service.xml. Is there one available somewhere? I only
found some older threads in the mailing list pointing to some path in
the svn repo I couldn't find.

 

Thanks,

Matthias.

 

Von: Gaiser, Matthias 
Gesendet: Mittwoch, 20. Februar 2008 17:17
An: axis-user@ws.apache.org
Betreff: AW: Generating service.xml with wsdl2java

 

Hello Dirk,

 

Thank you for your answer. That is exactly what I want to do. And I
think there are lots of other people out there which have the same
problem or am I wrong?

My question now is if there is a kind of standard way to alter the
default services.xml?

 

This altering of the services.xml may not be an easy task.

 

Regards,

Matthias.

 

 

Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 20. Februar 2008 15:09
An: axis-user@ws.apache.org
Betreff: RE: Generating service.xml with wsdl2java

 

Hi,

 

I suggest to create an ant-script which alters the 'default'
services.xml so you don't have to change

This manually everytime.

For instance alter the call to the skelton to the implementation

 

Regards

Dirk 

 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: woensdag 20 februari 2008 14:29
To: axis-user@ws.apache.org
Subject: Generating service.xml with wsdl2java

 

Hi all,

 

I am generating the server-side code from a wsdl with wsdl2java which
generates the corresponding java classes and the service.xml.

Now I am changing the service.xml to add some handlers, messagereceiver,
etc.

 

When some methods are added to wsdl, I am generating the code again with
wsdl2java and it replaces my service.xml which means I lose all my
changes of it.

Is there a way to automatically synchronize the old service.xml with the
new one?

 

Thanks,

Matthias.

 

The information transmitted via this e-mail is intended only for the
person or entity to which it is addressed and may contain confidential
and/or privileged material.  Any review, retransmission, dissemination
or other use of, or taking of any action in reliance upon this
information by persons or entities other than the intended recipient is
prohibited. If you received this in error, please contact the sender and
delete the material from any computer.


Re: Custom TrustManagers with Axis + SSL

2008-02-22 Thread wxtech

Here is what I did, hope it works:

1), create your own secure socket factory to read your own key store with
the root ca cert of the target host cert been imported (sample code below);
2), set system property before you make the https webservices call:
System.setProperty("org.apache.axis.components.net.SecureSocketFactory",
"com.MyAxisSecureSocketFactory");

// sample custom ss factory ...
public class MyAxisSecureSocketFactory extends JSSESocketFactory {

public InthubAxisSecureSocketFactory(Hashtable table) throws Exception {

super(table);

String jks = KeyStore.getDefaultType();
KeyStore ks = KeyStore.getInstance(jks, "SUN");

char[] password = "changeit".toCharArray();

// keystore file, with cert (root ca or self signed cert) 
imported
String keystore = "/opt/server/etc/cacerts.jks";

InputStream is = new FileInputStream(keystore);
ks.load(is, password);

KeyManagerFactory kmf = 
KeyManagerFactory.getInstance("SunX509");

kmf.init(ks, password);

TrustManagerFactory tmf = 
TrustManagerFactory.getInstance("SunX509");

tmf.init(ks);

SSLContext context = SSLContext.getInstance("SSL");

context.init(kmf.getKeyManagers(), tmf.getTrustManagers(),
new SecureRandom());

sslFactory = context.getSocketFactory();

}
}

Raghuram Sreenath wrote:
> 
> I am writing this email as the last hope to get some help with my effort
> to
> get a custom trust manager with axis.
> I have gone through the documention (whatever is available) and have found
> no answers.  Specificall, i have tried the following:
> 1. followed the steps in axis/docs/integration-guide.html#Pluggable%20APIs
> 2. Tried the steps mentioned by John in his post
> http://marc.info/?l=axis-user&m=110211163701959&w=2
> 
> I have had no luck.
> 
> Basically, I have an axis client trying to contact an axis server over
> HTTPS. I have an implementation of X509TrustManager that I want to be used
> while doing a SSL handshake.  From what I understand, this should be
> typically achieved by the following lines of code:
> TrustManager[] myTMs = new TrustManager [] {
>   new MyTrustManager() };
> SSLContext ctx = SSLContext.getInstance("SSL");
> ctx.init(null, myTMs, null);
> SSLSocketFactory factory =ctx.getSocketFactory();
> HttpsURLConnectionImpl.setDefaultSSLSocketFactory(factory);
> 
> after moving to axis. I created an implementation of axis's
> SecureSocketFactory that delegates to my 'factory' above and added the
> following:
> System.setProperty("
> org.apache.axis.components.net.SecureSocketFactory", "
> my.package.MySecureSocketFactory");
> AxisProperties.setClassOverrideProperty(
> org.apache.axis.components.net.SecureSocketFactory.class,   "
> amazon.subway.mapps.notif.adapters.webservice.MySecureSocketFactory");
> AxisProperties.setProperty("
> org.apache.axis.components.net.SecureSocketFactory", "
> my.package.MySecureSocketFactory");
> 
> I even tried passing the jvm parameters: -
> Dorg.apache.axis.components.net.SecureSocketFactory=my.package.MySecureSocketFactory-
> Daxis.socketSecureFactory=my.package.MySecureSocketFactory
> 
> Nothing has worked :(
> 
> Please help!
> 
> Regards,
> Raghuram.
> 
> 
Quoted from: 
http://www.nabble.com/Custom-TrustManagers-with-Axis-%2B-SSL-tp15591313p15591313.html



Raghuram Sreenath wrote:
> 
> I am writing this email as the last hope to get some help with my effort
> to
> get a custom trust manager with axis.
> I have gone through the documention (whatever is available) and have found
> no answers.  Specificall, i have tried the following:
> 1. followed the steps in axis/docs/integration-guide.html#Pluggable%20APIs
> 2. Tried the steps mentioned by John in his post
> http://marc.info/?l=axis-user&m=110211163701959&w=2
> 
> I have had no luck.
> 
> Basically, I have an axis client trying to contact an axis server over
> HTTPS. I have an implementation of X509TrustManager that I want to be used
> while doing a SSL handshake.  From what I understand, this should be
> typically achieved by the following lines of code:
> TrustManager[] myTMs = new TrustManager [] {
>   new MyTrustManager() };
> SSLContext ctx = SSLContext.getInstance("SSL");
> ctx.init(null, myTMs, null);
> SSLSocketFactory factory =ctx.getSocketFactory();
> HttpsURLConnectionImpl.setDefaultSSLSocketFactory(factory);
> 
> after moving to axis. I created an implementation of axis's
> SecureSocketFactory that delegates to my 'factory' above and added the
> following:
> System.setProperty(

jaxws-calculator

2008-02-22 Thread Milan Kuchtiak

Hi,

I was never able to build Axis2 jaxws-calculator example.

Why this is the only example that can be build with maven, and not with 
ant .

Is there any principal problem with that ?

Today  (after 15 minutes of maven scripts downloading) I got an error :

-
[INFO] 


[ERROR] BUILD ERROR
[INFO] 

[INFO] Internal error in the plugin manager executing goal 
'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar': Unable to find 
the mojo 'org.apache.axis2:axis2-aar-maven-plugin:SNAPSHOT:aar' in the 
plugin 'org.apache.axis2:axis2-aar-maven-plugin'


Is there any source for jaxws-calculator.aar ?

Milan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AXIS 2 with WSIF 2.0

2008-02-22 Thread Tobias Anstett
Hi Sushant,


> Can somebody point me to an example of creating web service client with
> WSIF and the web service is developed for AXIS 2.13
>

As far as i know WSIF is the Web Service Invocation Framework integrated for
example in the Rational Application Developer. I think your axis client is
configured correctly, but WSIF needs custom serializers / deserializers to
map the response or create the request. I have worked with WSIF two years
ago and finally switched to axis.

Is there any reason why you won't create a client with axis instead of WSIF
?

Regards, Tobias


Show Axis2 log messages in a separate file not in console

2008-02-22 Thread Moley Harey
Hi,

I have implemented and Axis2 service and I would like to display all log
messages in a separate file that the catalina.out file of my Tomcat, to do
so I am using Apache Commons library.

The problem is that I have disabled the "console" option and enabled the
"log file" one but it does not create the new log file into ~/tomcat/logs
folder and still is showing all messages into catalina.out...

Here is my log4j.properties file code:

===
# Set root category priority to INFO and its only appender to LOGFILE.
log4j.rootCategory=INFO, LOGFILE

# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=/home/users/tomcat/logs/myservice.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
===

Any idea of what is happening?

-- 
~~~
Para atras, solo para tomar impulso!

http://chromewaves.blogspot.com/


AXIS 2 with WSIF 2.0

2008-02-22 Thread sushant
Hi,

Can somebody point me to an example of creating web service client with WSIF 
and the web service is developed for AXIS 2.13.

I created a client,

I am getting following exception on server
Exception in thread "HttpConnection-8080-6" java.lang.IllegalStateException: 
Response already committed
at 
org.apache.axis2.transport.http.server.AxisHttpResponseImpl.assertNotCommitted(AxisHttpResponseImpl.java:75)
at 
org.apache.axis2.transport.http.server.AxisHttpResponseImpl.sendError(AxisHttpResponseImpl.java:110)
at 
org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:291)
at 
org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:166)
at 
org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:85)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:595)

And following exception on client

java.lang.IllegalArgumentException: No Deserializer found to deserialize a 
'http://example.ws:getDisplayNameResponse' using encoding style 'literal'.
at 
org.apache.soap.util.xml.XMLJavaMappingRegistry.queryDeserializer(XMLJavaMappingRegistry.java:206)
at 
org.apache.wsif.providers.soap.apachesoap.WSIFOperation_ApacheSOAP.invokeRequestResponseOperationDocument(Unknown
 Source)
at 
org.apache.wsif.providers.soap.apachesoap.WSIFOperation_ApacheSOAP.executeRequestResponseOperation(Unknown
 Source)
at org.apache.wsif.base.WSIFClientProxy.invoke(Unknown Source)
at $Proxy0.getDisplayName(Unknown Source)
at ws.example.DisplayNameClient.consumeFromWSIF(DisplayNameClient.java:35)
at ws.example.DisplayNameClient.main(DisplayNameClient.java:15)

Here is the WSDL


http://schemas.xmlsoap.org/wsdl/"; 
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; 
xmlns:ns0="http://example.ws"; 
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; 
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; 
xmlns:ns1="http://org.apache.axis2/xsd"; 
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
targetNamespace="http://example.ws";>

http://example.ws"; 
attributeFormDefault="qualified" elementFormDefault="qualified" 
targetNamespace="http://example.ws";>




















http://schemas.xmlsoap.org/soap/http"; 
style="document"/>











http://schemas.xmlsoap.org/soap/http"; 
style="document"/>
























http://localhost:8080/axis2/services/DisplayName"/>


http://localhost:8080/axis2/services/DisplayName"/>


http://localhost:8080/axis2/services/DisplayName"/>





Thanks
Sushant

   
-
 Why delete messages? Unlimited storage is just a click away.

Re: SAML with Axis2

2008-02-22 Thread Nuria Rodríguez García
Hello Nandana:

 Thank you very much for your information.

 In the last email you told me about the two scenarios that RAMPART/RAHAS
covers.

I don't understand what the meaning of each one of these bindings is. Could
you explain a little more about these scenarios?

In a document I read that there are two ways to obtain saml token.

Is this possible with rampart/rahas? The two ways are the following:


  *Security Token Acquisition*




*Issued Security Token*


Thanks, Nuria






2008/2/19, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>:
> Hi Nuria,
>
> > A client accessing a WebService, and a SAML Authority (STS):
> >
> > 1) Have the client and the web Service to access to the same SAML
Authority?
> > (I have read anywhere that the SAML Authority only can be of STS type).
>
> Client needs access to the STS as it requires to get tokens from the STS.
And
> Client <---> STS and
> STS<---> Web
> must trust each other. Sometimes service don't need to access the STS
> to validate the SAML token. In the examples of Rampart, service itself
> validates the SAML token and it doesn't access the STS. But there is a
> pre configured trust between the STS and the service.
>
> > 2) Covers RAHAS all the scenarios of SAML interaction between these
actors
> > or there are any limitations currently?
>
> RAMPART/RAHAS can use SAML token as a supporting token and as a
> protection token. So those two scenarios are pretty covered.
> WS Trust specification defines four bindings. Namely Issue , Validate,
> Renew, Cancel bindings. At the moment, Rampart only facilitate Issue
> and Cancel bindings. But we may be able to get the other two bindings
> working before the next release of Apache Rampart.
>
> thanks,
> /nandana
>
>
>
>
> > 2008/2/14, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>:
> >
> > > Hi Jens,
> > >   Not at the moment. But we will include a one before next release.
> > >
> > > thanks,
> > > nandana
> > >
> > > On Tue, Feb 12, 2008 at 2:31 PM, Jens Goldhammer
> > > <[EMAIL PROTECTED]> wrote:
> > > >
> > > >  Hello Nunny,
> > > >
> > > >  is there any sample available where the SAML token can be used as a
> > > >  protection token for signing and encrypting messages?
> > > >
> > > >  Thanks,
> > > >  Jens
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >  Nunny wrote:
> > > >  >
> > > >  > Hi Nuria,
> > > >  >
> > > >  >> I've some doubts about SAML with axis2. I need to know if the
> > sample05
> > > >  >> covers all the the SAML cases.
> > > >  >
> > > >  > No, it covers only one scenario. For example, this uses SAML
token as
> > a
> > > >  > supporting token. There is another scenarios where SAML token can
be
> > > >  > used as a protection token where it will be used to sign and
encrypt
> > > >  > messages.
> > > >  >
> > > >  >
> > > >  >
> > > >  >> We first receive the SAML token response then we indicate, in
the
> > options
> > > >  >> the responseToken id
> > > >  >> I don't know where we are sending to the server the SAML
assertion
> > in the
> > > >  >> soapMessage
> > > >  >
> > > >  > When the id is set, Rampart message builders add the assertion to
the
> > > >  > security
> > > >  > header according to the security policy. If you monitor the
messages
> > > >  > exchanged
> > > >  > through TCPMon, then you can actually see the SAML assertion in
the
> > > >  > security
> > > >  > header of the SOAP request to the service.
> > > >  >
> > > >  >> Another thing is to know what are the requestSecurityToken
> > parameters.
> > > >  >
> > > >  > In the client, we set these parameters using RST template.
> > > >  >
> > > >  > private static OMElement getRSTTemplate() throws Exception {
> > > >  >   OMFactory fac = OMAbstractFactory.getOMFactory();
> > > >  >   OMElement elem =
> > > >  > fac.createOMElement(SP11Constants.REQUEST_SECURITY_TOKEN_TEMPLATE
);
> > > >  >   TrustUtil.createTokenTypeElement(
RahasConstants.VERSION_05_02,
> > > >  > elem).setText(RahasConstants.TOK_TYPE_SAML_10);
> > > >  >   TrustUtil.createKeyTypeElement(RahasConstants.VERSION_05_02
,
> > elem,
> > > >  > RahasConstants.KEY_TYPE_PUBLIC_KEY);
> > > >  >   TrustUtil.createKeySizeElement(RahasConstants.VERSION_05_02
,
> > elem, 256);
> > > >  >   return elem;
> > > >  > }
> > > >  >
> > > >  > These parameters are defined in the WS Trust specification [1].
> > > >  >
> > > >  > /nandana
> > > >  >
> > > >  > [1] - specs.xmlsoap.org/ws/2005/02/trust/WS-Trust.pdf
> > > >  >
> > > >  > http://nandana83.blogspot.com/
> > > >  > http://nandanasm.wordpress.com/
> > > >  >
> > > >
> > > > >
-
> > > >  > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > >  > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >  >
> > > >  >
> > > >  >
> > > >
> > > >  --
> > > >  View this message in context:
> > http://www.nabble.com/SAML-with-Axis2-tp15314610p15429275.html
> > > >  Sent from the Axis - User mailing list archive at Nabble.com.
> > > >

Re: SCT

2008-02-22 Thread Dimuthu Leelarathne
Hi,

You can find a SCT sample inside the rampart 1.3 distribution.

samples/policy/sample04

Thank you,
Dimuthu

On Fri, 2008-02-22 at 16:52 +1100, Hardev Sian wrote:
>  
>  
> I know that rahas has been integrated into rampart but I was
> interested at looking at this example : 
> http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/security/rahas/RahasScenario3Test.java
>  
> which talks about using an acquired SCT token to secure the web
> service requests/responses.
>  
> Can anybody help in locating this or something similar.
>  
> Thanks,
>  
> Hardev
> 
> __
> Get the name you always wanted with the new y7mail email address.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]