[Axis2] Getting the soap style

2007-07-20 Thread Angel Todorov

hi guys,

How can one obtain the exact SOAP style from a MessageContext instance? I am
currently doing this:

mc.getAxisOperation().getStyle() ;

but it returns either rpc , msg , or doc, as it can be seen from the
code. What about the additional literal / lit wrapped , etc?

Thanks.

Regards,
Angel


Re: [Axis2] Getting the soap style

2007-07-20 Thread Angel Todorov

Hi Gabriela,

But getUse() is only defined in the class SOAPHeaderMessage, as far as I can
see - what if my message doesn't contain a SOAP Header? Thanks very much in
advance.

Regards,
Angel

On 7/20/07, Gabriela Gheorghe [EMAIL PROTECTED] wrote:


Hi,

It is the getUse() method.

All the best!

On 7/20/07, Angel Todorov [EMAIL PROTECTED]  wrote:

 hi guys,

 How can one obtain the exact SOAP style from a MessageContext instance?
 I am currently doing this:

 mc.getAxisOperation().getStyle() ;

 but it returns either rpc , msg , or doc, as it can be seen from
 the code. What about the additional literal / lit wrapped , etc?

 Thanks.

 Regards,
 Angel




--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik
Werner-Heisenberg-Weg 39
85577 Neubiberg, Germany

Email: [EMAIL PROTECTED] / [EMAIL PROTECTED]


Re: [Axis2] Getting the soap style

2007-07-20 Thread Angel Todorov

Hi,

(the following is inside a custom message receiver):

List headers = inMessageContext.getAxisMessage().getSoapHeaders();

The list is empty. This is the SOAP Request:

SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=
http://www.w3.org/2001/XMLSchema;
   SOAP-ENV:Body
   m:echo xmlns:m=http://demo/xsd;
   m:param0echo test/m:param0
   /m:echo
   /SOAP-ENV:Body
/SOAP-ENV:Envelope

Thanks.

Regards,
Angel



On 7/20/07, Gabriela Gheorghe [EMAIL PROTECTED] wrote:


Hello,

What axis API are we talking about ? I doubt you can practically have a
null SOAP Header for a non-null SOAP Envelope.

All the best!
Gabriela

On 7/20/07, Angel Todorov [EMAIL PROTECTED] wrote:

 Hi Gabriela,

 But getUse() is only defined in the class SOAPHeaderMessage, as far as I
 can see - what if my message doesn't contain a SOAP Header? Thanks very much
 in advance.

 Regards,
 Angel

 On 7/20/07, Gabriela Gheorghe [EMAIL PROTECTED]  wrote:
 
  Hi,
 
  It is the getUse() method.
 
  All the best!
 
  On 7/20/07, Angel Todorov  [EMAIL PROTECTED]  wrote:
  
   hi guys,
  
   How can one obtain the exact SOAP style from a MessageContext
   instance? I am currently doing this:
  
   mc.getAxisOperation().getStyle() ;
  
   but it returns either rpc , msg , or doc, as it can be seen
   from the code. What about the additional literal / lit wrapped , etc?
  
   Thanks.
  
   Regards,
   Angel
  
 
 
 
  --
  Kind regards / Freundliche Gruesse,
  Gabriela Gheorghe
 
  University of the Federal Armed Forces Munich
  Fakultät für Informatik
  Werner-Heisenberg-Weg 39
  85577 Neubiberg, Germany
 
  Email: [EMAIL PROTECTED] / [EMAIL PROTECTED]





--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik

Email: [EMAIL PROTECTED] / [EMAIL PROTECTED]



Re: [Axis2] Getting the soap style

2007-07-20 Thread Angel Todorov

Hi,

Well that's what I am saying - i don't want to have a SOAP header (it's not
mandatory) , but I still want to retrieve the SOAP Style , as well as the
use -:) I think Axis2 should provide this, and not assume that the SOAP
request contains header(s). Thanks.

Regards,
Angel

On 7/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:



Hi,
The list is empty because there is no header in your SOAP message.
There should be a SOAP-ENV:header tag in your request.

pierre


 *Angel Todorov [EMAIL PROTECTED]*

20/07/2007 13:01  Veuillez répondre à
axis-user@ws.apache.org

  A
axis-user@ws.apache.org  cc

 Objet
Re: [Axis2] Getting the soap style






Hi,

(the following is inside a custom message receiver):

List headers = inMessageContext.getAxisMessage().getSoapHeaders();

The list is empty. This is the SOAP Request:

SOAP-ENV:Envelope xmlns:SOAP-ENV= *
http://schemas.xmlsoap.org/soap/envelope/*http://schemas.xmlsoap.org/soap/envelope/
xmlns:SOAP-ENC=*http://schemas.xmlsoap.org/soap/encoding/*http://schemas.xmlsoap.org/soap/encoding/
 xmlns:xsi=
*http://www.w3.org/2001/XMLSchema-instance*http://www.w3.org/2001/XMLSchema-instance
xmlns:xsd=*http://www.w3.org/2001/XMLSchema*http://www.w3.org/2001/XMLSchema
   SOAP-ENV:Body
   m:echo xmlns:m=*http://demo/xsd* http://demo/xsd
   m:param0echo test/m:param0
   /m:echo
   /SOAP-ENV:Body
/SOAP-ENV:Envelope

Thanks.

Regards,
Angel



On 7/20/07, *Gabriela Gheorghe* * [EMAIL PROTECTED][EMAIL PROTECTED]
wrote:
Hello,

What axis API are we talking about ? I doubt you can practically have a
null SOAP Header for a non-null SOAP Envelope.

All the best!
Gabriela


On 7/20/07, *Angel Todorov* [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi Gabriela,

But getUse() is only defined in the class SOAPHeaderMessage, as far as I
can see - what if my message doesn't contain a SOAP Header? Thanks very much
in advance.

Regards,
Angel


On 7/20/07, *Gabriela Gheorghe* [EMAIL PROTECTED] *[EMAIL PROTECTED]
wrote:
Hi,

It is the getUse() method.

All the best!


On 7/20/07, *Angel Todorov* * [EMAIL PROTECTED] * [EMAIL PROTECTED]
wrote:
hi guys,

How can one obtain the exact SOAP style from a MessageContext instance? I
am currently doing this:

mc.getAxisOperation().getStyle() ;

but it returns either rpc , msg , or doc, as it can be seen from the
code. What about the additional literal / lit wrapped , etc?

Thanks.

Regards,
Angel



--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik
Werner-Heisenberg-Weg 39
85577 Neubiberg, Germany

Email: [EMAIL PROTECTED] [EMAIL PROTECTED] / *
[EMAIL PROTECTED] [EMAIL PROTECTED]




--
Kind regards / Freundliche Gruesse,
Gabriela Gheorghe

University of the Federal Armed Forces Munich
Fakultät für Informatik

Email: [EMAIL PROTECTED] [EMAIL PROTECTED] / *
[EMAIL PROTECTED] [EMAIL PROTECTED]




[Axis2] SOAPEnvelope from an input stream / OMElement ?

2007-07-18 Thread Angel Todorov

Hi guys,

We have the requirement to receive the SOAP response as an input stream ,
and thus I would like to create an instance of a SOAPEnvelope given an
InputStream. I have been looking at the AXIOM impl code (soap.*) as well as
the MessageContext's implementation, but found no obvious way to do that,
without significant rewriting of many parts.

The problem is that I don't want Axis2 to write it's own SOAPEnvelope and
body tags - I already have the whole SOAP message (not only the payload) ,
with all namespaces and stuff constructed in the tags , I just want to take
that whole soap envelope and create a SOAPEnvelope out of it.

Is there any simple way to do that ? Thanks.

Creating a SOAPEnvelope instance from an already existing OMElement would
also work.

Regards,
Angel


[Axis2] Undeployment doesn't work

2007-06-25 Thread Angel Todorov

Hi Deepal,

Is there any recent fix in the snapshot that makes undeployment to
successfully un-register the undeployed service ? No matter which service i
try to undeploy, the service remains registered in the Axis2 runtime.

Regards,
Angel


[Axis2] Enabling MTOM globally on the server-side

2007-06-23 Thread Angel Todorov

Hi Thilina,

I have the following issue: When i enable MTOM globally in axis2.xml, on the
server-side, by default all my outgoing messages are sent as MIME
attachments (i.e Content-type: multipart/related) - as far as I can see in
the MTOM Guide, this is OK and a feature. The problem is that my clients
always hang when such a message is received by the service client, and the
CPU goes to 100 %. I have traced the cause to reach the MIMEBuilder in
org.apache.axis2.builders.* , and after that it hangs. I also have to
mention that the clients don't send any MTOM optimized messages, but either
pure SOAP 1.1 (text+xml content type) , or SOAP 1.2 (application/soap+xml).

Has anyone else experienced such behaviour ? Is this normal ? Thanks.

P.S: My sources are from 30th of May's Snapshot.

Regards,
Angel


Re: rampart for encryption only

2007-06-20 Thread Angel Todorov

Have a look at WS-SecurityPolicy , and at the rampart policy samples in
the binary distro - from there on, it's standard.

Regards,
Angel

On 6/19/07, Shantaram Nadkarni [EMAIL PROTECTED] wrote:


 Hi

  I have the following scenario.



Currently a filter mechanism to authenticate all incoming requests (over
http) on the middle-tier is in place, for all WS invocations.

The web server is also configured to handle https. Required .keystore
files are created for both client and server side.



I need rampart to basically do only the encryption part.



How can I achieve this?



Thanks in advance



Shantaram







Re: ServiceClient always sends SOAP 1.1 requests

2007-06-13 Thread Angel Todorov

I figured out that in fact only when the rampart module is engaged, the
request is automatically converted to SOAP 1.1

Ruchith: can you give some insight why this is happening? Thanks.

Regards,
Angel

On 6/12/07, Angel Todorov [EMAIL PROTECTED] wrote:


Hi guys,

I noticed that no matter what WSDL (and portName) I specify in the Service
Client constructor, the request is always send as content-type text/xml,
instead of the one I want : soap/xml.

Is that a known bug or i am doing something wrong ? Thanks

Regards,
Angel



ServiceClient always sends SOAP 1.1 requests

2007-06-12 Thread Angel Todorov

Hi guys,

I noticed that no matter what WSDL (and portName) I specify in the Service
Client constructor, the request is always send as content-type text/xml,
instead of the one I want : soap/xml.

Is that a known bug or i am doing something wrong ? Thanks

Regards,
Angel


Re: Thread on TSS - Any good experience with Axis2?

2007-06-07 Thread Angel Todorov

Hi all,

apart from the interface change problem, which is maybe the biggest issue
we have with Axis2 , and our organization is forced to create wrapper APIs
to protect internal products from having to change their code, I would add
that there are many classes in Axis2 that have to be marked as abstract ,
but are not. Another issue we encountered is the very big latency when
loading modules from the repository, when it is supplied as a parameter to
the AxisConfigurationContext . I agree that the documentation is quite poor.
Another problem , apart from the lack of meaningful exceptions is the
hardcoding of some values in the code, instead of having them defined in a
resource properties or a constants class.

To cut the long story short - the Axis2 team should just agree on and
stabilize the basic architecture (mostly interfaces  abstract classes),
and not induce big incompatibilities in future releases , the same applies
for configuration files and the like.

Regards,
Angel

On 6/7/07, Michele Mazzucco [EMAIL PROTECTED] wrote:


Dims,

here we go:
- Documentation is poor: correct, especially for what concerns the
javadoc
- Exceptions are quite obscure: that's why I've created JIRA 2229.
Furthermore sometimes spurious errors occur (i.e. I remember once I go a
missing ResourceBundle problem and I spent several days to find out what
was wrong - and as I understand from the mailing list other people got
similar issues)
- After upgrading from 1.0 to 1.1, config files were not compliant any
more: correct

and finally I would add:
- Interfaces change even between the same release
- You tend to use reflection even where it's not necessary. This is
painful during the configuration as well as during the debug


Michele

On Wed, 2007-06-06 at 22:31 -0400, Davanum Srinivas wrote:
 Folks,

 FYI, http://www.theserverside.com/discussions/thread.tss?thread_id=45716
 Please take it with a pinch of salt. There was exactly one question
 from the guy on the mailing list [1] and absolutely no JIRA's AFAICT.

 Guess, it's time to take stock. What say you folks? What are your pain
 point(s). Am asking because we have to plan for a 1.3 release and
 we'll try to incorporate the feedback from you all for that.

 thanks,
 dims

 [1] http://marc.info/?l=axis-userw=2r=1s=rochq=b


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




Re: An exception when porting from axis2 1.1.1 to axis 1.2

2007-06-07 Thread Angel Todorov

Hi guys,

this seems to be a very common problem to a lot of people, I am also
experiencing it , with no sign of exact cause of the issue. Can you give
some insight ? Thanks very much.

Regards,
Angel

On 6/7/07, Wang, Hailong (NIH/CIT) [C] [EMAIL PROTECTED] wrote:


 Hi,



Below exception was thrown out after I ported from axis2 1.1.1 and rampart
1.1 to axis2 1.2 and rampart 1.2.  Do I miss something? Thanks in advance.



org.apache.axis2.AxisFault: *java.util.MissingResourceException*: Can't
find resource for bundle org.apache.axis2.i18n.ProjectResourceBundle, key
spec.FAULT_ACTION_NOT_SUPPORTED_REASON

  at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(*
Utils.java:434*)

  at org.apache.axis2.description.OutInAxisOperationClient.send(*
OutInAxisOperation.java:373*)

  at org.apache.axis2.description.OutInAxisOperationClient.execute(*
OutInAxisOperation.java:294*)

  at org.apache.axis2.client.ServiceClient.sendReceive(*
ServiceClient.java:520*)

  at org.apache.axis2.client.ServiceClient.sendReceive(*
ServiceClient.java:500*)

  at gov.nih.ndar.ws.guid.client.AbstractGuidClient.get(*
AbstractGuidClient.java:148*)

  at gov.nih.ndar.ws.guid.client.SimpleGuidClient.main(*
SimpleGuidClient.java:58*)





*Hailong Wang*

National Database for Autism Research(NDAR)

NIH/CIT/DECA (MOM CONTRACTOR)

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:   301-480-0028

Email:   [EMAIL PROTECTED]

URL:   http://ndar.nih.gov





Re: How to disable generation of http binding(s) in the WSDL ?

2007-05-31 Thread Angel Todorov

Hi ,

Thanks. In fact, it should also be possible for a user to choose whether to
generate binding for SOAP 1.1 , for SOAP 1.2, or for both. Currently in the
generated WSDLs (both java2wsdl and the axis servlet) , axis2 generates
bindings for both soap11 and soap12. Maybe this should also be
parameter-controlled. What do you think ? Thanks

Regards,
Angel

On 5/30/07, Davanum Srinivas [EMAIL PROTECTED] wrote:


Created an issue for that:
https://issues.apache.org/jira/browse/AXIS2-2734

-- dims

On 5/30/07, Paul Fremantle [EMAIL PROTECTED] wrote:
 Yes we should. In fact I tried disabling REST which didn't disable the
 HTTP binding. So that's what the fix should be. Doh!

 Paul

 On 5/30/07, Davanum Srinivas [EMAIL PROTECTED] wrote:
  Paul,
 
  Should we key that off the enable REST switch that we already have?
 
  -- dims
 
  On 5/30/07, Paul Fremantle [EMAIL PROTECTED] wrote:
   Also
  
   Please can you raise a JIRA requesting that we add a switch. That
   would definitely help until the .NET team fixes the code (maybe
around
   2009 :p)
  
   Paul
  
   On 5/30/07, Paul Fremantle [EMAIL PROTECTED] wrote:
Angel
   
Firstly, please let the .NET guys they are broken :-) WSDL is
inherently extensible and WSDL implementations should ignore
unknown
extensions not fall over.
   
Secondly, I guess maybe you could to save the WSDL, delete the
HTTP
bindings and then recreate the service using useOriginalWSDL=true.
   
Possibly there is a neater way of doing this, but I'm afraid I
don't know it.
   
Paul
   
On 5/30/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi guys,

 Is there a way to disable generation of the HttpBinding sections
in the
 WSDL, either using java2wsdl or the axis2 servlet's ?wsdl
command ? Thank
 you very much in advance.

 P.S: I need that for DotNET interop scenarios and dotnet gets
confused when
 it sees something like :

 wsdl:binding name=service03HttpBinding
type=axis2:service03PortType
 http:binding verb=POST/
 −
 wsdl:operation name=echo
 http:operation location=echo/
 −
 wsdl:input
 mime:content type=text/xml/
 /wsdl:input

 and so on...


 Thanks very much in advance.

 Regards,
 Angel

   
   
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
   
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
   
Oxygenating the Web Service Platform, www.wso2.com
   
  
  
   --
   Paul Fremantle
   Co-Founder and VP of Technical Sales, WSO2
   OASIS WS-RX TC Co-chair
  
   blog: http://pzf.fremantle.org
   [EMAIL PROTECTED]
  
   Oxygenating the Web Service Platform, www.wso2.com
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Davanum Srinivas :: http://davanum.wordpress.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Paul Fremantle
 Co-Founder and VP of Technical Sales, WSO2
 OASIS WS-RX TC Co-chair

 blog: http://pzf.fremantle.org
 [EMAIL PROTECTED]

 Oxygenating the Web Service Platform, www.wso2.com



--
Davanum Srinivas :: http://davanum.wordpress.com

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




How to disable generation of http binding(s) in the WSDL ?

2007-05-30 Thread Angel Todorov

Hi guys,

Is there a way to disable generation of the HttpBinding sections in the
WSDL, either using java2wsdl or the axis2 servlet's ?wsdl command ? Thank
you very much in advance.

P.S: I need that for DotNET interop scenarios and dotnet gets confused when
it sees something like :

wsdl:binding name=service03HttpBinding type=axis2:service03PortType
http:binding verb=POST/
−
   wsdl:operation name=echo
http:operation location=echo/
−
   wsdl:input
mime:content type=text/xml/
/wsdl:input

and so on...


Thanks very much in advance.

Regards,
Angel


Re: [Axis2] WS-Policy on an operation level in services.xml

2007-04-23 Thread Angel Todorov

Hi Sanka,

I already checked and it seems to work (having security policies on
the operation level). Rampart in its default samples only applies
policies on the service level. Thanks.

Regards,
Angel

On 4/23/07, Sanka Samaranayake [EMAIL PROTECTED] wrote:




On 4/23/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi all,

 Is it possible to associate policies for each individual operation ,
 in a service definition in services.xml, for example WS-SecurityPolicy
 ?

 Yes.  It is possible to associate policies even at message level using
services.xml.


 As far as I can see, a the moment a policy is applied for the whole
 service and all of its operations. If this is not the case, can you
 point me to some sample.


 Let me check and get  back to you.  Rampart must be having few ..

 Thanks
 Sanka

 I  think this is a very important feature and
 should be supported by Axis2. Other frameworks such as JAX-WS RI 2.1 
 WSIT  NetBeans have support for it.

 Thanks very much for your feedback.

 Regards,
 Angel


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





--
Sanka Samaranayake
WSO2 Inc.

http://www.bloglines.com/blog/sanka
http://www.wso2.org/


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



Re: Wsdl2java wss

2007-04-11 Thread Angel Todorov

What do you mean by WSS?  WS-Security ? And what exactly do you want
to set up ?

Regards,
Angel

On 4/11/07, Olivier DUGAST [EMAIL PROTECTED] wrote:


Hi all,

How to setup wsdl2java to use axis webservice with WSS?

Olivier.

-
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: Wsdl2java wss

2007-04-11 Thread Angel Todorov

Hi Oliver,

This is not possible at the moment. you have to do it manually.

Regards,
Angel

On 4/11/07, Olivier DUGAST [EMAIL PROTECTED] wrote:


Yes : WSS Security with rampart module with authentification.
I used soap UI( soapui.org) to test my secure service. It works.
I would like to use secure service , whith my client stub generated by 
wsld2java.

Regards,
Olivier


-Message d'origine-
De : Angel Todorov [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 11 avril 2007 10:37
À : axis-user@ws.apache.org
Objet : Re: Wsdl2java wss

What do you mean by WSS?  WS-Security ? And what exactly do you want to set up ?

Regards,
Angel

On 4/11/07, Olivier DUGAST [EMAIL PROTECTED] wrote:

 Hi all,

 How to setup wsdl2java to use axis webservice with WSS?

 Olivier.

 -
 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]


-
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: Re : [Axis2] Axis2 1.2 RC2 Released

2007-04-06 Thread Angel Todorov

Hi Deepal

Let me suggest that the problem arises because Axis2 doesn't take the
service namespace into account. In my opinion services should be
differentiated by both name and namespace. This should be the key
for any mapping. Imagine that I have many clients wanting to deploy
services - then it will be guaranteed that there are collisions in
names. If they would use their own company namespace, in addition to
that, this problem would be certainly avoided. Thanks.

Regards,
Angel

On 4/6/07, Deepal Jayasinghe [EMAIL PROTECTED] wrote:

Hi All;

I think this a major issue AFAIK , if some one generate services for two
wsdls then he will get two services with the same name . Then the issue
is how do you differentiate the two ? you can not deploy the files with
the same name to services directory (only one will be picked up).
Therefore I think we need to fix this b4 the release and I think we
should either pick WSDL file name as the service aar name or the one of
the service name in the wsdl as the service aar file name.

Thanks
Deepal

Alistair Young wrote:

wsdl2java now creates the service as Service.aar instead of
ServiceName.aar. e.g. previously, if your service was called
MinervaService, you would get:
build/lib/MinervaService.aar

now you get:
build/lib/Service.aar

so you have to rename before deploying (as they're all called Service.aar
now)

Alistair





--
Thanks,
Deepal

The highest tower is built one brick at a time



-
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]



[Axis2] using a WebDAV repository

2007-04-04 Thread Angel Todorov

Hi,

I'm trying to configure an external WebDAV repository for the
services. I am using Axis2-1.1.1

After axis2 is loaded, it cannot load the services from the repository
and displays an empty list.

This is the parameter in axis2.xml which I am modifying:

   !--To override repository/services you need to uncomment
following parameter and value SHOULD be absolute file path.--
   parameter name=ServicesDirectory
locked=falsehttp://localhost:8081/webdav/parameter

Has anyone tried this ?

Using Internet Explorer, I can open the webdav folder above with no problem.

Thanks!

Regards,
Angel

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



[Axis2] envelope.toString() vs. envelope.serializeAndConsume(outStream)

2007-04-04 Thread Angel Todorov

Hi,

Could you explain why calling :

String str = msgCtx.getEnvelope().toString();
byte[] message = str.getBytes();

and:

  msgCtx.getEnvelope().serializeAndConsume(outputStream);


results in very  different SOAP messages? Payload is OK, but one
message has some namespace declarations, while the other hasn't. Also,
one message uses :

SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
  SOAP-ENV:Body 


while the other message uses :

s:Envelope xmlns:s=http://schemas.xmlsoap.org/soap/envelope/;
  s:Body

Thanks.

Regards,
Angel

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



Re: WS-reliability and WS-Transaction

2007-04-03 Thread Angel Todorov

Hi Daniela,

I am not sure about WS-Reliability and WS-Transaction, but Axis2 has
implementations for both WS-ReliableMessaging, and
WS-AtomicTransaction, along with WS-Coordination.

As far as I know, WS-Reliability and WS-ReliableMessaging should be
pretty similar to each other.
The first spec is implemented in the sandesha module (reliable
messaging), the second specs constitute the Kandula2 module. Sandesha
can be downloaded from the 1.1.1 release page.

As for Kandula2, I am not sure whether it will be part of Axis2 1.2. I
have previously had some experience with kandula2, by checking out the
module from the SVN, and it worked fine for me (at least two phase
commit).

Regards,
Angel

On 4/3/07, Daniela CLARO [EMAIL PROTECTED] wrote:

Hi all,
I would like to know where can I download an implemented version of these
two specifications? Where can I find them. I need to develop a program using
WS-Reliability and WS-Transaction, anybody knows it? Is there any
implementation with Axis?

Thank you in advance,
Daniela

_
Gagnez des écrans plats avec Live.com http://www.image-addict.fr/


-
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: Migrating .net web service to axis HELP

2007-04-03 Thread Angel Todorov

Hi,

Do you really have a requirement to use Axis1 ? You'd better use Axis2
IMO. Otherwise it's  perfectly fine to generate service descriptors
from a WSDL file, using the wsdl2java tool.

Regards,
Angel

On 4/3/07, gtmoorthy [EMAIL PROTECTED] wrote:


I have a requirement where I need to migrate the .net web service to
WebSphere. I am planning to use axis.

Question:
1) Is there a way that I can generate WSDD from WSDL generated/used in .net
2) Is there a way I can deploy the .net WSDL directly into axis without a
wsdd deployment descriptor

--
View this message in context: 
http://www.nabble.com/Migrating-.net-web-service-to-axis-HELP-tf3514920.html#a9814025
Sent from the Axis - User mailing list archive at Nabble.com.


-
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: Migrating .net web service to axis HELP

2007-04-03 Thread Angel Todorov

Hi Moorthy,

Axis2 doesn't have the concept of WSDD files. It uses services.xml
instead. You can find a great start-up tutorial for Axis2 on the
following URL:

http://ws.apache.org/axis2/1_1_1/quickstartguide.html

Regarding BEA, I think it's a bit problematic with respect to shared
libs (i.e. classloading issues). There is a guide to setup axis2 on
this app server:

http://ws.apache.org/axis2/1_1_1/app_server.html

I hope this helps.

Regards,
Angel

On 4/3/07, aaron aston [EMAIL PROTECTED] wrote:

I have had problems with Axis2 on WAS v5r1, specifically with the QName
class.

I found that I had to remove the following JARs from the websphere appserver
lib directory:

   qname.jar
   webservices.jar

In fact, I just renamed the JARs in case I want to put them back later (to
*.jar_).

These JARs (well, the directory anyway) is on ws.ext.dirs:  they are loaded
before/in-preference-to the JARs in the axis2.war, which leads to runtime
issues because the classes they contain have changed since the release of
WAS v5r1.

With the JARs renamed, I can use Axis2 to host web services on WAS v5r1 ...

Aaron.


On 3-Apr-07, at 11:16 AM, Moorthy GT wrote:


Angel:

Thanks for your reply. Is axis 2 compatible with Websphere 5.1?

Can you give me the command to generate WSDD from WSDl using WSDL2JAVA tool?

Thanks,
Moorthy

Hi,

Do you really have a requirement to use Axis1 ? You'd better use Axis2
IMO. Otherwise it's  perfectly fine to generate service descriptors
from a WSDL file, using the wsdl2java tool.

Regards,
Angel
--
View this message in context:
http://www.nabble.com/Migrating-.net-web-service-to-axis-HELP-tf3514920.html#a9814694
Sent from the Axis - User mailing list archive at Nabble.com.


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



_
Aaron Aston | Twisted Pair | 905.852.0950







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



Re: wsdl2java does not generate proxy class

2007-04-03 Thread Angel Todorov

Hi Adrian,

How exactly do you execute wsdl2java - with what parameters ? Which
version of Axis are you using ?

Regards,
Angel

On 4/3/07, Adrian Mitev [EMAIL PROTECTED] wrote:

Hi all. I'm trying to generate java classes from wsdl via ant task.
Everything is OK but proxy class is not generated. Do i miss something?


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



Re: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Angel Todorov

Hi Michelle,

Thanks. Then what is the purpose of asynchronous message receivers ?

Regards,
Angel

On 4/2/07, Michele Mazzucco [EMAIL PROTECTED] wrote:

Angel,

as far as I know on the server side requests are processed in a
synchronous way (I think only the sun implementation allows for
asynchronous processing on the server side [1]).
If the client is asynchronous a 200 (ok) code is sent back to the
client, then the server processes the request. When the response is
ready it will be sent using ws-addressing information.

Michele

[1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html

On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
 On the other hand, on the
 server-side there is the concept of asynchronous message receivers


-
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: [Axis2] Asynchronous processing - client/server requirements

2007-04-02 Thread Angel Todorov

Hi Michelle,

well, as far as I see in the AbstractInOutAsyncMessageReceiver.java
code, the request is processed asynchronously, i.e. a new thread is
spawn via a thread pool to do that.

so maybe what you mean by on the server side requests are processed in a
synchronous way is related to transport synchronous processing, right ?

Regards,
Angel

On 4/2/07, Michele Mazzucco [EMAIL PROTECTED] wrote:

Angel,

I'd suggest you to read these 2 threads
http://www.nabble.com/asynchronous-messaging-question-tf3219718.html#a8941644
http://www.nabble.com/Axis2-question-about-async.-invocation-of-web-services-tf3364140.html#a9359642

Michele


On Mon, 2007-04-02 at 17:49 +0300, Angel Todorov wrote:
 Hi Michelle,

 Thanks. Then what is the purpose of asynchronous message receivers ?

 Regards,
 Angel

 On 4/2/07, Michele Mazzucco [EMAIL PROTECTED] wrote:
  Angel,
 
  as far as I know on the server side requests are processed in a
  synchronous way (I think only the sun implementation allows for
  asynchronous processing on the server side [1]).
  If the client is asynchronous a 200 (ok) code is sent back to the
  client, then the server processes the request. When the response is
  ready it will be sent using ws-addressing information.
 
  Michele
 
  [1] https://jax-ws.dev.java.net/nonav/2.1/docs/asyncprovider.html
 
  On Mon, 2007-04-02 at 17:38 +0300, Angel Todorov wrote:
   On the other hand, on the
   server-side there is the concept of asynchronous message receivers
 
 
  -
  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]



-
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: consequences of choosing axis

2007-03-30 Thread Angel Todorov

In fact any databinding framework in Axis2 relies on AXIOM. Take a
look at the generated stubs/skeletons. They are indeed XML Beans or
JAXB specific, but all of them use AXIOM behind the hood. This means
you have a dependency on axiom, regardless of the databinding you
choose.

fromOM(...), toOM(), and so on...

Regards,
Angel

On 1/7/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:

Chad,

On 1/6/07, ChadDavis [EMAIL PROTECTED] wrote:
 Hi.  I'm jut getting started learning about web services, and I've
 decided to use axis2.  I'm trying to figure out whether this choice
 incurs any consequences.  I could have chosen from several other
 platforms that support web service development, obviously.  From what
 I can tell so far, it shouldnt matter, but I'm not that knowledgable
 yet, so I'm asking for other people's advice.

One consequence of selecting Axis2 is that it does not [yet] support
the standard Java APIs for web services (JAX-RPC and JAX-WS). Axis2
uses a platform-specific object model, AXIOM, which is based on StAX,
for processing XML. For the most control, you can use the low-level
API, which represents message data as an OMElement. But you also have
the option of using any data binding system (JAXB, XMLBeans, JiBX,
ADB, etc) to convert the XML messages into Java objects for you. And
Axis2 supports a simple POJO programming model. But none of these APIs
is compliant with JAX-WS or JAX-RPC. If portability of code across
different platforms is important to you, you might want to choose
another platform. (Note that you can deploy Axis2 in pretty much any
servlet engine, but you can't, fo example, take an Axis2 service and
deploy it into Sun's JAX-WS implementation.) Personally, I view
portability of services the way I view portability of EJBs. Very
important if you're building software that you intend to distribute,
but not important for personal or in-house development.

Another consequence of selecting Axis2 is that it does not support
SOAP encoding. If you have the need to implement services using
RPC/encoded, you should select a different platform. Note that many
modern SOAP platforms no longer support SOAP encoding. Unfortunately,
a lot of scripting language platforms assume RPC/encoded, and they
sometimes have difficulty dealing with document/literal.

 My thinking goes
 something like this:  if a web service publishses a WSDL, then the
 client could be built on any web service technology that works with
 WSDL -- correct?  The WSDL is a black box kind of thing and the
 provider and the concsumer ( client ) are completely agnostic to one
 another?  So, if I need to write a client to consumer a web service
 that publishes a WSDL, I can use axis 100% of the time?  Is this true?

That's the way it's supposed to work. But it doesn't always work the
way its supposed to. It is possible to generate a WSDL with Axis2 that
some platforms can't consume. But as long as you follow the guidelines
specified by the WS-I Basic Profile, you should be okay. (But see the
above note regarding scripting languages and doc/literal.) As a
general guideline, never try to expose a Collection via a WSDL
interface. Always convert collections into arrays. Don't try to expose
overloaded operations via a WSDL interface. Don't try to expose
abstract types. Keep your interfaces as flat and non-object-oriented
as possible. Actually, the best approach is to define your message
schema first, then derive your service class from it.


 -
 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]




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



[Axis2] WS-Addressing WSDL binding

2007-03-29 Thread Angel Todorov

Hi guys,

I just came across this on the JAX-WS homepage:

=
You might have noticed that JAX-WS 2.1 RI download link takes you to
an Error page. We have fixed that to say what is really going on with
JAXWS 2.1 specification and RI.

So why we have to do this? Well, WS-Addressing WSDL Binding spec was
normatively referenced by JAX-WS 2.1 specification and was in CR state
when the spec and RI went final few weeks back. After we released
JAXWS 2.1 RI and the spec, it came to our attention that WS-Addressing
Working  Group has decided to drop this spec and instead do
WS-Addressing Metadata (a Working Draft now). So in effect the Binding
spec is dead and JAXWS 2.1 specification references it!
=

Is Axis2 also prone to this problem ? Thanks in advance.

Regards,
Angel

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



[Axis2] Policy-driven code generation

2007-03-28 Thread Angel Todorov

Hi,

I have seen policy-driven code generation as a feature of Axis2, but
I couldn't get it to work properly. Is this feature currently
supported in Axis2 ? If yes, where can I find a sample demonstrating
it?

What I assume it means, is to have a policy (let's say UsernameToken
auth) in my WSDL, and when I run wsdl2java, I would like to have the
rampart module automatically engaged in the generated stubs, and most
of the setups of the module -  auto generated. To sum it up:

1) given a WSDL with policy definitions in it
2) run wsdl2java
3) the tool generates code in the stub that activates the policy

Thanks.

Regards,
Angel

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



[Axis 2] Using wsdl2java for policy-annotated WSDL

2007-03-14 Thread Angel Todorov

Hi All,

I have a policy-annotated WSDL (It is the one from policy sample03 in
rampart-1.1). I am trying to generate client stubs using wsdl2java in
order to invoke the WS.

I get this error:

D:\Develop\rampart\axis2-1.1.1\binwsdl2java -uri sample03.wsdl -p test -d adb -
s -o build/client
Using AXIS2_HOME:   D:\Develop\rampart\axis2-1.1.1
Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_09

cannot find a PolicyExtension to process http://schemas.xmlsoap.org/ws/2005/07/s
ecuritypolicytype assertions

Do i have to have any XSDs in advance? I tried placing the rampart's
assertion XSD, as well as the WS-SecurityPolicy XSD in the same
directory where wsdl2java.bat is located , but with no success.

I have another question: Suppose I have to client stubs generated, is
it possible to generate back the policy-annotated WSDL using the
reverse command - java2wsdl ?

Thank you for the feedback. I am attaching the WSDL i am using in my test.

Best Regards,
Angel
wsdl:definitions xmlns:axis2=http://sample03.policy.samples.rampart.apache.org; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:ns0=http://sample03.policy.samples.rampart.apache.org/xsd; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; targetNamespace=http://sample03.policy.samples.rampart.apache.org;wsdl:typesxs:schema xmlns:ns=http://sample03.policy.samples.rampart.apache.org/xsd; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://sample03.policy.samples.rampart.apache.org/xsd;
xs:element name=echo
xs:complexType
xs:sequence
xs:element name=param0 nillable=true type=xs:string/
/xs:sequence
/xs:complexType
/xs:element
xs:element name=echoResponse
xs:complexType
xs:sequence
xs:element name=return nillable=true type=xs:string/
/xs:sequence
/xs:complexType
/xs:element
/xs:schema/wsdl:typeswsdl:message name=echoMessagewsdl:part name=part1 element=ns0:echo//wsdl:messagewsdl:message name=echoResponsewsdl:part name=part1 element=ns0:echoResponse//wsdl:messagewsdl:portType name=sample03PortTypewsdl:operation name=echowsdl:input xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; message=axis2:echoMessage wsaw:Action=urn:echo/wsdl:output message=axis2:echoResponse//wsdl:operation/wsdl:portTypewsdl:binding name=sample03SOAP11Binding type=axis2:sample03PortTypewsp:Policy xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; Id=SigEncrwsp:ExactlyOnewsp:Allsp:AsymmetricBinding xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;wsp:Policysp:InitiatorTokenwsp:Policysp:X509Token sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient;wsp:Policysp:WssX509V3Token10//wsp:Policy/sp:X509Token/wsp:Policy/sp:InitiatorTokensp:RecipientTokenwsp:Policysp:X509Token sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never;wsp:Policysp:WssX509V3Token10//wsp:Policy/sp:X509Token/wsp:Policy/sp:RecipientTokensp:AlgorithmSuitewsp:Policysp:TripleDesRsa15//wsp:Policy/sp:AlgorithmSuitesp:Layoutwsp:Policysp:Strict//wsp:Policy/sp:Layoutsp:IncludeTimestamp/sp:OnlySignEntireHeadersAndBody//wsp:Policy/sp:AsymmetricBindingsp:Wss10 xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;sp:Policysp:MustSupportRefKeyIdentifier/sp:MustSupportRefIssuerSerial//sp:Policy/sp:Wss10sp:SignedParts xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;sp:Body//sp:SignedPartssp:EncryptedParts xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;sp:Body//sp:EncryptedParts/wsp:All/wsp:ExactlyOne/wsp:Policysoap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document/wsdl:operation name=echosoap:operation soapAction=urn:echo style=document/wsdl:inputsoap:body use=literal//wsdl:inputwsdl:outputsoap:body use=literal//wsdl:output/wsdl:operation/wsdl:bindingwsdl:binding name=sample03SOAP12Binding type=axis2:sample03PortTypewsp:Policy xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; Id=SigEncrwsp:ExactlyOnewsp:Allsp:AsymmetricBinding xmlns:sp=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy;wsp:Policysp:InitiatorTokenwsp:Policysp:X509Token sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient;wsp:Policysp:WssX509V3Token10//wsp:Policy/sp:X509Token/wsp:Policy/sp:InitiatorTokensp:RecipientTokenwsp:Policysp:X509Token sp:IncludeToken=http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never;wsp:Policysp:WssX509V3Token10//wsp:Policy/sp:X509Token/wsp:Policy/sp:RecipientTokensp:AlgorithmSuitewsp:Policysp:TripleDesRsa15//wsp:Policy/sp:AlgorithmSuitesp:Layoutwsp:Policysp:Strict//wsp:Policy/sp:Layoutsp:IncludeTimestamp/sp:OnlySignEntireHeadersAndBody//wsp:Policy/sp:AsymmetricBindingsp:Wss10 

[Axis2 neethi] WS-PolicyAttachment

2007-03-13 Thread Angel Todorov

Hi All,

I would like to know whether Neethi implements the WS-PolicyAttachment
specification - is it possible to retrieve and interpret policies
defined in WSDL files ? Moreover, is it possible to associate policies
to deployed web services, again using neethi? As far as i understand,
neethi is not a real module in Axis2 terms , but a library
implementing WS-Policy (and , I hope -  WS-PolicyAttachment). Thanks
very much.

Best Regards,
Angel

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



Re: Remote Deployment API

2007-02-28 Thread Angel Todorov

Hi Jorge,

You can take a look at:

https://issues.apache.org/jira/browse/AXIS2-2212

Moreover, you must make sure that in the AxisServlet, the deployer
instance is stored in the SERVLET_CONTEXT, so it can be used later on,
and, most importantly, to have the repoListener synchronized (so that
the scheduler and some remote deployer don't use two instances of a
deployer + configurations).

I haven't included that yet since I want to get any feedback from the
guys about the JIRA-2212 above.

Regards,
Angel

On 2/28/07, Jorge Jiménez C. [EMAIL PROTECTED] wrote:

I need to dynamically register (and map to my EJBs) some services and
(reading some old posts in the list) the only way to do that, is to
create and deploy the aar files on the appserver. If there is another
way (implementing some interface and registering as a listener or
something else, please let me know).

The question: ¿Where can I find some documentation to use the Remote
Deployment API mentioned in some posts?

Thanks in advance. Just a starting point would be good.

J

-
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: Classloading problems again

2007-02-21 Thread Angel Todorov

Hi Rishi,

yep. The problem is that tomcat doesn't support deploying EAR :)

Best,
Angel

On 2/22/07, Rishi krish [EMAIL PROTECTED] wrote:

Hi Angel
I have a similar need and I put the axis2 jars in the application
classloader path which is parent to the war classloader. In my case my EJBs
need to access the axis2 class files [like ServiceClient]. So I have them
refed in the manifest file for my EJB and I dont keep them in web-inf/lib. I
am using EAR deployment in both Weblogic and Websphere.






On 2/16/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi Dims,

 I had a different thing in mind: I want to move the whole
 axis2-kernel-ver.jar into a shared lib (either shared/lib in the
 case of tomcat, or an EAR archive in the case of any other application
 server). Would that work for any call (i.e. would some classloading
 problem arise) ?

 Regards,
 Angel

 On 2/16/07, Davanum Srinivas  [EMAIL PROTECTED] wrote:
  It doesn't work is not really a bug report is it? :) Yes, you can do
  this, then don't package your service classes into AAR's. just drop
  the classes in WEB-INF/classes for the respective WAR's and in the
  repo for each one just have a directory with services.xml for each
  service in that WAR.
 
  thanks,
  dims
 
  On 2/16/07, Angel Todorov [EMAIL PROTECTED] wrote:
   Hi all,
  
   I am also encountering problems with the Axis2 classloading. I would
   like to move axis2-kernel jar to shared/lib. All other axis2 jars stay
   in its own lib dir. I would like to use classes from the axis2-kernel
   jar in two web apps, not only in axis2.war . It doesn't work - my
   opinion is because Axis2 has probably some custom classloading,
   instead of using the classloading infrastructure of the Application
   Server.
  
   does this mean that if i want to deploy axis2 on some app. server
   which supports the EAR specification, i won't be able to share axis2
   jars between two webapps in the same EAR ?
  
   Thanks.
  
   Best,
   Angel
  
  
-
   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services
Developers
 
 
-
  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]





--
thanks
Rishi


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



Re: AXIS2: Dynamic creation and deploy of service

2007-02-17 Thread Angel Todorov

Hi Shantanu,

I have coded exactly what you want, including patches to the
deployment engine of Axis2. There is a remote deployment API which you
can call from anywhere via HTTP or a web service. The repository
listener is synchronized so that a File system scheduler and a remote
deployment call don't intervene. You also get feedback regarding the
status of the deployed service (faulty or not, and if faulty - why).
If you could wait until tomorrow i can send these to the ML. Thanks.

Best,
Angel

On 2/16/07, Shantanu Sen [EMAIL PROTECTED] wrote:

Yes, if you could send some pointers it would be of great help.

Firstly - to generate the service I can run the wsdl2java and generate the 
necessary artifacts. Is there any other way? All we are interested is that the 
service will have multiple operations that take in XML documents, so if we have 
just an OMElement as the input and output for each of these operations, it will 
work fine for us.

Secondly, once I have a service, how do I programmatically register the service 
(axis2 is running as a web app on an appserver). Once we register the service 
programmatically (i.e. hot deployment) can we also persist the deployment?

Any help would be greatly appreciated.

Thanks,
Shantanu

- Original Message 
From: Deepal Jayasinghe [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Sent: Thursday, February 15, 2007 8:57:37 PM
Subject: Re: AXIS2: Dynamic creation and deploy of service

Hi  Shantanu ;
There is no sample as such in the axis2 codebase for this particular
case,  but if you want we will be able to help you.

Thanks
Deepal

Is there any sample that shows how to programmatically create a service (from 
a WSDL) and deploy it on an instance of Axis2 running on a appserver such as JBoss?

Thanks,
Shantanu Sen


-
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]





-
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]



Classloading problems again

2007-02-16 Thread Angel Todorov

Hi all,

I am also encountering problems with the Axis2 classloading. I would
like to move axis2-kernel jar to shared/lib. All other axis2 jars stay
in its own lib dir. I would like to use classes from the axis2-kernel
jar in two web apps, not only in axis2.war. It doesn't work - my
opinion is because Axis2 has probably some custom classloading,
instead of using the classloading infrastructure of the Application
Server.

does this mean that if i want to deploy axis2 on some app. server
which supports the EAR specification, i won't be able to share axis2
jars between two webapps in the same EAR ?

Thanks.

Best,
Angel

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



Re: Classloading problems again

2007-02-16 Thread Angel Todorov

Hi Dims,

I had a different thing in mind: I want to move the whole
axis2-kernel-ver.jar into a shared lib (either shared/lib in the
case of tomcat, or an EAR archive in the case of any other application
server). Would that work for any call (i.e. would some classloading
problem arise) ?

Regards,
Angel

On 2/16/07, Davanum Srinivas [EMAIL PROTECTED] wrote:

It doesn't work is not really a bug report is it? :) Yes, you can do
this, then don't package your service classes into AAR's. just drop
the classes in WEB-INF/classes for the respective WAR's and in the
repo for each one just have a directory with services.xml for each
service in that WAR.

thanks,
dims

On 2/16/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi all,

 I am also encountering problems with the Axis2 classloading. I would
 like to move axis2-kernel jar to shared/lib. All other axis2 jars stay
 in its own lib dir. I would like to use classes from the axis2-kernel
 jar in two web apps, not only in axis2.war. It doesn't work - my
 opinion is because Axis2 has probably some custom classloading,
 instead of using the classloading infrastructure of the Application
 Server.

 does this mean that if i want to deploy axis2 on some app. server
 which supports the EAR specification, i won't be able to share axis2
 jars between two webapps in the same EAR ?

 Thanks.

 Best,
 Angel

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




--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

-
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: asynchronous messaging question

2007-02-13 Thread Angel Todorov

Hi Paul,

What about firewall issues and WS clients staying behind NAT ? Is this
possible with the current Axis2 WS-Addressing impl, if a client brings
up a HTTP server and the real server connects back to it ? Thanks.

Best,
Angel

On 2/13/07, Aleksander Slominski [EMAIL PROTECTED] wrote:

Paul Fremantle wrote:
 Michele

 We (the Synapse team) have written a pure non-blocking HTTP transport
 for Axis2. Its currently in the Synapse repository, but we will check
 it into the core Axis2 SVN when its stable.

 However, I wanted to clear up the asynchronous model. This isn't a
 clear area by any means!

 The current Axis2 with Addressing is actually already asynchronous.
 What happens is that if the replyTo address is a real HTTP URL
 (useSeparateListener), then the client will start up a mini HTTP
 server. The service will respond instantly with an HTTP 202 OK
 (accepted message but not yet processed), and the HTTP connection will
 be closed. When the response is ready, the server will open a new
 connection to the client's HTTP server and pass the response over
 that.

 The reason we wrote the non-blocking transport is that we wanted to be
 asynchronous even in the case where WS-Addressing ISN'T being used. In
 other words, the client has an open socket to the server, but we
 didn't want to block a thread waiting for the socket.
hi Paul,

but that puts very high burden on server and TCP stack (assuming that
you modified kernel to allow more than usual 1000 socket per process)
and it is not robust in case when client needs to wait for response
longer than few minutes (i have example applications that use WSA to
wait for response for hours or days).

so what is the advantage of not using WSA?



 We looked at both Mina and AsyncWeb but AsyncWeb doesn't support a
 client model, so we based our code on the Jakarta HTTPCore project
 which also has NIO support.

 BTW Another truly asynchronous protocol we support is SMTP.
SMTP is exactly like WSA+SOAP+HTTP with non-anonymous ReplyTo - and as
history shows that seems to work very well ...

thanks,

alek

 Paul

 On 2/13/07, Michele Mazzucco [EMAIL PROTECTED] wrote:
 Hi all,

 the addressing module allows for asynchronous messaging. However the
 used transport mechanisms are synchronous (at least tcp and http). Since
 alternatives exist (e.g. [1, 2]), is there any future plan to take
 advantage of fully asynchronous computation?


 Thanks,
 Michele


 [1] http://mina.apache.org/index.html
 [2] http://docs.safehaus.org/display/ASYNCWEB/Home


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






--
The best way to predict the future is to invent it - Alan Kay


-
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]



[Axis2] Service name - unique ?

2007-02-04 Thread Angel Todorov

Hello,

Is the service name for an Axis2 service unique within the Axis2
runtime? Can i have two services within two service groups , which
share the same names but have different service group names ? I think
if that's not true, the implications in terms of enterprise
environment usage with thousands of services, are vast. Thank you for
the feedback.

Best Regards,
Angel

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



DeploymentEngine doesn't work as expected

2007-02-04 Thread Angel Todorov

Hi all,

I am trying to do the following from a servlet, running in the axis2
runtime, and extending the AxisServlet :

DeploymentEngine deploy = new DeploymentEngine();
FileInputStream fis = new FileInputStream(new File(MyConstants.PATH_TO_AXIS2));
deploy.setConfigContext(configContext);
deploy.populateAxisConfiguration(fis);
deploy.addWSToDeploy(new ArchiveFileData(uploadedFile,
DeploymentConstants.TYPE_SERVICE, false));
deploy.doDeploy();

but nothing happens - the service is neither listed, not can be
accessed. Moreover, no file is copied in the services directory.
(Above, uploadedFile's path is to some temp dir on the server).

I get no DeploymentException whatsoever, and in the logs i can see the
following:

Feb 4, 2007 6:01:18 PM org.apache.axis2.deployment.DeploymentEngine doDeploy
INFO: Deploying Web service  DeployTest.aar

but as i said above, this service is neither listed nor copied to
services. Both hotdeployment and hot update are enabled.

Can someone clarify what's going wrong?  Thanks very much.

Regards,
Angel

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



[Axis2] Eclipse deployment plugin?

2007-02-03 Thread Angel Todorov

Hi all,

Is there any eclipse plugin for (remote) deployment available for
Axis2? Thanks in advance.

Best,
Angel

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



Re: [Axis2] Eclipse deployment plugin?

2007-02-03 Thread Angel Todorov

Hi Ajith,

Yes that's basically what i mean. One more remark, the current axis2
deployment through the axis2-admin interface doesn't handle deployment
feedback, i.e in only drops the file and relies on the listener to
sort out the archive, but doesn't respond with a message whether the
service is itself successfully deployed (registered) in the runtime,
and no DeploymentException has been risen. There is of course the
programatic way through the DeploymentEngine class, but the doDeploy
method doesn't throw any DeploymentException, it catches it instead.
This makes remote deployment feedback not easy to achieve unless the
DeploymentEngine is modified. Also, i have noticed that the current
axis2-admin doesn't support undeployment of services. Such a feature
would also be good to have. But as i said above, this shouldn't rely
on the deployment listener, as in that case no proper feedback is
received about the consistency of the archive, and whether it is
registered successfully after all.

Regards,
Angel

On 2/3/07, Lahiru Sandakith [EMAIL PROTECTED] wrote:

Hi Angel,

 what do you exactly mean by remote, is it a easy way to deploy a service
like pointing to axis2 server?
 current plugin [1] only have the option to save it to user specified file
system location

 Thanks

 Lahiru Sandakith

[1]http://ws.apache.org/axis2/tools/1_1/eclipse/servicearchiver-plugin.html


On 2/3/07, Angel Todorov [EMAIL PROTECTED] wrote:

 Hi all,

 Is there any eclipse plugin for (remote) deployment available for
 Axis2? Thanks in advance.

 Best,
 Angel


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





--
Regards
Lahiru Sandakith


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



Re: setOperationContext on service

2007-02-01 Thread Angel Todorov

Hi George,

You can  probably implement a custom message receiver that extends any
of the default ones, and inject any object in your service
implementation. In this way you basically gain control over the
lifecycle of the business logic.

Regards,
Angel

On 2/1/07, George Stanchev [EMAIL PROTECTED] wrote:



Hi,

How can I get a hold of message context within a service?
There are several places on the web that show that if the
service implements a

void setOprationContext(OperationContext)

method, it will get called prior to the operation method.
However I have not been successful in getting this method
called. Several of the unit tests use

void init(MessageContext)

But this is not called either. Is there any other way to
get a hold of the message context? I have tried the
RawXMLInOutMessageReceiver and the RPCMessageReceiver.

Has the method signature changed? Has it been removed?

Thanks in advance!

George

**
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they
 are addressed. Any unauthorized review, use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the sender
by reply e-mail and destroy all copies of the original message.



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



Axis2 parallel deploy

2007-01-31 Thread Angel Todorov

Hi,

Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
   if (wsToDeploy.size()  0) {



The list is traversed sequentially

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



Re: Axis2 parallel deploy

2007-01-31 Thread Angel Todorov

Sorry here is the complete mail :))

Hi all,
Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
if (wsToDeploy.size()  0) {
for (int i = 0; i  wsToDeploy.size(); i++) {



The list is traversed sequentially. But what if i create two
instances of DeploymentEngine (and possibly try to programatically
deploy various confilicting services)? Shouldn't the DeploymentEngine
be a singleton and syncronize deployment internally ?

Moreover, what is the meaning of the lock parameter in the
constructor of the class ArchiveFileData :

   public ArchiveFileData(File file, int type, boolean lock)

I mean how is it used? Thanks very much in advance.

Best Regards,
Angel


On 1/31/07, Angel Todorov [EMAIL PROTECTED] wrote:

Hi,

Is Axis able to deploy web services both sequentially and in parallel
? As far as i can see in the class DeploymentEngine.java in the method
doDeploy() :

public void doDeploy() {
if (wsToDeploy.size()  0) {



The list is traversed sequentially



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



[Axis2] Module engagement granularity and lifetime

2007-01-25 Thread Angel Todorov

Hi all,

I have noticed that there are various ways to engage and disengage
modules - either statically or dynamically, which is very good in
terms of flexibility.

1) statically - in services.xml or in axis2.xml

2) dynamically -

- message
inMessage.getAxisMessage().engageModule(arg0, arg1)
- operation
inMessage.getOperationContext().getAxisOperation().engageModule(arg0, arg1)
- service
inMessage.getServiceContext().getAxisService().engageModule(arg0, arg1)

and so on...

My question is related to dynamic engagement / disengagement: If i
engage a module dynamically on a service / operation level for
example, is there any isolation from the other entitites using that
service / operation during runtime? Can i say , for this client's
interaction with some Service's operation X , i want to engage a
certain module, and for all other clients - have it not enabled ?

I.e , if i perform the call  :
inMessage.getOperationContext().getAxisOperation().engageModule(arg0,
arg1), in some message receiver instance, does it mean that other
clients calling the same service operation will also have the module
engaged?

Thanks.

Regards,
Angel

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



Re: [Axis2] Module engagement granularity and lifetime

2007-01-25 Thread Angel Todorov

Hi Michele,

Engaging the module on the client side is one thing, it is one side of
the communication I mean, the server-side selective engagement is the
other thing. I am sure this can be achieved via custom handlers, it
seems to be a flexible approach. My idea was whether this
functionality is currently present in Axis2 and can be configured from
somewhere. In enterprise environments, there would most certainly be
cases when one client would like to be isolated from the others in
terms of module engagement, and moreover be able to select operations
or even messages to engage/disengage , i.e. either on a session
level or to use some other client identifier, so to speak.

Thanks for the feedback.

Regards,
Angel

On 1/25/07, Michele Mazzucco [EMAIL PROTECTED] wrote:

Hi Angel,

what about engaging the module on the client side (like the
addressing module)?
Otherwise I think you could achieve you goal by adding a custom
handler which engage/disengages modules according to which client is
invoking the service.


Michele

On 25 Jan 2007, at 12:47, Angel Todorov wrote:

 Hi all,

 I have noticed that there are various ways to engage and disengage
 modules - either statically or dynamically, which is very good in
 terms of flexibility.

 1) statically - in services.xml or in axis2.xml

 2) dynamically -

 - message
 inMessage.getAxisMessage().engageModule(arg0, arg1)
 - operation
 inMessage.getOperationContext().getAxisOperation().engageModule
 (arg0, arg1)
 - service
 inMessage.getServiceContext().getAxisService().engageModule(arg0,
 arg1)

 and so on...

 My question is related to dynamic engagement / disengagement: If i
 engage a module dynamically on a service / operation level for
 example, is there any isolation from the other entitites using that
 service / operation during runtime? Can i say , for this client's
 interaction with some Service's operation X , i want to engage a
 certain module, and for all other clients - have it not enabled ?

 I.e , if i perform the call  :
 inMessage.getOperationContext().getAxisOperation().engageModule(arg0,
 arg1), in some message receiver instance, does it mean that other
 clients calling the same service operation will also have the module
 engaged?

 Thanks.

 Regards,
 Angel

 -
 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]




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



[Axis2] SOAP: multiple attachments - different mechanism

2007-01-23 Thread Angel Todorov

Hi,

I would like to ask - is it possible to send multiple attachments in
one soap message, but using different attachment mechanism for each of
them, for example:

- attachment 1 - MTOM optimized enabled
- attachment 2 - inlined base64 (optimization disabled)
- attachment 3 - SwA

and so on...

Thanks very much in advance.

Regards,
Angel

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



Re: MTOM question

2007-01-23 Thread Angel Todorov

Hi Thilina,

Just to clarify - is that a problem with the soap monitor itself? I.e
does it automatically convert the attached binary data into inlined
base64 strings? Or does some handler do that ?

For instance, if am at the message receiver implementation, and I have
a MessageContext instance, would attachments() return anything, or
would the attachment be inlined as an element of the SOAP body? Thanks
very much

Regards,
Angel

On 1/15/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:

Hi Angel,
If possible please file a JIRA[1]  for this behaviour of SOAP Monitor..

Cheers,
~Thilina

[1] http://issues.apache.org/jira/browse/AXIS2

On 1/15/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi Thilina,

 yes with tcpmon everything looks fine by looking at the HTTP requests
 (binary data + xop include reference) , it's actually logical to have
 the SOAP request constructed before SOAPMonitor is invoked.

 Regards,
 Angel

 On 1/15/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:
  Hi Angel,
  Hope you have a OMText with optimised set to true in the above case.
  Are you using any databinding mechanisms..
 
  I'm not sure whether it is an issue with SOAPMonitor... Can you please
  try sniffing the message with tcpmon[1].
 
  Thanks,
  Thilina
 
  [1] http://ws.apache.org/commons/tcpmon/
 
  On 1/14/07, Angel Todorov [EMAIL PROTECTED] wrote:
   Hi all,
  
   I am doing a test of MTOM - sending a binary file and then saving it
   somewhere on the server. I follow the MTOM guide for Axis2. I am using
   the SOAP Monitor applet in order to investigate the SOAP requests and
   responses, and in both cases where MTOM is enabled and disabled on the
   client side, the SOAP request 's contents is the same, more
   specifically :
  
   ns2:binaryData xmlns:ns0=http://www.w3c.org/2005/05/xmlmime;
   ns0:contentType=application/octet-stream (binary sting here )
   /ns2:binaryData
  
   the contents of the binary string is also the same. Can anyone provide
   some clarification ? Thanks
  
   Regards,
   Angel
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Thilina Gunarathne
  WSO2, Inc.; http://www.wso2.com/
  Home page: http://webservices.apache.org/~thilina/
  Blog: http://thilinag.blogspot.com/
 
  -
  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]




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

-
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]



[Axis2] XAResource (JDBC) WS-AtomicTransaction

2007-01-20 Thread Angel Todorov

Hello,

I am a bit confused looking at Kandula2 - it has its own transaction
resource definition, KandulaResource. Would it be possible, for
example, to use this with some existing JDBC's XAResource
implementation, in order to bring JDBC transaction support to
Kandula2's WS-AtomicTransaction ?

Are there any default KandulaResource implementations, except for the
dummy ones in the interop package, that support database activities ?
Thanks in advance.

Regards,
Angel

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



Axis2 Programmatic Deployment

2007-01-17 Thread Angel Todorov

Hi all,

I saw that there is no way to deploy a service programmatically in
Axis2. Is that the case? Only building the AxisService object instance
is possible through the buildService method of the deploymentEngine,
but this doesn't help much. The doDeploy() method checks an array of
WSArchives , which are loaded through ArchiveFileData.

I am more interested in deploying a service without having any AAR
archive on the file system, but some other repository (a third party
app or a database for instance).

Thanks for the feedback.

Best Regards,
Angel

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



Re: Sending MTOM attachments from Axis2 client

2007-01-17 Thread Angel Todorov

Hi,

where do you observe that behavior ? Via the soap monitor or by using
a TCP (HTTP more specifically) sniffer ? Normally to see if MTOM is
working you should use some TCP monitor, soap monitor or any other
soap message monitor won't help you.

--Angel

On 1/17/07, Nathan Kuroczycki [EMAIL PROTECTED] wrote:

Hi,

I am trying to send the request XML with the binary within an MTOM
attachment. However, the code below sends the binary inline with the rest of
the xml request. My understanding from the Axis2 examples is that by
enabling MTOM, the binary will be sent as a referenced attachment. Is there
something that I'm not doing?

Thanks,
Nathan


ServiceClient service = new ServiceClient();



Options options = new Options();

options.setTo(new EndpointReference(URL));

options.setAction(urn:update);

options.setProperty(Constants.Configuration.ENABLE_MTOM,
Constants.VALUE_TRUE );

service.setOptions(options);



try {



OMFactory fac = OMAbstractFactory.getOMFactory();

OMNamespace omNs = fac.createOMNamespace(catalog, );

OMElement up = fac.createOMElement(in0, omNs);



FileDataSource fds = new FileDataSource(file.xml);

DataHandler dataHandler = new DataHandler(fds);



OMText textData = fac.createOMText(dataHandler, true);

textData.setOptimize(true);



up.addChild(textData);



//OMElement res = service.sendReceive(up);

//service.fireAndForget(up);

service.sendRobust(up);

}

catch(Exception error) {

error.printStackTrace();

}


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



[Axis2] In-container testing

2007-01-17 Thread Angel Todorov

Hi,

Has anyone performed in-container testing for Axis2? Currently all the
JUnit tests that axis2 includes are executed on the client side and
don't share a common runtime. Is there any existing framework for
in-container testing of Axis2? I looked at Jakarta Cactus, but haven't
estimated yet what the effort would be to port the existing axis2
tests to it . Thanks

Regards,
Angel

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



Re: MTOM question

2007-01-15 Thread Angel Todorov

Hi Thilina,

yes with tcpmon everything looks fine by looking at the HTTP requests
(binary data + xop include reference) , it's actually logical to have
the SOAP request constructed before SOAPMonitor is invoked.

Regards,
Angel

On 1/15/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:

Hi Angel,
Hope you have a OMText with optimised set to true in the above case.
Are you using any databinding mechanisms..

I'm not sure whether it is an issue with SOAPMonitor... Can you please
try sniffing the message with tcpmon[1].

Thanks,
Thilina

[1] http://ws.apache.org/commons/tcpmon/

On 1/14/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi all,

 I am doing a test of MTOM - sending a binary file and then saving it
 somewhere on the server. I follow the MTOM guide for Axis2. I am using
 the SOAP Monitor applet in order to investigate the SOAP requests and
 responses, and in both cases where MTOM is enabled and disabled on the
 client side, the SOAP request 's contents is the same, more
 specifically :

 ns2:binaryData xmlns:ns0=http://www.w3c.org/2005/05/xmlmime;
 ns0:contentType=application/octet-stream (binary sting here )
 /ns2:binaryData

 the contents of the binary string is also the same. Can anyone provide
 some clarification ? Thanks

 Regards,
 Angel

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




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

-
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]



Why is ServiceClass in services.xml compulsary ?

2007-01-15 Thread Angel Todorov

Hello,

I am wondering why the ServicesClass property when describing a
service in services.xml is made mandatory ? Doesn't it depend on the
message receiver to decide how to pass the SOAP request, to where to,
and/or what to call next ? Why is it assumed that the message receiver
actually uses a specific class for the web service business logic and
not some universal factory which only it is aware of ? Thanks.

Regards,
Angel

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



MTOM question

2007-01-14 Thread Angel Todorov

Hi all,

I am doing a test of MTOM - sending a binary file and then saving it
somewhere on the server. I follow the MTOM guide for Axis2. I am using
the SOAP Monitor applet in order to investigate the SOAP requests and
responses, and in both cases where MTOM is enabled and disabled on the
client side, the SOAP request 's contents is the same, more
specifically :

ns2:binaryData xmlns:ns0=http://www.w3c.org/2005/05/xmlmime;
ns0:contentType=application/octet-stream (binary sting here )
/ns2:binaryData

the contents of the binary string is also the same. Can anyone provide
some clarification ? Thanks

Regards,
Angel

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



Re: Custom Message Receiver use cases

2007-01-13 Thread Angel Todorov

Hi ,

Well i was thinking that , assuming the RPC Message Receiver is
inadequate for more complex input and output datatypes , we are only
left with the RAW XML Message receivers, which assume that one has a
compiled java class with a method parameter signature accepting
OMElement and returning an OM Element, and a method name which should
be *the same* as the name of the operation name. (at least that can be
seen from the RawXML MessageReceiver implementations in Axis2, more
specifically in the findOperation impl).

So maybe if I don't want to restrict my java impl classes to have the
same method names as the operation names , I should write a custom
Message Receiver.

Can anyone clarify this point? Thanks.

Best Regards,
Angel

On 1/13/07, Comain Chen [EMAIL PROTECTED] wrote:

To give the user freedom to decide their own Databinding techniques?

Also I have this doubt, why does the codegen module generate MessageReceiver
for each Service, not let the binding framework write a general
messageReceiver for all services?



On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote:

 Hi Axis2 developers,

 I am interested to know what is the motivation behind using custom
 message receivers? For example, if I want to invoke non-java
 operations, I can have a helper Java class which manages all this
 logic, and still be invoked by one of the existing message receivers,
 such as the raw XML message receivers.

 Thanks very much for your feedback in advance.

 Regards,
 Angel


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





--
Best regrads,
Comain Chen


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



Service Isolation

2007-01-13 Thread Angel Todorov

Hi all,

Can anyone clarify if I will have the same java class loader for all
services belonging to one Service Group (if they are packed in this
way in services.xml) ? Thanks

Angel

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



Re: Custom Message Receiver use cases

2007-01-13 Thread Angel Todorov

Hi Paul,

I've read this doc:

http://ws.apache.org/axis2/1_1/spring.html

And I can see the integration with Spring  uses the default Axis2
RawXMLINOutMessageReceiver. I get what you're saying but can't see
anywhere a custom Spring message receiver. In the document above, one
doesn't avoid having 1:1 operation - java method mapping - i.e one
still generates java code that wraps around existing functionality and
that can be otherwise avoided. Is that correct? Thanks.

Regards,
Angel

On 1/13/07, Paul Fremantle [EMAIL PROTECTED] wrote:

Two points:

1) the ability to plug in custom message receivers is to handle the
cases where you want to enable a whole class of services. For example,
the Spring message receiver allows any Spring bean to be exposed.
Another example is an EJB session bean message receiver that enables
EJB session beans to be exposed. To do this with the existing message
receivers would mean each user writing the code to handle Spring or
EJB calls. (Which is ok, but not so nice).

2) WSDL2Java generates custom message receivers because they are
slightly more efficient than the dynamic approach taken by the RPC
message receiver.

Paul

On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi ,

 Well i was thinking that , assuming the RPC Message Receiver is
 inadequate for more complex input and output datatypes , we are only
 left with the RAW XML Message receivers, which assume that one has a
 compiled java class with a method parameter signature accepting
 OMElement and returning an OM Element, and a method name which should
 be *the same* as the name of the operation name. (at least that can be
 seen from the RawXML MessageReceiver implementations in Axis2, more
 specifically in the findOperation impl).

 So maybe if I don't want to restrict my java impl classes to have the
 same method names as the operation names , I should write a custom
 Message Receiver.

 Can anyone clarify this point? Thanks.

 Best Regards,
 Angel

 On 1/13/07, Comain Chen [EMAIL PROTECTED] wrote:
  To give the user freedom to decide their own Databinding techniques?
 
  Also I have this doubt, why does the codegen module generate MessageReceiver
  for each Service, not let the binding framework write a general
  messageReceiver for all services?
 
 
 
  On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote:
  
   Hi Axis2 developers,
  
   I am interested to know what is the motivation behind using custom
   message receivers? For example, if I want to invoke non-java
   operations, I can have a helper Java class which manages all this
   logic, and still be invoked by one of the existing message receivers,
   such as the raw XML message receivers.
  
   Thanks very much for your feedback in advance.
  
   Regards,
   Angel
  
  
  -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
 
  --
  Best regrads,
  Comain Chen

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




--
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
[EMAIL PROTECTED]

Oxygenating the Web Service Platform, www.wso2.com

-
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: Custom Message Receiver use cases

2007-01-13 Thread Angel Todorov

Hi Sanka,

Yes that's what i meant - that the default Raw XML Message Receivers
are restrictive in terms of method signatures. They require that you
structure your code in a specific way, which leads to unnecesary code
generation and wrapping - as you said , i must be able to construct
the SOAP response in any way i want.

I still don't get how Spring overcomes this issue, as they don't
override the findOperation() in the message receiver default
implementations, which means the default message receiver still looks
for an OMElement based signature.

Regards,
Angel

On 1/13/07, Sanka Samaranayake [EMAIL PROTECTED] wrote:


 Hi,

 You don't necessarily have to have 1:1 operation mapping. You are free to
create the response message (if there is a response) any way you want, may
be using few library functions.

 The easy way to write a custom MessageReceiver is to extends one of the
abstract MessageReceivers depending on your requirements. You can construct
the response the way you want and set it in out MessageContext.

 Hope this will help ..

 Sanka




On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote:
 Hi Paul,

 I've read this doc:

 http://ws.apache.org/axis2/1_1/spring.html

 And I can see the integration with Spring  uses the default Axis2
 RawXMLINOutMessageReceiver. I get what you're saying but can't see
 anywhere a custom Spring message receiver. In the document above, one
 doesn't avoid having 1:1 operation - java method mapping - i.e one
 still generates java code that wraps around existing functionality and
 that can be otherwise avoided. Is that correct? Thanks.

 Regards,
 Angel

 On 1/13/07, Paul Fremantle  [EMAIL PROTECTED] wrote:
  Two points:
 
  1) the ability to plug in custom message receivers is to handle the
  cases where you want to enable a whole class of services. For example,
  the Spring message receiver allows any Spring bean to be exposed.
  Another example is an EJB session bean message receiver that enables
  EJB session beans to be exposed. To do this with the existing message
  receivers would mean each user writing the code to handle Spring or
  EJB calls. (Which is ok, but not so nice).
 
  2) WSDL2Java generates custom message receivers because they are
  slightly more efficient than the dynamic approach taken by the RPC
  message receiver.
 
  Paul
 
  On 1/13/07, Angel Todorov [EMAIL PROTECTED] wrote:
   Hi ,
  
   Well i was thinking that , assuming the RPC Message Receiver is
   inadequate for more complex input and output datatypes , we are only
   left with the RAW XML Message receivers, which assume that one has a
   compiled java class with a method parameter signature accepting
   OMElement and returning an OM Element, and a method name which should
   be *the same* as the name of the operation name. (at least that can be
   seen from the RawXML MessageReceiver implementations in Axis2, more
   specifically in the findOperation impl).
  
   So maybe if I don't want to restrict my java impl classes to have the
   same method names as the operation names , I should write a custom
   Message Receiver.
  
   Can anyone clarify this point? Thanks.
  
   Best Regards,
   Angel
  
   On 1/13/07, Comain Chen  [EMAIL PROTECTED] wrote:
To give the user freedom to decide their own Databinding techniques?
   
Also I have this doubt, why does the codegen module generate
MessageReceiver
for each Service, not let the binding framework write a general
messageReceiver for all services?
   
   
   
On 1/13/07, Angel Todorov  [EMAIL PROTECTED] wrote:

 Hi Axis2 developers,

 I am interested to know what is the motivation behind using custom
 message receivers? For example, if I want to invoke non-java
 operations, I can have a helper Java class which manages all this
 logic, and still be invoked by one of the existing message
receivers,
 such as the raw XML message receivers.

 Thanks very much for your feedback in advance.

 Regards,
 Angel


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


   
   
   
--
Best regrads,
Comain Chen
  
  
-
   To unsubscribe, e-mail:
[EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Paul Fremantle
  VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
 
  http://bloglines.com/blog/paulfremantle
  [EMAIL PROTECTED]
 
  Oxygenating the Web Service Platform, www.wso2.com
 
 
-
  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]





--
Sanka

Re: Marshalling POJOs

2007-01-11 Thread Angel Todorov

Hi Anne,

What do you mean by send serialized XML vs. encoded XML string ?
Isn't it possible if i put a TCP/IP sniffer in the middle of the
client - server , to see the SOAP messages in terms of XML ?

Angel

On 1/10/07, Anne Thomas Manes [EMAIL PROTECTED] wrote:

Neither Axis nor Axis2 send or receive POJOs. As with any web services
platform, they send and receive XML messages. But what they can do is
automatically map the XML messages to POJOs so that the application
can work with Java objects rather than XML. But even if you elect to
work with POJOs, there is no requirement for the client and server to
share the same class definitions. The only thing that needs to be
shared is the WSDL definition.

Axis and Axis2 support POJO mapping using Java/XML binding frameworks.
Axis includes a built-in Java/XML binding framework that conforms to
the binding specificed in the JAX-RPC specification. Axis2 provides a
plug-in framework that can support any Java/XML binding framework.
Axis2 provides a lightweight binding framework (Axis2 Data Binding
[ADB]), but you can also use XMLBeans, JiBX, JAXB, and other
databinding frameworks. It can support Castor, too, although I haven't
seen anyone implement support for it yet.

You really don't want to send/receive the XML as a string, because
then it would be serialized as an encoded XML string. What you want is
to send serialized XML, (which is what the binding frameworks do for
you.)

Both Axis and Axis2 permit you to work directly with the XML if you
prefer rather than mapping the XML to Java objects. In Axis, you use
the message style interface, which maps the serialized XML to DOM.
In Axis2, you use AXIOM, an XML data model based on StAX.

Anne

On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote:

  I know that Axis makes it easy to send/receive pojos (I've never actually
 made this work yet but I believe it's true:-) using web services but this
 requires that both ends have access to the class definition. I would prefer
 to send/receive xml as a string avoiding that requirement, loading/unloading
 the xml into an instance of the class in the service. I've read a bit on
 Castor but I'm curious if there isn't something built into Tomcat/Axis that
 would do this.

  Thanx,
  Garth
 -
 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]




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



Re: Marshalling POJOs

2007-01-10 Thread Angel Todorov

Hi Garth,

You can use AXIOM:

http://ws.apache.org/axis2/1_0/OMTutorial.html

http://ws.apache.org/axis2/1_1/quickstartguide.html#axiom

Regards,
Angel

On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote:


 I know that Axis makes it easy to send/receive pojos (I've never actually
made this work yet but I believe it's true:-) using web services but this
requires that both ends have access to the class definition. I would prefer
to send/receive xml as a string avoiding that requirement, loading/unloading
the xml into an instance of the class in the service. I've read a bit on
Castor but I'm curious if there isn't something built into Tomcat/Axis that
would do this.

 Thanx,
 Garth
-
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]