Re: [Axis2] Question about scope="application"

2006-06-28 Thread Deepal Jayasinghe
Hi Javier;

Javier V wrote:

> Hi,
>
> I'd like to know more about scope="application" when defining the
> service in service.xml.
>
> If all users share a singleton object,

if you deploy service in application scope , then there will be only one
instance of the service impl class throughout of the application lifetime.

>
> - is it supposed that all user calls are served FIFO (First In-First
> Out) and this is done by Axis?

It is done by Thread pool  (as I know , in the tomcat case it is handle
by servlet)

>
> - or is it possible that multiple threads may attempt to access the
> object's methods at the same time and it's is my responsibility to
> ensure that my service-object-methods are thread-safe ?

yes, one design principle of Axis2 is its stateless nature , so the best
practice is to not use any instance variable .

>
> Anymore condiserations when using scope=application" ?

well , as I mention there will be only one service instance , and
nothing special.

>
> Thanks in advance
>
> Janfry
>
> _
> ¿Estás pensando en cambiar de coche? Todas los modelos de serie y
> extras en MSN Motor. http://motor.msn.es/researchcentre/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: [Axis2] RPCMessageReceiver with optional elements in WSDL.

2006-06-28 Thread Deepal Jayasinghe
Hi Javier;
if you have a wsdl then the best way is to start from wsdl
 - generate code
 - fill the skeleton

That will solve your problem.

Note: If you have wsdl file no point of using RPCMessageReciever

Javier V wrote:

> Hi.
>
> I've defined my service in service.xml like "RPCMessageReceiver".
>
> In the WDSL I've put some elements of my input-message that are
> optionals (minOccurs=0)
> but in my test-program I have to call with ALL the elements or I get
> parsing errors (NumberFormatException).
>
> It seems how if :
> - the first element of my calling input-message goes to the first
> parameter of the serviceImpl method,
> - the second element to the second parameter,
> - and so on,
>
> and not considers the Name of Element to assign to the corresponding
> parameter of the method.
>
> Thanks in advance,
>
> Janfry
>
> _
> Horóscopo, tarot, numerología... Escucha lo que te dicen los astros.
> http://astrocentro.msn.es/
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: [axis2] code generated service :: Operation not found

2006-06-28 Thread Deepal Jayasinghe
Hi Studium;
As I understand , you are not sending SOAP action in the request.
try
option.setAction("myMethod"); , before calling the service.

[EMAIL PROTECTED] wrote:

>Hi,
>
>I have a code generated service deployed, let's call it 'MyService'. The axis 
>service list says the service is fine and has a method 'myMethod'
>When running the Client with a simple message I get an AxisFault saying:
>
>Operation Not found EPR is http://localhost:8080/axis2/services/MyService and 
>WSA Action =  http://localhost:8080/axis2/services/MyService/myMethod
>   at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>
>While debugging I realized, that the instance variable axisOperation isn't set 
>(DispatchPhase::checkPostCondition()).
>The AxisEngine class doesn't seem to get the axisOperation set.
>For code  generation I used the Eclipse PlugIn Version 1.2.0
>
>I'm using the nightly build of 07.06.2006.
>
>Could anybody give me a hint please of what I'm missing?
>
>TIA Bille
>
>
>__
>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



[Axis2] [subclipse] check out Axis2 SVN source code

2006-06-28 Thread Xinjun Chen

Hi

I am trying to check out Axis2 SVN source code but failed.
I have installed subclipse plugin into my Eclipse following the
instruction at page
http://subclipse.tigris.org/install.html.

However, when I try to create a new repository location
"http://svn.apache.org/repos/asf/webservices/axis2/trunk/java";, I get
the
following exception:

Unable to Validate.
Error validating location:
"org.tigris.subversion.javahl.ClientException: RA layer request failed
svn:PROPFIND request failed on '/repos/asf/webservices/axis2/truck/java'
svn:PROPFIND of '/repos/asf/webservices/axis2/truck/java': could not
connect to server (http://svn.apache.org)"

When trying to expand the tree. I get the error message:

Folder " does not exist remotely.


I don't know how and where to run "svn co  axis2"
command. Please forgive me if the question is too trivial. "svn is not
an internal command"

Could anyone who has successfully checked out Axis2 source code help me on this?

Thanks.



Regards,

Xinjun

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



Re: [Axis2 current SVN 6/28] services.list needed ?

2006-06-28 Thread Deepal Jayasinghe
Hi Kinichiro;
pls see my comment below;


Kinichiro Inoguchi wrote:

>Hi,Is services.list in services folder needed at current SVN ?
>  
>
No , you need that only if you are going to use un-expand war case .

>To add new service to TOMCAT_HOME/webapps/axis2/WEB-INF/services/ , 
>I just dropped my aar file to this folder, before.
>But with current SVN build version of Axis2,
>I need to add aar file name to services.list, after dropping aar file.
>  
>
You do not need to modify anything , just drop the aar it will work.

>New feature "module service" affects this ?
>  
>
Nope;

>Regards,
>kinichiro
>
>__
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>  
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: Axis2 v1.0: Cannot add property to Service Context from Security phase

2006-06-28 Thread Ruchith Fernando

Hi,

Please see my comments inline:

On 6/28/06, D P <[EMAIL PROTECTED]> wrote:

1.  Am I correct in assuming the reason why Service context is null is that
it is initialized in later in flow phases?


Yes!
The service context is not available at the security phase. This is
because security phase is placed before the dispatch phase and the
context creation occurs right at the end of dispatch phase.


2.  Can anyone suggest a solution on how to pass the unique id to an outflow
handler?


How about the following set of steps:

- Place the created id in the inflow message context at the inflow handler.
- At the outflow handler get hold of the inflow message context and
extract the id value and add it to the message. See here [1] for a
code snippet to extract the in flow msg ctx.

- Also you can maintain a list of valid id's for a certain service as
a list in the configuration context. You have to use configuration
context  to store this list since,  this is the only context
accessible when you want to authenticate a user with an id in the
inflow handler.

Thanks,
Ruchith

--
www.ruchith.org


[1] http://rafb.net/paste/results/tPlQC035.html

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



Re: [1.3] Handling arrays - interop with .NET

2006-06-28 Thread Simon McMahon



I found my problem. It was the 'setProvider()' 
member function. This was originally a constructor but I needed to have it 
in an interface so it ended up with this name. Just a bad choice it appears 
because to Axis it looks like an accessor for a private member called 
'provider' which does not exist.
 
I renamed the member function to 'initProvider' and the phantom parameter 
disappeared.
 
My .NET clients can now consume the WSDL that axis generates for my web 
service.
 
Regards,
 
Simon.
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180>>> 
[EMAIL PROTECTED] 06/29/06 11:58am >>>Contrary to what appears to be 
standard practice I've abandoned the JavaServiceClass->WSDL approach and 
start from hand-cut WSDL which I validate using an Eclipse plug-in (checks 
against WS-I). I also check the WSDL within XMLSpy2006. I've take this approach 
because I currently have a situation whereby the WSDL generated by the Axis 
service causes a NullPointerException in WSDL2Java while attempting to generate 
client stubs. I'd be interested in hearing from anyone who has any 1st hand 
knowledge of exactly how standard/interoperable the WSDL generated by Axis 
services really are... 
On 6/29/06, Simon 
McMahon <[EMAIL PROTECTED]> 
wrote: 

  
  
  Hi Anne,
   
  The WSDL is just cut and paste off my Apache/Tomcat server 
  that hosts the WS. You can see the complete WSDL at:
  https://s8online.health.qld.gov.au/axis/services/qh-providers?wsdl 
  
   
  See Provider.java def below. This was originally 
  generated by Axis but I have added fields to it since then. There is no field 
  in my definition for the extra field tagged onto each structure. 
  There are 3 structures that get this extra field at the 
  end and they are all the ones that get returned as arrays from my 
  services.
   
  This is one of the service entry points:
   
   public Provider[] getProviders(String name, String providerNo, 
  String orgName,  
  String locationId, int maxResults)  throws 
  Exception {
   } 
  The others are all constructed similarly.
   
  
  > Can you convert to doc/literal?
  How do I do this?
   
  > Add this parameter (dotNetSoapEncFix) to your global configuration: 
  
  I am trying this now.
   
   
  Provider.java:
   
  package au.gov.qld.health.s8online.providerdir;
   
  import javax.xml.namespace.QName;
   
  import org.apache.axis.description.ElementDesc;
   
  public class Provider{ protected int id; protected 
  String name; protected String providerId;
   protected String org; protected String locationId;
   protected String application; protected String 
  deliveryMethod;
   
   public 
  Provider() {    
  setId(0); }
   
   public void setProvider(String name, String providerNo, String 
  org,  String locationId, String application, 
  String deliveryMethod) {   this.name = 
  name;  this.providerId = providerNo;  this.org = org;  this.locationId = 
  locationId;  this.application = application;  
  this.deliveryMethod = deliveryMethod; }
   
   public void setProvider(Provider 
  pd) {  setId(pd.getId());  this.name = 
  pd.getName();  this.providerId = 
  pd.getProviderId();  this.org = pd.getOrg();  this.locationId = 
  pd.getLocationId();  this.application = 
  pd.getApplication();  this.deliveryMethod = 
  pd.getDeliveryMethod(); }
   
   public int getId() {return id;} public void setId(int id) 
  {this.id = id;}
   
   public String getName() {return name;} public void 
  setName(String name){this.name = name;}
   
   public String getLocationId(){return 
  this.locationId;} public void setlocationId(String 
  locationId){this.locationId = locationId;}
   
   public String getOrg(){return org;} public void 
  setOrg(String org){this.org = org;}
   
   public String getProviderId(){return providerId;} public 
  void setProviderId(String providerNo){this.providerId = providerNo;}
   
   public String getApplication() {return 
  application;} public void setApplication(String application) 
  {this.application = application;}
   
   public String getDeliveryMethod() {return 
  deliveryMethod;} public void setDeliveryMethod(String deliveryMethod) 
  {this.deliveryMethod = deliveryMethod;}
   
   public String toString() {  String s = 
  "";  if ( name != null && 
  !name.equals(""))   s += "name=\"" + name + 
  "\""; if ( providerId != null && 
  !providerId.equals(""))  s 
  += ", providerNo=\"" + providerId + "\""; if ( org 
  != null && 
  !org.equals("")) s += ", 
  org=\"" + org + "\"";  if ( locationId != null 
  && 
  !locationId.equals("")) s 
  += ", locationId=\"" + locationId + "\""; if ( 
  application != null && !application.equals("")) 
   s += ", application=\"" + 
  application + "\""; if ( deliveryMethod != null 
  && 
  !deliveryMethod.equals("")) 
  s += ", deliveryMethod=\"" + deliveryMethod + "\"";   return 
  s; }
   
   public synchronized boolean equals(Object 
  obj) {  if (!(obj instanceof 
  P

Re: [1.3] Handling arrays - interop with .NET

2006-06-28 Thread Benjamin Fan
Contrary to what appears to be standard practice I've abandoned the JavaServiceClass->WSDL approach and start from hand-cut WSDL which I validate using an Eclipse plug-in (checks against WS-I). I also check the WSDL within XMLSpy2006. I've take this approach because I currently have a situation whereby the WSDL generated by the Axis service causes a NullPointerException in WSDL2Java while attempting to generate client stubs. I'd be interested in hearing from anyone who has any 1st hand knowledge of exactly how standard/interoperable the WSDL generated by Axis services really are...

On 6/29/06, Simon McMahon <[EMAIL PROTECTED]> wrote:



Hi Anne,
 
The WSDL is just cut and paste off my Apache/Tomcat server that hosts the WS. You can see the complete WSDL at:
https://s8online.health.qld.gov.au/axis/services/qh-providers?wsdl

 
See Provider.java def below. This was originally generated by Axis but I have added fields to it since then. There is no field in my definition for the extra field tagged onto each structure. 
There are 3 structures that get this extra field at the end and they are all the ones that get returned as arrays from my services.
 
This is one of the service entry points:
 
 public Provider[] getProviders(String name, String providerNo, String orgName,  String locationId, int maxResults)  throws Exception {
 } 
The others are all constructed similarly.
 

> Can you convert to doc/literal?
How do I do this?
 
> Add this parameter (dotNetSoapEncFix) to your global configuration: 
I am trying this now.
 
 
Provider.java:
 
package au.gov.qld.health.s8online.providerdir;
 
import javax.xml.namespace.QName;
 
import org.apache.axis.description.ElementDesc;
 
public class Provider{ protected int id; protected String name; protected String providerId;
 protected String org; protected String locationId;
 protected String application; protected String deliveryMethod;
 
 public Provider() {    setId(0); }
 
 public void setProvider(String name, String providerNo, String org,  String locationId, String application, String deliveryMethod) {  
this.name = name;  this.providerId = providerNo;  this.org = org;  this.locationId = locationId;  this.application
 = application;  this.deliveryMethod = deliveryMethod; }
 
 public void setProvider(Provider pd) {  setId(pd.getId());  this.name = pd.getName();  this.providerId
 = pd.getProviderId();  this.org = pd.getOrg();  this.locationId = pd.getLocationId();  this.application = 
pd.getApplication();  this.deliveryMethod = pd.getDeliveryMethod(); }
 
 public int getId() {return id;} public void setId(int id) {this.id = id;}
 
 public String getName() {return name;} public void setName(String name){this.name = name;}
 
 public String getLocationId(){return this.locationId;} public void setlocationId(String locationId){this.locationId = locationId;}
 
 public String getOrg(){return org;} public void setOrg(String org){this.org = org;}
 
 public String getProviderId(){return providerId;} public void setProviderId(String providerNo){this.providerId = providerNo;}
 
 public String getApplication() {return application;} public void setApplication(String application) {this.application = application;}
 
 public String getDeliveryMethod() {return deliveryMethod;} public void setDeliveryMethod(String deliveryMethod) {this.deliveryMethod = deliveryMethod;}
 
 public String toString() {  String s = "";  if ( name != null && !name.equals(""))   s += "name=\"" + name + "\""; if ( providerId != null && !providerId.equals(""))
 s += ", providerNo=\"" + providerId + "\""; if ( org != null && !org.equals("")) s += ", org=\"" + org + "\"";
 if ( locationId != null && !locationId.equals("")) s += ", locationId=\"" + locationId + "\""; if ( application != null && !application.equals(""))
 s += ", application=\"" + application + "\""; if ( deliveryMethod != null && !deliveryMethod.equals("")) s += ", deliveryMethod=\"" + deliveryMethod + "\"";
  return s; }
 
 public synchronized boolean equals(Object obj) {  if (!(obj instanceof Provider))   return false;  Provider other = (Provider)obj;  if (obj == null)   return false;  if (this == obj)
   return true;  if (__equalsCalc != null) {   return (__equalsCalc == obj);  }  __equalsCalc = obj;  boolean _equals;  _equals =   true && ((
this.name == null && other.getName() == null) ||    (this.name != null && this.name.equals
(other.getName( &&   ((this.providerId == null && other.getProviderId() == null) ||    (this.providerId != null && this.providerId.equals(other.getProviderId( &&
   ((this.org == null && other.getOrg() == null) ||    (
this.org != null && this.org.equals(other.getOrg( &&   ((this.application == null && other.getApplication() == null) ||    (this.application != null && this.application.equals
(other.getApplication( &&    ((this.deliveryMethod == null && other.getDeliveryMet

Re: [AXIS2] J2EE Support

2006-06-28 Thread Warren Crossing
I use axis1-4 for ws based auth and session management, this ties 
directly into my sessionbean using the providers and handlers from axis1-4.


If the context has a session then it talks to the same session bean 
serviceobject.  If the context has credentials then they are passed into 
jni to look up the ejb service object.


What I hope get from this architecture is container based transaction 
and security support without exposing transactions or neccessarily 
security through the wsdl. I could add another handler to map security etc..


I noticed when the session is reaped on timeout that remove() is not 
called on the session bean.  I might clone EJBProvider and implement 
ServiceLifecycle so I can call remove() on the destroy() event.


So why go to this effort in architecture to essentially pass the buck to 
the next component? I am essentially exposing a call-control sip stack 
through the ws. I have no place to do any core logic, or event routing, 
in the ws layer or in the stack as they both maintain session state and 
transactions in completley different ways, ie cookies and dialogs.


What I really want is a transactional context to say "detect the call 
has ended ! debit close the session and modify some database state, 
handle failure case, make endpoint callbacks etc" which I can't get from 
the sip stack (aka black box) and don't trust the web server to do 
(reliably).


Another reason is I automagically get pooling of service objects. Sure I 
have to authenticate twice a session, once in the ws and once in jni - 
ejb, but I don't have to worry about dos and cross host usage.  I don't 
really need session failover but that's another point for the ejb 
container (if supported).


I also get ejb timers facility and concurrency and synchronization. So I 
think its a win for coupling the two architectures togeather.


IMHO WS is not an application framework it's just another 
remoting/messaging technology primarily for .NET and monkey JEE interop. 
Otherwise why not just use IIOP? It's much faster! =)


Interested in your feedback.



[EMAIL PROTECTED] wrote:
Hi, axis 1 & 2 work in a J2EE environment 



Michel Lequim

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Andrew Lindley
Sent: Friday, June 16, 2006 11:54 AM
To: axis-user@ws.apache.org
Subject: [AXIS2] J2EE Support

I was just wondering, why neither AXIS, nor AXIS2 do support J2EE - is

this correct?
JBoss e.g. has this feature.

Is this information correct?

thanks,



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



Re: [1.3] Handling large values

2006-06-28 Thread Benjamin Fan
I'd suggest moving to a multi-message interchange and server-side reassembly of the data. I'm in the process of doing this very thing but that's because my data is a list of XML elements of logically unbounded length...

On 6/29/06, Simon McMahon <[EMAIL PROTECTED]> wrote:




> Why Not use attachment?OK.
Dont know how to yet but there seems to be lots of questions/answers regarding them so I can figure it out.
 
Do attachments work with .NET?
 
Thanks,

 
Simon.
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180 

>>> [EMAIL PROTECTED] 06/28/06 11:39pm >>> 


Why Not use attachment?
 

Thanks
 
Tim Jian

Momentum systems, Inc.






From:
 Simon McMahon [mailto:[EMAIL PROTECTED]] Sent:
 Tuesday, June 27, 2006 8:52 PMTo: axis-user@ws.apache.org
Subject: [1.3] Handling large values


 

Hi,

 

Axis throws various faults, including out-of-memory, when I pass a large value through a web service - e.g. a 5 Mb String.


 

I dont have many alternatives because the firewall only allows http. Otherwise I would just use FTP.


 

Any suggestions on how to get Axis 1.x to handle large messages? I dont want to try Axis 2 (again) because I already tried this some time ago and it required too many changes to my application.


 

Regards,

 

Simon.

 

 

Simon McMahon

 

Work: (07) 31311420Mobile: (043) 2294180
*This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).This confidentiality is not waived or lost, if you receive it andyou are not the intended recipient(s), or if it is transmitted/received in error.
Any unauthorised use, alteration, disclosure, distribution orreview of this email is strictly prohibited. The informationcontained in this email, including any attachment sent withit, may be subject to a statutory duty of confidentiality if it
relates to health service matters.If you are not the intended recipient(s), or if you havereceived this email in error, you are asked to immediatelynotify the sender by telephone collect on Australia
+61 1800 198 175 or by return email. You should alsodelete this email, and any copies, from your computersystem network and destroy any hard copies produced.If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form ofdisclosure, modification, distribution and/or publication of thisemail is also prohibited.Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,Queensland Health does not accept responsibility for theconsequences if any person's computer inadvertently suffersany disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme orcode that may occur as a consequence of receiving thisemail.Unless stated otherwise, this email represents only the viewsof the sender and not the views of the Queensland Government.






NOTICE: This message (including any attachments) from Momentum Systems, Inc. contains information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you are hereby notified that any dissemination of this message is strictly prohibited. If you have received this message in error, please do not read, copy or forward this message. Please permanently delete all copies and any attachments and notify the sender immediately by reply email or by calling our Office at 
703.740.9300. 





Re: [Axis2] large MTOM binary data not returning to client

2006-06-28 Thread Paul Fremantle

Have you tried doing any packet sniffing? It might well be the Axis1
client? I assume you have optimised = false on the MTOM entry?

Paul

On 6/28/06, Andrew B <[EMAIL PROTECTED]> wrote:

Hi,

I have an Axis2 service running in our production environment. The web
service call completes, but control is not returned to the client.

It is passing back 1.2Mb of binary data, via MTOM. Smaller amounts of binary
work consistently (say 350Kb or so). The client is Axis1 (Java). The app
server is JBoss 4.0.3 running on Linux, with JDK 1.4. MTOM is enabled,
according to the documentation:

true

The server-side processing always completes, in around 1 minute, according
to the log files, even when the data is not returned. According to the JBoss
console, the request is still being processed, even though the web service
call is complete.

Any ideas at all are appreciated!

Thanks, as always,


Andrew




 
Sneak preview the all-new Yahoo.com. It's not radically different. Just
radically better.





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



RE: [1.3] Handling large values

2006-06-28 Thread Simon McMahon




> Why Not use 
attachment?OK.
Dont know how to yet but there seems to be lots of questions/answers 
regarding them so I can figure it out.
 
Do attachments work with .NET?
 
Thanks,
 
Simon.
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180
>>> [EMAIL PROTECTED] 06/28/06 11:39pm 
>>>





Why Not use 
attachment?
 

Thanks
 
Tim 
Jian
Momentum 
systems, Inc.




From: Simon 
McMahon [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 8:52 
PMTo: axis-user@ws.apache.orgSubject: [1.3] Handling large 
values
 

Hi,

 

Axis throws various faults, 
including out-of-memory, when I pass a large value through a web service - e.g. 
a 5 Mb String.

 

I dont have many alternatives 
because the firewall only allows http. Otherwise I would just use 
FTP.

 

Any suggestions on how to get Axis 
1.x to handle large messages? I dont want to try Axis 2 (again) because I 
already tried this some time ago and it required too many changes to my 
application.

 

Regards,

 

Simon.

 

 

Simon 
McMahon

 

Work: (07) 31311420Mobile: (043) 
2294180
*This 
email, including any attachments sent with it, isconfidential and for the 
sole use of the intended recipient(s).This confidentiality is not waived or 
lost, if you receive it andyou are not the intended recipient(s), or if it 
is transmitted/received in error.Any unauthorised use, alteration, 
disclosure, distribution orreview of this email is strictly prohibited. The 
informationcontained in this email, including any attachment sent 
withit, may be subject to a statutory duty of confidentiality if 
itrelates to health service matters.If you are not the intended 
recipient(s), or if you havereceived this email in error, you are asked to 
immediatelynotify the sender by telephone collect on Australia+61 
1800 198 175 or by return email. You should alsodelete this email, and any 
copies, from your computersystem network and destroy any hard copies 
produced.If not an intended recipient of this email, you must not 
copy,distribute or take any action(s) that relies on it; any form 
ofdisclosure, modification, distribution and/or publication of thisemail 
is also prohibited.Although Queensland Health takes all reasonable steps 
toensure this email does not contain malicious software,Queensland 
Health does not accept responsibility for theconsequences if any person's 
computer inadvertently suffersany disruption to services, loss of 
information, harm or isinfected with a virus, other malicious computer 
programme orcode that may occur as a consequence of receiving 
thisemail.Unless stated otherwise, this email represents only the 
viewsof the sender and not the views of the Queensland 
Government.



NOTICE: This message (including any attachments) from Momentum Systems, Inc. 
contains information that is PRIVILEGED and CONFIDENTIAL. If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited. If you have received this message in error, 
please do not read, copy or forward this message. Please permanently delete all 
copies and any attachments and notify the sender immediately by reply email or 
by calling our Office at 703.740.9300. 



Re: [1.3] Handling arrays - interop with .NET

2006-06-28 Thread Simon McMahon



Hi Anne,
 
The WSDL is just cut and paste off my Apache/Tomcat server 
that hosts the WS. You can see the complete WSDL at:
https://s8online.health.qld.gov.au/axis/services/qh-providers?wsdl
 
See Provider.java def below. This was originally 
generated by Axis but I have added fields to it since then. There is no field in 
my definition for the extra field tagged onto each structure. There are 3 structures that get this extra field at the end and they are 
all the ones that get returned as arrays from my services.
 
This is one of the service entry points:
 
 public Provider[] getProviders(String name, String providerNo, String 
orgName,  String 
locationId, int maxResults)  throws Exception {
 }
The others are all constructed similarly.
 
> Can you convert to doc/literal?How do I 
do this?
 
> Add this parameter (dotNetSoapEncFix) to your global configuration: 

I am trying this now.
 
 
Provider.java:
 
package au.gov.qld.health.s8online.providerdir;
 
import javax.xml.namespace.QName;
 
import org.apache.axis.description.ElementDesc;
 
public class Provider{ protected int id; protected 
String name; protected String providerId;
 protected String org; protected String locationId;
 protected String application; protected String 
deliveryMethod;
 
 public 
Provider() {    
setId(0); }
 
 public void setProvider(String name, String providerNo, String 
org,  String locationId, String application, 
String deliveryMethod) {  this.name = 
name;  this.providerId = providerNo;  this.org = 
org;  this.locationId = 
locationId;  this.application = application;  
this.deliveryMethod = deliveryMethod; }
 
 public void setProvider(Provider 
pd) {  setId(pd.getId());  this.name = 
pd.getName();  this.providerId = 
pd.getProviderId();  this.org = 
pd.getOrg();  this.locationId = 
pd.getLocationId();  this.application = 
pd.getApplication();  this.deliveryMethod = 
pd.getDeliveryMethod(); }
 
 public int getId() {return id;} public void setId(int id) 
{this.id = id;}
 
 public String getName() {return name;} public void 
setName(String name){this.name = name;}
 
 public String getLocationId(){return 
this.locationId;} public void setlocationId(String 
locationId){this.locationId = locationId;}
 
 public String getOrg(){return org;} public void 
setOrg(String org){this.org = org;}
 
 public String getProviderId(){return providerId;} public 
void setProviderId(String providerNo){this.providerId = providerNo;}
 
 public String getApplication() {return application;} public 
void setApplication(String application) {this.application = application;}
 
 public String getDeliveryMethod() {return 
deliveryMethod;} public void setDeliveryMethod(String deliveryMethod) 
{this.deliveryMethod = deliveryMethod;}
 
 public String toString() {  String s = 
"";  if ( name != null && 
!name.equals(""))   s += "name=\"" + name + 
"\""; if ( providerId != null && 
!providerId.equals("")) s += 
", providerNo=\"" + providerId + "\""; if ( org != 
null && 
!org.equals("")) s += ", 
org=\"" + org + "\""; if ( locationId != null 
&& 
!locationId.equals("")) s += 
", locationId=\"" + locationId + "\""; if ( 
application != null && 
!application.equals("")) s 
+= ", application=\"" + application + "\""; if ( 
deliveryMethod != null && 
!deliveryMethod.equals("")) 
s += ", deliveryMethod=\"" + deliveryMethod + "\"";  return 
s; }
 
 public synchronized boolean equals(Object 
obj) {  if (!(obj instanceof 
Provider))   return false;  Provider other = 
(Provider)obj;  if (obj == null)   return 
false;  if (this == obj)   return 
true;  if (__equalsCalc != null) {   return 
(__equalsCalc == obj);  }  __equalsCalc = 
obj;  boolean _equals;  _equals 
=   true && ((this.name == null && 
other.getName() == null) 
||    
(this.name != null && this.name.equals(other.getName( 
&&   ((this.providerId == null && 
other.getProviderId() == null) 
||    
(this.providerId != null && 
this.providerId.equals(other.getProviderId( 
&&   ((this.org == null && other.getOrg() == 
null) 
||    
(this.org != null && this.org.equals(other.getOrg( 
&&   ((this.application == null && 
other.getApplication() == null) 
||    
(this.application != null && 
this.application.equals(other.getApplication( 
&&    
((this.deliveryMethod == null && other.getDeliveryMethod() == null) 
||    
(this.deliveryMethod != null && 
this.deliveryMethod.equals(other.getDeliveryMethod( 
&&   ((this.locationId == null && 
other.getLocationId() == null) 
||    
(this.locationId != null && 
this.locationId.equals(other.getLocationId(;  __equalsCalc = 
null;  return _equals; }
 
 public synchronized int hashCode() {  if 
(__hashCodeCalc) {   return 
0;  }  __hashCodeCalc = 
true; String h;  int _hashCode = 
1; h = getName(); if (h 
!= null) { _hashCode += h.hashCode(); } h = 
getProviderId(); if (h != nul

[Axis2] Question about scope="application"

2006-06-28 Thread Javier V

Hi,

I'd like to know more about scope="application" when defining the service in 
service.xml.


If all users share a singleton object,

- is it supposed that all user calls are served FIFO (First In-First Out) 
and this is done by Axis?


- or is it possible that multiple threads may attempt to access the object's 
methods at the same time and it's is my responsibility to ensure that my 
service-object-methods are thread-safe ?


Anymore condiserations when using scope=application" ?

Thanks in advance

Janfry

_
¿Estás pensando en cambiar de coche? Todas los modelos de serie y extras en 
MSN Motor. http://motor.msn.es/researchcentre/



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



[Axis2] RPCMessageReceiver with optional elements in WSDL.

2006-06-28 Thread Javier V

Hi.

I've defined my service in service.xml like "RPCMessageReceiver".

In the WDSL I've put some elements of my input-message that are optionals 
(minOccurs=0)
but in my test-program I have to call with ALL the elements or I get parsing 
errors (NumberFormatException).


It seems how if :
- the first element of my calling input-message goes to the first parameter 
of the serviceImpl method,

- the second element to the second parameter,
- and so on,

and not considers the Name of Element to assign to the corresponding 
parameter of the method.


Thanks in advance,

Janfry

_
Horóscopo, tarot, numerología... Escucha lo que te dicen los astros. 
http://astrocentro.msn.es/



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



More Axis & wrapped (Was: Re: No such operation)

2006-06-28 Thread Doug B

Sigh.  I changed our WSDL & Schema to use a naming convention that I
thought would work with Axis' current default behaviour on the server
side, and it caused its own issues.  Namely, apparently 4 of my 5
operation signatures now meet all Axis' criteria for "wrapped" style,
but one does not.  So Axis generated 1 interface method the way I
wanted, with request and response complexType beans, and 4 "wrapped"
style methods (which would have confused the heck out of me if we
hadn't had this whole discussion).

Eventually I got the ant  task to not use "wrapped"
(seemingly undocumented syntax*), so things look like they might be
ok.  My test-generated server deploy.wsdd at least looks like the
qnames will match now.

I'm not sure if using a "wrapped-compatible" WSDL is better or worse
if you're not planning on actually using wrapped mappings.  It looks
like, at least with Axis, either way you have to customize the
generated artifacts, so you have to know about "wrapped" even if you
don't want to use it.

BTW, wrapped looks much harder to use portably than non-wrapped, from
a business code point-of-view.  The wrapped method signatures have
dependencies on axis packages, where the non-wrapped ones only have
dependencies on my Schema beans, which ideally, one day, will be
totally POJO allowing me to switch out engines easily.  But that's a
different subject.

* http://ws.apache.org/axis/java/ant/axis-wsdl2java.html doesn't
document any attribute to disable wrapped, but setting the attribute
noWrapped="true" in the main element of the task worked.

Doug

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



Re: [Axis2] How to add header info to the response message

2006-06-28 Thread Eran Chinthaka
Michele Mazzucco wrote:
> Hi Eran,
> 
> yes, I need to add some headers from the service and I'm using
> RawXMLINOutMessageReceiver. Should it work if I do it into
> setOperationContext() when
> msgCtx = opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)
> is not null (i.e. the message is going out)? Or do I need a handler?

I always prefer if you handle SOAP headers with handlers.

I just checked the code and it seems you can not add headers within your
service impl class, as RawXMLINOutMessageReceiver calls the impl method,
gets the result and always adds that to the body of the out going message.

The only option to do this is to add a handler, which is the case it
should be.

-- Chinthaka



signature.asc
Description: OpenPGP digital signature


[Axis2] large MTOM binary data not returning to client

2006-06-28 Thread Andrew B
Hi,I have an Axis2 service running in our production environment. The web service call completes, but control is not returned to the client. It is passing back 1.2Mb of binary data, via MTOM. Smaller amounts of binary work consistently (say 350Kb or so). The client is Axis1 (Java). The app server is JBoss 4.0.3 running on Linux, with JDK 1.4. MTOM is enabled, according to the documentation:trueThe server-side processing always completes, in around 1 minute, according to the log files, even when the data is not returned. According to the JBoss console, the request is still being processed, even though the web service call is complete.Any ideas at all are appreciated!Thanks, as always,Andrew 
	
		Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 


[axis2] code generated service :: Operation not found

2006-06-28 Thread studium-sbr
Hi,

I have a code generated service deployed, let's call it 'MyService'. The axis 
service list says the service is fine and has a method 'myMethod'
When running the Client with a simple message I get an AxisFault saying:

Operation Not found EPR is http://localhost:8080/axis2/services/MyService and 
WSA Action =  http://localhost:8080/axis2/services/MyService/myMethod
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)

While debugging I realized, that the instance variable axisOperation isn't set 
(DispatchPhase::checkPostCondition()).
The AxisEngine class doesn't seem to get the axisOperation set.
For code  generation I used the Eclipse PlugIn Version 1.2.0

I'm using the nightly build of 07.06.2006.

Could anybody give me a hint please of what I'm missing?

TIA Bille


__
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


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



Error reading data stream: Error in MIME data stream, start boundary not found

2006-06-28 Thread Stromblad
Hi, I am getting this error when sending a DataHandler object from server to client.I know this kind of fault is supposed to be solved putting mail.jar and activation.jar
 in the server (and client) classpath, but I do have both on client's classpath, on server's classpath and on axis lib folder...still I am getting the same error. Can someone please help?
Thanks in advance,Stromblad




File Transmission AxisClientGeneration

2006-06-28 Thread Dr. Laurence Leff
I found a tiny Axis2 tutorial, "Hello world with Apache
Axis2"(http://people.apache.org/~ruchithf/hw-axis2/) and tried it. But
I've kept having a compile error as I ran javac as in "Step 5:
Accessing the service with a generated client." The java files created
(SimpleServiceStub.java and SimpleServiceCallbackHandler.java) don't
have either EchoResponse or Echo method. I believe I followed correctly
as guided because I was able to see the browser showing exactly same
page shown at Step4. I would appreciate if anyone had had similar
experience and would help us out?

Screen log is :

P:\cs575\axis2\test>hw-axis2-javac
P:\cs575\axis2\test>set cdir=P:\cs575\axis2\test
P:\cs575\axis2\test>cd P:\cs575\axis2\test\hw-axis2-code\src
P:\cs575\axis2\test\hw-axis2-code\src>javac -extdirs 
/cs575/axis2/axis2-std-1.0-bin/lib/ org/apache/axis2/*.java  -d ../temp/
org/apache/axis2/Client.java:4: cannot find symbol
symbol  : class EchoResponse
location: class org.apache.axis2.SimpleServiceStub
import org.apache.axis2.SimpleServiceStub.EchoResponse;
  ^
org/apache/axis2/Client.java:13: cannot find symbol
symbol  : class Echo
location: class org.apache.axis2.SimpleServiceStub
SimpleServiceStub.Echo request = new SimpleServiceStub.Echo();
 ^
org/apache/axis2/Client.java:13: cannot find symbol
symbol  : class Echo
location: class org.apache.axis2.SimpleServiceStub
SimpleServiceStub.Echo request = new SimpleServiceStub.Echo();
  ^
org/apache/axis2/Client.java:17: cannot find symbol
symbol  : class EchoResponse
location: class org.apache.axis2.Client
EchoResponse response = stub.echo(request);
^
Note: org/apache/axis2/SimpleServiceStub.java uses unchecked or unsafe 
operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors


By clicking SimpleService link on that page, wsdl was displayed. Copy
of the wsdl displayed is:

http://ws.apache.org/axis2";>



-

-





-

http://schemas.xmlsoap.org/soap/http"/>
-


-

http://ws.apache.org/axis2"; use="literal"/>

-

http://ws.apache.org/axis2"; use="literal"/>



-

http://schemas.xmlsoap.org/soap/http"/>
-


-

http://ws.apache.org/axis2"; use="literal"/>

-

http://ws.apache.org/axis2"; use="literal"/>



-

-

http://143.43.209.19:8080/axis2/services/SimpleService"/>

-

http://143.43.209.19:8080/axis2/services/SimpleService"/>





Dr. Laurence Leff  Western Illinois University, Macomb IL 61455 ||(309) 298-1315
Stipes 447 Assoc. Prof. of Computer Sci. Pager: 309-367-0787 FAX: 309-298-2302 
Secretary: eContracts Technical Committee OASIS Legal XML Member Section

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



RE: Server side configuration parameters

2006-06-28 Thread Gordon, Gary
First, you need access to the Axis service object, which you can get by
defining a special method as follows in your service impl class (Java
reflection is used to find this).  It is called once to initialize your
service:

private MessageContext msgContext = null; private AxisService service;

public void setOperationContext(OperationContext opContext)
throws AxisFault {
this.msgContext =
opContext.getMessageContext(
WSDLConstants.MESSAGE_LABEL_IN_VALUE);
service = msgContext.getAxisService();
}

Then in your service impl class you can use the service object to get
parameters:

Parameter sp = service.getParameter("something");
Object value = sp.getValue();

Or get all parameters;
Map m = new HashMap(); List sl =
service.getParameters(); int cnt = sl.size(); for (int i = 0; i < cnt;
i++) {
Parameter pn = (Parameter) sl.get(i);
m.put(pn.getName(), pn.getValue());
}

Gary

-Original Message-
From: Airline Pedestal [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 28, 2006 3:32 PM
To: axis-user@ws.apache.org
Subject: Server side configuration parameters


How can I access parameters that I define
in services.xml from within my Java Class
implementing the web service?





Thank you,

A

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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]



Server side configuration parameters

2006-06-28 Thread Airline Pedestal

How can I access parameters that I define
in services.xml from within my Java Class
implementing the web service?





Thank you,

A

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: [Axis2] Flash Not Compatible with Axis2

2006-06-28 Thread robert lazarski

You may be running an older version of axis2 . I would bet that
tungsten is using something more recent than say the 1.0 release. It
could help us and yourself to try the nightlies:

http://people.apache.org/dist/axis2/nightly/

Furthermore, we really need those soap messages to help via tcpmon or
the soap monitor, as explained in the axis2 docs. That's just the way
most of the axis2 developers are accustomed to working.

HTH,
Robert
http://www.braziloutsource.com/

On 6/28/06, Luke DeWitt <[EMAIL PROTECTED]> wrote:

Hi again Ajith,

Before reporting a bug, I want to make sure there actually is one. I used
Ethereal to see what was going on, and I believe that I have a problem in
Flash and one in Axis now.

My Flash problem (I believe) is now solved, but in order to be sure I need
to figure out the Axis problem. When I navigate to my 'version?wsdl' file on
my local machine, I am noticing something odd...


−
 
http://localhost/axis2/services/version:localhost/axis2/services/version"/>

−
 
http://localhost/axis2/services/version:localhost/axis2/services/version"/>

−
 
http://localhost/axis2/rest/version:localhost/axis2/rest/version"/>



I cannot understand why everything in there is being repeated... When I go
to the Tungsten servers you pointed me to yesterday, they did not have this.
How would I go about fixing this in my Axis2 so that I wouldn't be getting
double locations?

Thank you,

--LD


- Original Message -
From: "Ajith Ranabahu" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 28, 2006 9:13 AM
Subject: Re: [Axis2] Flash Not Compatible with Axis2


> Hi Luke,
> Like I said in reply to your earlier mail what we need when trying to
> solve this problem is the message that was sent by flash. If you care
> to open jira issue [1]  with the necessary messages it will be a great
> help for us to improve Axis2.
>
> Ajith
>
> [1] http://issues.apache.org/jira/
>
> On 6/28/06, Luke DeWitt <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,
>>
>> As some may have seen, I was posting today a lot about trying to get an
>> Axis2 WS to be called from a Flash document I was working on. After a lot
>> of
>> suggestions (thank you to those of you who made suggestions), I still
>> couldn't get it to work.
>>
>> Finally, I got pretty ticked off and I installed Axis v1.4. I pretty much
>> changed nothing in my Action Script code except the name of the WS from
>> 'version' to 'Version' and 'axis2' to 'axis' and tested my movie. It
>> worked
>> perfectly.
>>
>> I'm not sure why it would work in Axis and not Axis2, I am not sure what
>> kind of changes would have changed the XML so much that it wouldn't work,
>> but I wanted to bring it to the attention of people who could (hopefully)
>> do
>> something about it.
>>
>> Thank you,
>>
>> --LD
>
>
> --
> Ajith Ranabahu
>
> -
> 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]



Server side configuration parameters

2006-06-28 Thread Airline Pedestal

How can I access parameters that I define
in services.xml from within my Java Class
implementing the web service?





Thank you,

A

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: cannot generate axis2 client stubs

2006-06-28 Thread Kinichiro Inoguchi
Nicolas,

Does your service class method have no in/out parameter, like this ?

public void echo () {
System.out.println("hello world");
}


--- Nicolas Urien <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I have successfully deployed a very simple aar archive ("hello
> world") into my axis tomcat server.
> I started from an implementation class and so I didn't write any wsdl
> file.
> 
> I cannot generate the axis2 client stubs. Here is the exception 
> I get (The entity "nbsp" was referenced, but not declared.) when
> executing :
> 
> WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/
> SimpleService?wsdl -o c:\axis2bis\bin\
> 
> Using AXIS2_HOME:   C:\axis2bis
> Using JAVA_HOME:C:\Program Files\Java\jdk1.5.0_06
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException
> : Error parsing WSDL
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerat
> ionEngine.java:125)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> Caused by: WSDLException: faultCode=PARSER_ERROR: Parser SAX Error:
> Fatal Error:
>  URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The
> entity "nbsp"
> was referenced, but not declared.: org.xml.sax.SAXException: Fatal
> Error: URI=ht
> tp://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity
> "nbsp" was referenced, but not declared.
> at
> org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils
> .java:361)
> at
> com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalErro
> r(ErrorHandlerWrapper.java:218)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:386)
> at
> com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(
> XMLErrorReporter.java:316)
> at
> com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(X
> MLScanner.java:1438)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1332)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
>
l$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756)
> at
> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImp
> l.scanDocument(XMLDocumentFragmentScannerImpl.java:368)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:834)
> at
> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(X
> ML11Configuration.java:764)
> at
> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.
> java:148)
> at
> com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.
> java:250)
> at
> com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Doc
> umentBuilderImpl.java:292)
> at
> org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:178)
> at
> org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:223)
> at
> org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:206)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
> CodeGenerationEngine.java:274)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerat
> ionEngine.java:108)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
> 
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(
> CodeGenerationEngine.java:280)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerat
> ionEngine.java:108)
> ... 2 more
> C:\axis2bis\bin>WSDL2Java.bat -uri
> http://localhost.urssaf.fr:8080/axis2/service
> s/ SimpleService?wsdl -o c:\axis2bis\bin\
> 
> 
> What should I do please??
> 
> cheers
> 
> Extract of the generated WSDL file:
> 
>  http://schemas.xmlsoap.org/wsdl/";
> xmlns:axis2="http://ws.apache.org/axis2"; 
> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
> 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/";
> targetNamespace="http://ws.apache.org/axis2";>
>
> 
>  
> 
>  
> 
>   - 
>- 
>   
> 
>  
> 
>
> 
> 
>
> 
> 
>   -  name="SimpleServiceSOAP11Binding">
>   transport="http://schemas.xmlsoap.org/soap/http"; /> 
> 
>   - 
>   
> 
>   - 
>  http://ws.apache.org/axis2"; use="literal"
> /> 
> 
>
> 
> 
>   - 
>  http://ws.apache.org/axis2"; use="literal"
> /> 
> 
>
> 
> 
>
> 
> 
>
> 
> 
>   -  name="SimpleServiceSOAP12Binding">
>   transport="http://schemas.xmlsoap.org/soap/

[Axis2,Sandesha2]MTOM/XOP + WSRM

2006-06-28 Thread Paul Fremantle

Elodie

I think the problem is that you are using MTOM with XMLBeans which
does not work.

Paul

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


On 6/28/06, Mancinelli Elodie <[EMAIL PROTECTED]> wrote:

Mancinelli Elodie wrote:

> Sorry, I want to precise my request. When I observe with TCPMon the
> soap message, the differents messages of WSRM's protocole are created
> (CreateSequence, CreateSequenceResponse, Message, Acknowldgement and
> TerminateSequence). These messages are correct. The problem is on the
> server after messages.
>
> Thanks,
>
> Regards,
> Elodie
>
>
> Mancinelli Elodie wrote:
>
>> Hi all,
>>
>> I try to create an OneWay method which supports WSRM and an attachment.
>> My service is really simple, it's only a "println".
>> The method runs successfully when there is only the WSRM
>> implementation, but when I add the attachement part, I have an server
>> error:
>>
>> org.apache.sandesha2.SandeshaException: Data binding error; nested
>> exception is:
>>java.lang.RuntimeException: Data binding error; nested
>> exception is:
>>org.apache.axis2.AxisFault: Data binding error; nested
>> exception is:
>>java.lang.RuntimeException: Data binding error
>>at
>> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
>> Caused by: org.apache.axis2.AxisFault: Data binding error; nested
>> exception is:
>>java.lang.RuntimeException: Data binding error
>>at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
>>at
>> 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)
>>
>>at
>> 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
>>
>>at
>> org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)
>>at org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
>>at
>> org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)
>> Caused by: java.lang.RuntimeException: Data binding error
>>at
>> 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
>>
>>at
>> 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)
>>
>>... 4 more
>> Caused by: org.apache.axiom.om.OMException:
>> java.lang.NullPointerException
>>at
>> org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
>>at
>> 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
>>
>>at
>> org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
>>
>>at
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
>>at
>> org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
>>at
>> 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
>>
>>at
>> 
fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
>>
>>at
>> 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)
>>
>>... 5 more
>> Caused by: java.lang.NullPointerException
>>at
>> 
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
>>
>>at
>> 
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
>>
>>at
>> 
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
>>
>>at org.apache.coyote.Request.doRead(Request.java:423)
>>at
>> org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
>>
>>at
>> org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
>>at
>> org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
>>at
>> 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)
>>
>>at java.io.FilterInputStream.read(FilterInputStream.java:66)
>>at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
>>at
>> 
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)
>>
>>at
>> javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
>>at
>> javax.mail.internet.InternetHeaders.(InternetHeaders.java:92)
>>at javax.mail.internet.MimeBodyPart.(MimeBodyPart.java:59)
>>at
>> org.apache.axiom.attachments.PartOnMemory.(PartOnMemory.java:31)
>>at
>> org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
>>at
>> org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
>>
>>at
>> org.apache.a

unable to turn off Axiom caching in client

2006-06-28 Thread Gordon, Gary








I saw a similar post regarding the server side, but in
looking at all the documentation and samples, I cannot figure out how to write
a client that doesn’t build the whole OM object tree for the payload. 
If I set caching to false:

 

public OMElement getPayload(InputStream is) throws
XMLStreamException {

    XMLInputFactory xif =
XMLInputFactory.newInstance();

    XMLStreamReader reader =
xif.createXMLStreamReader(is);

    StAXOMBuilder builder = new
StAXOMBuilder(reader);

    builder.setCache(false);

    OMElement oe =
builder.getDocumentElement();

    return oe;

}

then the client side code goes into an infinite loop trying
to get the document element.  This is caused by the following sequence of
calls in Axiom, wherein the document element is never set to a non-null value
because caching is on.

 

OMDocumentImpl:

public OMElement getOMDocumentElement() {

  while (documentElement == null) {

    parserWrapper.next();

  }

  return documentElement;

}

 

StAXOMBuilder:

public int next() throws OMException {

  try {

    if (done) {

  throw new OMException();

    }

    int token = parser.next();

    if (!cache) {

  return token;

    }

 

    ..etc.

 

Now if I comment out the call to turn off caching, Axiom
merrily goes along and builds the entire OM
tree, so I run out of memory for large documents.  This is because

 

OMElement result = sender.sendReceive(payload);

 

eventually calls:

ServiceClient.fillSOAPEnvelope()

 

which eventually leads to:

OMElementImpl.detach();

 

Which causes the whole tree to be rendered as OMObjects. 
For the previous server-side question the Axis person suggested looking at the
OMDatasource test code, but looking at this seemed to yield nothing relevant
unless I’m missing something.

 

Any suggestions on how to efficiently handle a large
client-side payload using Axiom?  Is this a bug that should be submitted?

 

 

Gary Gordon

 








RE: WSDL2Java and one-way binding

2006-06-28 Thread John Mani
Hi all
 
Any comments on the below issue ? I'd expect this to be a common scenario .. so 
am I
misunderstanding something ?
 
thanx
-john



From: John Mani [mailto:[EMAIL PROTECTED]
Sent: Tue 6/27/2006 6:53 PM
To: axis-user@ws.apache.org
Subject: WSDL2Java and one-way binding


I'm using Axis 1.4 WSDL2Java to generate skeletons for a webservice from a WSDL 
doc.
 
The source WSDL (generated by .NET) uses one-way binding - it just specifies a 
 element, no  element.
 
However, the generated skeleton code seems to be including a response to the 
request.
This is proven by checking the deployed skeleton's WSDL (deployed in tomcat, 
using
the axis war) - it contains   and  messages. Also, when
I run the .NET client against the deployed skeleton, the client complaints 
about the
unexpected entity body in the response.
 
Any comments/help ?
 
thanx
-jm
<>-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2 current SVN 6/28] services.list needed ?

2006-06-28 Thread Soactive Inc
As far as I know, services can be deployed and accessed successfully without this at least with Axis 2 1.0. I am not sure if module service changes things.RonOn 6/28/06, 
Kinichiro Inoguchi <[EMAIL PROTECTED]> wrote:
Hi,Is services.list in services folder needed at current SVN ?To add new service to TOMCAT_HOME/webapps/axis2/WEB-INF/services/ ,I just dropped my aar file to this folder, before.But with current SVN build version of Axis2,
I need to add aar file name to services.list, after dropping aar file.New feature "module service" affects this ?Regards,kinichiro__
Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection aroundhttp://mail.yahoo.com-
To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: passing objects of subtypes

2006-06-28 Thread Xinjun Chen

As far as I know, xsi:type attribute is only added for rpc style
service invocation.
I never see xsi:type in document style service. If Axis2 do this way,
it means the serializer will add the xsi:type attribute. So does it
mean that the serializer/deserializer is Axis2 dependent?

By the way, when InterfaceType is used, what I am expecting is that
abstract attribute is set to true like the one in
http://www.w3.org/TR/xmlschema-0/#abstract, so that xsi:type attribute
is forced in the XML instance.

But in the WSDL generated by Java2WSDL does not contains a line like


Can any Axis2 guru explain that?


Regards,
Xinjun


On 6/28/06, Joshua Fox <[EMAIL PROTECTED]> wrote:

Xinjun,


> At runtime, how can Axis2 decide the actual type of the input object?

It works because Axis2 is smart enough to add Runtime Type Information to
the XML. See xsi:type attributes in the sample below. This is not the usual
appearance of the XML in document-literal/wrapped SOAP calls. Indeed, Axis
seems to add the xsi:type tags even where not strictly needed.

Joshua





http://www.w3.org/2001/XMLSchema-instance "

xmlns:xsd="http://www.w3.org/2001/XMLSchema";

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ ">







Toyot

2

7











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



cannot generate axis2 client stubs

2006-06-28 Thread Nicolas Urien
Hello,I have successfully deployed a very simple aar archive ("hello world") into my axis tomcat server.I started from an implementation class and so I didn't write any wsdl file.I cannot generate the axis2 client stubs. Here is the exception I get (The entity "nbsp" was referenced, but not declared.) when executing :WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/ SimpleService?wsdl -o c:\axis2bis\bin\Using AXIS2_HOME:   C:\axis2bisUsing JAVA_HOME:    C:\Program Files\Java\jdk1.5.0_06Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL    at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:125)    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: WSDLException: faultCode=PARSER_ERROR: Parser SAX Error: Fatal Error: URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp"was referenced, but not declared.: org.xml.sax.SAXException: Fatal Error: URI=http://localhost.urssaf.fr:8080/axis2/services/ Line=32: The entity "nbsp" was referenced, but not declared.    at org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:361)    at
 com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:218)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)    at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)    at com.sun.org.apache.xerces.internal.impl.XMLScanner.reportFatalError(XMLScanner.java:1438)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1332)    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1756)    at
 com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:368)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:834)    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)    at
 org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:178)    at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:223)    at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:206)    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:274)    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:108)    at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)    at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)    at
 org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:280)    at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:108)    ... 2 moreC:\axis2bis\bin>WSDL2Java.bat -uri http://localhost.urssaf.fr:8080/axis2/services/ SimpleService?wsdl -o c:\axis2bis\bin\What should I do please??cheersExtract of the generated WSDL file:



   


   

   

- 


- 


   

   
  wsdl:operation>
  wsdl:portType>

- 


   

- 


   

- 


   
  wsdl:input>

- 


   
  wsdl:output>
  wsdl:operation>
  wsdl:binding>

- 


  

RE: Axis fault....where to begin...resolved

2006-06-28 Thread Taylor, Clarence B
I though I would post this out of completeness, just in case anyone else
ever has a similar problem, perhaps my bread crumbs will help.

The bottom line, is that my build environment compiled the java classes
as 1.5, whereas my deployment environment was running java version 1.4.


I got no indication of this until I started paring down the wsdd file,
by incrementally removing first the array-mapping, then the
type-mapping.  It then deployed, but still no indications.  Then when I
tried to do a list services from the axis web page where it says, and
now some services, it came back with nothing.  Then when I looked in
stdout for the tomcat server in my deployment site I saw the following

- Servlet.service() for servlet AxisServlet threw exception

java.lang.UnsupportedClassVersionError:
com/ca/zos/jobs/server/ExecutingJobsSoapBindingSkeleton (Unsupported
major.minor version 49.
0)


I knew from some earlier pain, that this meant I had to provide the
target=1.4 on my javac when I compiled my classes on my development
environment (I had switched to Ant to build the deployment, instead of
just copying the classes from my eclipse environment).

Brad Taylor

-Original Message-
From: Taylor, Clarence B [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 3:54 PM
To: axis-user@ws.apache.org
Subject: Axis faultwhere to begin

I am getting the following axis fault while attempting to deploy via the
admin client and I am not sure where to begin to figure out what is
wrong.  I am not sure how much detail would be helpful, so I'll post the
following 1. the output from the deploy (the axis fault) 2. The
wsdd.deploy file 3. not sure what else?

1.) the output from the deploy

Exception: AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.reflect.InvocationTargetException
 faultActor: 
 faultNode: 
 faultDetail: 

2.) the wsdd.deploy file
Here is the deploy.wsdd file









http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

  

  
  
  
  
  
  
  
  
  
  
  http://schemas.xmlsoap.org/soap/encoding/";
  />

  http://schemas.xmlsoap.org/soap/encoding/";
  />
  
 

Thank you

Brad Taylor

-
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 v1.0: Cannot add property to Service Context from Security phase

2006-06-28 Thread D P
Hello all:I'm writing an authentication handler in the Security inflow phase.  (clients don't support ws-security).  If authentication is successful, intent was to generate a unique id that is set in the soap reply header via an outflow phase handler.  Clients would reuse this unique id as an authentication token on subsequent requests. I tried to create the unique id in the security inflow phase handler and save to the service context via setProperty(), but the service context is null. Even if I delay id creation until the outflow handler, the inflow handler would still have to notify the outflow handler that authentication was successful by passing some sort of value, which I can't save in the service context.  
1.  Am I correct in assuming the reason why Service context is null is that it is initialized in later in flow phases?2.  Can anyone suggest a solution on how to pass the unique id to an outflow handler?
TIA. DP


[Axis2] Data binding error

2006-06-28 Thread Desiree Hilbring
Hello,

I am experiencing the following Data binding error with a Service
generated from the attached files
with Axis2. I do not understand since my client is expexting an
OA_SearchRequest.

[java] CAT Client...
 [java] url http://localhost:8082/axis2/services/cat
 [java] stub [EMAIL PROTECTED]
 [java] vor search
 [java] org.apache.axis2.AxisFault: Data binding error
 [java] at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO
peration.java:287)
 [java] at org.example.types.CatStub.search(CatStub.java:346)
 [java] at org.client.CATClient.main(CATClient.java:51)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
 [java] at java.lang.reflect.Method.invoke(Method.java:324)
 [java] at
org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
 [java] at
org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
 [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
 [java] at
org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
 [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
 [java] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
 [java] at org.apache.tools.ant.Task.perform(Task.java:364)
 [java] at org.apache.tools.ant.Target.execute(Target.java:341)
 [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
 [java] at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
 [java] at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
 [java] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAnt
Runner.java:387)
 [java] at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAn
tRunner.java:136)
 [java] Caused by: java.lang.Exception: org.apache.axis2.AxisFault:
Data binding error; nested exception is:
 [java] java.lang.RuntimeException: Data binding error
 [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
 [java] at
org.example.types.CatMessageReceiverInOut.invokeBusinessLogic(CatMessage
ReceiverInOut.java:139)
 [java] at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst
ractInOutSyncMessageReceiver.java:37)
 [java] at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
 [java] at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:284)
 [java] at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 [java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
 [java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
 [java] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
 [java] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
 [java] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
 [java] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
 [java] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
 [java] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
 [java] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
 [java] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
 [java] at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
 [java] at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
 [java] at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
 [java] at java.lang.Thread.run(Thread.java:595)
 [java] Caused by: java.lang.RuntimeException: Data binding error
 [java] at
org.example.types.CatMessageReceiverInOut.fromOM(CatMessageReceiverInOut
.java:549)
 [java] at
org.example.types.CatMessageReceiverInOut.invokeBusinessLogic(CatMessage
ReceiverInOut.java:69)
 [java] ... 20 more
 [java] Caused by: org.apache.xmlbeans.XmlException: error: The
document is not a
[EMAIL PROTECTED]://localhost:8082/axis2/services/cat:
document element local name mismatch expected
OA_GetMetaInformationRequest got OA_SearchRequest
 [java] at
org.apache.xmlbeans.impl.store.Locale.verifyDocumentType(Locale.java:452
)
 [java] at
org.apache.xmlbeans.impl.store.Locale.autoTypeDocument(Locale

Re: [Axis2,Sandesha2]MTOM/XOP + WSRM

2006-06-28 Thread Mancinelli Elodie

Mancinelli Elodie wrote:

Sorry, I want to precise my request. When I observe with TCPMon the 
soap message, the differents messages of WSRM's protocole are created 
(CreateSequence, CreateSequenceResponse, Message, Acknowldgement and 
TerminateSequence). These messages are correct. The problem is on the 
server after messages.


Thanks,

Regards,
Elodie


Mancinelli Elodie wrote:


Hi all,

I try to create an OneWay method which supports WSRM and an attachment.
My service is really simple, it's only a "println".
The method runs successfully when there is only the WSRM 
implementation, but when I add the attachement part, I have an server 
error:


org.apache.sandesha2.SandeshaException: Data binding error; nested 
exception is:
   java.lang.RuntimeException: Data binding error; nested 
exception is:
   org.apache.axis2.AxisFault: Data binding error; nested 
exception is:

   java.lang.RuntimeException: Data binding error
   at 
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
Caused by: org.apache.axis2.AxisFault: Data binding error; nested 
exception is:

   java.lang.RuntimeException: Data binding error
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50) 

   at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34) 

   at 
org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)

   at org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
   at 
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)

Caused by: java.lang.RuntimeException: Data binding error
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174) 

   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46) 


   ... 4 more
Caused by: org.apache.axiom.om.OMException: 
java.lang.NullPointerException
   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
   at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365) 

   at 
org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154) 

   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231) 

   at 
fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128) 

   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145) 


   ... 5 more
Caused by: java.lang.NullPointerException
   at 
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737) 

   at 
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) 

   at 
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710) 


   at org.apache.coyote.Request.doRead(Request.java:423)
   at 
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283) 

   at 
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
   at 
org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
   at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104) 


   at java.io.FilterInputStream.read(FilterInputStream.java:66)
   at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
   at 
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49) 

   at 
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
   at 
javax.mail.internet.InternetHeaders.(InternetHeaders.java:92)

   at javax.mail.internet.MimeBodyPart.(MimeBodyPart.java:59)
   at 
org.apache.axiom.attachments.PartOnMemory.(PartOnMemory.java:31)
   at 
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
   at 
org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359) 

   at 
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
   at 
org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274) 

   at 
org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151) 

   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341) 

   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368) 

   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)


My client is:

public static void testSubmitOneWayWSRM() throws Exc

RE: AXIS Hangs in JBoss 4.0.3SP1

2006-06-28 Thread Walsh, Richard \(Richard\)



Hi,
I have deployed AXIS 
in JBoss 4.0.3SP1 with a number of Web Services. I  did the same under 
JBoss 4.0.2 with no problems - however now AXIS seems to hang using the exact 
same code. Below is a list of the Logs I capture from AXIS. Anyone any 
ideas.
thanks,
Richie.
 
2006-06-28 
16:07:42,421 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
getBundle(org.apache.axis,org.apache.axis.i18n,resource,null,...)2006-06-28 
16:07:42,441 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
loadBundle: Ignoring MissingResourceException: Can't find bundle for base name 
org.apache.axis.resource, locale en_IE2006-06-28 16:07:42,441 [main] DEBUG 
org.apache.axis.i18n.ProjectResourceBundle - Created 
org.apache.axis.i18n.resource, linked to parent null2006-06-28 16:07:42,441 
[main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
getBundle(org.apache.axis,org.apache.axis.utils,resource,null,...)2006-06-28 
16:07:42,441 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
loadBundle: Ignoring MissingResourceException: Can't find bundle for base name 
org.apache.axis.utils.resource, locale en_IE2006-06-28 16:07:42,441 [main] 
DEBUG org.apache.axis.i18n.ProjectResourceBundle - loadBundle: Ignoring 
MissingResourceException: Can't find bundle for base name 
org.apache.axis.resource, locale en_IE2006-06-28 16:07:42,441 [main] DEBUG 
org.apache.axis.i18n.ProjectResourceBundle - Root package not found, cross link 
to org.apache.axis.i18n.resource2006-06-28 16:07:42,441 [main] DEBUG 
org.apache.axis.i18n.ProjectResourceBundle - Root package not found, cross link 
to org.apache.axis.i18n.resource2006-06-28 16:07:42,441 [main] DEBUG 
org.apache.axis.i18n.ProjectResourceBundle - 
org.apache.axis.i18n.resource::handleGetObject(engineFactory)2006-06-28 
16:07:42,441 [main] DEBUG 
org.apache.axis.configuration.EngineConfigurationFactoryFinder - Got 
EngineFactory: 
org.apache.axis.configuration.EngineConfigurationFactoryDefault2006-06-28 
16:07:42,451 [main] DEBUG org.apache.axis.AxisEngine - Enter: 
AxisEngine::init2006-06-28 16:07:42,651 [main] DEBUG 
org.apache.axis.i18n.ProjectResourceBundle - 
org.apache.axis.i18n.resource::handleGetObject(attachEnabled)2006-06-28 
16:07:42,651 [main] DEBUG org.apache.axis.utils.JavaUtils - Attachment support 
is enabled?  true2006-06-28 16:07:42,681 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class java.lang.String, 
{http://xml.apache.org/xml-soap}PlainText)2006-06-28 16:07:42,761 [main] 
DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
org.apache.axis.i18n.resource::handleGetObject(oddDigits00)2006-06-28 
16:07:42,761 [main] DEBUG org.apache.axis.i18n.ProjectResourceBundle - 
org.apache.axis.i18n.resource::handleGetObject(badChars01)2006-06-28 
16:07:42,831 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class java.awt.Image, 
{http://xml.apache.org/xml-soap}Image)2006-06-28 16:07:42,831 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class javax.mail.internet.MimeMultipart, 
{http://xml.apache.org/xml-soap}Multipart)2006-06-28 16:07:42,841 [main] 
DEBUG org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - 
Enter/Exit: JAFDataHandlerDeserializerFactory(interface 
javax.xml.transform.Source, 
{http://xml.apache.org/xml-soap}Source)2006-06-28 16:07:42,841 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class org.apache.axis.attachments.OctetStream, 
{http://xml.apache.org/xml-soap}octetstream)2006-06-28 16:07:42,841 [main] 
DEBUG org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - 
Enter/Exit: JAFDataHandlerDeserializerFactory()2006-06-28 16:07:42,961 
[main] DEBUG org.apache.axis.AxisEngine - Exit: AxisEngine::init2006-06-28 
16:07:43,011 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class java.lang.String, 
{http://xml.apache.org/xml-soap}PlainText)2006-06-28 16:07:43,011 [main] 
DEBUG org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - 
Enter/Exit: JAFDataHandlerDeserializerFactory(class java.awt.Image, 
{http://xml.apache.org/xml-soap}Image)2006-06-28 16:07:43,011 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeserializerFactory(class javax.mail.internet.MimeMultipart, 
{http://xml.apache.org/xml-soap}Multipart)2006-06-28 16:07:43,011 [main] 
DEBUG org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - 
Enter/Exit: JAFDataHandlerDeserializerFactory(interface 
javax.xml.transform.Source, 
{http://xml.apache.org/xml-soap}Source)2006-06-28 16:07:43,011 [main] DEBUG 
org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory - Enter/Exit: 
JAFDataHandlerDeseri

[Axis2 current SVN 6/28] services.list needed ?

2006-06-28 Thread Kinichiro Inoguchi
Hi,
Is services.list in services folder needed at current SVN ?

To add new service to TOMCAT_HOME/webapps/axis2/WEB-INF/services/ , 
I just dropped my aar file to this folder, before.

But with current SVN build version of Axis2,
I need to add aar file name to services.list, after dropping aar file.

New feature "module service" affects this ?

Regards,
kinichiro

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



[Axis2,Sandesha2]MTOM/XOP + WSRM

2006-06-28 Thread Mancinelli Elodie

Hi all,

I try to create an OneWay method which supports WSRM and an attachment.
My service is really simple, it's only a "println".
The method runs successfully when there is only the WSRM implementation, 
but when I add the attachement part, I have an server error:


org.apache.sandesha2.SandeshaException: Data binding error; nested 
exception is:

   java.lang.RuntimeException: Data binding error; nested exception is:
   org.apache.axis2.AxisFault: Data binding error; nested exception is:
   java.lang.RuntimeException: Data binding error
   at 
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:199)
Caused by: org.apache.axis2.AxisFault: Data binding error; nested 
exception is:

   java.lang.RuntimeException: Data binding error
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:50)
   at 
org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
   at 
org.apache.axis2.engine.AxisEngine.resumeReceive(AxisEngine.java:497)

   at org.apache.axis2.engine.AxisEngine.resume(AxisEngine.java:543)
   at 
org.apache.sandesha2.workers.InOrderInvoker.run(InOrderInvoker.java:189)

Caused by: java.lang.RuntimeException: Data binding error
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:174)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.invokeBusinessLogic(PrestoSvcMessageReceiverInOnly.java:46)

   ... 4 more
Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException
   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:254)
   at 
org.apache.axiom.om.impl.llom.OMStAXWrapper.getTextCharacters(OMStAXWrapper.java:365)
   at 
org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Locale.java:1154)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:843)
   at 
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:826)
   at 
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:231)
   at 
fr.gouv.finances.dgme.presto.SubmitOneWayDocument$Factory.parse(SubmitOneWayDocument.java:128)
   at 
fr.gouv.finances.dgme.presto.PrestoSvcMessageReceiverInOnly.fromOM(PrestoSvcMessageReceiverInOnly.java:145)

   ... 5 more
Caused by: java.lang.NullPointerException
   at 
org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:737)
   at 
org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:777)
   at 
org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)

   at org.apache.coyote.Request.doRead(Request.java:423)
   at 
org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:283)
   at 
org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:371)
   at 
org.apache.catalina.connector.InputBuffer.readByte(InputBuffer.java:292)
   at 
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:104)

   at java.io.FilterInputStream.read(FilterInputStream.java:66)
   at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
   at 
org.apache.axiom.attachments.MIMEBodyPartInputStream.read(MIMEBodyPartInputStream.java:49)
   at 
javax.mail.internet.InternetHeaders.load(InternetHeaders.java:106)
   at 
javax.mail.internet.InternetHeaders.(InternetHeaders.java:92)

   at javax.mail.internet.MimeBodyPart.(MimeBodyPart.java:59)
   at 
org.apache.axiom.attachments.PartOnMemory.(PartOnMemory.java:31)
   at 
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:451)
   at 
org.apache.axiom.attachments.Attachments.getNextPart(Attachments.java:359)
   at 
org.apache.axiom.attachments.Attachments.getPart(Attachments.java:324)
   at 
org.apache.axiom.attachments.Attachments.getDataHandler(Attachments.java:274)
   at 
org.apache.axiom.om.impl.mtom.MTOMStAXSOAPModelBuilder.getDataHandler(MTOMStAXSOAPModelBuilder.java:151)
   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getDataHandler(OMTextImpl.java:341)
   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getInputStream(OMTextImpl.java:368)
   at 
org.apache.axiom.om.impl.llom.OMTextImpl.getText(OMTextImpl.java:238)


My client is:

public static void testSubmitOneWayWSRM() throws Exception {

ConfigurationContext configContext = 
ConfigurationContextFactory.createConfigurationContextFromFileSystem(CLIENT_REPO_PATH,axis2_xml);

ServiceClient sender = new ServiceClient (configContext,null);


OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace(namespace, "m");
OMElement payload = fac.createOMElement("submitOneWay", omNs);
   

Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread john andersen
Hi Deepal,Good stuff!   I downloaded the June 27 snap and the duplicate element did not exist after running Java2WSDL.  I'll test further with a more robust implementation in the coming days.Do you still need a jira issue?  I thought that Jim Bender already created jira-807 for this issue.
Thanks,john andersenOn 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
Xinjun Chen wrote:> Hi Deepal,>> I encountered the same problem as I posted in Joshua's thread on
> operation inheritance. Could you also have a look at that thread?>> Could you tell me the minimal modules I need to rebuild? only codegen> and wsdl or all the rest?hmm , the best thing is get an update and rebuild the project .
>>> Regards,> Xinjun>> On 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:>>> I have already fixed this , any possibility of testing with current SVN
>> or nightly build. Davanum Srinivas wrote: > John,>> >>> > Could i pester you to please open up a JIRA issue?>> >>> > thanks,
>> > dims>> >>> > On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:>> >
>> >> Hi Deepal,>>  >> I've butted my head against the same issue during the past few weeks>> >> (most>> >> recently with the June 19 Axis2 snap) and have had to resort to
>> >> fixing the>> >> wsdl with a perl script.  Rather easy to reproduce with 2 source>> files:>>  >> test.MyService.java>> >> 
>> >> package test;>> >> import test.MyData;>> >> public class MyService>> >> {>> >> private MyData myData = new MyData();
>>  >> public MyData retrieveMyData()>> >> {>> >> return myData;>> >> }
>> >> }>>  >> Test.MyData.java>> >> ###>> >> package test;>> >> public class MyData
>> >> {>> >> private String myString = null;>> >> public String getMyString() { return this.myString; }>> >> public void setMyString(String arg) { 
this.myString =>> >> arg; }>> >> }>>   >> I ran:>> >> ..\bin\java2wsdl.bat -cp . -sn TEST -l>> >> 
http://localhost:8080/axis2/services/Logger -st wrapped -cn>> >> test.MyService>> >> (and I did try different styles - same result)
>>  >> Which resulted in the following wsdl with the element "MyData">> defined>> >> twice:>> >> ###>> >> wsdl:definitions xmlns:wsdl="
http://schemas.xmlsoap.org/wsdl/">> >> xmlns:axis2="http://test">> >> xmlns:soap12="
http://schemas.xmlsoap.org/wsdl/soap12/">> >> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/">> >> xmlns:mime="
http://schemas.xmlsoap.org/wsdl/mime/">> >> xmlns:ns1="http://test/xsd">> >> xmlns:soap="
http://schemas.xmlsoap.org/wsdl/soap/">> >> targetNamespace="http://test">>> >>   
>> >> http://www.w3.org/2001/XMLSchema">> >> xmlns:ns="http://test/xsd
" targetNamespace="http://test/xsd">> >> elementFormDefault="unqualified" attributeFormDefault="unqualified">>> >>   
>> >>   >> >> >> >>   
>> >> >> >>   >> >>   >> >> 
>> >>   >> >>   >> >> >> >>   
>> >> >> >>   >> >> >> >>   
>> >>   >> >> >> >>   
>> >> >> >>   >> >> >> >>   >> >>   
>> >> >> >>   >> >>   
>> >> >> >>   >> >>   
>> >> >> >>   >> >>   
>> >> >> >>   >> >>   >> >> >> >> transport="http://schemas.xmlsoap.org/soap/http" />>> >> 
>> >>   >> soapAction="urn:retrieveMyData" />>> >>   >> >> http://test" use="literal" />>> >>   >> >>   >> >> http://test" use="literal" />>> >>   >> >> >> >>   >> >>   
>> >> >> >> transport="http://schemas.xmlsoap.org/soap/http" />>> >> 
>> >>   >> >> soapAction="urn:retrieveMyData" />>> >>   >> >> http://test" use="literal" />>> >>   >> >>   >> >> http://test" use="literal" />>> >>   >> >> >> >>   >> >>   
>> >> >> name="TESTSOAP11port">>> >>   >> >> location="
http://localhost:8080/axis2/services/LoggerTEST" />>> >> >> >> >> name="TESTSOAP12port">
>> >>   >> >> location="http://localhost:8080/axis2/services/LoggerTEST" />>> >> 
>> >>   >> >> >>      >>
>> >> -Original Message->> >> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]]>> >> Sent: Tuesday, June 27, 2006 12:41 AM
>> >> To: axis-user@ws.apache.org>> >> Subject: Re: The duplicate type is happening here for the WSDL file>>  >> Hi Jim;
>> >> can you please provide a way to recreate the issue , I mean any>> >> possibility of sending java class that you use :)>>  >> Jim Bender wrote:>> >>
>> >> > I don't know the precise step, but by the time that we leave the>> >> > generateOM() method in the Java2OMBuilder, there are two complex>> type>> >> > definitions in the WSDL.
>> >> >>> >> >public OMElement generateOM() throws Exception {>> >> >   

[axis2] Web service library for database project

2006-06-28 Thread stz . c . wohlfahrt

Hi,

I am currently planning a project concerning
with storing composed objects in a database.
(E.g. an object contains some simple
attributes (double, String,...) but also lists/array of objects
of other classes -> could be easily
represented as XML tree).

Therefore, an application server should
provide a web service (implemented in Java) to
store and retrieve the object data to
a database server. Hence, the web service provides
a standard interface independet of the
database implementation in the background.

Requirements to the clients are:
- It should be possible to use either
C++ or Java
- Clients should run on Windows and
Linux

Until now, I have investigated Axis
1.x, Axis2 and JWSDP.

Interaction works quite well with Axis
1.x and JWSDP using the JAX-RPC and JAX-WS model.

Also, it seems to be possible to consume
an Axis2 JAX-RPC service with JWSDP. Although, there
are some warnings  during generation
of the stubs out of the WSDL document generated by Axis2.

Most sources I read state that JAX-RPC
is deprecated for new projects. Instead, JAX-WS or the
Axis2 AXIOM model are recommended. Furthermore,
Axis2 is considered to work much faster
compared to Axis 1.x and JWSDP.

I have the following concerns using
Axis2 with so called raw XML data:

1.)
Serialisation/Desrialisation in both
the client and the server works independent. Hence, the
client for instance may send XML data
that is not needed by the server or miss some elements.
Is this a convenient way to transfer
data?
From my point of view, it is much safer
to use data binding which defines the schema of data.
But this leads to a JAX-RPC style service...

2.)
It seems to be only possible to connect
to the raw XML service with clients using Axis2.
Is this true?
In order to implement C++ clients, I
then have to use the Axis2/C library, which seems to be still under strong
development and may not be well suited
for productive use.

However, I want to use a state-of-the-art
technology and not stick to somehow deprecated standards.

Can you give me some hints to this subject?
Do you think that for the given problem
it is sufficient to use JAX-RPC or switch to AXIOM?
I found it very hard to find documentation
that goes deeper as the Axis User Guide. Any pointers?

Kind regards,

Christoph


Re: [Axis2] Flash Not Compatible with Axis2

2006-06-28 Thread Luke DeWitt

Hi again Ajith,

Before reporting a bug, I want to make sure there actually is one. I used 
Ethereal to see what was going on, and I believe that I have a problem in 
Flash and one in Axis now.


My Flash problem (I believe) is now solved, but in order to be sure I need 
to figure out the Axis problem. When I navigate to my 'version?wsdl' file on 
my local machine, I am noticing something odd...



−

location="http://localhost/axis2/services/version:localhost/axis2/services/version"/>


−

location="http://localhost/axis2/services/version:localhost/axis2/services/version"/>


−

location="http://localhost/axis2/rest/version:localhost/axis2/rest/version"/>




I cannot understand why everything in there is being repeated... When I go 
to the Tungsten servers you pointed me to yesterday, they did not have this. 
How would I go about fixing this in my Axis2 so that I wouldn't be getting 
double locations?


Thank you,

--LD


- Original Message - 
From: "Ajith Ranabahu" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 28, 2006 9:13 AM
Subject: Re: [Axis2] Flash Not Compatible with Axis2



Hi Luke,
Like I said in reply to your earlier mail what we need when trying to
solve this problem is the message that was sent by flash. If you care
to open jira issue [1]  with the necessary messages it will be a great
help for us to improve Axis2.

Ajith

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

On 6/28/06, Luke DeWitt <[EMAIL PROTECTED]> wrote:



Hello,

As some may have seen, I was posting today a lot about trying to get an
Axis2 WS to be called from a Flash document I was working on. After a lot 
of

suggestions (thank you to those of you who made suggestions), I still
couldn't get it to work.

Finally, I got pretty ticked off and I installed Axis v1.4. I pretty much
changed nothing in my Action Script code except the name of the WS from
'version' to 'Version' and 'axis2' to 'axis' and tested my movie. It 
worked

perfectly.

I'm not sure why it would work in Axis and not Axis2, I am not sure what
kind of changes would have changed the XML so much that it wouldn't work,
but I wanted to bring it to the attention of people who could (hopefully) 
do

something about it.

Thank you,

--LD



--
Ajith Ranabahu

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



[Axis v1.4] deploying with Basic Authentication turned on?

2006-06-28 Thread Artur Kraft

Hello,

in Tomcat I turned on BASIC Authentication to protect the use of all 
axis services. Since then I always get a HTTP-Error 401/Unauthorized. 
How can I provide username and password to deploy again to axis?


I tried the -uUserName -wPassword parameters, but they seem to belong 
rather to the axis-file "user.lst" than providing the tomcat access user 
data.


Any suggestions?


My environment:
Axis v1.4
Tomcat v5.5.17
Java v1.5.0_06
WinXP


kind regards,
Artur

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



RE: [1.3] Handling large values

2006-06-28 Thread Ted Jones



Have you 
tried increasing the heap size on your server?


From: Simon McMahon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 7:52 PMTo: 
axis-user@ws.apache.orgSubject: [1.3] Handling large 
values

Hi,
 
Axis throws various faults, including out-of-memory, when I pass a large 
value through a web service - e.g. a 5 Mb String.
 
I dont have many alternatives because the firewall only allows http. 
Otherwise I would just use FTP.
 
Any suggestions on how to get Axis 1.x to handle large messages? I 
dont want to try Axis 2 (again) because I already tried this some time 
ago and it required too many changes to my application.
 
Regards,
 
Simon.
 
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180*This 
email, including any attachments sent with it, isconfidential and for the 
sole use of the intended recipient(s).This confidentiality is not waived or 
lost, if you receive it andyou are not the intended recipient(s), or if it 
is transmitted/received in error.Any unauthorised use, alteration, 
disclosure, distribution orreview of this email is strictly prohibited. The 
informationcontained in this email, including any attachment sent 
withit, may be subject to a statutory duty of confidentiality if 
itrelates to health service matters.If you are not the intended 
recipient(s), or if you havereceived this email in error, you are asked to 
immediatelynotify the sender by telephone collect on Australia+61 1800 
198 175 or by return email. You should alsodelete this email, and any 
copies, from your computersystem network and destroy any hard copies 
produced.If not an intended recipient of this email, you must not 
copy,distribute or take any action(s) that relies on it; any form 
ofdisclosure, modification, distribution and/or publication of thisemail 
is also prohibited.Although Queensland Health takes all reasonable steps 
toensure this email does not contain malicious software,Queensland 
Health does not accept responsibility for theconsequences if any person's 
computer inadvertently suffersany disruption to services, loss of 
information, harm or isinfected with a virus, other malicious computer 
programme orcode that may occur as a consequence of receiving 
thisemail.Unless stated otherwise, this email represents only the 
viewsof the sender and not the views of the Queensland 
Government.


Re: [Axis2] How to add header info to the response message

2006-06-28 Thread Michele Mazzucco
Hi Eran,

yes, I need to add some headers from the service and I'm using
RawXMLINOutMessageReceiver. Should it work if I do it into
setOperationContext() when
msgCtx = opctx.getMessageContext(WSDLConstants.MESSAGE_LABEL_OUT_VALUE)
is not null (i.e. the message is going out)? Or do I need a handler?


Thanks,
Michele

Eran Chinthaka wrote:
> Michele Mazzucco wrote:
>> Hi all,
>>
>> is it possible to add some informations into the (response) SOAP header
>> from the service side (I'm assuming the operation to be out-in)? In
>> other words, given the echo() operation, can the service add some data
>> into the (outgoing) soap header (please note that in this scenario no
>> ServiceClient nor OperationClient are created)?
> 
> IIUC, you wanna add some headers from the service itself?
> 
> Which message receiver are you using? Is it a custom message receiver
> you got after code gen or a built in one from Axis2?
> 
> - Chinthaka
> 

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



Re: [Axis2] How to add header info to the response message

2006-06-28 Thread Eran Chinthaka
Michele Mazzucco wrote:
> Hi all,
> 
> is it possible to add some informations into the (response) SOAP header
> from the service side (I'm assuming the operation to be out-in)? In
> other words, given the echo() operation, can the service add some data
> into the (outgoing) soap header (please note that in this scenario no
> ServiceClient nor OperationClient are created)?

IIUC, you wanna add some headers from the service itself?

Which message receiver are you using? Is it a custom message receiver
you got after code gen or a built in one from Axis2?

- Chinthaka



signature.asc
Description: OpenPGP digital signature


How to publish WSDL for services of a ServiceGroup

2006-06-28 Thread donnerdrummel2000-mailing
Hi,

the problem I habe is as followes: Trying to publish a group of services using 
the 'servicegroup'-Tag in services.xml descriptor I did not found any chance to 
provide some wsdl files in the aar archive in that way, that every service is 
able to provide a wsdl using his special file from META-INF directory. Are 
there any consideration I've to watch for or is there a special tag in 
servicedescription to let each service in a service group know his wsdl file?

Mayby someone can help me with it,

thanks a lot
Ted



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



Re: [Axis 1.2.1] Adding Attachment

2006-06-28 Thread Anne Thomas Manes
See http://marc.theaimsgroup.com/?l=axis-user&m=104429890926603&q=p3On 6/28/06, 
Simon McMahon <[EMAIL PROTECTED]> wrote:





I need to do this too.
 
How does the server side get the attachment?
I use Axis 1.3 for both client & server.
 
Regards,
 
Simon.
 
Simon McMahon
 
Work: (07) 31311420Mobile: (043) 2294180
>>> [EMAIL PROTECTED] 06/27/06 11:21pm 
>>>Hi.First of all thanks for your help.I have done in this 
way and it works...but for doing this i must change the java classes generated 
by wsdl2java...i'ld like to know if there is a way to avoid this 
modifications.Thanks to all,Angelo.-- Initial Header 
---From  : "Qinjian Jian" 
[EMAIL PROTECTED]To  
: 
axis-user@ws.apache.orgCc  
:Date  : Tue, 27 Jun 2006 09:16:48 
-0400Subject : RE: [Axis 1.2.1] Adding 
Attachment>> Do something like 
this:>> String filePath="C:\\temp\\example.txt";> 
DataHandler dh = new DataHandler(new 
FileDataSource(filePath));> 
AttachmentPart part = new> 
org.apache.axis.attachments.AttachmentPart();> 
part.setDataHandler(dh);> 
call.addAttachmentPart(part);>> Hope this helps>> 
Thanks>> Tim Jian> Momentum systems, Inc.> 
-Original Message-> From: Angelo Immediata [mailto:[EMAIL PROTECTED]> Sent: 
Tuesday, June 27, 2006 7:22 AM> To: Axis Axis> Subject: [Axis 
1.2.1] Adding Attachment>> Hi all. I use Axis 1.2.1; i have 
generated some Web service clients by> using the wsdl2java tool. Well i 
need now to add some attachments to the> Call..how can i do? I have seen 
the Locator class and other classes but> i'm not able to understand how 
to set the attachments... i have seen> that in the stub class usually 
there is this a similar code:>> if 
(super.cachedEndpoint == null) {>   
throw new org.apache.axis.NoEndPointException();> 
}> org.apache.axis.client.Call _call = 
createCall();> 
_call.setOperation(_operations[0]);> 
_call.setEncodingStyle(null);> 
_call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR,> 
Boolean.FALSE);> 
_call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS,>   
Boolean.FALSE);>> 
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS> 
);> _call.setOperationName(new 
javax.xml.namespace.QName(> 
"http://siporservice.sipor.it/", 
"execute"));>> 
setRequestHeaders(_call);> 
setAttachments(_call);>> but how can i specify the Attachment to 
the _call object? How can this> code undertand what files to 
add?>> Thanks to all.> 
Angelo. 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional 
commands, e-mail: 
[EMAIL PROTECTED]> NOTICE: 
This message (including any attachments) from Momentum Systems, Inc. contains 
information that is PRIVILEGED and CONFIDENTIAL.  If you are not an 
intended recipient, you are hereby notified that any dissemination of this 
message is strictly prohibited.  If you have received this message in 
error, please do not read, copy or forward this message.  Please 
permanently delete all copies and any attachments and notify the sender 
immediately by reply email or by calling our Office at 
703.740.9300.>> 
-> 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]

*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.

Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited.  The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.

If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email.  You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.

Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to servi

Re: axis 1.2. Problem when undeploy a service.

2006-06-28 Thread Anne Thomas Manes
The "undeployment" no such operation error is in response to your request to undeploy using the axis-admin ant task. Look for your problem in the ant task.As for your WSDL, if you switch to use="literal" you must redefine your arrays -- you can no longer use soap encoding arrays. For example, 
change this: 

            
                
           
        
           
            
                    
                
            to this:

            
                           
      minOccurs="0" maxOccurs="unbounded"/>
                    
                
            AnneOn 6/28/06, Juan Alvarez <[EMAIL PROTECTED]> wrote:
Hello all. I have an error attempting to undeploy a service. I suppose
this problem arise when I changed the 'use' property from 'encoded' to
'literal' in the use of java2wsdl.
This is the error I have with axis-admin ant task attempting to undeploy my service:

*
BUILD FAILED
E:\clases-java\research\WSResiberPruebas\build.xml:56: axis-admin failed with  {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException No such operation 'undeployment'

*


I don't have an operation called 'undeployment'. 
Here my wsdl file generated with java2wsdl and next the error when attempting undeploy the service. Thanks in advance.


http://impl.wsresiber.emision.iberia.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://impl.wsresiber.emision.iberia.com"
   
xmlns:intf="http://impl.wsresiber.emision.iberia.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://ints.wsresiber.emision.iberia.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="

http://www.w3.org/2001/XMLSchema">

    
        http://ints.wsresiber.emision.iberia.com"
xmlns="http://www.w3.org/2001/XMLSchema">
            http://schemas.xmlsoap.org/soap/encoding/" />


            
                
           
        
           
        
                
            
            
                
           
        
           
        
                
            
            
                
           
        
           
        
           
        
                
            
            
                
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
                
            
            
                
           
        
           
        
           
        
                
            
            
                
           
        
                
            
            
                
           
        
           
        
                
            
            
                
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
                
            
        
        http://impl.wsresiber.emision.iberia.com"
xmlns="http://www.w3.org/2001/XMLSchema">
            http://schemas.xmlsoap.org/soap/encoding/" />


            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
        
    

    

        

    

    

        

    

    

        

            

           


        

    

    

        http://schemas.xmlsoap.org/soap/http
" />

        

            

            

           
    http://impl.wsresiber.emision.iberia.com" use="literal" />



            

            

           
    http://impl.wsresiber.emision.iberia.com" use="literal" />



            

        

    

    

        

           
http://localhost:8080/WSResiberPruebas/services/processTkt"
/>

        

    








Buildfile: E:\clases-java\research\WSResiberPruebas\build.xml
un-deployService:
[axis-admin] Processing file E:\clases-java\research\WSResiberPruebas\src\com\ib
eria\emision\wsresiber\impl\undeploy.wsdd
[axis-admin] AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.genera

lException
[axis-admin] faultSubcode:
[axis-admin] faultString: No such operation

Re: Min lentgh and max length of an input string parameter

2006-06-28 Thread Anne Thomas Manes
You need to edit the WSDL file to add this type of restriction.On 6/28/06, Roy <[EMAIL PROTECTED]> wrote:
Hello all,Does anyone know a way to declare max and min size of a string in a input parameter in a wsdl generated with the Java2WSDL tool? Can i declare something in the 
deploy.wsdd file?Thanks,Roy 
		 
Χρησιμοποιείτε Yahoo! 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://login.yahoo.com/config/mail?.intl=gr 



Re: Axis2 and attachments

2006-06-28 Thread Anne Thomas Manes
See http://ws.apache.org/axis2/1_0/mtom-guide.htmlOn 6/28/06, zolv <
[EMAIL PROTECTED]> wrote:I read sample codes, tutorials etc about attachments. And everything would be cool but...I don't have needed classes - whole 
org.apache.axis2.attachments package doesn't exist. Frow where should I get it?It's written nowhere :/Thx for info-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



RE: [1.3] Handling large values

2006-06-28 Thread Qinjian Jian








Why Not use attachment?

 



Thanks

 

Tim Jian

Momentum systems, Inc.











From: Simon
McMahon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 8:52
PM
To: axis-user@ws.apache.org
Subject: [1.3] Handling large
values



 



Hi,





 





Axis throws
various faults, including out-of-memory, when I pass a large value through a
web service - e.g. a 5 Mb String.





 





I dont have many
alternatives because the firewall only allows http. Otherwise I would just use
FTP.





 





Any suggestions on
how to get Axis 1.x to handle large messages? I dont want to try Axis 2
(again) because I already tried this some time ago and it required too
many changes to my application.





 





Regards,





 





Simon.





 





 






Simon McMahon





 





Work: (07)
31311420
Mobile: (043)
2294180





*
This email, including any attachments sent with it, is
confidential and for the sole use of the intended recipient(s).
This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/
received in error.

Any unauthorised use, alteration, disclosure, distribution or
review of this email is strictly prohibited. The information
contained in this email, including any attachment sent with
it, may be subject to a statutory duty of confidentiality if it
relates to health service matters.

If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediately
notify the sender by telephone collect on Australia
+61 1800 198 175 or by return email. You should also
delete this email, and any copies, from your computer
system network and destroy any hard copies produced.

If not an intended recipient of this email, you must not copy,
distribute or take any action(s) that relies on it; any form of
disclosure, modification, distribution and/or publication of this
email is also prohibited.

Although Queensland Health takes all reasonable steps to
ensure this email does not contain malicious software,
Queensland Health does not accept responsibility for the
consequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or is
infected with a virus, other malicious computer programme or
code that may occur as a consequence of receiving this
email.

Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.






NOTICE: This message (including any attachments) from Momentum Systems, Inc. contains information that is PRIVILEGED and CONFIDENTIAL.  If you are not an intended recipient, you are hereby notified that any dissemination of this message is strictly prohibited.  If you have received this message in error, please do not read, copy or forward this message.  Please permanently delete all copies and any attachments and notify the sender immediately by reply email or by calling our Office at 703.740.9300.






[Axis2] How to add header info to the response message

2006-06-28 Thread Michele Mazzucco
Hi all,

is it possible to add some informations into the (response) SOAP header
from the service side (I'm assuming the operation to be out-in)? In
other words, given the echo() operation, can the service add some data
into the (outgoing) soap header (please note that in this scenario no
ServiceClient nor OperationClient are created)?


Thanks,
Michele

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



Min lentgh and max length of an input string parameter

2006-06-28 Thread Roy
Hello all,Does anyone know a way to declare max and min size of a string in a input parameter in a wsdl generated with the Java2WSDL tool? Can i declare something in the deploy.wsdd file?Thanks,Roy 
		 
Χρησιμοποιείτε Yahoo! 
Βαρεθήκατε τα ενοχλητικά μηνύ ματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων  
http://login.yahoo.com/config/mail?.intl=gr 

Re: [1.3] Handling arrays - interop with .NET

2006-06-28 Thread Anne Thomas Manes
SOAP Encoding arrays are not particularly interoperable. Can you convert to doc/literal?If not, then you at least need to use the .NET SOAP Enocding fix. Add this parameter to your global configuration:
This fix will change soapenc:string to xsd:string.I also question whether the array is defined accurately. Is your Provider object supposed to include another Provider object? Because that's how it's defined now. (The "provider" element is defined as type="impl"Provider", not as a link or reference.)
How did you generate this WSDL?AnneOn 6/28/06, Simon McMahon <[EMAIL PROTECTED]
> wrote: Hi,My web service returns an array of "Provider" (see below).
The WSDL (see below) defines "Provider" with all my data elements butadds the extra one on the end 'provider'. This appears to be a linkfield, maybe to support the array of these things. This extra field
appears to mess up the consuming application (.NET).I do the Axis side, not the .NET so I'm not sure what the .NET problemis or how to do anything different on the Axis side. The .NET peoplehave asked me not to use this link field for the arrays. How can I do
that?Any help would be appreciated.Thanks,Simon- - targetNamespace="https://dev.health.qld.gov.au/axis/services/qh-providers
"xmlns="http://www.w3.org/2001/XMLSchema">  http://schemas.xmlsoap.org/soap/encoding/
" />- - 

/>  
  - - -   />  Simon McMahonWork: (07) 31311420Mobile: (043) 2294180
*This email, including any attachments sent with it, isconfidential and for the sole use of the intended recipient(s).This confidentiality is not waived or lost, if you receive it and
you are not the intended recipient(s), or if it is transmitted/received in error.Any unauthorised use, alteration, disclosure, distribution orreview of this email is strictly prohibited.  The information
contained in this email, including any attachment sent withit, may be subject to a statutory duty of confidentiality if itrelates to health service matters.If you are not the intended recipient(s), or if you have
received this email in error, you are asked to immediatelynotify the sender by telephone collect on Australia+61 1800 198 175 or by return email.  You should alsodelete this email, and any copies, from your computer
system network and destroy any hard copies produced.If not an intended recipient of this email, you must not copy,distribute or take any action(s) that relies on it; any form ofdisclosure, modification, distribution and/or publication of this
email is also prohibited.Although Queensland Health takes all reasonable steps toensure this email does not contain malicious software,Queensland Health does not accept responsibility for theconsequences if any person's computer inadvertently suffers
any disruption to services, loss of information, harm or isinfected with a virus, other malicious computer programme orcode that may occur as a consequence of receiving thisemail.Unless stated otherwise, this email represents only the views
of the sender and not the views of the Queensland Government.-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 - new feature module adding services

2006-06-28 Thread Deepal Jayasinghe


Sanjiva Weerawarana wrote:

>Hi Deepal,
>
>I *hate* "aars" :( .. uglier than hell!
>
>  
>
>>That is what we had yesterday  :)  , but it causes problems in war
>>distribution.
>>The problem is this;
>>  When ever we show a module (at the deployment time) , get its class
>>loader and try to invoke the following
>>ClassLoader cl = module.getModuleClassLoader();
>> InputStream fin = moduleClassLoader.getResourceAsStream("services/"
>>+ servicename);
>>
>>So in war case since we have services directory and services.list file
>>in it , the inputstream is not null in all the cases (b'coz parent class
>>loader has the request resources). So when I deploy axis2.war into
>>tomcat it failed today.
>>
>>
>
>Why can't you prefix the module name to this code and avoid the problem?
>  
>
you mean if the module name is "foo" , then something like

nputStream fin = moduleClassLoader.getResourceAsStream("foo/services/"
+ servicename);

if that is the case it wont work . we have to come up with good name for the 
folder.

problem with name again :D


Sanjiva.

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

-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: [1.3] Handling arrays - interop with .NET

2006-06-28 Thread Martin Gainty
Good Morning Simon-

As every published Web service produces a WSDL Tell (dont request/demand) the 
.NET people provide you the WSDL
From the generated WSDL you can generate neccesary SOAP client

HTH,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Simon McMahon" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, June 28, 2006 1:03 AM
Subject: [1.3] Handling arrays - interop with .NET


> Hi,
> 
> My web service returns an array of "Provider" (see below).
> The WSDL (see below) defines "Provider" with all my data elements but
> adds the extra one on the end 'provider'. This appears to be a link
> field, maybe to support the array of these things. This extra field
> appears to mess up the consuming application (.NET).
> 
> I do the Axis side, not the .NET so I'm not sure what the .NET problem
> is or how to do anything different on the Axis side. The .NET people
> have asked me not to use this link field for the arrays. How can I do
> that?
> 
> Any help would be appreciated.
> 
> Thanks,
> 
> Simon.
> 
> ...
> - 
> -  targetNamespace="https://dev.health.qld.gov.au/axis/services/qh-providers";
> xmlns="http://www.w3.org/2001/XMLSchema";>
>  http://schemas.xmlsoap.org/soap/encoding/"; /> 
> 
> - 
> - 
>   
> 
>   
> 
>   
> 
>   
> 
>  
> 
> 
>   /> 
> 
>   
> 
>   
> 
>  
> 
> 
>  
> 
> 
> - 
> - 
> - 
>   /> 
> 
>  
> 
> 
>  
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> Simon McMahon
> 
> Work: (07) 31311420
> Mobile: (043) 2294180
> 
> 
> 
> *
> This email, including any attachments sent with it, is
> confidential and for the sole use of the intended recipient(s).
> This confidentiality is not waived or lost, if you receive it and
> you are not the intended recipient(s), or if it is transmitted/
> received in error.
> 
> Any unauthorised use, alteration, disclosure, distribution or
> review of this email is strictly prohibited.  The information
> contained in this email, including any attachment sent with
> it, may be subject to a statutory duty of confidentiality if it
> relates to health service matters.
> 
> If you are not the intended recipient(s), or if you have
> received this email in error, you are asked to immediately
> notify the sender by telephone collect on Australia
> +61 1800 198 175 or by return email.  You should also
> delete this email, and any copies, from your computer
> system network and destroy any hard copies produced.
> 
> If not an intended recipient of this email, you must not copy,
> distribute or take any action(s) that relies on it; any form of
> disclosure, modification, distribution and/or publication of this
> email is also prohibited.
> 
> Although Queensland Health takes all reasonable steps to
> ensure this email does not contain malicious software,
> Queensland Health does not accept responsibility for the
> consequences if any person's computer inadvertently suffers
> any disruption to services, loss of information, harm or is
> infected with a virus, other malicious computer programme or
> code that may occur as a consequence of receiving this
> email.
> 
> Unless stated otherwise, this email represents only the views
> of the sender and not the views of the Queensland Government.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: Axis2 - new feature module adding services

2006-06-28 Thread Davanum Srinivas

or even "module-services" and "module-services.list"

-- dims

On 6/28/06, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:

Hi Deepal,

I *hate* "aars" :( .. uglier than hell!

> That is what we had yesterday  :)  , but it causes problems in war
> distribution.
> The problem is this;
>   When ever we show a module (at the deployment time) , get its class
> loader and try to invoke the following
> ClassLoader cl = module.getModuleClassLoader();
>  InputStream fin = moduleClassLoader.getResourceAsStream("services/"
> + servicename);
>
> So in war case since we have services directory and services.list file
> in it , the inputstream is not null in all the cases (b'coz parent class
> loader has the request resources). So when I deploy axis2.war into
> tomcat it failed today.

Why can't you prefix the module name to this code and avoid the problem?

Sanjiva.



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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: trouble to invoke a moduel

2006-06-28 Thread Fabien Couble


Nobody has an idea about this?


- Original Message - 
From: "Fabien Couble" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 28, 2006 12:19 PM
Subject: trouble to invoke a moduel




Hi everybody,
I'm a new user of Axis2 and I'm trying to understand how it works.
Currently, I'm trying to deploy a  module and especially the module 
"logging" descrisbed in the userguide.


I think the module is deployed because I can see it on the Axis2 Console 
but I'm not sure that it is invoked in the Axis chain. In fact, I tried to 
put commands (like System.out.print("tutu")) in the method invoke to trace 
the execution but I can't see these traces. I checked the logs of Tomcat 
but nothing.


I declared the "logging" module in the service.xml file of the service; so 
the module is assigned to this service.

I modified my axis2.xml file.
I think all my configuration files are OK!
Do you know if I missed something? Or is it normal?
The client should invoke the service differently to use the module?

Thank for your help, because I'm a bit lost
Regards
COUBLE Fabien

This message contains information that may be privileged or confidential 
and is the property of the Capgemini Group. It is intended only for the 
person to whom it is addressed. If you are not the intended recipient, 
you are not authorized to read, print, retain, copy, disseminate, 
distribute, or use this message or any part thereof. If you receive this 
message in error, please notify the sender immediately and delete all 
copies of this message.



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



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: [Axis2] Flash Not Compatible with Axis2

2006-06-28 Thread Ajith Ranabahu

Hi Luke,
Like I said in reply to your earlier mail what we need when trying to
solve this problem is the message that was sent by flash. If you care
to open jira issue [1]  with the necessary messages it will be a great
help for us to improve Axis2.

Ajith

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

On 6/28/06, Luke DeWitt <[EMAIL PROTECTED]> wrote:



Hello,

As some may have seen, I was posting today a lot about trying to get an
Axis2 WS to be called from a Flash document I was working on. After a lot of
suggestions (thank you to those of you who made suggestions), I still
couldn't get it to work.

Finally, I got pretty ticked off and I installed Axis v1.4. I pretty much
changed nothing in my Action Script code except the name of the WS from
'version' to 'Version' and 'axis2' to 'axis' and tested my movie. It worked
perfectly.

I'm not sure why it would work in Axis and not Axis2, I am not sure what
kind of changes would have changed the XML so much that it wouldn't work,
but I wanted to bring it to the attention of people who could (hopefully) do
something about it.

Thank you,

--LD



--
Ajith Ranabahu

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



[Axis2] Flash Not Compatible with Axis2

2006-06-28 Thread Luke DeWitt



Hello,
 
As some may have seen, I was posting today a lot 
about trying to get an Axis2 WS to be called from a Flash document I was working 
on. After a lot of suggestions (thank you to those of you who made 
suggestions), I still couldn't get it to work. 
 
Finally, I got pretty ticked off and I installed 
Axis v1.4. I pretty much changed nothing in my Action Script code except the 
name of the WS from 'version' to 'Version' and 'axis2' to 'axis' and tested my 
movie. It worked perfectly.
 
I'm not sure why it would work in Axis and not 
Axis2, I am not sure what kind of changes would have changed the XML so much 
that it wouldn't work, but I wanted to bring it to the attention of people who 
could (hopefully) do something about it.
 
Thank you,
 
--LD


Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Ajith Ranabahu

Hi,
Yep, just store them as a property in the MC.

Ajith

On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

And what about some values I need to pass between the two handlers
(in-messages): can I save them into the message context?

Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> Just put the handlers in the same module and put the relevant phases
> in the module.xml. that should do it :)
>
> Ajith
>
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Ajith,
>>
>> thanks for your valuable suggestions. Just the last question: can I put
>> the two handlers into the same module or do I need two separate modules?
>> If so, I should I configure module.xml?
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > Hi,
>> > I won't recommend replacing the dispatchers. Just put your second
>> > handler after  the current dispatch phase and that should do it.
>> >
>> > Ajith
>> >
>> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> Ajith,
>> >>
>> >> yes, this confirm my idea. The first handler, running before the
>> >> transport phase, replaces the RequestURIBasedDispatcher (I still don't
>> >> know how to add it to the transport phase. Anyway, the aim of the
>> first
>> >> is only to replace RequestURIBasedDispatcher), while the second one,
>> >> running after the predispatch -- I think the operation context is
>> added
>> >> into the predispatch phase -- (or should it run after the dispatch
>> >> one???) saves my stuff into the operation context (which is now
>> >> non-null). Furthermore, while the first handler runs only for
>> >> in-messages, the second one should intercept both in and out-messages.
>> >>
>> >>
>> >> Thanks,
>> >> Michele
>> >>
>> >> Ajith Ranabahu wrote:
>> >> > Hi,
>> >> > Hmm... you seem to have a unique situation here. Does your
>> handler run
>> >> > even *before* transport ? The operation context is added only after
>> >> > the dispatch phase.
>> >> > What you can do is to have two handlers - the first one stores what
>> >> > ever the thing in the message context and the next one , sitting
>> after
>> >> > the dispatch phase copies the property from the message context
>> to the
>> >> > operation context. How does that sound ?
>> >> >
>> >> > Ajith
>> >> >
>> >> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> Hi all,
>> >> >>
>> >> >> it seems I have a big problem: the operation context is NULL (I
>> >> think it
>> >> >> is because the handler runs as first, event before the transport
>> >> phase.
>> >> >> How can I get a valid one?
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Michele
>> >> >>
>> >> >> Ajith Ranabahu wrote:
>> >> >> > yep,
>> >> >> > OperationContext is the one for you
>> >> >> >
>> >> >> > Ajith
>> >> >> >
>> >> >> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> >> >> OperationContext?
>> >> >> >>
>> >> >> >> -- dims
>> >> >> >>
>> >> >> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> >> > Ajith ,
>> >> >> >> >
>> >> >> >> > so where do you suggest to temporarily 'store' my stuff (I
>> need
>> >> >> to save
>> >> >> >> > some data during the incoming phase to reuse it when the
>> >> response is
>> >> >> >> > coming back)?, could OperationContext be fine?
>> >> >> >> >
>> >> >> >> > p.s. I don't need to keep any data across different
>> invocations.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Michele
>> >> >> >> >
>> >> >> >> > Ajith Ranabahu wrote:
>> >> >> >> > > Hi
>> >> >> >> > >
>> >> >> >> > >> from my previous posts I understood handlers are
>> 'application
>> >> >> >> scope',
>> >> >> >> > >> that is they maintain a state across different client
>> >> >> invocations.
>> >> >> >> > >
>> >> >> >> > > Actually handlers are supposed to be stateless! They
>> should not
>> >> >> >> > > maintain anything by themselves, rather they should be using
>> >> the
>> >> >> >> > > appropriate context  to store anything required.
>> >> >> >> > >
>> >> >> >> > >> I have a handler intercepting both incoming and outgoing
>> >> messages
>> >> >> >> and
>> >> >> >> > >> unfortunately I realized that instance fields are
>> 'reset' (see
>> >> >> logs
>> >> >> >> > >> below). Is there any reason for this counter intuitive
>> >> behavior?
>> >> >> >> > >>
>> >> >> >> > >
>> >> >> >> > > So what I seem to understand is your handler
>> implementation may
>> >> >> not
>> >> >> >> > > have been done in the recommended way.Have a look at this
>> >> >> article [1]
>> >> >> >> > > by Deepal which explains how the handlers work.
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> >
>> >> >> >> >
>> >> >>
>> -
>> >> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >> >> >>
>> >> >> >>
>> >> 

Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Michele Mazzucco
And what about some values I need to pass between the two handlers
(in-messages): can I save them into the message context?

Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> Just put the handlers in the same module and put the relevant phases
> in the module.xml. that should do it :)
> 
> Ajith
> 
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Ajith,
>>
>> thanks for your valuable suggestions. Just the last question: can I put
>> the two handlers into the same module or do I need two separate modules?
>> If so, I should I configure module.xml?
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > Hi,
>> > I won't recommend replacing the dispatchers. Just put your second
>> > handler after  the current dispatch phase and that should do it.
>> >
>> > Ajith
>> >
>> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> Ajith,
>> >>
>> >> yes, this confirm my idea. The first handler, running before the
>> >> transport phase, replaces the RequestURIBasedDispatcher (I still don't
>> >> know how to add it to the transport phase. Anyway, the aim of the
>> first
>> >> is only to replace RequestURIBasedDispatcher), while the second one,
>> >> running after the predispatch -- I think the operation context is
>> added
>> >> into the predispatch phase -- (or should it run after the dispatch
>> >> one???) saves my stuff into the operation context (which is now
>> >> non-null). Furthermore, while the first handler runs only for
>> >> in-messages, the second one should intercept both in and out-messages.
>> >>
>> >>
>> >> Thanks,
>> >> Michele
>> >>
>> >> Ajith Ranabahu wrote:
>> >> > Hi,
>> >> > Hmm... you seem to have a unique situation here. Does your
>> handler run
>> >> > even *before* transport ? The operation context is added only after
>> >> > the dispatch phase.
>> >> > What you can do is to have two handlers - the first one stores what
>> >> > ever the thing in the message context and the next one , sitting
>> after
>> >> > the dispatch phase copies the property from the message context
>> to the
>> >> > operation context. How does that sound ?
>> >> >
>> >> > Ajith
>> >> >
>> >> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> Hi all,
>> >> >>
>> >> >> it seems I have a big problem: the operation context is NULL (I
>> >> think it
>> >> >> is because the handler runs as first, event before the transport
>> >> phase.
>> >> >> How can I get a valid one?
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Michele
>> >> >>
>> >> >> Ajith Ranabahu wrote:
>> >> >> > yep,
>> >> >> > OperationContext is the one for you
>> >> >> >
>> >> >> > Ajith
>> >> >> >
>> >> >> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> >> >> OperationContext?
>> >> >> >>
>> >> >> >> -- dims
>> >> >> >>
>> >> >> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> >> > Ajith ,
>> >> >> >> >
>> >> >> >> > so where do you suggest to temporarily 'store' my stuff (I
>> need
>> >> >> to save
>> >> >> >> > some data during the incoming phase to reuse it when the
>> >> response is
>> >> >> >> > coming back)?, could OperationContext be fine?
>> >> >> >> >
>> >> >> >> > p.s. I don't need to keep any data across different
>> invocations.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Michele
>> >> >> >> >
>> >> >> >> > Ajith Ranabahu wrote:
>> >> >> >> > > Hi
>> >> >> >> > >
>> >> >> >> > >> from my previous posts I understood handlers are
>> 'application
>> >> >> >> scope',
>> >> >> >> > >> that is they maintain a state across different client
>> >> >> invocations.
>> >> >> >> > >
>> >> >> >> > > Actually handlers are supposed to be stateless! They
>> should not
>> >> >> >> > > maintain anything by themselves, rather they should be using
>> >> the
>> >> >> >> > > appropriate context  to store anything required.
>> >> >> >> > >
>> >> >> >> > >> I have a handler intercepting both incoming and outgoing
>> >> messages
>> >> >> >> and
>> >> >> >> > >> unfortunately I realized that instance fields are
>> 'reset' (see
>> >> >> logs
>> >> >> >> > >> below). Is there any reason for this counter intuitive
>> >> behavior?
>> >> >> >> > >>
>> >> >> >> > >
>> >> >> >> > > So what I seem to understand is your handler
>> implementation may
>> >> >> not
>> >> >> >> > > have been done in the recommended way.Have a look at this
>> >> >> article [1]
>> >> >> >> > > by Deepal which explains how the handlers work.
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> > >
>> >> >> >> >
>> >> >> >> >
>> >> >>
>> -
>> >> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >> >
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >> >> >>
>> >> >> >>
>> >> -
>> >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> >> For additi

Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Ajith Ranabahu

Hi,
Just put the handlers in the same module and put the relevant phases
in the module.xml. that should do it :)

Ajith

On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Ajith,

thanks for your valuable suggestions. Just the last question: can I put
the two handlers into the same module or do I need two separate modules?
If so, I should I configure module.xml?


Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> I won't recommend replacing the dispatchers. Just put your second
> handler after  the current dispatch phase and that should do it.
>
> Ajith
>
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Ajith,
>>
>> yes, this confirm my idea. The first handler, running before the
>> transport phase, replaces the RequestURIBasedDispatcher (I still don't
>> know how to add it to the transport phase. Anyway, the aim of the first
>> is only to replace RequestURIBasedDispatcher), while the second one,
>> running after the predispatch -- I think the operation context is added
>> into the predispatch phase -- (or should it run after the dispatch
>> one???) saves my stuff into the operation context (which is now
>> non-null). Furthermore, while the first handler runs only for
>> in-messages, the second one should intercept both in and out-messages.
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > Hi,
>> > Hmm... you seem to have a unique situation here. Does your handler run
>> > even *before* transport ? The operation context is added only after
>> > the dispatch phase.
>> > What you can do is to have two handlers - the first one stores what
>> > ever the thing in the message context and the next one , sitting after
>> > the dispatch phase copies the property from the message context to the
>> > operation context. How does that sound ?
>> >
>> > Ajith
>> >
>> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> Hi all,
>> >>
>> >> it seems I have a big problem: the operation context is NULL (I
>> think it
>> >> is because the handler runs as first, event before the transport
>> phase.
>> >> How can I get a valid one?
>> >>
>> >>
>> >> Thanks,
>> >> Michele
>> >>
>> >> Ajith Ranabahu wrote:
>> >> > yep,
>> >> > OperationContext is the one for you
>> >> >
>> >> > Ajith
>> >> >
>> >> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> >> OperationContext?
>> >> >>
>> >> >> -- dims
>> >> >>
>> >> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> > Ajith ,
>> >> >> >
>> >> >> > so where do you suggest to temporarily 'store' my stuff (I need
>> >> to save
>> >> >> > some data during the incoming phase to reuse it when the
>> response is
>> >> >> > coming back)?, could OperationContext be fine?
>> >> >> >
>> >> >> > p.s. I don't need to keep any data across different invocations.
>> >> >> >
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Michele
>> >> >> >
>> >> >> > Ajith Ranabahu wrote:
>> >> >> > > Hi
>> >> >> > >
>> >> >> > >> from my previous posts I understood handlers are 'application
>> >> >> scope',
>> >> >> > >> that is they maintain a state across different client
>> >> invocations.
>> >> >> > >
>> >> >> > > Actually handlers are supposed to be stateless! They should not
>> >> >> > > maintain anything by themselves, rather they should be using
>> the
>> >> >> > > appropriate context  to store anything required.
>> >> >> > >
>> >> >> > >> I have a handler intercepting both incoming and outgoing
>> messages
>> >> >> and
>> >> >> > >> unfortunately I realized that instance fields are 'reset' (see
>> >> logs
>> >> >> > >> below). Is there any reason for this counter intuitive
>> behavior?
>> >> >> > >>
>> >> >> > >
>> >> >> > > So what I seem to understand is your handler implementation may
>> >> not
>> >> >> > > have been done in the recommended way.Have a look at this
>> >> article [1]
>> >> >> > > by Deepal which explains how the handlers work.
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> -
>> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >> >>
>> >> >>
>> -
>> >> >> 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 comm

Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Michele Mazzucco
Ajith,

thanks for your valuable suggestions. Just the last question: can I put
the two handlers into the same module or do I need two separate modules?
If so, I should I configure module.xml?


Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> I won't recommend replacing the dispatchers. Just put your second
> handler after  the current dispatch phase and that should do it.
> 
> Ajith
> 
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Ajith,
>>
>> yes, this confirm my idea. The first handler, running before the
>> transport phase, replaces the RequestURIBasedDispatcher (I still don't
>> know how to add it to the transport phase. Anyway, the aim of the first
>> is only to replace RequestURIBasedDispatcher), while the second one,
>> running after the predispatch -- I think the operation context is added
>> into the predispatch phase -- (or should it run after the dispatch
>> one???) saves my stuff into the operation context (which is now
>> non-null). Furthermore, while the first handler runs only for
>> in-messages, the second one should intercept both in and out-messages.
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > Hi,
>> > Hmm... you seem to have a unique situation here. Does your handler run
>> > even *before* transport ? The operation context is added only after
>> > the dispatch phase.
>> > What you can do is to have two handlers - the first one stores what
>> > ever the thing in the message context and the next one , sitting after
>> > the dispatch phase copies the property from the message context to the
>> > operation context. How does that sound ?
>> >
>> > Ajith
>> >
>> > On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> Hi all,
>> >>
>> >> it seems I have a big problem: the operation context is NULL (I
>> think it
>> >> is because the handler runs as first, event before the transport
>> phase.
>> >> How can I get a valid one?
>> >>
>> >>
>> >> Thanks,
>> >> Michele
>> >>
>> >> Ajith Ranabahu wrote:
>> >> > yep,
>> >> > OperationContext is the one for you
>> >> >
>> >> > Ajith
>> >> >
>> >> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> >> OperationContext?
>> >> >>
>> >> >> -- dims
>> >> >>
>> >> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> >> > Ajith ,
>> >> >> >
>> >> >> > so where do you suggest to temporarily 'store' my stuff (I need
>> >> to save
>> >> >> > some data during the incoming phase to reuse it when the
>> response is
>> >> >> > coming back)?, could OperationContext be fine?
>> >> >> >
>> >> >> > p.s. I don't need to keep any data across different invocations.
>> >> >> >
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Michele
>> >> >> >
>> >> >> > Ajith Ranabahu wrote:
>> >> >> > > Hi
>> >> >> > >
>> >> >> > >> from my previous posts I understood handlers are 'application
>> >> >> scope',
>> >> >> > >> that is they maintain a state across different client
>> >> invocations.
>> >> >> > >
>> >> >> > > Actually handlers are supposed to be stateless! They should not
>> >> >> > > maintain anything by themselves, rather they should be using
>> the
>> >> >> > > appropriate context  to store anything required.
>> >> >> > >
>> >> >> > >> I have a handler intercepting both incoming and outgoing
>> messages
>> >> >> and
>> >> >> > >> unfortunately I realized that instance fields are 'reset' (see
>> >> logs
>> >> >> > >> below). Is there any reason for this counter intuitive
>> behavior?
>> >> >> > >>
>> >> >> > >
>> >> >> > > So what I seem to understand is your handler implementation may
>> >> not
>> >> >> > > have been done in the recommended way.Have a look at this
>> >> article [1]
>> >> >> > > by Deepal which explains how the handlers work.
>> >> >> > >
>> >> >> > >
>> >> >> > >
>> >> >> >
>> >> >> >
>> >> -
>> >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >> >
>> >> >> >
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >> >>
>> >> >>
>> -
>> >> >> 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: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Ajith Ranabahu

Hi,
I won't recommend replacing the dispatchers. Just put your second
handler after  the current dispatch phase and that should do it.

Ajith

On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Ajith,

yes, this confirm my idea. The first handler, running before the
transport phase, replaces the RequestURIBasedDispatcher (I still don't
know how to add it to the transport phase. Anyway, the aim of the first
is only to replace RequestURIBasedDispatcher), while the second one,
running after the predispatch -- I think the operation context is added
into the predispatch phase -- (or should it run after the dispatch
one???) saves my stuff into the operation context (which is now
non-null). Furthermore, while the first handler runs only for
in-messages, the second one should intercept both in and out-messages.


Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> Hmm... you seem to have a unique situation here. Does your handler run
> even *before* transport ? The operation context is added only after
> the dispatch phase.
> What you can do is to have two handlers - the first one stores what
> ever the thing in the message context and the next one , sitting after
> the dispatch phase copies the property from the message context to the
> operation context. How does that sound ?
>
> Ajith
>
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> it seems I have a big problem: the operation context is NULL (I think it
>> is because the handler runs as first, event before the transport phase.
>> How can I get a valid one?
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > yep,
>> > OperationContext is the one for you
>> >
>> > Ajith
>> >
>> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> OperationContext?
>> >>
>> >> -- dims
>> >>
>> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> > Ajith ,
>> >> >
>> >> > so where do you suggest to temporarily 'store' my stuff (I need
>> to save
>> >> > some data during the incoming phase to reuse it when the response is
>> >> > coming back)?, could OperationContext be fine?
>> >> >
>> >> > p.s. I don't need to keep any data across different invocations.
>> >> >
>> >> >
>> >> > Thanks,
>> >> > Michele
>> >> >
>> >> > Ajith Ranabahu wrote:
>> >> > > Hi
>> >> > >
>> >> > >> from my previous posts I understood handlers are 'application
>> >> scope',
>> >> > >> that is they maintain a state across different client
>> invocations.
>> >> > >
>> >> > > Actually handlers are supposed to be stateless! They should not
>> >> > > maintain anything by themselves, rather they should be using the
>> >> > > appropriate context  to store anything required.
>> >> > >
>> >> > >> I have a handler intercepting both incoming and outgoing messages
>> >> and
>> >> > >> unfortunately I realized that instance fields are 'reset' (see
>> logs
>> >> > >> below). Is there any reason for this counter intuitive behavior?
>> >> > >>
>> >> > >
>> >> > > So what I seem to understand is your handler implementation may
>> not
>> >> > > have been done in the recommended way.Have a look at this
>> article [1]
>> >> > > by Deepal which explains how the handlers work.
>> >> > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >>
>> >> -
>> >> 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]





--
Ajith Ranabahu

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



Re: Axis2 - new feature module adding services

2006-06-28 Thread Sanjiva Weerawarana
Hi Deepal,

I *hate* "aars" :( .. uglier than hell!

> That is what we had yesterday  :)  , but it causes problems in war
> distribution.
> The problem is this;
>   When ever we show a module (at the deployment time) , get its class
> loader and try to invoke the following
> ClassLoader cl = module.getModuleClassLoader();
>  InputStream fin = moduleClassLoader.getResourceAsStream("services/"
> + servicename);
> 
> So in war case since we have services directory and services.list file
> in it , the inputstream is not null in all the cases (b'coz parent class
> loader has the request resources). So when I deploy axis2.war into
> tomcat it failed today.

Why can't you prefix the module name to this code and avoid the problem?

Sanjiva.



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



Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Michele Mazzucco
Ajith,

yes, this confirm my idea. The first handler, running before the
transport phase, replaces the RequestURIBasedDispatcher (I still don't
know how to add it to the transport phase. Anyway, the aim of the first
is only to replace RequestURIBasedDispatcher), while the second one,
running after the predispatch -- I think the operation context is added
into the predispatch phase -- (or should it run after the dispatch
one???) saves my stuff into the operation context (which is now
non-null). Furthermore, while the first handler runs only for
in-messages, the second one should intercept both in and out-messages.


Thanks,
Michele

Ajith Ranabahu wrote:
> Hi,
> Hmm... you seem to have a unique situation here. Does your handler run
> even *before* transport ? The operation context is added only after
> the dispatch phase.
> What you can do is to have two handlers - the first one stores what
> ever the thing in the message context and the next one , sitting after
> the dispatch phase copies the property from the message context to the
> operation context. How does that sound ?
> 
> Ajith
> 
> On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> Hi all,
>>
>> it seems I have a big problem: the operation context is NULL (I think it
>> is because the handler runs as first, event before the transport phase.
>> How can I get a valid one?
>>
>>
>> Thanks,
>> Michele
>>
>> Ajith Ranabahu wrote:
>> > yep,
>> > OperationContext is the one for you
>> >
>> > Ajith
>> >
>> > On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> >> OperationContext?
>> >>
>> >> -- dims
>> >>
>> >> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> >> > Ajith ,
>> >> >
>> >> > so where do you suggest to temporarily 'store' my stuff (I need
>> to save
>> >> > some data during the incoming phase to reuse it when the response is
>> >> > coming back)?, could OperationContext be fine?
>> >> >
>> >> > p.s. I don't need to keep any data across different invocations.
>> >> >
>> >> >
>> >> > Thanks,
>> >> > Michele
>> >> >
>> >> > Ajith Ranabahu wrote:
>> >> > > Hi
>> >> > >
>> >> > >> from my previous posts I understood handlers are 'application
>> >> scope',
>> >> > >> that is they maintain a state across different client
>> invocations.
>> >> > >
>> >> > > Actually handlers are supposed to be stateless! They should not
>> >> > > maintain anything by themselves, rather they should be using the
>> >> > > appropriate context  to store anything required.
>> >> > >
>> >> > >> I have a handler intercepting both incoming and outgoing messages
>> >> and
>> >> > >> unfortunately I realized that instance fields are 'reset' (see
>> logs
>> >> > >> below). Is there any reason for this counter intuitive behavior?
>> >> > >>
>> >> > >
>> >> > > So what I seem to understand is your handler implementation may
>> not
>> >> > > have been done in the recommended way.Have a look at this
>> article [1]
>> >> > > by Deepal which explains how the handlers work.
>> >> > >
>> >> > >
>> >> > >
>> >> >
>> >> >
>> -
>> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >
>> >> >
>> >>
>> >>
>> >> --
>> >> Davanum Srinivas : http://people.apache.org/~dims/
>> >>
>> >> -
>> >> 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: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Ajith Ranabahu

Hi,
Hmm... you seem to have a unique situation here. Does your handler run
even *before* transport ? The operation context is added only after
the dispatch phase.
What you can do is to have two handlers - the first one stores what
ever the thing in the message context and the next one , sitting after
the dispatch phase copies the property from the message context to the
operation context. How does that sound ?

Ajith

On 6/28/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:

Hi all,

it seems I have a big problem: the operation context is NULL (I think it
is because the handler runs as first, event before the transport phase.
How can I get a valid one?


Thanks,
Michele

Ajith Ranabahu wrote:
> yep,
> OperationContext is the one for you
>
> Ajith
>
> On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> OperationContext?
>>
>> -- dims
>>
>> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> > Ajith ,
>> >
>> > so where do you suggest to temporarily 'store' my stuff (I need to save
>> > some data during the incoming phase to reuse it when the response is
>> > coming back)?, could OperationContext be fine?
>> >
>> > p.s. I don't need to keep any data across different invocations.
>> >
>> >
>> > Thanks,
>> > Michele
>> >
>> > Ajith Ranabahu wrote:
>> > > Hi
>> > >
>> > >> from my previous posts I understood handlers are 'application
>> scope',
>> > >> that is they maintain a state across different client invocations.
>> > >
>> > > Actually handlers are supposed to be stateless! They should not
>> > > maintain anything by themselves, rather they should be using the
>> > > appropriate context  to store anything required.
>> > >
>> > >> I have a handler intercepting both incoming and outgoing messages
>> and
>> > >> unfortunately I realized that instance fields are 'reset' (see logs
>> > >> below). Is there any reason for this counter intuitive behavior?
>> > >>
>> > >
>> > > So what I seem to understand is your handler implementation may not
>> > > have been done in the recommended way.Have a look at this article [1]
>> > > by Deepal which explains how the handlers work.
>> > >
>> > >
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> Davanum Srinivas : http://people.apache.org/~dims/
>>
>> -
>> 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]





--
Ajith Ranabahu

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



trouble to invoke a moduel

2006-06-28 Thread Fabien Couble


Hi everybody,
I'm a new user of Axis2 and I'm trying to understand how it works.
Currently, I'm trying to deploy a  module and especially the module 
"logging" descrisbed in the userguide.


I think the module is deployed because I can see it on the Axis2 Console but 
I'm not sure that it is invoked in the Axis chain. In fact, I tried to put 
commands (like System.out.print("tutu")) in the method invoke to trace the 
execution but I can't see these traces. I checked the logs of Tomcat but 
nothing.


I declared the "logging" module in the service.xml file of the service; so 
the module is assigned to this service.

I modified my axis2.xml file.
I think all my configuration files are OK!
Do you know if I missed something? Or is it normal?
The client should invoke the service differently to use the module?

Thank for your help, because I'm a bit lost
Regards
COUBLE Fabien 



This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


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



Re: [Axis2] Handler unexpected behaviour

2006-06-28 Thread Michele Mazzucco
Hi all,

it seems I have a big problem: the operation context is NULL (I think it
is because the handler runs as first, event before the transport phase.
How can I get a valid one?


Thanks,
Michele

Ajith Ranabahu wrote:
> yep,
> OperationContext is the one for you
> 
> Ajith
> 
> On 6/27/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> OperationContext?
>>
>> -- dims
>>
>> On 6/27/06, Michele Mazzucco <[EMAIL PROTECTED]> wrote:
>> > Ajith ,
>> >
>> > so where do you suggest to temporarily 'store' my stuff (I need to save
>> > some data during the incoming phase to reuse it when the response is
>> > coming back)?, could OperationContext be fine?
>> >
>> > p.s. I don't need to keep any data across different invocations.
>> >
>> >
>> > Thanks,
>> > Michele
>> >
>> > Ajith Ranabahu wrote:
>> > > Hi
>> > >
>> > >> from my previous posts I understood handlers are 'application
>> scope',
>> > >> that is they maintain a state across different client invocations.
>> > >
>> > > Actually handlers are supposed to be stateless! They should not
>> > > maintain anything by themselves, rather they should be using the
>> > > appropriate context  to store anything required.
>> > >
>> > >> I have a handler intercepting both incoming and outgoing messages
>> and
>> > >> unfortunately I realized that instance fields are 'reset' (see logs
>> > >> below). Is there any reason for this counter intuitive behavior?
>> > >>
>> > >
>> > > So what I seem to understand is your handler implementation may not
>> > > have been done in the recommended way.Have a look at this article [1]
>> > > by Deepal which explains how the handlers work.
>> > >
>> > >
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> -- 
>> Davanum Srinivas : http://people.apache.org/~dims/
>>
>> -
>> 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] attachments package

2006-06-28 Thread Ajith Ranabahu

Hi,
There is no org.apache.axis2.attachments package in Axis2 1.0. Please
let us know where this is mentioned. Perhaps it is a documentation
error!

Ajith

On 6/28/06, zolv <[EMAIL PROTECTED]> wrote:

Where is org.apache.axis2.attachments package in Axis2 1.0 ?
How can I get it?

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





--
Ajith Ranabahu

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



[Axis2] attachments package

2006-06-28 Thread zolv
Where is org.apache.axis2.attachments package in Axis2 1.0 ?
How can I get it?

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



Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread Deepal Jayasinghe


Xinjun Chen wrote:

> Hi Deepal,
>
> I encountered the same problem as I posted in Joshua's thread on
> operation inheritance. Could you also have a look at that thread?
>
> Could you tell me the minimal modules I need to rebuild? only codegen
> and wsdl or all the rest?

hmm , the best thing is get an update and rebuild the project .

>
>
> Regards,
> Xinjun
>
> On 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>
>> I have already fixed this , any possibility of testing with current SVN
>> or nightly build.
>>
>> Davanum Srinivas wrote:
>>
>> > John,
>> >
>> > Could i pester you to please open up a JIRA issue?
>> >
>> > thanks,
>> > dims
>> >
>> > On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>> >
>> >> Hi Deepal,
>> >>
>> >> I've butted my head against the same issue during the past few weeks
>> >> (most
>> >> recently with the June 19 Axis2 snap) and have had to resort to
>> >> fixing the
>> >> wsdl with a perl script.  Rather easy to reproduce with 2 source
>> files:
>> >>
>> >> test.MyService.java
>> >> 
>> >> package test;
>> >> import test.MyData;
>> >> public class MyService
>> >> {
>> >> private MyData myData = new MyData();
>> >>
>> >> public MyData retrieveMyData()
>> >> {
>> >> return myData;
>> >> }
>> >> }
>> >>
>> >> Test.MyData.java
>> >> ###
>> >> package test;
>> >> public class MyData
>> >> {
>> >> private String myString = null;
>> >> public String getMyString() { return this.myString; }
>> >> public void setMyString(String arg) { this.myString =
>> >> arg; }
>> >> }
>> >>
>> >>
>> >> I ran:
>> >> ..\bin\java2wsdl.bat -cp . -sn TEST -l
>> >> http://localhost:8080/axis2/services/Logger -st wrapped -cn
>> >> test.MyService
>> >> (and I did try different styles - same result)
>> >>
>> >> Which resulted in the following wsdl with the element "MyData"
>> defined
>> >> twice:
>> >> ###
>> >> wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> >> xmlns:axis2="http://test";
>> >> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>> >> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>> >> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>> >> xmlns:ns1="http://test/xsd";
>> >> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>> >> targetNamespace="http://test";>
>> >>   
>> >> http://www.w3.org/2001/XMLSchema";
>> >> xmlns:ns="http://test/xsd"; targetNamespace="http://test/xsd";
>> >> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>> >>   
>> >>   
>> >> 
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >> 
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >> 
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >>   
>> >> 
>> >>   
>> >>   
>> >> > >> transport="http://schemas.xmlsoap.org/soap/http"; />
>> >> 
>> >>   > soapAction="urn:retrieveMyData" />
>> >>   
>> >> http://test"; use="literal" />
>> >>   
>> >>   
>> >> http://test"; use="literal" />
>> >>   
>> >> 
>> >>   
>> >>   
>> >> > >> transport="http://schemas.xmlsoap.org/soap/http"; />
>> >> 
>> >>   > >> soapAction="urn:retrieveMyData" />
>> >>   
>> >> http://test"; use="literal" />
>> >>   
>> >>   
>> >> http://test"; use="literal" />
>> >>   
>> >> 
>> >>   
>> >>   
>> >> > name="TESTSOAP11port">
>> >>   > >> location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> >> 
>> >> > name="TESTSOAP12port">
>> >>   > >> location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> >> 
>> >>   
>> >> 
>> >>
>> >>
>> >>
>> >>
>> >>
>> >>
>> >> -Original Message-
>> >> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
>> >> Sent: Tuesday, June 27, 2006 12:41 AM
>> >> To: axis-user@ws.apache.org
>> >> Subject: Re: The duplicate type is happening here for the WSDL file
>> >>
>> >> Hi Jim;
>> >> can you please provide a way to recreate the issue , I mean any
>> >> possibility of sending java class that you use :)
>> >>
>> >> Jim Bender wrote:
>> >>
>> >> > I don't know the precise step, but by the time that we leave the
>> >> > generateOM() method in the Java2OMBuilder, there are two complex
>> type
>> >> > definitions in the WSDL.
>> >> >
>> >> >public OMElement generateOM() throws Exception {
>> >> >OMFactory fac = OMAbstractFactory.getOMFactory();
>> >> >wsdl = fac.createOMNamespace(WSDL_NAMESPACE,
>> >> >DEFAULT_WSDL_NAMESPACE_PREFIX);
>> >> >OMElement ele = fac.createOMEl

Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread Xinjun Chen

Hi Deepal,

I encountered the same problem as I posted in Joshua's thread on
operation inheritance. Could you also have a look at that thread?

Could you tell me the minimal modules I need to rebuild? only codegen
and wsdl or all the rest?


Regards,
Xinjun

On 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

I have already fixed this , any possibility of testing with current SVN
or nightly build.

Davanum Srinivas wrote:

> John,
>
> Could i pester you to please open up a JIRA issue?
>
> thanks,
> dims
>
> On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> Hi Deepal,
>>
>> I've butted my head against the same issue during the past few weeks
>> (most
>> recently with the June 19 Axis2 snap) and have had to resort to
>> fixing the
>> wsdl with a perl script.  Rather easy to reproduce with 2 source files:
>>
>> test.MyService.java
>> 
>> package test;
>> import test.MyData;
>> public class MyService
>> {
>> private MyData myData = new MyData();
>>
>> public MyData retrieveMyData()
>> {
>> return myData;
>> }
>> }
>>
>> Test.MyData.java
>> ###
>> package test;
>> public class MyData
>> {
>> private String myString = null;
>> public String getMyString() { return this.myString; }
>> public void setMyString(String arg) { this.myString =
>> arg; }
>> }
>>
>>
>> I ran:
>> ..\bin\java2wsdl.bat -cp . -sn TEST -l
>> http://localhost:8080/axis2/services/Logger -st wrapped -cn
>> test.MyService
>> (and I did try different styles - same result)
>>
>> Which resulted in the following wsdl with the element "MyData" defined
>> twice:
>> ###
>> wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> xmlns:axis2="http://test";
>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>> xmlns:ns1="http://test/xsd";
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>> targetNamespace="http://test";>
>>   
>> http://www.w3.org/2001/XMLSchema";
>> xmlns:ns="http://test/xsd"; targetNamespace="http://test/xsd";
>> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>>   
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> > transport="http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   
>>   
>> http://test"; use="literal" />
>>   
>>   
>> http://test"; use="literal" />
>>   
>> 
>>   
>>   
>> > transport="http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   > soapAction="urn:retrieveMyData" />
>>   
>> http://test"; use="literal" />
>>   
>>   
>> http://test"; use="literal" />
>>   
>> 
>>   
>>   
>> 
>>   > location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> 
>> 
>>   > location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> 
>>   
>> 
>>
>>
>>
>>
>>
>>
>> -Original Message-
>> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, June 27, 2006 12:41 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: The duplicate type is happening here for the WSDL file
>>
>> Hi Jim;
>> can you please provide a way to recreate the issue , I mean any
>> possibility of sending java class that you use :)
>>
>> Jim Bender wrote:
>>
>> > I don't know the precise step, but by the time that we leave the
>> > generateOM() method in the Java2OMBuilder, there are two complex type
>> > definitions in the WSDL.
>> >
>> >public OMElement generateOM() throws Exception {
>> >OMFactory fac = OMAbstractFactory.getOMFactory();
>> >wsdl = fac.createOMNamespace(WSDL_NAMESPACE,
>> >DEFAULT_WSDL_NAMESPACE_PREFIX);
>> >OMElement ele = fac.createOMElement("definitions", wsdl);
>> >
>> >ele.addAttribute("targetNamespace", targetNamespace, null);
>> >generateNamespaces(fac, ele);
>> >generateTypes(fac, ele);
>> >generateMessages(fac, ele);
>> >generatePortType(fac, ele);
>> >generateBinding(fac, ele);
>> >generateService(fac, ele);
>> >return ele;
>> >}
>> >
>> > The element's printString shows the story:
>> >
>> > http://schemas.xmlsoap.org/wsdl/";>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";
>> > xmlns:ns="http://testexamples/xsd";
>> > targetNamespace="http://testexamples/xsd";
>> > elementFormDefault="unqualified" attributeFormDefault="unqualified">
>> > 
>> > 
>> > 
>> 

Re: [Axis2] uploaded .aar still using cached classes?

2006-06-28 Thread Deepal Jayasinghe
Hi Andrew;

You need to change axis2.xml , there you have parameter called;

false

you have to change that to
true

Andrew B wrote:



Andrew B wrote:

> Hi,
>
> I have uploaded a web service (.aar) to Axis2, and it appears to keep
> using old versions of the service classes, even after I've made
> changes and re-uploaded.
>
> Axis2 is running on JBoss 4.0.3, with JDK 1.4. I don't have the option
> of restarting JBoss, as it is a  production environment. Anyone have
> any idea why this might be happening, and how to get it to reload the
> classes? (I've also tried deactivating and reactivating the service,
> and this doesn't help).
>
> Thanks,
>
> Andrew
>
> 
> Yahoo! Music Unlimited - Access over 1 million songs. Try it free.
> 



-- 
Thanks,
Deepal

~Future is Open~ 



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



Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread Deepal Jayasinghe
I have already fixed this , any possibility of testing with current SVN
or nightly build.

Davanum Srinivas wrote:

> John,
>
> Could i pester you to please open up a JIRA issue?
>
> thanks,
> dims
>
> On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>> Hi Deepal,
>>
>> I've butted my head against the same issue during the past few weeks
>> (most
>> recently with the June 19 Axis2 snap) and have had to resort to
>> fixing the
>> wsdl with a perl script.  Rather easy to reproduce with 2 source files:
>>
>> test.MyService.java
>> 
>> package test;
>> import test.MyData;
>> public class MyService
>> {
>> private MyData myData = new MyData();
>>
>> public MyData retrieveMyData()
>> {
>> return myData;
>> }
>> }
>>
>> Test.MyData.java
>> ###
>> package test;
>> public class MyData
>> {
>> private String myString = null;
>> public String getMyString() { return this.myString; }
>> public void setMyString(String arg) { this.myString =
>> arg; }
>> }
>>
>>
>> I ran:
>> ..\bin\java2wsdl.bat -cp . -sn TEST -l
>> http://localhost:8080/axis2/services/Logger -st wrapped -cn
>> test.MyService
>> (and I did try different styles - same result)
>>
>> Which resulted in the following wsdl with the element "MyData" defined
>> twice:
>> ###
>> wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> xmlns:axis2="http://test";
>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>> xmlns:ns1="http://test/xsd";
>> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
>> targetNamespace="http://test";>
>>   
>> http://www.w3.org/2001/XMLSchema";
>> xmlns:ns="http://test/xsd"; targetNamespace="http://test/xsd";
>> elementFormDefault="unqualified" attributeFormDefault="unqualified">
>>   
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>> 
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> 
>>   
>>   
>> > transport="http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   
>>   
>> http://test"; use="literal" />
>>   
>>   
>> http://test"; use="literal" />
>>   
>> 
>>   
>>   
>> > transport="http://schemas.xmlsoap.org/soap/http"; />
>> 
>>   > soapAction="urn:retrieveMyData" />
>>   
>> http://test"; use="literal" />
>>   
>>   
>> http://test"; use="literal" />
>>   
>> 
>>   
>>   
>> 
>>   > location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> 
>> 
>>   > location="http://localhost:8080/axis2/services/LoggerTEST"; />
>> 
>>   
>> 
>>
>>
>>
>>
>>
>>
>> -Original Message-
>> From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, June 27, 2006 12:41 AM
>> To: axis-user@ws.apache.org
>> Subject: Re: The duplicate type is happening here for the WSDL file
>>
>> Hi Jim;
>> can you please provide a way to recreate the issue , I mean any
>> possibility of sending java class that you use :)
>>
>> Jim Bender wrote:
>>
>> > I don't know the precise step, but by the time that we leave the
>> > generateOM() method in the Java2OMBuilder, there are two complex type
>> > definitions in the WSDL.
>> >
>> >public OMElement generateOM() throws Exception {
>> >OMFactory fac = OMAbstractFactory.getOMFactory();
>> >wsdl = fac.createOMNamespace(WSDL_NAMESPACE,
>> >DEFAULT_WSDL_NAMESPACE_PREFIX);
>> >OMElement ele = fac.createOMElement("definitions", wsdl);
>> >
>> >ele.addAttribute("targetNamespace", targetNamespace, null);
>> >generateNamespaces(fac, ele);
>> >generateTypes(fac, ele);
>> >generateMessages(fac, ele);
>> >generatePortType(fac, ele);
>> >generateBinding(fac, ele);
>> >generateService(fac, ele);
>> >return ele;
>> >}
>> >
>> > The element's printString shows the story:
>> >
>> > http://schemas.xmlsoap.org/wsdl/";>> > xmlns:xs="http://www.w3.org/2001/XMLSchema";
>> > xmlns:ns="http://testexamples/xsd";
>> > targetNamespace="http://testexamples/xsd";
>> > elementFormDefault="unqualified" attributeFormDefault="unqualified">
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> > 
>> >
>> > Regards,
>> >
>> > Jim
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAI

Re: passing objects of subtypes

2006-06-28 Thread Xinjun Chen

Hi Martin,

I inspected your WSDL. My finding is that:
The operation "int calculateBlueBookValue(VehicleDescription param0)"
only use VehicleDescription as input, and it has nothing to do with
VehicleType defined in the WSDL. Is there any missing link between
VehicleDescription and VehicleType in your WSDL?

Hi Joshua,

Have you also tried interface types? I have already tried to convert
the following java method.

test.package.SomeServiceImpl class contains the method:

public InterfaceType2 testMethod(InterfaceType1 testArg) throws
RemoteException {
  InterfaceType2 it2 = new InterfaceType2Impl();
  it2.setName("it2Name " + testArg.getName());
  it2.setMarried(true);
  it2.setAge(24);

  return it2;   
}

The definitions of InterfaceType1 and InterfaceType2 are in another package:

test.package2.InterfaceType1:

public interface InterfaceType1 {
public String getName();
public void setName(String name);   
}

test.package2.InterfaceType2:

public interface InterfaceType2 extends InterfaceType1 {
public int getAge();
public void setAge(int age);
public boolean isMarried();
public void setMarried(boolean married);
}

The generated WSDL relevant part is:

http://www.w3.org/2001/XMLSchema"; 
xmlns:stn_1="http://package2.test/xsd";
targetNamespace="http://package2.test/xsd";
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
   
   



   
   
   




   

   
   


   
   




   
...


I feel this WSDL is just incorrect.
Firstly, the InterfaceType1 and InterfaceType2 complexType are
generated twice. I think this is a bug of Java2WSDL. Am I right?

Secondly, the InterfaceType2 should also contain the name field since
InterfaceType2 extends InterfaceType1.

Thirdly, in the generated WSDL, there is no way to tell that
InterfaceType2 extends InterfaceType1. Is this another bug?

I also have another question for Joshua and Axis2 developer.

How can Axis2 determine the input parameter's actual type?
InterfaceType1 may have two implementations InterfaceType1ImplClass1
and InterfaceType1ImplClass2. At runtime, how can Axis2 decide the
actual type of the input object? In fact I guess there will be a
deserialization error at the server side. At the client side, there is
no problem to serialize the InterfaceType1ImplClass1 or
InterfaceType1ImplClass2 object. However, the serialized XML does not
contains the information on the actual object type. The server side
will throw error complaining that some unexpected child element in
some certain element since the server side expect an interface type. I
cannot verify my guess because I even cannot run WSDL2Java against the
generated WSDL.

Could somebody shed some insight view on how to deal with the
InterfaceType and BaseType, and how the Axis2 at runtime deserialize
the XML into object without knowing the actual specific type?



Regards,
Xinjun


On 6/27/06, Joshua Fox <[EMAIL PROTECTED]> wrote:


Thanks, yes. It was valuable to me in learning how to do this and building
the WSDL shown in my last message.

Joshua


On 6/27/06, Martin Gainty <[EMAIL PROTECTED]> wrote:
> Joshua-
>
> I sent you the wsdl for Vehicle BaseType, Car SubType and Motorcycle
subtype
> on sunday
> Did you not receive it?
> Please confirm,
>
> Martin
>
>



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



Re: SAML and axis 1.4.1

2006-06-28 Thread Franz Fehringer

Will there be an Axis 1.4.1 (from the trunk?)?
This was once agreed upon.

Greetings

Franz

Davanum Srinivas schrieb:

try the samples / test cases in Apache wss4j.

thanks,
dims

On 6/28/06, Wishing Carebear <[EMAIL PROTECTED]> wrote:

Hello:
I want to use SAML and ws-securitywith axis1.4. Is there any example
available on this topic.

Thanks for your help and time,

Regards,
cbear






begin:vcard
fn:Dr. Franz Fehringer
n:Fehringer;Franz
org:ISO Software Systeme
adr;quoted-printable:;;Eichendorffstrasse 29;N=C3=BCrnberg;;90491;Deutschland
email;internet:mailto:[EMAIL PROTECTED]
tel;work:+49/(911) - 99594-0 
tel;fax:+49/(911) - 99594-580
x-mozilla-html:TRUE
url:http://www.isogmbh.de/
version:2.1
end:vcard


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

axis 1.2. Problem when undeploy a service.

2006-06-28 Thread Juan Alvarez
Hello all. I have an error attempting to undeploy a service. I suppose
this problem arise when I changed the 'use' property from 'encoded' to
'literal' in the use of java2wsdl.
This is the error I have with axis-admin ant task attempting to undeploy my service:

*
BUILD FAILED
E:\clases-java\research\WSResiberPruebas\build.xml:56: axis-admin failed with  {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException No such operation 'undeployment'

*


I don't have an operation called 'undeployment'. 
Here my wsdl file generated with java2wsdl and next the error when attempting undeploy the service. Thanks in advance.


http://impl.wsresiber.emision.iberia.com"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://impl.wsresiber.emision.iberia.com"
   
xmlns:intf="http://impl.wsresiber.emision.iberia.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="http://ints.wsresiber.emision.iberia.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">

    
        http://ints.wsresiber.emision.iberia.com"
xmlns="http://www.w3.org/2001/XMLSchema">
            http://schemas.xmlsoap.org/soap/encoding/" />

            
                
           
        
           
        
                
            
            
                
           
        
           
        
                
            
            
                
           
        
           
        
           
        
                
            
            
                
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
                
            
            
                
           
        
           
        
           
        
                
            
            
                
           
        
                
            
            
                
           
        
           
        
                
            
            
                
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
           
        
                
            
        
        http://impl.wsresiber.emision.iberia.com"
xmlns="http://www.w3.org/2001/XMLSchema">
            http://schemas.xmlsoap.org/soap/encoding/" />

            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
            
                
           
        
           
            
                    
                
            
        
    

    

        

    

    

        

    

    

        

            

           


        

    

    

        http://schemas.xmlsoap.org/soap/http
" />

        

            

            

           
    http://impl.wsresiber.emision.iberia.com" use="literal" />


            

            

           
    http://impl.wsresiber.emision.iberia.com" use="literal" />


            

        

    

    

        

           
http://localhost:8080/WSResiberPruebas/services/processTkt"
/>

        

    








Buildfile: E:\clases-java\research\WSResiberPruebas\build.xml
un-deployService:
[axis-admin] Processing file E:\clases-java\research\WSResiberPruebas\src\com\ib
eria\emision\wsresiber\impl\undeploy.wsdd
[axis-admin] AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.genera
lException
[axis-admin] faultSubcode:
[axis-admin] faultString: No such operation 'undeployment'
[axis-admin] faultActor:
[axis-admin] faultNode:
[axis-admin] faultDetail:
[axis-admin] {http://xml.apache.org/axis/}stackTrace: AxisFault
[axis-admin] faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.genera
lException
[axis-admin] faultSubcode:
[axis-admin] faultString: No such operation 'undeployment'
[axis-admin] faultActor:
[axis-admin] faultNode:
[axis-admin] faultDetail:
[axis-admin] 
[axis-admin] No such operation 'undeployment'
[axis-admin] at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBu
ilder.java:260)
[axis-admin] at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBui
lder.java:169)

Re: The duplicate type is happening here for the WSDL file

2006-06-28 Thread Davanum Srinivas

John,

Could i pester you to please open up a JIRA issue?

thanks,
dims

On 6/27/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Deepal,

I've butted my head against the same issue during the past few weeks (most
recently with the June 19 Axis2 snap) and have had to resort to fixing the
wsdl with a perl script.  Rather easy to reproduce with 2 source files:

test.MyService.java

package test;
import test.MyData;
public class MyService
{
private MyData myData = new MyData();

public MyData retrieveMyData()
{
return myData;
}
}

Test.MyData.java
###
package test;
public class MyData
{
private String myString = null;
public String getMyString() { return this.myString; }
public void setMyString(String arg) { this.myString = arg; }
}


I ran:
..\bin\java2wsdl.bat -cp . -sn TEST -l
http://localhost:8080/axis2/services/Logger -st wrapped -cn test.MyService
(and I did try different styles - same result)

Which resulted in the following wsdl with the element "MyData" defined
twice:
###
wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:axis2="http://test";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:ns1="http://test/xsd";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
targetNamespace="http://test";>
  
http://www.w3.org/2001/XMLSchema";
xmlns:ns="http://test/xsd"; targetNamespace="http://test/xsd";
elementFormDefault="unqualified" attributeFormDefault="unqualified">
  
  

  

  
  

  
  

  

  

  
  

  

  

  
  

  
  

  
  

  
  

  
  
http://schemas.xmlsoap.org/soap/http"; />

  
  
http://test"; use="literal" />
  
  
http://test"; use="literal" />
  

  
  
http://schemas.xmlsoap.org/soap/http"; />

  
  
http://test"; use="literal" />
  
  
http://test"; use="literal" />
  

  
  

  http://localhost:8080/axis2/services/LoggerTEST"; />


  http://localhost:8080/axis2/services/LoggerTEST"; />

  







-Original Message-
From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 12:41 AM
To: axis-user@ws.apache.org
Subject: Re: The duplicate type is happening here for the WSDL file

Hi Jim;
can you please provide a way to recreate the issue , I mean any
possibility of sending java class that you use :)

Jim Bender wrote:

> I don't know the precise step, but by the time that we leave the
> generateOM() method in the Java2OMBuilder, there are two complex type
> definitions in the WSDL.
>
>public OMElement generateOM() throws Exception {
>OMFactory fac = OMAbstractFactory.getOMFactory();
>wsdl = fac.createOMNamespace(WSDL_NAMESPACE,
>DEFAULT_WSDL_NAMESPACE_PREFIX);
>OMElement ele = fac.createOMElement("definitions", wsdl);
>
>ele.addAttribute("targetNamespace", targetNamespace, null);
>generateNamespaces(fac, ele);
>generateTypes(fac, ele);
>generateMessages(fac, ele);
>generatePortType(fac, ele);
>generateBinding(fac, ele);
>generateService(fac, ele);
>return ele;
>}
>
> The element's printString shows the story:
>
> http://schemas.xmlsoap.org/wsdl/";> xmlns:xs="http://www.w3.org/2001/XMLSchema";
> xmlns:ns="http://testexamples/xsd";
> targetNamespace="http://testexamples/xsd";
> elementFormDefault="unqualified" attributeFormDefault="unqualified">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Regards,
>
> Jim
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
Thanks,
Deepal

~Future is Open~



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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: Axis2 - new feature module adding services

2006-06-28 Thread Deepal Jayasinghe
Hi dims;

That is what we had yesterday  :)  , but it causes problems in war
distribution.
The problem is this;
  When ever we show a module (at the deployment time) , get its class
loader and try to invoke the following
ClassLoader cl = module.getModuleClassLoader();
 InputStream fin = moduleClassLoader.getResourceAsStream("services/"
+ servicename);

So in war case since we have services directory and services.list file
in it , the inputstream is not null in all the cases (b'coz parent class
loader has the request resources). So when I deploy axis2.war into
tomcat it failed today.

That is why I came up with the idea of "aars" and "aars.list" (I am
sorry for not discussing that in the list) , I too believe that it is
not consistent , but I dont have any other way of doing that. We can
still have the services.list but we have to come with a new name for
services then we are safe.

any suggestion .

Davanum Srinivas wrote:

> Deepal,
>
> Can we please change "aars" to services and aars.list to services.list
> to be consistent?
>
> thanks,
> dims
>
> On 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
>
>> Hi all;
>> I add a new feature to Axis2 !!
>> A module can add services when they deploy in Axis2 , module mar file
>> can contains any number of service archive file in side that. So when
>> the module is present in modules directory Axis2 will make all the
>> available services init (if there are any). This is some what similar to
>> module adding operations , but the difference is you can put services
>> archive files.
>>
>> Any of the libs or resources available  in module is visible to services
>> , that is b'coz parent class loader of all the services in a module is
>> module class loader.
>>
>> How do you add module services;
>>  - You need to add folder called "aars" in the same level as META-INF
>>  -  Need to list all the services in module archive file adding
>> aars.list
>>  - Then put all the services archives files into "aars"
>>
>> So module with services will look like below;
>>
>> myModule.mar
>>META-INF
>>  module.xml
>>   org
>> apache
>>   lib
>>   aars
>> aars.list
>> service1.aar
>> service2.aar
>>
>>
>> The corresponding aars.list file will look like below;
>> service1.aar
>> service2.aar
>>
>>
>> Comments and thoughts ...
>>
>> -- 
>>
>> Thanks,
>> Deepal
>> 
>> ~Future is Open~
>>
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

-- 
Thanks,
Deepal

~Future is Open~ 



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



[Axis2] uploaded .aar still using cached classes?

2006-06-28 Thread Andrew B
   Hi,I have uploaded a web service (.aar) to Axis2, and it appears to keep using old versions of the service classes, even after I've made changes and re-uploaded.Axis2 is running on JBoss 4.0.3, with JDK 1.4. I don't have the option of restarting JBoss, as it is a  production environment. Anyone have any idea why this might be happening, and how to get it to reload the classes? (I've also tried deactivating and reactivating the service, and this doesn't help).Thanks,Andrew 
		Yahoo! Music Unlimited - Access over 1 million songs.
Try it free. 

Re: [axis2 nightly build 22 Jun] file caching not working bug

2006-06-28 Thread Wan Kaveevivitchai


for furthur detail,
this is the error i got.

Exception in thread "main" org.apache.axis2.AxisFault: null; nested 
exception is:

java.lang.reflect.InvocationTargetException
	at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:451)
	at 
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393)

at fileT.fileC.sendFile(fileC.java:118)
at fileT.fileC.main(fileC.java:50)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: null; nested 
exception is:

java.lang.reflect.InvocationTargetException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
	at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:144)
	at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:483)
	at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)

at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:423)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:355)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:219)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:542)
	at 
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:145)
	at 
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:126)

at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:119)
at org.mortbay.jetty.Server.handle(Server.java:245)
at 
org.mortbay.jetty.HttpConnection.handlerRequest(HttpConnection.java:365)
at org.mortbay.jetty.HttpConnection.access$1500(HttpConnection.java:38)
	at 
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:623)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:690)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:192)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:296)
	at 
org.mortbay.jetty.nio.SelectChannelConnector$HttpEndPoint.run(SelectChannelConnector.java:740)
	at 
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:435)

Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)
	at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:114)

... 22 more
Caused by: java.lang.OutOfMemoryError

at org.apache.axis2.AxisFault.(AxisFault.java:159)
... 5 more



From: "Davanum Srinivas" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: [axis2 nightly build 22 Jun] file caching not working bug
Date: Wed, 28 Jun 2006 04:13:03 -0400

Sathita,

We have no idea what this is about. Can you please explain a bit
further? which property did you set? expected behavior and stack
traces if any.

thanks,
dims

On 6/28/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

There is the problem of file caching, it doesn't working in nightly build
version released on June 22, 06. Eventhough, the cache properties in
axis2.xml already been set.

Is there any solution for this? Is it a bug?

Sathita



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





--
Davanum Srinivas : http://people.apache.org/~dims/

-
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: SAML and axis 1.4.1

2006-06-28 Thread Davanum Srinivas

try the samples / test cases in Apache wss4j.

thanks,
dims

On 6/28/06, Wishing Carebear <[EMAIL PROTECTED]> wrote:

Hello:
I want to use SAML and ws-securitywith axis1.4. Is there any example
available on this topic.

Thanks for your help and time,

Regards,
cbear




--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: [axis2 nightly build 22 Jun] file caching not working bug

2006-06-28 Thread Wan Kaveevivitchai


I was writing some email earlier about problem in sending large file ~ 10 MB 
and got broken pipe exception. And there was the suggestion to use the new 
nightly release which is the 22 Jun 06 release and the broken pipe problem 
was solve.


So i moved on to test with 100 MB size attachment, and i got 
java.lang.OutOfMemory error, so i did some setting about cache on axis2.xml 
as following


   true
   locked="false">/users/alice3/home/

   4000

but it seems like it still cache into the memory, also when i check at the 
home directory, there is no cached file at all. So we tried extend the 
memory size and the attachment is received fine but it isn't the good way to 
do it, i supposed. So i think the problem is about cache is not working.


Please take a look,
 Sathita


From: "Davanum Srinivas" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: axis-user@ws.apache.org
Subject: Re: [axis2 nightly build 22 Jun] file caching not working bug
Date: Wed, 28 Jun 2006 04:13:03 -0400

Sathita,

We have no idea what this is about. Can you please explain a bit
further? which property did you set? expected behavior and stack
traces if any.

thanks,
dims

On 6/28/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

There is the problem of file caching, it doesn't working in nightly build
version released on June 22, 06. Eventhough, the cache properties in
axis2.xml already been set.

Is there any solution for this? Is it a bug?

Sathita



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





--
Davanum Srinivas : http://people.apache.org/~dims/

-
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 - new feature module adding services

2006-06-28 Thread Davanum Srinivas

Deepal,

Can we please change "aars" to services and aars.list to services.list
to be consistent?

thanks,
dims

On 6/28/06, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:

Hi all;
I add a new feature to Axis2 !!
A module can add services when they deploy in Axis2 , module mar file
can contains any number of service archive file in side that. So when
the module is present in modules directory Axis2 will make all the
available services init (if there are any). This is some what similar to
module adding operations , but the difference is you can put services
archive files.

Any of the libs or resources available  in module is visible to services
, that is b'coz parent class loader of all the services in a module is
module class loader.

How do you add module services;
 - You need to add folder called "aars" in the same level as META-INF
 -  Need to list all the services in module archive file adding aars.list
 - Then put all the services archives files into "aars"

So module with services will look like below;

myModule.mar
   META-INF
 module.xml
  org
apache
  lib
  aars
aars.list
service1.aar
service2.aar


The corresponding aars.list file will look like below;
service1.aar
service2.aar


Comments and thoughts ...

--

Thanks,
Deepal

~Future is Open~



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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Axis2 and attachments

2006-06-28 Thread zolv
I read sample codes, tutorials etc about attachments. And everything would be 
cool but...I don't have needed classes - whole org.apache.axis2.attachments 
package doesn't exist. Frow where should I get it?
It's written nowhere :/
Thx for info

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



SSO authentication for .NET clients?

2006-06-28 Thread Jeremy . Mawson


Hello

I have an existing WS using Axis 1.2 and wish to incorporate authentication
of the client. The catch is that the clients (which are all .NET) must
authenticate using NT credentials and should not be promted.

Is there any way for Java to interrogate the NT domain in order to validate
user credentials? And if so, is there an authentication handler for NTLM,
or would I be restricted to Digest or basic methods?

Thanks in advance
Jeremy


National Australia Bank Ltd - ABN 12 004 044 937
This email may contain confidential information. If you are not the intended 
recipient, please immediately notify us at [EMAIL PROTECTED] or by replying to 
the sender, and then destroy all copies of this email. Except where this email 
indicates otherwise, views expressed in this email are those of the sender and 
not of National Australia Bank Ltd. Advice in this email does not take account 
of your objectives, financial situation, or needs. It is important for you to 
consider these matters and, if the e-mail refers to a product(s), you should 
read the relevant Product Disclosure Statement(s)/other disclosure document(s) 
before making any decisions. If you do not want email marketing from us in 
future, forward this email with "unsubscribe" in the subject line to [EMAIL 
PROTECTED] in order to stop marketing emails from this sender. National 
Australia Bank Ltd does not represent that this email is free of errors, 
viruses or interference.

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



Re: [axis2 nightly build 22 Jun] file caching not working bug

2006-06-28 Thread Davanum Srinivas

Sathita,

We have no idea what this is about. Can you please explain a bit
further? which property did you set? expected behavior and stack
traces if any.

thanks,
dims

On 6/28/06, Wan Kaveevivitchai <[EMAIL PROTECTED]> wrote:

There is the problem of file caching, it doesn't working in nightly build
version released on June 22, 06. Eventhough, the cache properties in
axis2.xml already been set.

Is there any solution for this? Is it a bug?

Sathita



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





--
Davanum Srinivas : http://people.apache.org/~dims/

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



Re: [Axis2] Need a small example with HttpSession

2006-06-28 Thread Loïc MAZE

Thanks a lot for all the replies,

In order to manage HttpSession, I've tried the following code for my web 
service :


public class TestSessionService implements ServiceLifecycle {
   private ServletEndpointContext jaxrpcContext;

   public void init(Object context) throws ServiceException {
   jaxrpcContext = (ServletEndpointContext) context;
   }

   public void destroy() {
   jaxrpcContext = null;
   }

   public void tester() {
   HttpSession session = jaxrpcContext.getHttpSession();
   System.out.println("SESSION ID : "+session.getId());
   }

}

But I get this error when the getHttpSession() method is invoked :
org.apache.axis2.AxisFault: null; nested exception is: 
java.lang.NullPointerException


I think the object named jaxrpcContext isn't initialise in the init() method 
and is always null.
My source is this document : 
http://www-128.ibm.com/developerworks/xml/library/ws-tip-stateful.html


Any kind of help will be highly appreciated.

Best regards,
Loïc


- Original Message - 
From: "Deepal Jayasinghe" <[EMAIL PROTECTED]>

To: 
Sent: Wednesday, June 28, 2006 9:06 AM
Subject: Re: [Axis2] Need a small example with HttpSession





Loïc MAZE wrote:


Hi,

I'm a beginner with Axis 2 and I would like to know how to implement a
stateful web service using HttpSession. I've spent several hours on
this mailing but I’ve found absolutely nothing.


ya , we dont have enough documents explaining session management stuff
(I am on the process of writing a document on this area).


Can somebody supply a concrete example of axis session ? Any
information in this regard will be highly appreciated.


Managing transport level session require you to change axis2.xml , need
to add the following parameter;
true

Then you need to deploy your services with its scope being
"transportsession" .

In the client side when you invoking the service you have an option to
manage session as well.

To understand the concept pls have a look at
http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceGroupContextTest.java


Best regards,
Loïc



--
Thanks,
Deepal

~Future is Open~



-
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 nightly build 22 Jun] file caching not working bug

2006-06-28 Thread Wan Kaveevivitchai
There is the problem of file caching, it doesn't working in nightly build 
version released on June 22, 06. Eventhough, the cache properties in 
axis2.xml already been set.


Is there any solution for this? Is it a bug?

Sathita



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



Re: [Axis2] Need a small example with HttpSession

2006-06-28 Thread Deepal Jayasinghe


Loïc MAZE wrote:

> Hi,
>
> I'm a beginner with Axis 2 and I would like to know how to implement a
> stateful web service using HttpSession. I've spent several hours on
> this mailing but I’ve found absolutely nothing.

ya , we dont have enough documents explaining session management stuff
(I am on the process of writing a document on this area).

> Can somebody supply a concrete example of axis session ? Any
> information in this regard will be highly appreciated.

Managing transport level session require you to change axis2.xml , need
to add the following parameter;
true

Then you need to deploy your services with its scope being
"transportsession" .

In the client side when you invoking the service you have an option to
manage session as well.

To understand the concept pls have a look at
http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/integration/test/org/apache/axis2/engine/ServiceGroupContextTest.java

> Best regards,
> Loïc


-- 
Thanks,
Deepal

~Future is Open~ 



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