Re: Sandesha2 1.5 Release Candidate

2010-02-18 Thread David Parsons1
Hi Amila,

Definitely.  I was planning on getting to this asap.  I will try to get to 
it today and put the vote out.

Regards,

Dave

Dave Parsons
Web Services Development
INTERNAL:  David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930
EXTERNAL:  parso...@uk.ibm.com :: (01962) 816930
Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN




From:
Amila Suriarachchi 
To:
David Parsons1/UK/i...@ibmgb
Cc:
axis-user@ws.apache.org, sandesha-...@ws.apache.org, 
axis-...@ws.apache.org, gene...@ws.apache.org
Date:
18/02/2010 04:55
Subject:
Re: Sandesha2 1.5 Release Candidate



since rampart 1.5 has been released shall we do the sandesha release?

thanks,
Amila.

On Tue, Oct 6, 2009 at 9:07 PM, David Parsons1  
wrote:

Hi, 

I have created a Sandesha2 1.5 release candidate here: 

http://people.apache.org/~parsonsd/sandesha-1.5/RC1/dist/ 

and the M2 repository can be found here: 

http://people.apache.org/~parsonsd/sandesha-1.5/RC1/m2_repo/ 

This release candidate is using the Rampart 1.5 release candidate which 
can be found: 

 http://people.apache.org/~nandana/rampart-1.5/RC1/dist/ 

and the M2 repository for this can be found here: 

   http://people.apache.org/~nandana/rampart-1.5/RC1/m2_repo/ 


I will leave this available for a short period of time.  If no one finds 
any issues I'll request a vote on whether to submit it as a release of 
Sandesha2.  The Rampart 1.5 release is going to have to be cut before I 
can officially cut the Sandesha2 release so does anyone know how close 
this is to being done? 

Regards, 

Dave 

Dave Parsons
Web Services Development
INTERNAL:  David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930
EXTERNAL:  parso...@uk.ibm.com :: (01962) 816930
Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU 












Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU 









-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/







Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







AUTO: Dave Parsons is out of the office. (returning 30/11/2009)

2009-11-23 Thread David Parsons1

I am out of the office until 30/11/2009.

I will respond to your message when I return.

Speak to Sara Mitchell if you have any technical or project related WSRM
issues.
For UDDI issues speak to Mark Lewis.
Anything else speak to my manager Hilora Munro.

Cheers,

Dave


Note: This is an automated response to your message  "Re: Problem running
axis2-wsdl2code-maven-plugin" sent on 17/11/09 16:03:25.

This is the only notification you will receive while this person is away.



RE: Use XMLBeans with Axis1?

2009-11-17 Thread KARR, DAVID (ATTCINW)
Specifically, I need to see exactly how you tell wsdl2java to use
xmlbeans.  I'm using the Ant task. I don't need to know that I can, I
just need to know how to do it.  I've examined the available options for
the Ant task, and I just don't see it.

 

From: Olindo Pindaro [mailto:o.pind...@gmail.com] 
Sent: Tuesday, November 17, 2009 1:13 AM
To: axis-user@ws.apache.org
Subject: Re: Use XMLBeans with Axis1?

 

"wsdl2java" could use xmlbeans  when you invoking it to map wsdl objects
in java beans.

 

You can use SOAPUI , a GUI to automate webservice code generation using
Axis1 o 2 (and not only axis), to do that.

 

So on generated classes you can manipulate objects using get & set, so
xmlBeans is transparent to the programmer, you can see it just as
included packeges in generated classes.

 

I hope to be more clear.

 

Bye

Olindo

2009/11/17 KARR, DAVID (ATTCINW) 

Ok, I guess I should have worded my question differently.

 

Can you tell me HOW you did it?  Show me the required elements and what
they look like.

 

From: Olindo Pindaro [mailto:o.pind...@gmail.com] 
Sent: Monday, November 16, 2009 2:59 PM
To: axis-user@ws.apache.org
Subject: Re: Use XMLBeans with Axis1?

 

I just relased a project using Axis 1.4 with xmlbeans. 

 

No problem, the "Integration" is natural, seamless.

 

 

2009/11/16 KARR, DAVID (ATTCINW) 

I know that usage of Axis1 is probably pretty rare now, but I wanted to
know whether there is any (successful) experience integrating Axis1 with
XMLBeans.  I've done some searches on the internet, and the only ones I
found were people who gave up. :)



Bye!
-- 
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro 
+39 3939455830




-- 
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro 
+39 3939455830



RE: Use XMLBeans with Axis1?

2009-11-16 Thread KARR, DAVID (ATTCINW)
Ok, I guess I should have worded my question differently.

 

Can you tell me HOW you did it?  Show me the required elements and what
they look like.

 

From: Olindo Pindaro [mailto:o.pind...@gmail.com] 
Sent: Monday, November 16, 2009 2:59 PM
To: axis-user@ws.apache.org
Subject: Re: Use XMLBeans with Axis1?

 

I just relased a project using Axis 1.4 with xmlbeans. 

 

No problem, the "Integration" is natural, seamless.

 

 

2009/11/16 KARR, DAVID (ATTCINW) 

I know that usage of Axis1 is probably pretty rare now, but I wanted to
know whether there is any (successful) experience integrating Axis1 with
XMLBeans.  I've done some searches on the internet, and the only ones I
found were people who gave up. :)



Bye!
-- 
Olindo Pindaro
http://www.linkedin.com/in/olindopindaro 
+39 3939455830



Use XMLBeans with Axis1?

2009-11-16 Thread KARR, DAVID (ATTCINW)
I know that usage of Axis1 is probably pretty rare now, but I wanted to
know whether there is any (successful) experience integrating Axis1 with
XMLBeans.  I've done some searches on the internet, and the only ones I
found were people who gave up. :)


unsubscribe

2009-10-21 Thread David Gibbs



From: Chinmoy Chakraborty [mailto:cch...@gmail.com]
Sent: 21 October 2009 12:09
To: axis-user@ws.apache.org
Subject: Re: Error page returned instead of Soap Exception when WS-Security 
Authentication fails in Rampart

I saw this error and I suppose this is fixed in 1.5..you can look at [1].

[1]. [ 
https://issues.apache.org/jira/browse/RAMPART-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739525#action_12739525
 ]

HTH,
Chinmoy



On Wed, Oct 21, 2009 at 12:17 PM, Ellecer Valencia 
mailto:elle...@gmail.com>> wrote:
Hi,

I'm trying to set up WS-Security (just username/password-clear-text)
and I'm trying to get the service to return a Soap Exception when the
user logs in with the wrong details. Should be easy, right? However, I
keep getting HTTP 500 error pages instead of Soap Exceptions, like
this one:

Apache Tomcat/6.0.18 - Error
report HTTP Status 500 - type Status
reportmessage description The
server encountered an internal error () that prevented it from
fulfilling this request.Apache Tomcat/6.0.18

Now I'm testing using axis 1.4.1, putting the exploded webapp in the
tomcat /webapps directory. When I started getting the error pages, I
thought removing the mappings for the HTTP 500 error in
/WEB-INF/web.xml would fix it, but it didn't. I've now removed
everything else in the Tomcat webapps directory, I've cleaned out the
Tomcat /work directory, I've even removed the /axis2-web directory in
the Axis webapp, just to eliminate the possiblity of any more JSPs -
*and the error pages still keep displaying*.

I came across a post from July that is having a problem similar to mine:

http://marc.info/?l=axis-user&m=124662013625695&w=2

However, I didn't come across any posts that resolved his problem.

The software I'm using is:

Axis 1.4.1
Rampart 1.4
Tomcat 6.0.18

Has anyone encountered this problem and what fixed it? I've tried
doing it using policy.xml and via "basic" rampart config, and am
getting similar results.

Actually, the curious thing is that when I get the error from a
service configured with "basic" rampart config, I get a stacktrace,
like this:

mApache Tomcat/6.0.18 - Error
report HTTP Status 500 - type Exception
reportmessage description The
server encountered an internal error () that prevented it from
fulfilling this request.exception
java.lang.NullPointerException
   
org.apache.rampart.RampartMessageData.(RampartMessageData.java:308)
   org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
   org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
   org.apache.axis2.engine.Phase.invoke(Phase.java:317)
   org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
   org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:520)
   
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:416)
   
org.apache.axis2.transport.http.AxisServlet.processAxisFault(AxisServlet.java:379)
   org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:167)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is
available in the Apache Tomcat/6.0.18 logs.Apache Tomcat/6.0.18

-- and it says "Exception report" instead of "Status report" like in
the first one. I don't know if this indicates it's a different page
that is hardcoded inside of Axis (just guessing here)?

Thanks in advance for any ideas and help from all you wonderful
members of the mailing list.  =)


thanks,

Ellecer



The information contained in this email is strictly confidential and for the 
use of the addressee only, unless otherwise

Does axis2-java2wsdl-maven-plugin work (with Axis2 1.5)?

2009-10-20 Thread David Dearing
I am trying to get the java2wsdl Maven plugin to work with no luck.
Does anyone have this plugin working?

I am using Axis2 1.5 and when I run "mvn axis2-java2wsdl:java2wsdl" I
get a NullPointerException.

Can anyone offer some help?  Thanks!
dave

from my pom.xml:
  
 org.apache.axis2
 axis2-java2wsdl-maven-plugin
 

   
  java2wsdl
   

 
 
com.full.class.path.Service
 
  


Trouble with Maven including rampart.mar as client-side dependency

2009-10-19 Thread David Dearing
I am trying to run Axis2+Rampart for a simple example with plain text
UsernameToken and Password.  I am using Axis2 1.5 and Rampart 1.4.

I have a secured service hosted by Axis that works fine with maven.  The
rampart and rahas modules are deployed correctly, using the mar files
from my maven repository.

Using the same maven configuration, I am trying to create the
corresponding client, but the rampart and rahas modules are *not*
deployed by default.  engageModule("rampart") always gives me an
"AxisFault: Unable to engage module : rampart"

I can force the client to deploy the modules by creating a
ConfigurationContext from the file system, but I would like these to be
automatically found from the maven classpath rather than separately
including the mar files as a client repository.

Does anyone have a clue as to how I can get the client to find the maven
dependencies when engaging the client?

Thanks in advance!
dave


Re: AbstractMethodError in simple Rampart client?

2009-10-12 Thread David Dearing
Thanks for the tip!  You were correct.  Actually, the problem was that I
was *missing* the axiom-dom dependency in my pom.xml.

As a follow-up, is there a good listing of needed dependencies for a
maven pom.xml using Axis2?  I feel like there are many runtime
dependencies and it would be nice to verify that I have at least the
minimal set.

Thanks!

Andreas Veithen wrote:
> An AbstractMethodError can only occur if the dependencies at runtime
> are different from the dependencies at build time. The stacktrace
> shows that this happens somewhere inside Axiom. Since Axiom only
> depends on very stable APIs (Activation, JavaMail and StAX), the only
> possible explanation is that you have a mix of Axiom libraries from
> different versions. Probably the version of axiom-dom you are using is
> older than the version of axiom-api.
> 
> Andreas
> 
> On Fri, Oct 9, 2009 at 20:47, David Dearing  
> wrote:
>> I have created a simple Axis2 "echo" service and client and am now
>> trying to add Rampart security, starting with a simple UsernameToken and
>> plain text Password.
>>
>> The secured service is running and it rejects client calls that are
>> missing the required SOAP header.
>>
>> I set up the client to add the username and password, but I get an
>> AbstractMethodError on the client side.  Am I missing a configuration
>> step or an overlooked dependency?  Any help would be greatly appreciated!!
>>
>> I'm using Axis2 1.5 and Rampart 1.4.  The rahas-1.4 and rampart-1.4
>> modules *do* get deployed from the client repo.  Brief code snippet:
>>
>>   ConfigurationContext ctx = //snip: Factory.create(repo)
>>   SecureServiceStub stub = new SecureServiceStub(ctx);
>>
>>   // configure rampart security
>>   ServiceClient sc = stub._getServiceClient();
>>   sc.engageModule("rampart");
>>
>>   Options options = sc.getOptions();
>>   options.setUserName("guest");
>>   options.setPassword("pass");
>>
>>   stub.echo("hello");
>>
>>
>> Exception in thread "main" java.lang.AbstractMethodError
>> org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:230)
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:396)
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:425)
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:282)
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
>> org.apache.axiom.om.impl.dom.DocumentImpl.getOMDocumentElement(DocumentImpl.java:443)
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502)
>> org.apache.rahas.Token.(Token.java:141)
>> org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:388)
>> ...
>>
>>
>>
> 
> 



Re: [Axis2] AbstractMethodError in simple Rampart client

2009-10-09 Thread David Dearing
David Dearing wrote:
> I have created a simple Axis2 "echo" service and client and am now
> trying to add Rampart security, starting with a simple UsernameToken and
> plain text Password.
> 
> The secured service is running and it rejects client calls that are
> missing the required SOAP header.
> 
> I set up the client to add the username and password, but I get an
> AbstractMethodError on the client side.  Am I missing a configuration
> step or an overlooked dependency?  Any help would be greatly appreciated!!
> 
> I'm using Axis2 1.5 and Rampart 1.4.  The rahas-1.4 and rampart-1.4
> modules *do* get deployed from the client repo.  Brief code snippet:
> 
>ConfigurationContext ctx = //snip: Factory.create(repo)
>SecureServiceStub stub = new SecureServiceStub(ctx);
> 
>// configure rampart security
>ServiceClient sc = stub._getServiceClient();
>sc.engageModule("rampart");
> 
>Options options = sc.getOptions();
>options.setUserName("guest");
>options.setPassword("pass");
> 
>stub.echo("hello");
> 
> 
> Exception in thread "main" java.lang.AbstractMethodError
> org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:230)
> org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:396)
> org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:425)
> org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:282)
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
> org.apache.axiom.om.impl.dom.DocumentImpl.getOMDocumentElement(DocumentImpl.java:443)
> org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502)
> org.apache.rahas.Token.(Token.java:141)
> org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:388)
> ...
> 
> 


Some additional investigation led me to find the error being generated
from a line in StAXBuilder that attempts to call
OMAttribute.setAttributeType with a null type.

The OMAttribute appears to be wsu:Id for the wsse:UsernameToken element.
 I think this type should be "xsd:ID", but I'm not sure where/how to
change this on the client.


RE: Re : [Axis2] Pb with name?

2009-10-09 Thread David Hesson
Can I please see the signature of the POJO method?  I'm not sure if it's 
related to having a complex object as the input argument, or maybe a property 
needs set in the Axis2 config.

 

____

From: David [mailto:tida...@yahoo.fr] 
Sent: Friday, October 09, 2009 11:51 AM
To: axis-user@ws.apache.org
Subject: Re : [Axis2] Pb with  name?

 

Yes POJO Service. I m using JDK 1.5

 

____

De : David Hesson 
À : axis-user@ws.apache.org
Envoyé le : Ven 9 Octobre 2009, 17 h 41 min 43 s
Objet : RE: [Axis2] Pb with  name?

Is that a POJO service or what?  And what JDK are you using.

 

 

 



From: Didav Didav [mailto:dida...@hotmail.fr] 
Sent: Friday, October 09, 2009 8:41 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Pb with  name?

 

Hi,

I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question 
about parameter name in wsdl...

Why are they specified "param0" for the name of the tag ?

For example :

 

instead of

 


Thanks a lot,

David 



Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici ! 
<http://www.microsoft.com/france/windows/products/winfamily/ie/ie8/msn/default.aspx>
 

 



AbstractMethodError in simple Rampart client

2009-10-09 Thread David Dearing
I have created a simple Axis2 "echo" service and client and am now
trying to add Rampart security, starting with a simple UsernameToken and
plain text Password.

The secured service is running and it rejects client calls that are
missing the required SOAP header.

I set up the client to add the username and password, but I get an
AbstractMethodError on the client side.  Am I missing a configuration
step or an overlooked dependency?  Any help would be greatly appreciated!!

I'm using Axis2 1.5 and Rampart 1.4.  The rahas-1.4 and rampart-1.4
modules *do* get deployed from the client repo.  Brief code snippet:

   ConfigurationContext ctx = //snip: Factory.create(repo)
   SecureServiceStub stub = new SecureServiceStub(ctx);

   // configure rampart security
   ServiceClient sc = stub._getServiceClient();
   sc.engageModule("rampart");

   Options options = sc.getOptions();
   options.setUserName("guest");
   options.setPassword("pass");

   stub.echo("hello");


Exception in thread "main" java.lang.AbstractMethodError
org.apache.axiom.om.impl.builder.StAXBuilder.processAttributes(StAXBuilder.java:230)
org.apache.axiom.om.impl.builder.StAXOMBuilder.populateOMElement(StAXOMBuilder.java:396)
org.apache.axiom.om.impl.builder.StAXOMBuilder.createOMElement(StAXOMBuilder.java:425)
org.apache.axiom.om.impl.builder.StAXOMBuilder.createNextOMElement(StAXOMBuilder.java:282)
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:207)
org.apache.axiom.om.impl.dom.DocumentImpl.getOMDocumentElement(DocumentImpl.java:443)
org.apache.axiom.om.impl.builder.StAXOMBuilder.getDocumentElement(StAXOMBuilder.java:502)
org.apache.rahas.Token.(Token.java:141)
org.apache.rampart.builder.BindingBuilder.handleSupportingTokens(BindingBuilder.java:388)
...




Re : [Axis2] Pb with name?

2009-10-09 Thread David
Yes POJO Service. I m using JDK 1.5





De : David Hesson 
À : axis-user@ws.apache.org
Envoyé le : Ven 9 Octobre 2009, 17 h 41 min 43 s
Objet : RE: [Axis2]  Pb with  name?

 
Is that a POJO service or what?  And what
JDK are you using.
 
 
 


 
From:Didav Didav
[mailto:dida...@hotmail.fr] 
Sent: Friday, October 09, 2009
8:41 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Pb with
 name?
 
Hi,

I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question
about parameter name in wsdl...

Why are they specified "param0" for the name of
the tag ?

For example :



instead of




Thanks a lot,

David 


 
Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !


  

RE: [Axis2] Pb with name?

2009-10-09 Thread David Hesson
Is that a POJO service or what?  And what JDK are you using.

 

 

 



From: Didav Didav [mailto:dida...@hotmail.fr] 
Sent: Friday, October 09, 2009 8:41 AM
To: axis-user@ws.apache.org
Subject: [Axis2] Pb with  name?

 

Hi,

I deploy my web service with Axis2-1.3 and weblogic 10 and I have a
question about parameter name in wsdl...

Why are they specified "param0" for the name of the tag ?

For example :

 

instead of

 


Thanks a lot,

David 



Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !
<http://www.microsoft.com/france/windows/products/winfamily/ie/ie8/msn/d
efault.aspx> 



Re : [Axis2] Pb with name?

2009-10-09 Thread David
Okthe answer is to compile the procjet in debug to have the attribute name 
"donnee" in the class file







De : Didav Didav 
À : axis-user@ws.apache.org
Envoyé le : Ven 9 Octobre 2009, 14 h 41 min 17 s
Objet : [Axis2]  Pb with  name?

 Hi,

I deploy my web service with Axis2-1.3 and weblogic 10 and I have a question 
about parameter name in wsdl...

Why are they specified "param0" for the name of the tag ?

For example :

 

instead of

 


Thanks a lot,

David 

Gratuit : Hotmail plus rapide avec Internet Explorer 8 ! Cliquez ici !


  

[Axis2] attribute name in

2009-10-09 Thread David
Hi,

I deploy my web service with Axis2 and weblogic 10 and I have a question about 
parameter name in wsdl...

Why are they specified "param0" for the name?

For example :

 

instead of

 

What is the solution to have "donnees" instead fo "param0"?

Thanks a lot,

David


  

RE: Question About wsdl4j License

2009-10-06 Thread David Dillard
Just to clarify, when I said I grep'd the source, I meant ALL of the
source as found in the source distribution zip file, not just the files
I believe make up wsdl4j.

 

 

From: David Dillard [mailto:david_dill...@symantec.com] 
Sent: Tuesday, October 06, 2009 12:33 PM
To: axis-user@ws.apache.org
Subject: Question About wsdl4j License

 

Hi,

 

I've got a question about the wsdl4j license in Axis2.  In the legal
stuff it says that wsdl4j is made available under the CPL 1.0.  However,
when I look at the source files that I *believe* make up all of wsdl4j I
see that they're all under the Apache 2 license.  In addition, I grep'd
the source and the only place where I find the string "Common Public" is
in the wsdl4j license file - not in any source file.  So either the
wsdl4j license file no longer applies or I'm missing something.

 

Can someone help me out here?

 

 

Thanks,

 

David

 



Question About wsdl4j License

2009-10-06 Thread David Dillard
Hi,

 

I've got a question about the wsdl4j license in Axis2.  In the legal
stuff it says that wsdl4j is made available under the CPL 1.0.  However,
when I look at the source files that I *believe* make up all of wsdl4j I
see that they're all under the Apache 2 license.  In addition, I grep'd
the source and the only place where I find the string "Common Public" is
in the wsdl4j license file - not in any source file.  So either the
wsdl4j license file no longer applies or I'm missing something.

 

Can someone help me out here?

 

 

Thanks,

 

David

 



Sandesha2 1.5 Release Candidate

2009-10-06 Thread David Parsons1
Hi,

I have created a Sandesha2 1.5 release candidate here:

http://people.apache.org/~parsonsd/sandesha-1.5/RC1/dist/

and the M2 repository can be found here:

http://people.apache.org/~parsonsd/sandesha-1.5/RC1/m2_repo/

This release candidate is using the Rampart 1.5 release candidate which 
can be found:

 http://people.apache.org/~nandana/rampart-1.5/RC1/dist/

and the M2 repository for this can be found here:

http://people.apache.org/~nandana/rampart-1.5/RC1/m2_repo/


I will leave this available for a short period of time.  If no one finds 
any issues I'll request a vote on whether to submit it as a release of 
Sandesha2.  The Rampart 1.5 release is going to have to be cut before I 
can officially cut the Sandesha2 release so does anyone know how close 
this is to being done?

Regards,

Dave

Dave Parsons
Web Services Development
INTERNAL:  David Parsons1/UK/i...@ibmgb :: DE3F20 :: 246930
EXTERNAL:  parso...@uk.ibm.com :: (01962) 816930
Mail Point 211, IBM Hursley Park, Winchester. SO21 2JN






Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU












Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU







unsubscribe

2009-09-30 Thread David
unsubscribe


Re: Axis2 1.5 In Production

2009-09-11 Thread David Rees
On Fri, Sep 11, 2009 at 6:01 AM, ibrahim demir  wrote:
> We are using Axis2 1.4.1 both on client side and server side for calling web
> services and serving our services in a production environment.
>
> Is there any one using Axis2 1.5 in prod environment. Can you share your
> practicies..

Essentially works the same as 1.4 when we upgraded.  Seamless upgrade.

-Dave


Axis 1.4 strange characters < ....

2009-08-24 Thread David Vir

Hello,

My name is David and i have seen that you are an experienced user of axis. I
need to connect to one Web Service that have a wsdl that i can't change.=20

I am receiving strange characters in their response:

For example:

You must present a photo ID when checking in. Your credit card is charged at
the time you book. 
		Bed type and smoking preferences are
not guaranteed.Your reservation is prepaid and is guaranteed

		for late arrival. The total charge includes all room
charges and taxes, as well as fees for access 
		and booking.
Any incidental charges such as parking, phone calls, and room service will
be handled 
		directly between you and the property.

The wsdl is RPC encoded and i can only use Axis 1.4 because Axis 2 doesn't
allow RPC encoded.=20

I don't know how to solve this problem because i receive many strange
characters

Do you know how to solve, including some header in the stub? The stub of
axis have one method setHeader.

I have tried the following:=20

  stub.setHeader("urn:thisNamespace", "charset", "ISO-8859-1"); or
  stub.setHeader("urn:thisNamespace", "charset", "UTF-8");

And the result is the same.

Do you know how to solve?

Regards


-- 
View this message in context: 
http://www.nabble.com/Axis-1.4-strange-characters--lt13--tp25117696p25117696.html
Sent from the Axis - User mailing list archive at Nabble.com.



no exe in bin distro + failed build

2009-08-20 Thread David Michel
Hi All,

Sorry, this might sounds as a stupid question, but I just downloaded
axis-bin-1_4.tar.gz  but there are no class files ? How is this a
"bin" distribution ?

So, I got the src distro, and try to build it (simply running ant with
sun's 1.6 jvm) and I get this (see below)

Any idea ? I don't understand way the distro is organised, why the
build fails...

Many thanks in advance for your help
David


$ ant
Buildfile: build.xml
Warning: 'file:xmls/properties.xml' in
/home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed
simply as 'xmls/properties.xml' for compliance with other XML tools
Warning: 'file:xmls/path_refs.xml' in
/home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed
simply as 'xmls/path_refs.xml' for compliance with other XML tools
Warning: 'file:xmls/taskdefs.xml' in
/home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed
simply as 'xmls/taskdefs.xml' for compliance with other XML tools
Warning: 'file:xmls/targets.xml' in
/home/micd/keep/core/trunk/util/axis-1_4/build.xml should be expressed
simply as 'xmls/targets.xml' for compliance with other XML tools

axis-clover-setenv:

axis-clover-setup:

axis-xmlbeans-setenv:

axis-xmlbeans-setup:

setenv:

check-javadoc-needed:

printEnv:
[echo] -
[echo]Build environment for Axis 1.4 [2005]
[echo] -
[echo] Building with Apache Ant version 1.7.0 compiled on August 29 2007
[echo] using build file /home/micd/keep/core/trunk/util/axis-1_4/build.xml
[echo] Java 1.6.0_14 located at /usr/lib/jvm/java-6-sun-1.6.0.14/jre
[echo] -
[echo] --- Flags (Note: If the {property name} is displayed,
[echo]then the component is not present)
[echo]
[echo] basedir = /home/micd/keep/core/trunk/util/axis-1_4
[echo] axis.home = /home/micd/keep/core/trunk/util/axis-1_4
[echo] build.dir = /home/micd/keep/core/trunk/util/axis-1_4/build
[echo] build.dest = /home/micd/keep/core/trunk/util/axis-1_4/build/classes
[echo] lib.dir = /home/micd/keep/core/trunk/util/axis-1_4/lib
[echo]
[echo] === Required Libraries (for building code) ===
[echo] activation.present=true
[echo] commons-discovery.present=true
[echo] commons-logging.present=true
[echo] wsdl4j.present=true
[echo]
[echo] --- Optional Libraries (for building code) ---
[echo] attachments.present=true
[echo] bsf.present=true
[echo] castor.present=true
[echo] commons-httpclient.present=true
[echo] commons-net.present=true
[echo] ibm.jsse.present=${ibm.jsse.present}
[echo] jimi.present=true
[echo] jms.present=true
[echo] jetty.present=${jetty.present}
[echo] jdk14.jsse.present=true
[echo] mailapi.present=true
[echo] regexp.present=true
[echo] security.present=${security.present}
[echo] servlet.present=true
[echo] sun.jsse.present=true
[echo] xmlbeans.present=${xmlbeans.present}
[echo]
[echo] --- Miscellaneous (for running tests) ---
[echo] axis-ant.present=${axis-ant.present}
[echo] clover.present=${clover.present}
[echo] httpunit.present=true
[echo] junit.present=true
[echo] log4j.present=true
[echo]
[echo] --- Property values ---
[echo] debug=on
[echo] nowarn=off
[echo] source=1.3
[echo] target=1.3
[echo] deprecation=true
[echo] build.compiler=${build.compiler}
[echo] javac.fork=no
[echo] axis_nojavadocs=${env.axis_nojavadocs}
[echo] 
javax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
[echo] 
javax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
[echo] 
sun.boot.class.path=/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/resources.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/rt.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jsse.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/jce.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/lib/charsets.jar:/usr/lib/jvm/java-6-sun-1.6.0.14/jre/classes
[echo] jikes.class.path=${jikes.class.path}
[echo]
[echo] -- Network Settings ---
[echo]
[echo] http.proxyHost =
[echo] http.proxyPort =
[echo] http.nonProxyHosts = localhost
[echo] http.proxyUser =
[echo] http.proxyPassword =
[echo]
[echo] -- Test Environment for AXIS ---
[echo]
[echo] test.functional.remote = no
[echo] test.functional.local = yes
[echo] test.functional.both = no
[echo] test.functional.reportdir =
/home/micd/keep/core/trunk/util/axis-1_4/test-reports
[echo] test.functional.SimpleAxisPort = 8080
[echo] test.functional.TCPListenerPort = 8088
[echo] test.functional.f

RE: Reexamining problem with Axis not generating container

2009-07-31 Thread KARR, DAVID (ATTCINW)
> -Original Message-
> From: KARR, DAVID (ATTCINW)
> Sent: Thursday, July 30, 2009 11:01 AM
> To: axis-user@ws.apache.org
> Subject: Reexamining problem with Axis not generating container
> 
> A couple weeks ago I posted a note about a problem (title "Axis skips
> generating type if it thinks it can just make an array") where Axis
1.3
> doesn't generate a container class if an element only has a single
> child.  I had thought the problem was just annoying, but now I'm
seeing
> it's more serious than that.  Axis fails to deserialize legal XML if I
> don't add a kludge element to make it create the container class.
> 
> When I generate code for the following:
> 
> 
>   
>  minOccurs="0" maxOccurs="unbounded"/>
> 
>   
> 
> 
> It generates a container class corresponding to the "PropertyData"
> element, and the class corresponding to the
> "SomethingItemPropertyListInfo" element has a data element of that
> type.
> 
> If I comment out the "Dummy" element, however, the data element in the
> class corresponding to the "SomethingItemPropertyListInfo" element is
> simply an array of "SomethingPropertyInfo".
> 
> This is annoying, but it's not fatal, as I can just change code
> references, depending on whether a container class was generated or
> not.
> 
> What is fatal is that when I don't have the "Dummy" element defined,
> then legal XML using these structures (note that "Dummy" is optional,
> so
> it doesn't need to be present in the data) fails to deserialize,
> throwing an exception like the following:
> 
> -
> 2009-07-30 09:49:29,551 ERROR
> [org.apache.axis.encoding.ser.BeanPropertyTarget] [set] [Thread:main]
-
> [Could not convert
> [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;
> to
> bean field 'itemPropertyListData', type
> [Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;]
> 2009-07-30 09:49:29,551 ERROR [org.apache.axis.client.Call] [invoke]
> [Thread:main] - [Exception:]
> java.lang.IllegalArgumentException: argument type mismatch
>   at
>
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.
> j
> ava:157)
>   at
>
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImp
> l
> .java:249)
>   at
>
org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeser
> i
> alizer.java:583)
>   at
>
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.j
> a
> va:509)
>   at
>
org.apache.axis.encoding.DeserializationContext.endElement(Deserializat
> i
> onContext.java:1087)
>   at
>
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java
> :
> 171)
>   at
>
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.
> j
> ava:1141)
>   at
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>   at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>   at org.apache.axis.client.Call.invoke(Call.java:2467)
>   at org.apache.axis.client.Call.invoke(Call.java:2366)
>   at org.apache.axis.client.Call.invoke(Call.java:1812)
> 
> 
> If I'm understanding this correctly, this error message is saying that
> I
> have a value of type "SomethingServicePropertyInfo[]", and I'm trying
> to
> assign it to a field named "itemPropertyListData", which is of type
> "SomethingServicePropertyInfo[]".  I must be misunderstanding this,
> because I don't see how that could fail to convert.

If it matters, I've done some additional debugging and determined a
little more information.

The problem appears to occur when you have nested unbounded
(maxOccurs=unbounded) elements.  This produces a situation where a
generated instance variable and setter is of type "Name[][]"
(two-dimensional array).  Unfortunately, the resulting value to be
inserted is a "Name[]" (one-dimensional array).  In addition, the error
message that Axis constructs is incorrect.  The error message it
generates is the following:

"Could not convert
[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to
bean field 'itemPropertyListData', type
[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;]"

But it should have been (notice the one "[" changing to "[["):

"Could not convert
[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to
bean field 'itemPropertyListData', type
[[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;]"


Reexamining problem with Axis not generating container

2009-07-30 Thread KARR, DAVID (ATTCINW)
A couple weeks ago I posted a note about a problem (title "Axis skips
generating type if it thinks it can just make an array") where Axis 1.3
doesn't generate a container class if an element only has a single
child.  I had thought the problem was just annoying, but now I'm seeing
it's more serious than that.  Axis fails to deserialize legal XML if I
don't add a kludge element to make it create the container class.

When I generate code for the following:


  


  


It generates a container class corresponding to the "PropertyData"
element, and the class corresponding to the
"SomethingItemPropertyListInfo" element has a data element of that type.

If I comment out the "Dummy" element, however, the data element in the
class corresponding to the "SomethingItemPropertyListInfo" element is
simply an array of "SomethingPropertyInfo".

This is annoying, but it's not fatal, as I can just change code
references, depending on whether a container class was generated or not.

What is fatal is that when I don't have the "Dummy" element defined,
then legal XML using these structures (note that "Dummy" is optional, so
it doesn't need to be present in the data) fails to deserialize,
throwing an exception like the following:

-
2009-07-30 09:49:29,551 ERROR
[org.apache.axis.encoding.ser.BeanPropertyTarget] [set] [Thread:main] -
[Could not convert
[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo; to
bean field 'itemPropertyListData', type
[Lcom.company.interfaces.csi.soap.types.SomethingServicePropertyInfo;]
2009-07-30 09:49:29,551 ERROR [org.apache.axis.client.Call] [invoke]
[Thread:main] - [Exception:]
java.lang.IllegalArgumentException: argument type mismatch
at
org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.j
ava:157)
at
org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl
.java:249)
at
org.apache.axis.encoding.ser.ArrayDeserializer.valueComplete(ArrayDeseri
alizer.java:583)
at
org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.ja
va:509)
at
org.apache.axis.encoding.DeserializationContext.endElement(Deserializati
onContext.java:1087)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:
171)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.j
ava:1141)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)


If I'm understanding this correctly, this error message is saying that I
have a value of type "SomethingServicePropertyInfo[]", and I'm trying to
assign it to a field named "itemPropertyListData", which is of type
"SomethingServicePropertyInfo[]".  I must be misunderstanding this,
because I don't see how that could fail to convert.


Axis and users.lst path

2009-07-16 Thread Godel David
Hello,
I am trying to set up a small part of security in my web application which 
integrates AXIS (OpenHealthTool). So axis is used as jar and not as a  "whole 
web application"
I want to use the default SimpleAuthenticationHandler with the users.lst.

My question is: where must I put the users.lst file in order that AXIS finds 
it? I try in /my-web-app/WEB-INF but it doen't work...

Thank you in advance for your answers!
David



RE: Axis skips generating type if it thinks it can just make an array

2009-07-14 Thread KARR, DAVID (ATTCINW)
> -Original Message-
> From: KARR, DAVID (ATTCINW)
> Sent: Monday, July 13, 2009 3:51 PM
> To: axis-user@ws.apache.org
> Subject: Axis skips generating type if it thinks it can just make an
> array
> 
> I'm using Axis 1.3.  I have a schema with a complexType which has a
> single sequence of one element (unbounded count on that one element).
> It looks something like this (the commented element will come up
> later):
> 
>   
>   
>type="SomethingPropertyInfo" minOccurs="0" maxOccurs="unbounded"/>
>   
>   
>   
> 
> When we generate code from this schema, the generated class
> corresponding to this type is, well, nonexistent.  It generates
nothing
> for it.
> 
> If we instead comment in the "Dummy" element, it generates the
> "SomethingItemPropertyListInfo" class.  This is a workaround, but an
> annoying one.  We'd really like to have the schema definition not
> include "Dummy", but still generate the
"SomethingItemPropertyListInfo"
> type.
> 
> At this point, we haven't attempted to inject Castor or XMLBeans into
> the picture to customize our code generation.  We would definitely
> consider that if that's the only viable way to resolve this issue.

If it helps, I've been setting up a little testbed to give me more
diagnostics for this problem.  I tried adding the "-D" (debug) flag to
the command line, and I've compared the output when I have "Dummy" and
when I don't.

When I have Dummy, I see this (relevant excerpts):

-
org.apache.axis.wsdl.symbolTable.DefinedType
QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingItemPropertyListInfo
name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingItemPropertyListInfo
isReferenced?  true
Class: org.apache.axis.wsdl.symbolTable.DefinedType
Base?: false
Undefined?:false
isSimpleType?  false
Node:  [xs:complexType: null]
Dims:  
isOnlyLiteralReferenced: false
RefType:   null 

org.apache.axis.wsdl.symbolTable.CollectionType
QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingItemPropertyListInfo[0,unbounded]
name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingItemPropertyListInfo[]
isReferenced?  true
Class: org.apache.axis.wsdl.symbolTable.CollectionType
Base?: false
Undefined?:false
isSimpleType?  false
Node:  [xs:element: null]
Dims:  []
isOnlyLiteralReferenced: false
RefType:
  QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingItemPropertyListInfo
  name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingItemPropertyListInfo
  isReferenced?  true
  Class: org.apache.axis.wsdl.symbolTable.DefinedType
  Base?: false
  Undefined?:false
  isSimpleType?  false
  Node:  [xs:complexType: null]
  Dims:  
  isOnlyLiteralReferenced: false
  RefType:   null 

Generating
gen\com\cingular\csi\CSI\Namespaces\Types\Public\CingularDataModel_xsd\S
omethingItemPropertyListInfo.java
-

When I don't have Dummy, I see this:

-
org.apache.axis.wsdl.symbolTable.DefinedType
QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingItemPropertyListInfo
name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingPropertyInfo[]
isReferenced?  true
Class: org.apache.axis.wsdl.symbolTable.DefinedType
Base?: false
Undefined?:false
isSimpleType?  false
Node:  [xs:complexType: null]
Dims:  []
isOnlyLiteralReferenced: false
RefType:
  QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingPropertyInfo
  name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingPropertyInfo
  isReferenced?  true
  Class: org.apache.axis.wsdl.symbolTable.DefinedType
  Base?: false
  Undefined?:false
  isSimpleType?  false
  Node:  [xs:complexType: null]
  Dims:  
  isOnlyLiteralReferenced: false
  RefType:   null 

org.apache.axis.wsdl.symbolTable.CollectionType
QName:
{http://csi.cingular.com/CSI/Namespaces/Types/Public/CingularDataModel.x
sd}SomethingItemPropertyListInfo[0,unbounded]
name:
com.cingular.csi.CSI.Namespaces.Types.Public.CingularDataModel_xsd.Somet
hingPropertyInfo[][]
isReferenced?  true
Class: org.apache.axis.wsdl.symbolTable.CollectionType
Base?: false
Undefined?:false
isSimpleType?  false
Node:  [xs:element: null]
Dims:  []
isOnlyLiteralReferenced: false
RefType:
  QName:
{http:

Axis skips generating type if it thinks it can just make an array

2009-07-13 Thread KARR, DAVID (ATTCINW)
I'm using Axis 1.3.  I have a schema with a complexType which has a
single sequence of one element (unbounded count on that one element).
It looks something like this (the commented element will come up later):








When we generate code from this schema, the generated class
corresponding to this type is, well, nonexistent.  It generates nothing
for it.

If we instead comment in the "Dummy" element, it generates the
"SomethingItemPropertyListInfo" class.  This is a workaround, but an
annoying one.  We'd really like to have the schema definition not
include "Dummy", but still generate the "SomethingItemPropertyListInfo"
type.

At this point, we haven't attempted to inject Castor or XMLBeans into
the picture to customize our code generation.  We would definitely
consider that if that's the only viable way to resolve this issue.


RE: Error installing Axis2.war in Jboss

2009-06-16 Thread David Meiklejohn
Hi rishi,

I had a bit of fun with this myself. In the end we have steered away from JBoss 
so I don't have much help other than this advice.

>From what I found there is two ways around it. The first is quick (and 
>dirty?). Just delete xml-apis-1.3.04.jar and xercesImpl-2.8.1.jar (or their 
>applicable versions) from the Axis2 war and deploy that. It should work then.

The other way is to mess around with Class Loading Configuration. I didn't have 
much joy with this but I didn't play with it for long enough to really know: 
http://www.jboss.org/community/wiki/ClassLoadingConfiguration

Good luck!

David

From: rishi [mailto:kapur@gmail.com]
Sent: Wednesday 17 June 2009 5:29 AM
To: axis-user@ws.apache.org
Subject: Error installing Axis2.war in Jboss

Hi All,

I am having trouble installing Axis2 1.4.1 or 1.5 they both are giving same 
error as below. All I did was to put axis2.war in jboss-5.1.0.GA\server\default.
This is in both Jboss 5.1and 5.01

Caused by: java.lang.ClassCastException: 
org.apache.xerces.parsers.XML11Configuration cannot be cast to 
org.apache.xerces.xni.parser.XMLParserConfiguration
at org.apache.xerces.parsers.SAXParser.(Unknown Source)
at org.apache.xerces.parsers.SAXParser.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.(Unknown Source)
at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
at 
org.jboss.xb.binding.parser.sax.SaxJBossXBParser.(SaxJBossXBParser.java:92)
... 75 more
2009-06-16 15:17:28,039 ERROR 
[org.jboss.web.tomcat.service.deployers.JBossContextConfig] (main) XML error 
parsing: jboss.web/localhost/context.xml.default
org.jboss.xb.binding.JBossXBRuntimeException: Failed to create a new SAX parser
at 
org.jboss.xb.binding.UnmarshallerFactory$UnmarshallerFactoryImpl.newUnmarshaller(UnmarshallerFactory.java:100)
at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.processContextConfig(JBossContextConfig.java:549)
at 
org.jboss.web.tomcat.service.deployers.JBossContextConfig.init(JBossContextConfig.java:537)
at 
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:279)
at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:

Please let me know if you have it working in Jboss. Thanks a lot
-rishi


RE: what is the best way to generate java code when the wsdl is changed?

2009-05-27 Thread David Meiklejohn
Hi Chang,

Unfortunately I have never used the Axis2 plugin so my knowledge on it is 
almost 0. After looking at a little information on it I couldn't immediately 
see how to get it to generate an interface. From the command line you just pass 
wsdl2java an option of -ssi and it is possible to do it in Maven by setting 
true. Sorry I can't 
be of more help with the Eclipse plugin, it may not be capable of doing what 
I'm talking about.

David


-Original Message-
From: Chang Xing [mailto:chang.x...@sage.ch]
Sent: Wednesday 27 May 2009 5:16 PM
To: axis-user@ws.apache.org
Subject: Re: what is the best way to generate java code when the wsdl is 
changed?

Hi David

Your idea sounds new to me. But how do you configure the axis2plug to
generate interface rather than the skeleton class?
There's not much options with the plugin in eclipse.

Thanks

Chang

David Meiklejohn wrote:
> Hi,
>
> Let me know if I am misunderstanding your problem. I believe what you are 
> doing is generating from the WSDL with standard settings so Axis2 is 
> generating files with a XSkeleton.java where you put your implementation. If 
> that is the case I would set up the Axis2 plugin to create an interface from 
> the WSDL rather than the skeleton class itself. That way you can recreate the 
> interface at will whenever the WSDL changes and just implement the interface 
> with your own class. This does mean that your class will generate compile 
> errors each time something major changes or a new method is added that your 
> class does not implement, you will just have to change your implementation to 
> match the interface and you're good to go.
>
> David
>
>
>
>
> This e-mail and any files transmitted with it may contain confidential and 
> privileged material for the sole use of the intended recipient. Any review, 
> use, distribution or disclosure by others is strictly prohibited. If you are 
> not the intended recipient (or authorised to receive for the recipient), 
> please contact the sender by reply e-mail and delete all copies of this 
> message.
>
>
> -Original Message-
> From: Chang Xing [mailto:chang.x...@sage.ch]
> Sent: Wednesday 27 May 2009 3:52 PM
> To: axis-user@ws.apache.org
> Subject: what is the best way to generate java code when the wsdl is changed?
>
> Hi
>
> I am using Eclipse with axis2 plugin to generate Java code from a wsdl
> file.
> the wsdl file is changed frequently. so I need to regenerate the Java
> code from the wsdl.
> But if I generate code to the same project, it will take a long time and
> the skeleton java file won't be generated again
> because there's already a skeleton file( I guess so).
> So I have to create another java project and generate code to this
> project from the wsdl file.
>
> Does anybody have a better way to do this work?
>
> Thanks
>
> Chang
>



RE: what is the best way to generate java code when the wsdl is changed?

2009-05-26 Thread David Meiklejohn
Hi,

Let me know if I am misunderstanding your problem. I believe what you are doing 
is generating from the WSDL with standard settings so Axis2 is generating files 
with a XSkeleton.java where you put your implementation. If that is the case I 
would set up the Axis2 plugin to create an interface from the WSDL rather than 
the skeleton class itself. That way you can recreate the interface at will 
whenever the WSDL changes and just implement the interface with your own class. 
This does mean that your class will generate compile errors each time something 
major changes or a new method is added that your class does not implement, you 
will just have to change your implementation to match the interface and you're 
good to go.

David




This e-mail and any files transmitted with it may contain confidential and 
privileged material for the sole use of the intended recipient. Any review, 
use, distribution or disclosure by others is strictly prohibited. If you are 
not the intended recipient (or authorised to receive for the recipient), please 
contact the sender by reply e-mail and delete all copies of this message.


-Original Message-
From: Chang Xing [mailto:chang.x...@sage.ch]
Sent: Wednesday 27 May 2009 3:52 PM
To: axis-user@ws.apache.org
Subject: what is the best way to generate java code when the wsdl is changed?

Hi

I am using Eclipse with axis2 plugin to generate Java code from a wsdl
file.
the wsdl file is changed frequently. so I need to regenerate the Java
code from the wsdl.
But if I generate code to the same project, it will take a long time and
the skeleton java file won't be generated again
because there's already a skeleton file( I guess so).
So I have to create another java project and generate code to this
project from the wsdl file.

Does anybody have a better way to do this work?

Thanks

Chang


[no subject]

2009-05-21 Thread Vicente David Guardiola Buitra
Dear all,
 
I am using
Axis2 with Rampart 1.4 in order to provide WS-Security to my web services. 
 
I want to
sign and encrypt all incoming/outgoing messages using X509 Certificates, then ,
I configured both client and service to do this using inflow and outflow
elements.
 
The problem
is that I want the service to encrypt the outgoing messages with the public key
of the Client’s certificate, but this certificate must be selected using the
key alias of the client. In order to do that, I need to access to the
information of the incoming message header.
 
 
How can I
do that? I mean, How can I access to the Security header information in the
Service Implementation?
 
Thanks in
advance,
 
Regards
 
V Guardiola


  

[Axis2] Retrieve client certificate info used in connection to web service

2009-05-13 Thread David Meiklejohn
Hello,

I am attempting to figure out if it is possible to retrieve certificate 
information that was sent by the client as part of a web service request. The 
catch is it isn't using WS Security, it is simply HTTP authentication with the 
certificate.

What I am trying to achieve is basically this:

A client sends a request to a web service with their certificate as part of the 
request.
The server verifies that it trusts the certificate.
The web service uses the certificate information to figure out who the client 
is and then send that client ID information down the line to other systems.

I was able to find some information on using MessageContext to get the 
HttpServletRequest which then you are supposed to be able to get the 
certificate used by calling getAttribute on the request. However, I couldn't 
find any information on doing this in Axis2.

This solution will likely be deployed in JBoss but it could potentially end up 
in Tomcat. Is it possible to do what I am attempting to do with Axis2? Or 
should I be looking for another solution to achieve this? Is there any software 
that will provide functionality similar to what I am after?

Any help will be greatly appreciated.

Regards,
David


Re: Axis2 Performance Tips

2009-05-05 Thread David Rees
On Tue, May 5, 2009 at 1:29 AM, ibrahim demir  wrote:
> I woner if there is performance tips and tricks guide for Axis2. I have
> tried to optimize my sevice and tried to make it simpler in order to have
> fast response but I believe that is not enough.

Yes, there are a number of things you can do to speed up Axis2.
However, are you creating a web service or are you accessing a web
service?

I haven't focused on web service performance, as it seems to be pretty
good already, but if you are using axis2 as a client there are a
number of things you can do.

> So can you share your experiences or tips here on performance optimizations
> about Axis2. For example using the
> HTTPConstants.REUSE_HTTP_CLIENT
> HTTPConstants.CACHED_HTTP_CLIENT
>
> options has an effect on performance or not?

These options definitely make a difference in performance especially
if you are accessing services on a high latency network in rapid
succession.

Some of the things I do:

1. Use Commons-Pool to maintain a pool of Stubs.  Stub creation is expensive!
2. For each stub, set REUSE_HTTP_CLIENT to true and CACHED_HTTP_CLIENT
to your own cached HttpClient.
3. For each HttpClient, you will likely want to increase the
DefaultMaxConnections and MaxTotalConnections using your own
MultiThreadedHttpConnectionManager.  In addition, also make sure you
set the Version to HTTP_1_1 of your HttpClient, too.

IMO Axis2 should provide a framework for doing all of those things
easily by default.  Perhaps I will contribute some code when I get
some time to abstract it out. :-)

-Dave


Axis2 Java6

2009-05-01 Thread David Urbansky
Hello,
I am using Axis2 1.4.1 (deployment in Tomcat) and a Java 6 application
and I get the BadVersion Error when starting Tomcat. I do not get this
error when I compile the application in Java 1.5. I know that the FAQ
(https://svn.wso2.com/~thilina/axis2fullsite/faq.html#a4) says
something about that issue but it does not work for me. First there is
no "stax-api.jar" in the axis2/lib dir but only
"geronimo-stax-api_1.0_spec-1.0.1.jar" so I added this jar to my jre's
lib directory but that did not help. Also Tomcat 6 has no
"common/endorsed" folder as suggested in the FAQ.

I would really appreciate if somebody has experienced a similar
problem and has a solution.
Thanks a lot,
   David


Re: Stubs & Options Configuration

2009-04-22 Thread David Rees
On Wed, Apr 22, 2009 at 6:30 PM, David Rees  wrote:
> OK, more reading and now I realize that keep-alive should be on by
> default, but to get any performance benefit, I also need to
> REUSE_HTTP_CLIENT.  So I've done that and yes, performance has
> improved now, but I run into the default limit of only 2 concurrent
> connections per host limit.
>
> How can I set my own MULTITHREAD_HTTP_CONNECTION_MANAGER or raise the
> default limit?  This is a custom application so I am not worried about
> exceeding RFC specifications for concurrent connections.

Talking to myself a bit more, but I finally figured out how to do it
with the help of this thread[1] on the axis-dev list.  The key is to
set both REUSE_HTTP_CLIENT to true and CACHED_HTTP_CLIENT to my own
HttpClient class.

Here's what I am doing is pseudo code:

Wrap the creation of new stubs in a function which then calls these functions:

Options o = stub._getServiceClient().getOptions();
o.setProperty(HTTPConstants.CHUNKED, Boolean.FALSE);
o.setProperty(HTTPConstants.MC_ACCEPT_GZIP, Boolean.TRUE);
o.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Boolean.TRUE);
o.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, getHttpClient());

getHttpClient creates a cached HttpClient with my own
MultiThreadedHttpConnectionManager:

MultiThreadedHttpConnectionManager manager = new
MultiThreadedHttpConnectionManager();
manager.getParams().setDefaultMaxConnectionsPerHost(20);
httpClient = new HttpClient(manager);
httpClient.getParams().setVersion(HttpVersion.HTTP_1_1);

So far this appears to work well and significantly reduces response
time and improves performance when making a lot of requests in a row.

Would be nice if this were documented somewhere official, but at least
now it will be in the mail archives. :-)

-Dave

[1] http://markmail.org/message/e4wdlwgnkkttqiov


Re: Stubs & Options Configuration

2009-04-22 Thread David Rees
On Wed, Apr 22, 2009 at 5:06 PM, David Rees  wrote:
> I would have expected to need to call
> Stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
> Boolean.FALSE) to get keep alive working from the documentation, but
> then I realised that I'm not even seeing any chunked headers in the
> request (it doesn't affect operation, either).

OK, more reading and now I realize that keep-alive should be on by
default, but to get any performance benefit, I also need to
REUSE_HTTP_CLIENT.  So I've done that and yes, performance has
improved now, but I run into the default limit of only 2 concurrent
connections per host limit.

How can I set my own MULTITHREAD_HTTP_CONNECTION_MANAGER or raise the
default limit?  This is a custom application so I am not worried about
exceeding RFC specifications for concurrent connections.

Is it as simple as
Stub._getServiceClient().getOptions().setProperty(HTTPConstants.MULTITHREAD_HTTP_CONNECTION_MANAGER,
myConnMan)?  Are there any gotchas I should keep in mind?

Thanks

Dave


Stubs & Options Configuration

2009-04-22 Thread David Rees
Hi,

I'm using Axis2 1.4.1 and WSDL2Java created stubs to access a web service.

I'm trying to enable keep-alive and gzip encoding to reduce network
latency and improve throughput, but am not having any luck.

I would have expected to need to call
Stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED,
Boolean.FALSE) to get keep alive working from the documentation, but
then I realised that I'm not even seeing any chunked headers in the
request (it doesn't affect operation, either).

So what exactly do I need to do to get this working?  Anyone have a
code snippet or example?  My searches thus far have turned up blank.

Thanks!

Dave


Strings passed as parameters into Axis2 implemented web service have carriage return stripped.

2009-02-06 Thread Kraus, David
I am using Axis2 1.2, and have a Web Service API which receives a text
string which contains CRLF (carriage-return, linefeed) characters.

 

By the time the string gets through the de-serialization layer on the
receiving server-side, the CRLF has become just LF. This probably works
well for Unix, but I am running on Windows. 

 

Is there any way to control this? Is this a bug? Anyone seen this
before?

 

Thanks, Dave

 



Re: Axis2 Java codegen tool fails to include message parts mapped to SOAP headers

2008-12-27 Thread David Illsley
I agree that the tool not at least spitting out a warning is probably
a bug. Please open a JIRA [1] to get that added.
David

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

On Wed, Dec 24, 2008 at 7:12 PM, Gilbert Pilz  wrote:
> Hi,
>
> I'm new to Axis2 but I sort of know my way around SOAP etc. I'm trying to
> build an Axis2 implementation of the Web Services Test Forum (WSTF)
> Notify-Echo scenario. The WSDL for this scenario is a little tricky. The
> Notify and Echo messages contain two parts, the actual data to be sent and a
> "SessionData" element that provides an app-level session ID. The service is
> supposed to concatenate all the notify and echo data from a given session
> and return it on the Echo operation. For example:
>
> Notify("foo", "session1")
>
> Notify("blub", "session2")
>
> Echo("baz", "session1") --> returns "foobaz"
>
> So far, pretty simple. The tricky part is in the SOAP bindings where the
> SessionData part is mapped to a SOAP header like so:
>
> 
>   
>   
> 
> 
>   
> 
>
> When I process this WSDL using the Axis2 codegen task it seems to work fine;
> there are no warnings etc. However, the generated Java code doesn't reflect
> the presence of SessionData element. Here's the server skeleton for the
> Notify method:
>
> /**
>   * Auto generated method signature
>   *
>   * @param notify14
>   */
> public void Notify(org.wstf.www.docs.scenarios.sc002.Notify notify14)
> {
> //TODO : fill this with the necessary business logic
> }
>
> This just seems wrong to me. I think the tool should either generate code
> the accurately reflects the portType (i.e. including all the parts of all
> the input and output messages) or it should warn you that it is leaving
> something out.
>
> I'm using version 1.4.1 of Axis2. I'm invoking the codegen tool via ant like
> so:
>
>   classname="org.apache.axis2.tool.ant.AntCodegenTask"
>  classpathref="axis.classpath"/>
>
>  unless="wsdl.compiled"
> depends="init">
>   output="generated"
>serverside="true"
>generateservicexml="true"
>portName="soap12port"
>serverSideInterface="true"/>
> 
>
> Gilbert Pilz | SOA/WS Technologist | Oracle Corporation
>


RE: thread safe axis2 client stub

2008-12-10 Thread Kraus, David
I would think that there is no need to create a new client stub for each
web service call. You just need to be sure you create a separate stub
for each client thread. On each thread you can make as many web service
calls as you like using the same proxy.

 



From: Paul French [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2008 4:37 AM
To: axis-user@ws.apache.org
Subject: RE: thread safe axis2 client stub

 

Can anyone comment on this? It is a major issue for us.

 

Why is the client stub created not thread safe?

 

If it cannot be made thread safe then how can you avoid the huge
overhead of instantiating a new client stub per web service call?

 



From: Shehan Simen [mailto:[EMAIL PROTECTED] 
Sent: 10 December 2008 01:24
To: axis-user@ws.apache.org
Subject: RE: thread safe axis2 client stub

Yes, I am expecting an answer from someone who develop the axis2. It is
very inefficient to create a stub for each call.

 

Regards,

Shehan

 

From: Paul French [mailto:[EMAIL PROTECTED] 
Sent: 2008-12-10 03:29
To: axis-user@ws.apache.org; 'David Ojeda'
Subject: RE: thread safe axis2 client stub

 

http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub
%20thread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

 

 

____

From: David Ojeda [mailto:[EMAIL PROTECTED] 
Sent: 09 December 2008 16:16
To: axis-user@ws.apache.org
Subject: Re: thread safe axis2 client stub

I am also interested in this matter. I would like to hear Deepal's
opinion, since he was the one who said that it is not thread safe.

Paul:

You said:

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

What link?

Cheers,

David

On Tuesday 09 December 2008 11:50:31 Paul French wrote:

> This seems strange to me that the client stub cannot be made thread
safe.

> 

> After reading the below I have changed my client service to create the

> client stub on each call to one of my service methods since the client
stub

> is not thread safe.

> 

> I have no idea how inefficient this is? I have noticed that every time
I

> create the client stub (for each and every call) I get the message:

> 

> `[INFO] Deploying module: metadataExchange -

> file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar

> 

> It suggests a lot of work is going on to simply service a single web

> service call.

> 

> The link below suggests some tricks you can do to make things more

> efficient. What are these tricks?

> 

> Thanks

> Paul

> 

> _

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 09 December 2008 04:26

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> I was not aware of this. If the axis2 design not permits this it is
better

> not to use it.

> 

> thanks,

> Amila.

> 

> 

> On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> 

> Also this link:

> 

>
http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub
%20

>t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results

> 

> 

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:26

> 

> 

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> 

> 

> I have tested with Axis2 1.4 and it worked fine. can you please send
the

> mail thread you mentioned?

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> Hi Amila,

> 

> Thank you for your response. But I found in some discussion, it is
saying

> that the client stub is not thread safe. Is this problem fixed now? In

> which version I can find it then?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]

> Sent: 2008-12-08 15:13

> To: axis-user@ws.apache.org

> Subject: Re: thread safe axis2 client stub

> 

> 

> 

> yes

> 

> thanks,

> Amila.

> 

> On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen <[EMAIL PROTECTED]>
wrote:

> 

> Hi,

> 

> I am going to invoke a web service via a client stub generated by
axis2.

> 

> I want to have a single instance of the stub across my application.

> 

> So when I initiate the stub (when I call the constructor), I don't
like to

> call it again throughout my application.

> 

> Is it thread safe?

> 

> 

> 

> Regards,

> 

> Shehan

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

> 

> 

> 

> 

> --

> Amila Suriarachchi

> WSO2 Inc.

> blog: http://amilachinthaka.blogspot.com/

-- 

David Ojeda



__ NOD32 3677 (20081209) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



__ NOD32 3680 (20081210) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



Re: thread safe axis2 client stub

2008-12-09 Thread David Ojeda
I am also interested in this matter. I would like to hear Deepal's opinion, 
since he was the one who said that it is not thread safe.

Paul:
You said:
> The link below suggests some tricks you can do to make things more
> efficient. What are these tricks?
What link?


Cheers,
David


On Tuesday 09 December 2008 11:50:31 Paul French wrote:
> This seems strange to me that the client stub cannot be made thread safe.
>
> After reading the below I have changed my client service to create the
> client stub on each call to one of my service methods since the client stub
> is not thread safe.
>
> I have no idea how inefficient this is? I have noticed that every time I
> create the client stub (for each and every call) I get the message:
>
> `[INFO] Deploying module: metadataExchange -
> file:/C:/downloads/axis2/axis2-1.4.1/lib/mex-1.4.1.jar
>
> It suggests a lot of work is going on to simply service a single web
> service call.
>
> The link below suggests some tricks you can do to make things more
> efficient. What are these tricks?
>
> Thanks
> Paul
>
>   _
>
> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> Sent: 09 December 2008 04:26
> To: axis-user@ws.apache.org
> Subject: Re: thread safe axis2 client stub
>
>
> I was not aware of this. If the axis2 design not permits this it is better
> not to use it.
>
> thanks,
> Amila.
>
>
> On Mon, Dec 8, 2008 at 10:00 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:
>
>
> Also this link:
>
> http://markmail.org/message/iif5rdpgqahk4u5t#query:axis2%20client%20stub%20
>t hread%20safe+page:2+mid:eenup3ck5ib6fzqq+state:results
>
>
>
>
>
> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> Sent: 2008-12-08 15:26
>
>
> To: axis-user@ws.apache.org
> Subject: Re: thread safe axis2 client stub
>
>
>
>
>
> I have tested with Axis2 1.4 and it worked fine. can you please send the
> mail thread you mentioned?
>
> thanks,
> Amila.
>
> On Mon, Dec 8, 2008 at 9:48 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:
>
> Hi Amila,
>
> Thank you for your response. But I found in some discussion, it is saying
> that the client stub is not thread safe. Is this problem fixed now? In
> which version I can find it then?
>
>
>
> Regards,
>
> Shehan
>
>
>
> From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> Sent: 2008-12-08 15:13
> To: axis-user@ws.apache.org
> Subject: Re: thread safe axis2 client stub
>
>
>
> yes
>
> thanks,
> Amila.
>
> On Mon, Dec 8, 2008 at 9:31 AM, Shehan Simen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am going to invoke a web service via a client stub generated by axis2.
>
> I want to have a single instance of the stub across my application.
>
> So when I initiate the stub (when I call the constructor), I don't like to
> call it again throughout my application.
>
> Is it thread safe?
>
>
>
> Regards,
>
> Shehan
>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>
>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/

-- 
David Ojeda



RE: Axis2 integration with Weblogic admin console

2008-11-27 Thread Karr, David
I imagine this is happening because WebLogic just doesn't know it's a
web service.  The WebLogic admin console doesn't have implicit knowledge
of Axis web services.  I would assume that if you instead implemented
JAX-WS web services, which WebLogic directly supports, the console would
list those components as web services. 

> -Original Message-
> From: Kevin TierOne [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, November 26, 2008 6:39 AM
> To: axis-user@ws.apache.org
> Subject: Axis2 integration with Weblogic admin console
> 
> I have a web application .war that includes an axis2 (1.3) 
> web service and a GUI component.  This application is 
> deployed on a weblogic 9.2 server.
> 
> The application is 100% functional:
> - The GUI is available at http://localhost:7001/appName/index.html
> - The web service is available at 
> http://localhost:7001/appName/webservice
> - The axis2 admin console is available at 
> http://localhost:7001/appName/axis2-web/index.jsp
> 
> However, in the weblogic administration console 
> (http://localhost:7001/console), there are no web services 
> listed under the deployment for my application.
> 
> Does anyone know how to integrate Axis2 web services into the 
> weblogic administration console?  Is this even possible?
> 
> Thanks,
> Kevin
> 
> -
> 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: Adressing, async services and responses

2008-11-20 Thread David Ojeda
Michele,

You are right, this example is clearly feasible. But what if I wanted to do 
step step 3.2 before 3. I mean, respond that the ws will process this request 
*before* actually doing the heavy work (transfering funds). This what I think 
is not possible with axis2 (maybe not even with other ws soap 
implementations). 

David

On Thursday 20 November 2008 14:23:00 Michele Mazzucco wrote:
> On 20 Nov 2008, at 17:39, David Ojeda wrote:
> > I am saying it is not possible because I need some validation on
> > the webservice implementation and then respond. As you said in your
> > first response, " the acknowledgment (i.e. HTTP 200) is *always*
> > sent back to the client *before* the server starts processing the
> > request"
> > Maybe an example will help:
> > Suppose that we are developing a Webservice for a bank with an
> > operation that transfers money from an user's account to another
> > bank account.
> > The service will be used in a frontend so users transfer money
> > between accounts. A client will set the destined account and amount
> > and the frontend should quickly respond if the operation will be
> > executed or not.
> > 1. A ws-client sends the request to the service, with a xml that
> > contains the user's account, the amount and the destined account.
> > 2. The ws receives the request and validates the input (checks if
> > the user's account has enough funds)
> > 3 if valid, ws spawns a thread in order to make the money transfer
> > (this could take hours if the other account is in some other
> > country, for example)
> > 3.1. ws notifies external system
> > 3.2. ws responds (to the replyTo or faultTo) that it will process
> > this request
> > 4 if not valid ws responds (to the replyTo or faultTo) that it will
> > not process this request. The external system is not notified
> > Maybe with the example above I can make myself clearer?
>
> Yes, that's clear. But still I don't understand why you're saying
> it's not feasible. I honestly can't see why.
>
>
> Michele
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
David Ojeda



Re: Adressing, async services and responses

2008-11-20 Thread David Ojeda
Agreed!

On Thursday 20 November 2008 14:21:38 Michele Mazzucco wrote:
> On 20 Nov 2008, at 17:39, David Ojeda wrote:
> > - I don't understand how it would be possible to respond to the
> > client replyTo or faultTo and then notifying an external system. My
> > understanding is that replying will be that last instruction in my
> > code (a return or throw). Maybe you mean to do this with a custom
> > handler?
>
> That's correct, but you can send the message to the external system
> first! (indeed, you'll need some sort of transaction/reliable
> messaging. Otherwise you'll end up with sending a message to one
> party and not to the other)
>
> > - You mention that axis2 uses a dedicated thread pool used to serve
> > incoming requests. I thought that the thread pool was managed by
> > the application server (tomcat,jetty,weblogic) rather than axis2
> > itself since the webservice request are managed by a servlet after
> > all... Is this correct?
>
> Yes, that's true if Axis2 is embedded. If it runs in standalone mode
> it will use its own thread pool.
>
>
> Michele
>
> -----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
David Ojeda



Re: Adressing, async services and responses

2008-11-20 Thread David Ojeda
Hello Michele,
Thank you for your ideas.

I am saying it is not possible because I need some validation on the 
webservice implementation and then respond. As you said in your first 
response, " the acknowledgment (i.e. HTTP 200) is *always* sent back to the 
client *before* the server starts processing the request"

Maybe an example will help:
Suppose that we are developing a Webservice for a bank with an operation that 
transfers money from an user's account to another bank account. 
The service will be used in a frontend so users transfer money between 
accounts. A client will set the destined account and amount and the frontend 
should quickly respond if the operation will be executed or not.

1. A ws-client sends the request to the service, with a xml that contains the 
user's account, the amount and the destined account.
2. The ws receives the request and validates the input (checks if the user's 
account has enough funds)
3 if valid, ws spawns a thread in order to make the money transfer (this could 
take hours if the other account is in some other country, for example)
  3.1. ws notifies external system
  3.2. ws responds (to the replyTo or faultTo) that it will process this 
request
4 if not valid ws responds (to the replyTo or faultTo) that it will not 
process this request. The external system is not notified

Maybe with the example above I can make myself clearer?

Some other thoughts:
- I don't understand how it would be possible to respond to the client replyTo 
or faultTo and then notifying an external system. My understanding is that 
replying will be that last instruction in my code (a return or throw). Maybe 
you mean to do this with a custom handler?
- You mention that axis2 uses a dedicated thread pool used to serve incoming 
requests. I thought that the thread pool was managed by the application server 
(tomcat,jetty,weblogic) rather than axis2 itself since the webservice request 
are managed by a servlet after all... Is this correct?

Thanks again

David

On Thursday 20 November 2008 11:53:18 Michele Mazzucco wrote:
> Hi David,
>
> why are you saying it is not possible?!
> What I have in mind is:
> 1 - client send request to ws
> 2 - ws sends a http 200 code back
> 3 - ws validates the input
> 4 - ws does the job (no need to spawn a separate thread! -- axis2
> uses a dedicated thread pool used to serve incoming requests)
> 5 - ws responds to client using replyTo or faultTo
> 6 - ws notifies external system (another ws is fine).
>
> You'll need to remove the relatesTo field because such values are
> stored on the client side. If msg # 6 is a brand new msg, then
> there's no problem (the relatesTo in msg #5 is with msg #1, which is
> fine). However, if you "forward" the result somewhere else (i.e. no
> client), then msg #5 won't be related to anything on the receiver
> side, right?
>
> Michele
>
> On 20 Nov 2008, at 14:47, David Ojeda wrote:
> > Hello Michele,
> > Thank you for your response.
> > If a HTTP 200 acknowledgement is always sent back to the client
> > before the server starts processing, then the situation I was
> > thinking is not possible at all. I thought it may be possible to
> > send an acknowledgement with some response like "ok I will process
> > this" or "there is a validation error".
> > Since this is not possible, I will have to come up with a solution
> > like:
> > 1. client sends request to ws
> > 2. ws validates the input
> > 3. if valid, ws spawns a thread to do some work that takes a while
> > 4. ws responds to the client
> > 5. eventually the thread finishes and notifies an external system
> > (another ws perhaps)
> > That aside, why do you say that I will need to write a handler in
> > order to remove the relatedTo field? I am curious on how to
> > implement the 'server' that will receive the response.
> > Thank you
> >
> > On Thursday 20 November 2008 10:00:42 Michele Mazzucco wrote:
> > > Hi David,
> > >
> > > I don't really see where the problem is when you say "there is an
> > > initial acknowledgment and then the response is delivered somewhere
> > > else".
> > > If you use asynchronous communication (i.e. WS-addressing and double
> > > channel) the acknowledgment (i.e. HTTP 200) is *always* sent back to
> > > the client *before* the server starts processing the request.
> > > Then you can specify different endpoints for reply and fault by
> >
> > using
> >
> > > setReplyTo() and setFaultTo(), respectively.
> > > However be careful that if the response is sent "somewhere else",
> > > i.e., to a host different from the sender, y

Re: Adressing, async services and responses

2008-11-20 Thread David Ojeda
Hello Michele,
Thank you for your response.

If a HTTP 200  acknowledgement is always sent back to the client before the 
server starts processing, then the situation I was thinking is not possible at 
all. I thought it may be possible to send an acknowledgement with some 
response like "ok I will process this" or "there is a validation error".

Since this is not possible, I will have to come up with a solution like:
1. client sends request to ws
2. ws validates the input
3. if valid, ws spawns a thread to do some work that takes a while
4. ws responds to the client 
5. eventually the thread finishes and notifies an external system (another ws 
perhaps)

That aside, why do you say that I will need to write a handler in order to 
remove the relatedTo field? I am curious on how to implement the 'server' that 
will receive the response.

Thank you


On Thursday 20 November 2008 10:00:42 Michele Mazzucco wrote:
> Hi David,
>
> I don't really see where the problem is when you say "there is an
> initial acknowledgment and then the response is delivered somewhere
> else".
> If you use asynchronous communication (i.e. WS-addressing and double
> channel) the acknowledgment (i.e. HTTP 200) is *always* sent back to
> the client *before* the server starts processing the request.
> Then you can specify different endpoints for reply and fault by using
> setReplyTo() and setFaultTo(), respectively.
> However be careful that if the response is sent "somewhere else",
> i.e., to a host different from the sender, you'll need to write a
> handler in order to remove the relatesTo field (WS-addressing stuff).
>
> HTH,
> Michele
>
> On 19 Nov 2008, at 22:11, David Ojeda wrote:
> > Hello,
> > I am trying to design a webservice that will respond asynchronously
> > and to a specific URL. I have read documentation on asynchronous
> > services [1] but I have not found a solution for the following
> > situation:
> > 1. A client sends a soap request to the webservice
> > 2. The webservice does some validation of the input (by actually
> > calling another webservice)
> > 3. If the validation succeds, the webservice responds with an xml
> > that indicates that the operation is pending.
> > 3.1 The webservice does some work that takes a while (>1min)
> > 3.2 The webservice responds (succesfully or with a fault) to an URL
> > specified by the client
> > 3.3 End
> > 4. If the validation failed, the webservice responds with an xml
> > that indicates that there is a problem
> > So I think this situation is weird since there is an initial
> > acknowledge to the client (with data) and then the response is
> > delivered somewhere else.
> > I have managed to use the addressing module to specify the URL for
> > the final response
> > options.setReplyTo(new EndpointReference(
> > "http://10.21.17.196:/pruebaservlet/pepe";));
> > However, when I call the service, I do not how to send or receive
> > the acknowledge.
> > I monitored the http communication and the client sends correctly
> > the soap request and the service responds with a 200 OK code but no
> > content.
> > So this is my question: Is it possible to implement this scenario,
> > i.e. an ack that indicates if the operation will or will not be
> > performed, then the response is sent somewhere else.
> > Some other doubts: What would be the "ideal" way to handle this
> > response?
> > With a simple servlet? Or perhaps an in-only webservice whose in-
> > parameter is the output-parameter of the initial webservice.
> > (I hope I am making some sense with these questions)
> > Thank you
> > [1]
> > http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=4
> > http://www.ibm.com/developerworks/webservices/library/ws-axis2/
> > http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-
> > using-apache-axis2.html
> > --
> > David Ojeda
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
David Ojeda



Adressing, async services and responses

2008-11-19 Thread David Ojeda
Hello,

I am trying to design a webservice that will respond asynchronously and to a 
specific URL. I have read documentation on asynchronous services [1] but I 
have not found a solution for the following situation:
1. A client sends a soap request to the webservice
2. The webservice does some validation of the input (by actually calling 
another webservice)
3. If the validation succeds, the webservice responds with an xml that 
indicates that the operation is pending.
   3.1 The webservice does some work that takes a while (>1min)
   3.2 The webservice responds (succesfully or with a fault) to an URL 
specified by the client
   3.3 End
4. If the validation failed, the webservice responds with an xml that 
indicates that there is a problem

So I think this situation is weird since there is an initial acknowledge to 
the client (with data) and then the response is delivered somewhere else.

I have managed to use the addressing module to specify the URL for the final 
response
options.setReplyTo(new EndpointReference(
"http://10.21.17.196:/pruebaservlet/pepe";));
However, when I call the service, I do not how to send or receive the 
acknowledge.
I monitored the http communication and the client sends correctly the soap 
request and the service responds with a 200 OK code but no content.

So this is my question: Is it possible to implement this scenario, i.e. an ack 
that indicates if the operation will or will not be performed, then the 
response is sent somewhere else.
Some other doubts: What would be the "ideal" way to handle this response?
With a simple servlet? Or perhaps an in-only webservice whose in-parameter is 
the output-parameter of the initial webservice. 
(I hope I am making some sense with these questions)

Thank you 


[1]
http://www.onjava.com/pub/a/onjava/2005/07/27/axis2.html?page=4
http://www.ibm.com/developerworks/webservices/library/ws-axis2/
http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-using-
apache-axis2.html
-- 
David Ojeda



Calling one Axis2 Web Service from another

2008-11-19 Thread Howell, David
Back in August there was a thread on this list about problems that arise
when you try to call an Axis2 Web service from another one:
http://www.mail-archive.com/axis-user@ws.apache.org/msg42206.html

 

Basically, you can implement Service A, and write a client using
ServiceClient,

 

ServiceClient client = new ServiceClient();

Options clientOptions = new Options();

 

clientOptions.setTo(new
EndpointReference(ServiceAEndpointURL));

client.setOptions(clientOptions);

 

OMElement request makeRequestElement();

OMElement response = client.sendReceive(request);

 

and get this to work from a test program, but if you move this code to
the implementation of an operation in a 2nd service, the sendReceive()
invocation throws an exception:

 

[WARN] triggerActionNotSupportedFault: messageContext: [MessageContext:
logID=urn:uuid:29EB883E1292BECC7B1227033256438] problemAction:
urn:anonOutInOpResponse

[ERROR] The [action] cannot be processed at the receiver.

org.apache.axis2.AxisFault: The [action] cannot be processed at the
receiver.

at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFaul
t(AddressingFaultsHelper.java:373)

at
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSuppo
rtedFault(AddressingFaultsHelper.java:336)

at
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAc
tion(AddressingValidationHandler.java:149)

at
org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(
AddressingValidationHandler.java:55)

...

 

As far as I know, this hasn't been resolved - is that correct?

 

I can see that for Web Service deployments that provide wrapper
interfaces intended for use by other parties this isn't an issue.
However, if you're trying to put together a service-orientated system
involving extensive use of services by other services, this seems to be
a significant problem - to the point where I wonder whether I'm missing
something. 

 

I appreciate that these intra Axis2 calls are candidates for migration
to some other invocation mechanism such as RMI, but  I wouldn't have
expected to have to do that in all cases right from the start. 

 

Would using Axis2 in the context of an ESB like the WSO2 ESB provide a
way avoid this problem?

 

Any comments would be appreciated.

 

Dave

 

 



BasicHttpContext: method ()V not found

2008-11-16 Thread David Walker


Hi

I am trying to run an Axis2 Web service under Tomcat 6.0. I am using Axis2 
v1.4.1. The first line of my Web service is:

DefaultHttpClient httpclient =3D new DefaultHttpClient();

and I am getting the following runtime error:

org.apache.axis2.AxisFault: org.apache.http.protocol.BasicHttpContext: method 
()V not found

I have compiled the Web service with httpcore-4.0-beta3.jar in the CLASSPATH 
and the same jar file is in the Tomcat and axis2 lib directories.

Can you suggest what might be the problem?

Thanks
David


Axis2-1.4.1 and Xmlbeans 2.4.0

2008-11-11 Thread David Ojeda
Hello,

I've noticed that xmlbeans has released a new version 2.4.0.
Does anyone have any ideas/experience using axis2-1.4.1 and that version of 
xmlbeans instead of 2.3.0 ? 
The changelog is available at
http://svn.apache.org/viewvc/xmlbeans/trunk/CHANGES.txt?revision=666108&view=markup

I would specifically use xmlbeans 2.4.0 for code generation, could this be a 
problem since axis2 uses 2.3.0?

Thank you

-- 
David Ojeda


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



Axis2 and maven2 aar generation pom (sample pom)

2008-11-05 Thread David Ojeda
true




target/generated-sources/axis2/resources

META-INF

*.xml
*.xsd
*.wsdl


schemaorg_apache_xmlbeans/**/*











junit
junit
3.8.1
test


org.apache.axis2
axis2
1.4.1
provided


org.apache.axis2
axis2-java2wsdl
1.4.1
provided


org.apache.axis2
axis2-xmlbeans
1.4.1
provided
    



-- 
David Ojeda


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



RE: Re-generating an Axis 1.4 Web Service in Eclipse?

2008-11-04 Thread Howell, David
I now see that the stuff in WEB-INF isn't solely the responsibility of
the axis tools, but am still curious: as I iterate through the cycle of:

 

1) Author or edit my wsdl and xsd files

2) Generate the axis artifacts

3) Work on my service implementation

 

Is there anything that I need to or can do prior to repeating step 2)
that with clean out any axis generated artifacts so I don't have any
stale files in my Eclipse project?

 

Dave

 

From: Howell, David [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 04, 2008 9:44 AM
To: axis-user@ws.apache.org
Subject: Re-generating an Axis 1.4 Web Service in Eclipse?

 

Hi,

 

I'm using Eclipse Europa and Axis 1.4 (i.e. not Axis2) to generate a Web
service in a top-down manner from a wsdl file I have created. This was
working fine, and I was able to generate server-side stubs and develop
my service until I wanted to alter the wsdl and change some of the
elements used in the message definitions (it's a doc/literal service).

 

I tried to recreate the service from the wsdl by re-running the Web
Service "wizard" without doing anything else to the Eclipse project and
started to get class not found exceptions associated with generated
classes corresponding to an XML element I was no longer using. (I'd post
the exception details, but I no longer have the console output.)

 

=> Is there something I should have done at this point equivalent to a
clean and re-build action?

 

 

Assuming that there were stale build products in my project I deleted
the WebContent folder, hoping that the Web Service wizard / codegen
tools would recreate everything necessary. What I find now is that some
of the files in this folder are generated anew: the WEB-INF  and lib
folders are there, and the generated classes are in the src folder tree.


 

But other files are missing, and the service can't be deployed to
Tomcat: no META-INF folder, no server-config.wsdd or web.xml.

 

=> Is there anything I can do at this point to get the Axis 1.4 Web
service tools to generate all the appropriate artefacts as though it was
doing it for the first time? 

 

Thanks,

 

Dave



Re-generating an Axis 1.4 Web Service in Eclipse?

2008-11-04 Thread Howell, David
Hi,

 

I'm using Eclipse Europa and Axis 1.4 (i.e. not Axis2) to generate a Web
service in a top-down manner from a wsdl file I have created. This was
working fine, and I was able to generate server-side stubs and develop
my service until I wanted to alter the wsdl and change some of the
elements used in the message definitions (it's a doc/literal service).

 

I tried to recreate the service from the wsdl by re-running the Web
Service "wizard" without doing anything else to the Eclipse project and
started to get class not found exceptions associated with generated
classes corresponding to an XML element I was no longer using. (I'd post
the exception details, but I no longer have the console output.)

 

=> Is there something I should have done at this point equivalent to a
clean and re-build action?

 

 

Assuming that there were stale build products in my project I deleted
the WebContent folder, hoping that the Web Service wizard / codegen
tools would recreate everything necessary. What I find now is that some
of the files in this folder are generated anew: the WEB-INF  and lib
folders are there, and the generated classes are in the src folder tree.


 

But other files are missing, and the service can't be deployed to
Tomcat: no META-INF folder, no server-config.wsdd or web.xml.

 

=> Is there anything I can do at this point to get the Axis 1.4 Web
service tools to generate all the appropriate artefacts as though it was
doing it for the first time? 

 

Thanks,

 

Dave



More questions about maven and axis2

2008-11-04 Thread David Ojeda
Hello all,

I have some questions about using maven and axis2. I am using maven 2.0.9, 
axis2 1.4.1, axis2-wsdl2code-maven-plugin 1.4.1.

Here is my situation:
Right now I just want to have a project that generates the client stub for a 
webservice. I need to use xmlbeans over other databindings.

I set up a pom to do this:

http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
4.0.0
mypackage.ws.client
wsclients
jar
1.0.0-SNAPSHOT
wsclients
http://maven.apache.org




target/generated-sources/axis2/wsdl2code/resources




org.apache.axis2

axis2-wsdl2code-maven-plugin
1.4.1



wsdl2code




mypackage.x1

src/main/wsdl/WSClientOperations.wsdl

xmlbeans






junit
junit
3.8.1
test


org.apache.axis2
axis2
1.4.1


org.apache.axis2
axis2-xmlbeans
1.4.1




The first problem I encountered was that I had to explicitly declare the 
axis2-xmlbeans dependecy. No big deal there.
Then, I was having the TypeHolder class problem that xmlbeans usually has when 
the schemaorg_apache_xmlbeans directory is not in the classpath. That's why I 
had to add to the pom a resource in the build section. It seems like the 
plugin doesn't work as it should, because I believe this step should not be 
necessary.

Now I want to add another wsdl so another stub is generated. I plan to have 
10-20 wsdl in this project so all stubs are generated here. 

My first question is: how do I add another wsdl? I checked 
http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-wsdl2code-
plugin.html
and there is no documentation for this scenario.

Second question: I would rather generate xmlbeans classes separately and tell 
wsdl2code to only generate stubs with the -Ewdc option. Is this possible with 
the axis2-wsdl2code-maven-plugin ? Again, the documentation doesn't say 
anything about this feature.

Third question: axis2 and maven users: how do you structure your projects with 
maven? I am really interested specially if my first and second questions are 
no and no. Do you use a module for each webservice client and webservice 
implementation?
I was hoping to have a module for all webservices client and another one for 
the server implementations (although one module per ws implementation works 
for me too).

Thanks for you attention

-- 
David Ojeda


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



RE: Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?

2008-11-01 Thread Karr, David
How about the "addressing wsdl" spec, as opposed to the "addressing
metadata" spec (which uses ws:Policy)?  Does Axis2 do anything with the
former spec?  This usually uses the "wsaw" prefix, and involves the
"wsaw:UsingAddressing" element in the "wsdl:binding" element, and the
"wsaw:Action" attribute in the "wsdl:input" element.




From: Sanka Samaranayake [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 31, 2008 2:59 PM
To: axis-user@ws.apache.org
Subject: Re: Does Axis2 do anything with WS-Addressing and
WS-Policy in WSDLs?


Hi David,

WS Policy is the primary configuration mechanism of Apache
Rampart which is the WS Security implementation for Axis2. In fact Axis2
stores and presents any policy expressions that are defined in
services.xml or service WSDL to any candidate modules for interpreting
and enforcing those policy expressions during service deployment and
runtime. 

AFAIK Axis2 Addressing module doesn't support WS Addressing
Policy expressions hence any policy expressions regarding WS Addressing
don't get processed. This is something which is trivial and easy to
implement and I guess we should get this done soon.

Cheers,
Sanka
    



On Mon, Oct 27, 2008 at 4:12 PM, Karr, David
<[EMAIL PROTECTED]> wrote:


If I have a WSDL that references WS-Addressing and
WS-Policy, using a policy expression that supposedly makes WS-Addressing
"required" in the message, along with the "wsam:Action" attribute value,
does Axis2 do anything useful with that information?




-- 
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/




[Un]marshalling rpc/encoded SOAP body in Axis2 web service

2008-10-29 Thread Howell, David
Hi,

I'm developing a doc/literal Web service in Axis2 that needs to invoke a 3rd 
party Web service that uses the rpc/encoded style. From previous posts to this 
list it looks like my main options are:

1) Use Axis 1.4 to write a doc/literal service that is a wrapper around the 3rd 
party service, then invoke the wrapper from my Axis2 service.

2) Within my Axis2 web service use an instance of ServiceClient and deal 
directly with the OMElement instances that are the request and the response.

In order to compare the alternatives I'm trying to understand how to approach 
option 2). I'm already using Axiom rather than any form of data binding, so am 
OK with that part of things, but have had no luck tracking down some means of 
[un]marshalling to/from the SOAP encoded body element other than rolling my own 
implementation.

Does anyone have any pointers on how to do this? I realize that this isn't 
necessarily an Axis2 question, so if you want to point me at another list, 
thanks fine with me.

Thanks,

Dave

-Original Message-
From: Tian Chi [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 13, 2008 7:32 PM
To: axis-user@ws.apache.org
Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own 
webapp?


Thank you very much for your quick response, Ricky.
I'll start building the war file you mentioned.

Can I ask you two more questions about how to creat a SOAP service using Axis2?

Basically my client will just send a XML file with data using the SOAP service 
I'll provide him (an URL). From the document, I think the service names will be 
defined in the services.xml and associate with a java class with all the 
functions (services) there. My question is how in my class program to get the 
XML file my client posted?

I saw some example, it just pass the parameters using '?'

http://my-service-URL/getPrice?book=1234

But using SOAP, my client's XML file will be posted to my service program, How 
to get the XML document sent from my client to my service?

If it's too much to explain, do you know any online exmaples I can look into?

My 2nd question is
How to define the 'SOAPAction' in the service I'll create?

thank you again, 

-tian 


--- On Tue, 10/14/08, Ricky Murphy <[EMAIL PROTECTED]> wrote:

> From: Ricky Murphy <[EMAIL PROTECTED]>
> Subject: RE: [Axis2]Help! How to create a SOAP service using Axis2 in my own 
> webapp?
> To: axis-user@ws.apache.org
> Date: Tuesday, October 14, 2008, 11:51 AM
> Right, there will be a lot of jars. Actually, your web
> application will end up like what makes axis2.war
> eventually. 
> you may remove all those admin related stuff from
> "your" app. Start with those made axis2.war, use
> all its directory structure and build your own app and
> "embed" axis2 inside.
> 
> HTH
> 
> -Ricky
> 
> 
> 
> > Date: Mon, 13 Oct 2008 17:38:14 -0700
> > From: [EMAIL PROTECTED]
> > Subject: [Axis2]Help! How to create a SOAP service
> using Axis2 in my own webapp?
> > To: axis-user@ws.apache.org
> > 
> > MIME-Version: 1.0
> > Content-Type: text/plain; charset=iso-8859-1
> > Content-Transfer-Encoding: quoted-printable
> > 
> > Hi all, 
> > 
> > Sorry previous message is still in wrong text format, this is it again.
> > 
> > I'm a newbie on using Axis2. After reading through most of the documents on 
> > this site,
> > I still couldn't find the answer I need. I'd really apreciate it if someone 
> > can help me on this.
> > 
> > All Axis2 documents I read on this site are to build new web 
> > services/client using Axis2.
> > Currently I have already a big web app  in use and I need to add a SOAP 
> > service to
> > my web app using Axis2. Is that doable?  If yes, what are the steps to > > 
> > make that happen?
> > 
> > Is it possible to copy axis2.war into my servlet container (Resin)(both 
> > 'axis2' and 'myWebapp' directories under webapps directory) , create > > a 
> > SOAP service in the axis2 app and then forward the request (by deinfing the 
> > 'ServiceClass' parameter in services.xml?) to my own web app > > to handle 
> > some complicated database processes? It seems to me it's not > > doable.  
> > Please don't laugh at me if this question is too sily. 
> > 
> > If the previous approach is not possible. The only other apprach I can > > 
> > think of is to embed Axis2 in my
> > own webapp. In that case, do I need to copy all the needed Axis2 jar files 
> > to my own web app in WEB-INF/lib directory? If so, what are the needed jar 
> > files for a SOAP service? 
> > Basically the SOAP service is receive data from my client, save it to > > 
> > database and respond to client with the results. There are many jar files 
> > in Axis2. I just hope to skip some unnecessary Axis2 jar files to avoid 
> > overhead since my own web app is already very big.
> > 
> > Besides the Axis2 jar files, what else needs to be done to embed a SOAP 
> > service in my own web app?
> > 
> > I'd really really appreciate it if someone gives me some guidance or shed 
> > some light

Re: Re: hot update problem

2008-10-29 Thread David Hay

Thanks for the reply Deepal.Oct 29, 2008 01:46:02 PM, axis-user@ws.apache.org wrote:> When I copy my new aar file into the services directory, my log> statements confirm that the new Web Service class is being loaded by> a new DeploymentClassLoader.>> However, the previous verion of the class still exists in its> DeploymentClassLoader and is still servicing client requests, the hot> update hasn't worked.>> What am I doing wrong?  My service is "application" scopedYes this is a know issues in application scope , this worked before nowit is not. So we will fix the issues before the next release.Deepal> .>> Rgds,> David.-> To unsubscribe, e-mail: [EMAIL PROTECTED] For> additional commands, e-mail: [EMAIL PROTECTED] -- Thank you!http://blogs.deepal.org-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]



hot update problem

2008-10-29 Thread David Hay

When I copy my new aar file into the services directory, my log
statements confirm that the new Web Service class is being loaded bya new DeploymentClassLoader.However,
the previous verion of the class still exists in its
DeploymentClassLoader and is still servicing client requests, the hot
update hasn't worked.What am I doing wrong?  My service is "application" scoped.Rgds,David.

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



Does Axis2 do anything with WS-Addressing and WS-Policy in WSDLs?

2008-10-27 Thread Karr, David
If I have a WSDL that references WS-Addressing and WS-Policy, using a
policy expression that supposedly makes WS-Addressing "required" in the
message, along with the "wsam:Action" attribute value, does Axis2 do
anything useful with that information?


RE: Versioning a service deployed on Axis2

2008-10-21 Thread Kraus, David
Wouldn't it be possible to create a new schema namespace for the next
version of a webservice, and then manage the changes internally in one
web service?

So your first version of the web service might have a schema namespace
of:

http://xxx.com/webservices/V1";>

.

The process of creating the next version would involve creating new
versions of each datatype which changes, or API call (if parameter list
changes), and defining these new types, APIs, in a new namespace in the
same WSDL file.

http://xxx.com/webservices/V2";>

So, the V1 schema of your service might define XXXType, and the V2
schema would define an XXXType2 type to represent XXXType with changes.
Your web service would need to handle both.

Obviously, this could get messy over time, but guidelines that manage
the deprecation and removal of support for past versions could be used
to handle that.

-Original Message-
From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 21, 2008 4:42 PM
To: axis-user@ws.apache.org
Subject: Re: Versioning a service deployed on Axis2

Barry Alexander wrote:
>
> Other than "you're on your own" advice, can you provide some
> guidelines or best practices regarding versioning?
>
The only way to get the service version support in Axis2 is to deploy
two different services. And then use their service addresses to
differentiate the two services. If we use this way then the service
version will be automatically visible to outside as well. So for example
if you want to have two version of "foo" service , then you need to have
two different aar files in the repository , called (eg.) foo-1.aar and
foo-2.aar, in addition to that remember the service name of the two
services.xml file should also be different. In other word those will be
two different services in Axis2.

If you want to have the client transparent version support then one
solution could be  to write a handler which does the version based
dispatching. Meaning when a client send a request it will send the
request to the latest service.

-Deepal
>
>  
>
> I thought this was an excellent question and currently of hot
> discussion with my co-workers.
>
>  
>
> Some further questions:
>
>  
>
> Should message version be embedded as part of SOAP headers using
> WS-Addressing standards?  Or part of the wsdl?
>
> Can end point resolution be used during in-flow phases/handlers to
> route services of various versions end points?
>
> Should versioning be handled as part of a 'mediator'?
>
>
>
> On Tue, Oct 21, 2008 at 10:12 AM, Deepal jayasinghe <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Howell, David wrote:
> >
> > Hi,
> >
> > Is there a recommended or commonly used approach to versioning a
> > service (SOAP, doc/literal) that is to be deployed on Axis2? I'm
> > trying to provide some means of not breaking consumers of an
> existing
> > service if I have to deploy a new version that isn't backwards
> > compatible. We're using AXIOM / no data binding for the service
> > consumers and producers.
> >
> Actually we had some discussion on how to do the version support
in
> Axis2 (for service) , but we have not implement that. So only
> option is
> to manage service yourself.
> >
> > In a lot of cases I think I'll just want to move from deploying
> > MyService_V1.aar to deploying MyService_V2.aar. V1 can stay
deployed
> > on the Axis2 server until the consumers have all moved on to V2.
> >
> > I've been looking at including version information in the target
> > namespace specified in the WSDL for the service as a mechanism
for
> > consumers to specify which version of the service they want to
use.
> > I'm struggling to understand what my options are for deploying
> the old
> > and new versions of my service. Specifically:
> >
> > - I don't seem to need to deploy MyService_V1 and MyService_V2
on
> > different endpoint addresses, but
> >
> > - I assume I do have to give them different names in the

> > element of the wsdl.
> >
> > Is this correct?
> >
> > Finally, is there any way of using a single endpoint and service
> name
> > that accepts requests from consumers that may have different XML
> > namespaces depending on the version of the service they are
using?
> >
> > Thanks,
> >
> > Dave
> >
>
>
> --
> Thank you!
>
>
> http://blogs.deepal.org

Versioning a service deployed on Axis2

2008-10-21 Thread Howell, David
Hi,

 

Is there a recommended or commonly used approach to versioning a service
(SOAP, doc/literal) that is to be deployed on Axis2? I'm trying to
provide some means of not breaking consumers of an existing service if I
have to deploy a new version that isn't backwards compatible. We're
using AXIOM / no data binding for the service consumers and producers.

 

In a lot of cases I think I'll just want to move from deploying
MyService_V1.aar to deploying MyService_V2.aar. V1 can stay deployed on
the Axis2 server until the consumers have all moved on to V2. 

 

I've been looking at including version information in the target
namespace specified in the WSDL for the service as a mechanism for
consumers to specify which version of the service they want to use. I'm
struggling to understand what my options are for deploying the old and
new versions of my service. Specifically:

 

- I don't seem to need to deploy MyService_V1 and MyService_V2 on
different endpoint addresses, but

- I assume I do have to give them different names in the 
element of the wsdl.

 

Is this correct?

 

Finally, is there any way of using a single endpoint and service name
that accepts requests from consumers that may have different XML
namespaces depending on the version of the service they are using?

 

Thanks,

 

Dave

 



Re: Maven2 and Axis2

2008-10-16 Thread David Ojeda
Hello,

I found a thread where someone asked this in 2006 but he did not report his 
progress...  http://markmail.org/message/rq6ldgrwjqkgrdya

I even found your article Deepal: 
http://www.developer.com/java/ent/article.php/10933_3777111_1

After more research, I think there is no archetype. 
The best thing I can do is use a web application structure and embed axis2.

Anyway, I will try this and then the plugins. I'll report back

Thanks

On Thursday 16 October 2008 17:12:50 David Ojeda wrote:
> On Thursday 16 October 2008 15:38:44 Deepal Jayasinghe wrote:
> > > Sorry I did not explained myself...
> >
> > No problem
> >
> > > I want to accomplish two things:
> > > 1. generate a project structure for ws development (using a maven
> > > archetype perhaps)
> >
> > For that I think you need to read maven2 user guide.
>
> Let me rephrase this part:
> Usually, when starting a new project, I use
> mvn archetype:create \
> -DarchetypeGroupId=somegroup \
> -DarchetypeArtifactId=someartifact \
> -DarchetypeVersion=someversion \
> -DgroupId=mygroupid\
> -DartifactId=myartifact
>
> And this creates a directory with a pom.xml, src, etc that depends on the
> archetype. For example, for struts2, it creates a basic
> src/resources/struts.xml and many other config files used by struts2
>
> Whenever I create a new WS developing project, I usually unpack the axis2
> war, because it has the web.xml with the appropiate servlet configuration.
>
> I was wondering if there is an archetype for axis2, so the developer
> doesn't have to create an conf/axis2.xml, web.xml, etc.
>
> > > 2. automatically generate sources,
> >
> > Axis2 does that , have a look at integration module of Axis2 (I mean
> > pom.xml)
> >
> > > compile classes,
> >
> > Same integration module
> >
> > >  pack AAR, pack a WAR so I
> >
> > There is a maven war plugin , look at Axis2 distribution module.
> >
> > Deepal
> >
> > > can deploy this WAR in a webserver or test it with jetty.
> > >
> > > Thank you
> > >
> > > On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote:
> > >>> Hello all,
> > >>>
> > >>> I am thinking on migrating the project management of my webservices
> > >>> projects from ant to maven2. Does anyone have experience with maven2
> > >>> and axis2? I can't find an archetype for WebServices (server-side)
> > >>> using axis2. Should I use a standard webapp archetype?
> > >>> What I found is a plugin that generates AAR files
> > >>> (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugi
> > >>>n. ht ml) and a code generation plugin
> > >>> (http://ws.apache.org/axis2/tools/1_4_1/maven-
> > >>> plugins/maven-wsdl2code-plugin.html)
> > >>
> > >> Those plugins are to create service and module archives. But I do not
> > >> fully understand your problem , what really you trying to do ?
> > >>
> > >> Thank you!
> > >> Deepal
> > >>
> > >>> Thank you

-- 
David Ojeda


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



Re: Maven2 and Axis2

2008-10-16 Thread David Ojeda
On Thursday 16 October 2008 15:38:44 Deepal Jayasinghe wrote:
> > Sorry I did not explained myself...
>
> No problem
>
> > I want to accomplish two things:
> > 1. generate a project structure for ws development (using a maven
> > archetype perhaps)
>
> For that I think you need to read maven2 user guide.
Let me rephrase this part:
Usually, when starting a new project, I use 
mvn archetype:create \
-DarchetypeGroupId=somegroup \
-DarchetypeArtifactId=someartifact \
-DarchetypeVersion=someversion \
-DgroupId=mygroupid\
-DartifactId=myartifact

And this creates a directory with a pom.xml, src, etc that depends on the 
archetype. For example, for struts2, it creates a basic 
src/resources/struts.xml and many other config files used by struts2

Whenever I create a new WS developing project, I usually unpack the axis2 war, 
because it has the web.xml with the appropiate servlet configuration.

I was wondering if there is an archetype for axis2, so the developer doesn't 
have to create an conf/axis2.xml, web.xml, etc.

>
> > 2. automatically generate sources,
>
> Axis2 does that , have a look at integration module of Axis2 (I mean
> pom.xml)
>
> > compile classes,
>
> Same integration module
>
> >  pack AAR, pack a WAR so I
>
> There is a maven war plugin , look at Axis2 distribution module.
>
> Deepal
>
> > can deploy this WAR in a webserver or test it with jetty.
> >
> > Thank you
> >
> > On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote:
> >>> Hello all,
> >>>
> >>> I am thinking on migrating the project management of my webservices
> >>> projects from ant to maven2. Does anyone have experience with maven2
> >>> and axis2? I can't find an archetype for WebServices (server-side)
> >>> using axis2. Should I use a standard webapp archetype?
> >>> What I found is a plugin that generates AAR files
> >>> (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin.
> >>>ht ml) and a code generation plugin
> >>> (http://ws.apache.org/axis2/tools/1_4_1/maven-
> >>> plugins/maven-wsdl2code-plugin.html)
> >>
> >> Those plugins are to create service and module archives. But I do not
> >> fully understand your problem , what really you trying to do ?
> >>
> >> Thank you!
> >> Deepal
> >>
> >>> Thank you

-- 
David Ojeda



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



Re: Maven2 and Axis2

2008-10-16 Thread David Ojeda
Hello Deepal,

Sorry I did not explained myself...

I want to accomplish two things:
1. generate a project structure for ws development (using a maven archetype 
perhaps)
2. automatically generate sources, compile classes, pack AAR, pack a WAR so I 
can deploy this WAR in a webserver or test it with jetty.

Thank you

On Thursday 16 October 2008 14:18:22 Deepal jayasinghe wrote:
> > Hello all,
> >
> > I am thinking on migrating the project management of my webservices
> > projects from ant to maven2. Does anyone have experience with maven2 and
> > axis2? I can't find an archetype for WebServices (server-side) using
> > axis2. Should I use a standard webapp archetype?
> > What I found is a plugin that generates AAR files
> > (http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin.ht
> >ml) and a code generation plugin
> > (http://ws.apache.org/axis2/tools/1_4_1/maven-
> > plugins/maven-wsdl2code-plugin.html)
>
> Those plugins are to create service and module archives. But I do not
> fully understand your problem , what really you trying to do ?
>
> Thank you!
> Deepal
>
> > Thank you

-- 
David Ojeda


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



Maven2 and Axis2

2008-10-16 Thread David Ojeda
Hello all,

I am thinking on migrating the project management of my webservices projects 
from ant to maven2. Does anyone have experience with maven2 and axis2?
I can't find an archetype for WebServices (server-side) using axis2. Should I 
use a standard webapp archetype?
What I found is a plugin that generates AAR files 
(http://ws.apache.org/axis2/tools/1_4_1/maven-plugins/maven-aar-plugin.html)
and a code generation plugin (http://ws.apache.org/axis2/tools/1_4_1/maven-
plugins/maven-wsdl2code-plugin.html)

Thank you

-- 
David Ojeda


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



Re: When do cleanup functions need to be called?

2008-10-06 Thread David Rees
On Mon, Oct 6, 2008 at 5:27 PM, Mel T <[EMAIL PROTECTED]> wrote:
> I have the same problem as described here.
> Upgrading to 1.4.1 has reduced the leak.
> I am now going to try the pool of stubs as well for the remaining.
>
> Dave, is your client running in Tomcat ?
> My problem only occurs when I am accessing the WS using a stub from within
> the same tomcat application.

Yes, my client is running in Tomcat, Tomcat 5.5.27 to be exact. I
wonder if that is somehow also contributing to the issue?

-Dave

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



Re: Error when generating the proxies using xmlbeans

2008-10-01 Thread David Ojeda
Hello Muhammed,

I am not sure about this. When I faced this problem I wasn't sure which files 
should be deleted. I didn't find any docs about this but this -Ewdc was 
crucial for my project (generation time was 5min without it and 10seconds with 
it).
The main problem was that there were duplicate classes in the jar generated by 
scomp and the classes generated by wsdl2java.
What I did was erase everything but the ones I wrote in my last message[*]

Then I encountered more problems since I now needed the soap, wsdl and xml xsd 
classes (Apparently the dummy classes of these xsd were generated by 
wsdl2java... but I did not have the implementation classes). So my solution 
was generating these classes with scomp as well. I am enclosing these xsd in 
case you need them.

Hope it helps, but sorry I do not know the answer to your question

[*] I forgot that I must delete also "schemaorg_apache_xmlbeans/**"

On Wednesday 01 October 2008 10:16:31 Soyer, Muhammed A. wrote:
> Hi David,
>   Thanks for your reply. It says that it will generate a dummy schema but
> when I look at the generated files they look legitimate, which files should
> be dummy?
>
> Thanks
>
> -Original Message-
> From: David Ojeda [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, October 01, 2008 10:08 AM
> To: axis-user@ws.apache.org
> Subject: Re: Error when generating the proxies using xmlbeans
>
> In my experience, I have to delete everything except the skeleton, message
> receiver, and fault classes if any.
>
> I do this with an ant task, so maybe this will help:
>  failonerror="true"
> fork="true">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Note that all my fault classes are named *Fault, so their classes are not
> deleted.
>
> On Wednesday 01 October 2008 08:32:29 Soyer, Muhammed A. wrote:
> > In able to continue my work I tried  -Ewdc (for xmlbeans)  options of
> > wsdl2java, and I could generate the files using xmlbens scomp. Now which
> > files should I replace ?
> >
> > Thanks
> >
> > --
> > -Ewdc (for xmlbeans)  Generate code with a dummy schema. if someone use
> > this option they have to generate the xmlbeans code seperately with the
> > scomp command comes with the xmlbeans distribution and replace the Axis2
> > generated classes with correct classes
> >
> >
> >
> > From: Soyer, Muhammed A. [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, September 30, 2008 6:01 PM
> > To: axis-user@ws.apache.org
> > Subject: Error when generating the proxies using xmlbeans
> >
> > Hi,
> >   I have a WSDL file which imports other WSDL files and they import XSD
> > files. Looks like one of the XSD is being referred multiple times. I
> > guess normally this shouldn't be an issue but when I use the xmlbeans
> > binding I am getting an error saying that I have "Duplicate global type
> > ". When I use the default binding ADB I don't get an error message
> > but I can't use ADB because of its limitations for inherited complex
> > types.
> >
> >   I am using axis2 1.4.1 . Do you have any suggestions to work around the
> > issue?
> >
> > Thanks
> >
> >
> > Using JAVA_HOME:d:\jdev\10g10134\jdk
> > Retrieving document at 'CentralReservation.wsdl'.
> > Retrieving document at 'XReservationService.wsdl', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema
> > wsdl:imported from 'XReservationService.xsd', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/XReservationService.wsdl'. Retrieving document
> > at 'XClassService.wsdl', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema
> > wsdl:imported from 'XClassService.xsd', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/XClassService.wsdl'. Retrieving schema at
> > 'XReservationService.xsd', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/XClassService.xsd'. Retrieving document at
> > 'XSpaService.wsdl', relative to
> > 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl

Re: Error when generating the proxies using xmlbeans

2008-10-01 Thread David Ojeda
ReservationService.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XClassService.xsd'. Retrieving document at
> 'XSpaService.wsdl', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema
> wsdl:imported from 'XSpaService.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.wsdl'. Retrieving schema at
> 'XReservationService.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XSpaService.xsd'. Retrieving document at
> 'XCustomer.wsdl', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving document at
> 'XLocation.wsdl', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema
> wsdl:imported from 'XLocationObjects.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XLocation.wsdl'. Retrieving document at
> 'XTee.wsdl', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving document at
> 'XDiningService.wsdl', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/CentralReservation.wsdl'. Retrieving schema
> wsdl:imported from 'XDiningService.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.wsdl'. Retrieving schema at
> 'XReservationService.xsd', relative to
> 'file:/D:/oa/Zzz2/Wsdl_New/XDiningService.xsd'. [INFO] A SOAP port was not
> found - picking a random port!
> [INFO] Resolving schema with publicId
> [http://schemas.zzz.com/OpenActivity/1/0/Reservation/] and systemId
> [XReservationService.xsd] Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationE
>ngine.java:271) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansEx
>tension.java:126) at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationE
>ngine.java:224) ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25) at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansEx
>tension.java:115) ... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
> D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error:
> sch-props-correct.2: Duplicate global type:
> [EMAIL PROTECTED]://schemas.zzz.com/OpenActivity/1/0/Reservation/ (Original
> global type found in file: null) at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerati
>onUtility.java:325) ... 8 more
> Caused by: org.apache.xmlbeans.XmlException:
> D:\oa\Zzz2\Wsdl_New\XReservationService.xsd:22:3: error:
> sch-props-correct.2: Duplicate global type: [EMAIL PROTECTED]://schemas.
> zzz.com/OpenActivity/1/0/Reservation/ (Original global type found in file:
> null) at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaType
>SystemCompiler.java:225) at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:3
>9) at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
>l.java:25)
>
> Muhammed SOYER  I  Software Engineer  I  MICROS Systems, Inc.  I  2640
> Golden Gate Parkway, Suite 211  I  Naples, FL 34105  I (239) 430-4143 *  I 
> (239) 643-7911 *  I  [EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>* I  
> www.micros.com<http://www.micros.com/>

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: axis/tomcat restart problem

2008-09-26 Thread David Ojeda
Ok then...
I know two ways of deploying a service with wsdd
1. Deploying the axis war with your ws classes and then using the admin 
servlet to deploy the servlet using the wsdd. This modifies the deployed 
server-config.wsdd 
2. Using org.apache.axis.utils.Admin in order to create and update a server-
config.wsdd and then deploy the axis war, ws classes and server-config.wsdd

Which one do you do? (Maybe a third one that I do not know)
If you are using (1), I would check if the server-config.wsdd is being 
replaced when restarting tomcat

Some other thoughts:
- If you are using war files and tomcat is not configured to automatically 
explode wars, I enable it and try again. 

Hope my ideas help a bit, it has been a while since I use gentoo and axis1. 
Now I use arch or ubuntu and axis2 :)

On Friday 26 September 2008 10:18:28 srdjan wrote:
> I'm sorry,I should have been more concise.I mean I have tested my service
> on the tomcat instance which is on my own computer and it works fine.when I
> stop and then start the tomcat,my service's wsdl is still visible on the
> http://localhost:8080/axis/servlet/AxisServlet url. This is not the case
> with the tomcat which is located on the remote server machine which runs on
> linux gentoo. when i restart that tomcat,my own service is no longer
> visible on the ...8080/axis/servlet/AxisServlet url. and yes,this instance
> of tomcat is instaled using emerge command.
>
> David Ojeda wrote:
> > Hello,
> >
> > What do you mean by "every time tomcat is restarted" and "This doesnt
> > happen
> > when i restart my local tomcat" ?
> > I am guessing that "local tomcat" is a tomcat instance installed manually
> > in
> > your home and there is another instance installed by portage/emerge ?
> >
> > On Friday 26 September 2008 07:27:55 srdjan wrote:
> >> Yes,but axis is not standalone server,tomcat is,and it recognizes axis
> >> as some sort of servlet.
> >> I am deploying my service on axis using wsdd.My service is simply a java
> >> class(+ a client for another service) ,not a servlet.I can deploy it on
> >> tomcat as war,but it wont work,because its not a servlet and it uses
> >> axis.
> >> Perhapse I am mistaken on this, if someone knows a way i can do this, i
> >> will gladly listen.
> >> Again,my problem is not in deploying my service,my problem is that my
> >> service disapears( its wsdl is not visible on
> >> ..:8080/axis/servlet/AxisServlet) every time tomcat is restarted. This
> >> doesnt happen when i restart my  local tomcat.
> >> the worst thing is i can't seem to find a similar situation anywhere..
> >>
> >> thanks for your effort David
> >>
> >> David Ojeda wrote:
> >> > Hello,
> >> >
> >> > I don't think that your problem is related to the way you installed
> >>
> >> axis.
> >>
> >> > I
> >> > believe most people don't use that particular flavor of linux nor
> >>
> >> install
> >>
> >> > axis
> >> > using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy
> >>
> >> the
> >>
> >> > axis
> >> > war in tomcat or deploy a customized war with the axis content.
> >> >
> >> > In my case, I create a war with the axis content, the webservices
> >> > classes, resources, jars and aars, and the appropiate axis
> >>
> >> configuration.
> >>
> >> > Hope it helps.
> >> >
> >> > On Thursday 25 September 2008 12:06:34 srdjan wrote:
> >> >> hi,
> >> >> i have recently succesfully deployed my service on axis,however when
> >> >> i restart tomcat on the remote server my service is somehow lost- its
> >>
> >> wsdl
> >>
> >> >> is
> >> >> no longer visible.all the class files of the service are in place,and
> >> >> everything is ok with service itself( i have tested it on my local
> >> >> tomcat).
> >> >> tomcat is on the remote server which runs on linux gentoo,and i have
> >> >> developed my service under windows,but i seriously doubt that the
> >> >> problem lays there.
> >> >> could the problem be in that i haven't actualy instaled axis(using
> >> >> the linux emerge command) but have just copied axis/webaps in
> >>
> >> tomcat/webaps?
> >>
> >> >> i
> >> >> have lost entire blody day trying to figure this out.
> >> >> any sugestions will be greatly appreciated.
> >> >>
> >> >> thanks
> >> >
> >> > --
> >> > Ing. David Ojeda
> >> > Integra Consultores
> >> > Caracas, Venezuela
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Ing. David Ojeda
> > Integra Consultores
> > Caracas, Venezuela
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: How disable auto converting date

2008-09-26 Thread David Ojeda
I've had some experience with this kind of date-issues, I would recommend 
changing the wsdl or xsd using xs:dateTime as the type for this data. This way 
you could use a Calendar. Calendars manage the timezone easily and correctly.

On Friday 26 September 2008 01:04:23 Eugeny Bakun wrote:
>  Hello, all!
> I have some trouble, in my project I use axis for transport data between to
> user wich work in different time zone. I sent java.util.Date object and it
> convert to current timezone, how I can disable what?
> Me need : if I send 24/09/2008 00:00 -> 24/09/2008 00:00
> now  if I send 24/09/2008 00:00 -> 23/09/2008 16:00

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: axis/tomcat restart problem

2008-09-26 Thread David Ojeda
Hello,

What do you mean by "every time tomcat is restarted" and "This doesnt happen 
when i restart my local tomcat" ?
I am guessing that "local tomcat" is a tomcat instance installed manually in 
your home and there is another instance installed by portage/emerge ?

On Friday 26 September 2008 07:27:55 srdjan wrote:
> Yes,but axis is not standalone server,tomcat is,and it recognizes axis as
> some sort of servlet.
> I am deploying my service on axis using wsdd.My service is simply a java
> class(+ a client for another service) ,not a servlet.I can deploy it on
> tomcat as war,but it wont work,because its not a servlet and it uses axis.
> Perhapse I am mistaken on this, if someone knows a way i can do this, i
> will gladly listen.
> Again,my problem is not in deploying my service,my problem is that my
> service disapears( its wsdl is not visible on
> ..:8080/axis/servlet/AxisServlet) every time tomcat is restarted. This
> doesnt happen when i restart my  local tomcat.
> the worst thing is i can't seem to find a similar situation anywhere..
>
> thanks for your effort David
>
> David Ojeda wrote:
> > Hello,
> >
> > I don't think that your problem is related to the way you installed axis.
> > I
> > believe most people don't use that particular flavor of linux nor install
> > axis
> > using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy the
> > axis
> > war in tomcat or deploy a customized war with the axis content.
> >
> > In my case, I create a war with the axis content, the webservices
> > classes, resources, jars and aars, and the appropiate axis configuration.
> >
> > Hope it helps.
> >
> > On Thursday 25 September 2008 12:06:34 srdjan wrote:
> >> hi,
> >> i have recently succesfully deployed my service on axis,however when i
> >> restart tomcat on the remote server my service is somehow lost- its wsdl
> >> is
> >> no longer visible.all the class files of the service are in place,and
> >> everything is ok with service itself( i have tested it on my local
> >> tomcat).
> >> tomcat is on the remote server which runs on linux gentoo,and i have
> >> developed my service under windows,but i seriously doubt that the
> >> problem lays there.
> >> could the problem be in that i haven't actualy instaled axis(using the
> >> linux emerge command) but have just copied axis/webaps in tomcat/webaps?
> >> i
> >> have lost entire blody day trying to figure this out.
> >> any sugestions will be greatly appreciated.
> >>
> >> thanks
> >
> > --
> > Ing. David Ojeda
> > Integra Consultores
> > Caracas, Venezuela
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: axis/tomcat restart problem

2008-09-25 Thread David Ojeda
Hello,

I don't think that your problem is related to the way you installed axis. I 
believe most people don't use that particular flavor of linux nor install axis 
using emerge, rpm, apt-get, pacman, etc. IMO most people just deploy the axis 
war in tomcat or deploy a customized war with the axis content.

In my case, I create a war with the axis content, the webservices classes, 
resources, jars and aars, and the appropiate axis configuration.

Hope it helps.

On Thursday 25 September 2008 12:06:34 srdjan wrote:
> hi,
> i have recently succesfully deployed my service on axis,however when i
> restart tomcat on the remote server my service is somehow lost- its wsdl is
> no longer visible.all the class files of the service are in place,and
> everything is ok with service itself( i have tested it on my local tomcat).
> tomcat is on the remote server which runs on linux gentoo,and i have
> developed my service under windows,but i seriously doubt that the problem
> lays there.
> could the problem be in that i haven't actualy instaled axis(using the
> linux emerge command) but have just copied axis/webaps in tomcat/webaps? i
> have lost entire blody day trying to figure this out.
> any sugestions will be greatly appreciated.
>
> thanks

-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: When do cleanup functions need to be called?

2008-09-23 Thread David Rees
On Tue, Sep 23, 2008 at 5:16 AM, Matt Friedman <[EMAIL PROTECTED]> wrote:
> When you say: "Try 1.4.1. It's much better than 1.4 with this
> particular memory leak.", I take it you mean it is partially fixed,
> but not entirely fixed in 1.4.1. Is that correct?
>
> Did your pool of stubs continue to work for you?
>
> My goal is to completely eliminate any mem leaks from our app.

Yes, it has continued to work for me, and I don't know of any memory leaks.

-Dave

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



Re: When do cleanup functions need to be called?

2008-09-22 Thread David Rees
On Mon, Sep 22, 2008 at 6:39 PM, Matt Friedman <[EMAIL PROTECTED]> wrote:
> Hi, was this issue fixed or resolved? I am running our service in
> JProbe and we are having the identical memory leak issues as described
> in this email chain. After roughly 900 requests the garbage collector
> goes to 100% and out of memory occurs.
>
> Over half the heap is full with instances related to:
> edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap.*
> which is tied to the Axis2 implementation. We don't use edu.emory.* at
> all.
>
> We are running Axis2 v1.4. We're going to try a more recent release or
> the svn nightly build.

Try 1.4.1. It's much better than 1.4 with this particular memory leak.
If your access to the stub constructor isn't synchronized, you may
need to serialize access to stub constructors as well.

-Dave

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



Greetings all,

2008-09-11 Thread David Pizon
Greetings all,

First of all my hat is off to the AXIS group. This is a fantastic tool.

My class works perfect as a web service until I try to instantiate a threaded 
class. Is there a particular way to do this within Axis?

My "DocumentService" class (and internal thread) works perfectly when run as an 
application.



import java.util.*;

import com.custom.classes.*;

/**
 * Class to interact as a web service
 */
public class DocumentService {
// Custom classes
private DocumentBroker m_broker;
private DocumentAssemblyCreater m_assemblyCreater;

/**
 * Initialize this object
 */
public DocumentumService() throws Exception {
this.m_broker = new com.custom.classes.DocumentBroker();
this.m_assemblyCreater = new DocumentAssemblyCreater();

// Spin the assembly creater as a separate thread
this.m_assemblyCreater.start();
}

/**
 * Create an assembly object from a virtual document
*  We will get back a process token (assembling takes some time to run)
*/
public String getProcessToken(String username, String password, String 
documentBase, String publicationId) throws Exception {
// Let the DocumentAssemblyCreater handle creating the assembly
return this.m_assemblyCreater.getProcessToken(username, 
password, documentBase, publicationId);
}

/**
 * Get the completed document
* Pass in the token. Get the publication as a string or null if it has 
not processed yet.
*/
public String getDocument(String processToken) throws Exception {
// Let the DocumentAssemblyCreater handle creating the assembly
return this.m_assemblyCreater.getDocument(processToken);
}
}




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



Re: Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread David Ojeda
I'm very glad to help! 

On Wednesday 20 August 2008 05:21:12 pm Patrick Houbaux wrote:
> Many thanks David ... this is the solution!
>  In the deployment scenario (the 3rd stage when deploying a war in OAS), we
> need to specify to search the local classes first.
>
>  Here is the extract from the OAS docs:
>  "Specifying search-local-classes-first at Deployment Time
>
>  The following example illustrates how to set the
> search-local-classes-first attribute in the orion-web.xml file generated
> for the Web module at deployment time, using the Application Server Control
> Console.
>
>     1.Select Applications>Deploy to launch the Application Server Control
> Console deployment wizard. 2.Supply the path to the application in the
> first page of the wizard. 3.Specify the application name and supply any
> context URI mappings in the second page. 4.Click Configure Class Loading in
> the third page of the wizard (Deploy: Deployment Settings). 5.Under
> Configure Web Module Class Loaders, check the Search Local Classes First
> checkbox next to the name of the Web module containing the local JAR file
> to use. 6.Optionally click the Save Deployment Plan button, and save the
> plan for reuse."
>
>  Thanks again for having put me on track on this.
>
>  Cheers,
>  Patrick.
>
>  David Ojeda wrote:
> Hello,
>
> You should configure your deployment to prefer web-inf classes rather than
> classes of OAS. I am not sure how this is configured but I think that it
> could be the solution you are looking for
>
> On Wednesday 20 August 2008 02:04:53 pm Elton Kong wrote:
>
> Hi, sorry I can't offer any help on this but I too had the same issue
> when trying to do this and would love to learn the fix, thanks!
>
> Elton
>
> Patrick Houbaux wrote:
>
> Erratum: the correct version of OAS I'm using is 10.1.3.1.0
>
> Patrick.
>
> Patrick Houbaux wrote:
>
> Hi all,
>
> I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which
> work great when I use it from a java standalone application.
>
> I'm also calling the same piece of code from a jsp which is part of a
> web application packaged in .war file and deployed on an Oracle
> Application Server 10.3.1.x using the admin console. When I hit this
> jsp page I'm getting the following exception for which I'm currently
> having a hard time to understand why:
>
> java.lang.NullPointerException
> org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
> org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
> org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
> org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
> org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
> org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase
> .java:1907)
>
> org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:195
> 4)
>
> org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterizati
> on(Unknown Source)
> [...]
>
> The war file contains all the axis-bin jars in the WEB-INF/lib folder.
>
> Does anybody knows if there is a conflict between one (or more) of
> the axis jars and the one in OC4J ? If yes, how can I solve that? If
> no, what could be the root cause of that kind of problem?
>
> Thanks for any help on this.
>
> Cheers,
> Patrick.



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: Problem using an AXIS2 client on Oracle Application Server

2008-08-20 Thread David Ojeda
Hello,

You should configure your deployment to prefer web-inf classes rather than 
classes of OAS. I am not sure how this is configured but I think that it could 
be the solution you are looking for

On Wednesday 20 August 2008 02:04:53 pm Elton Kong wrote:
> Hi, sorry I can't offer any help on this but I too had the same issue
> when trying to do this and would love to learn the fix, thanks!
>
> Elton
>
> Patrick Houbaux wrote:
> > Erratum: the correct version of OAS I'm using is 10.1.3.1.0
> >
> > Patrick.
> >
> > Patrick Houbaux wrote:
> >> Hi all,
> >>
> >> I have generated a client stubs with AXIS2 1.4 (using xmlbeans) which
> >> work great when I use it from a java standalone application.
> >>
> >> I'm also calling the same piece of code from a jsp which is part of a
> >> web application packaged in .war file and deployed on an Oracle
> >> Application Server 10.3.1.x using the admin console. When I hit this
> >> jsp page I'm getting the following exception for which I'm currently
> >> having a hard time to understand why:
> >>
> >> java.lang.NullPointerException
> >> org.apache.xmlbeans.impl.store.Locale.isXmlns(Locale.java:2944)
> >> org.apache.xmlbeans.impl.store.Xobj.isXmlns(Xobj.java:132)
> >> org.apache.xmlbeans.impl.store.Cur.isXmlns(Cur.java:172)
> >> org.apache.xmlbeans.impl.store.Locale.getAllNamespaces(Locale.java:2304)
> >> org.apache.xmlbeans.impl.store.Xobj.copy_contents_from(Xobj.java:2295)
> >> org.apache.xmlbeans.impl.values.XmlObjectBase.setterHelper(XmlObjectBase
> >>.java:1907)
> >>
> >> org.apache.xmlbeans.impl.values.XmlObjectBase.set(XmlObjectBase.java:195
> >>4)
> >>
> >> org.plcs.www.headers.impl.BusinessObjectFilterImpl.setPartCharacterizati
> >>on(Unknown Source)
> >> [...]
> >>
> >> The war file contains all the axis-bin jars in the WEB-INF/lib folder.
> >>
> >> Does anybody knows if there is a conflict between one (or more) of
> >> the axis jars and the one in OC4J ? If yes, how can I solve that? If
> >> no, what could be the root cause of that kind of problem?
> >>
> >> Thanks for any help on this.
> >>
> >> Cheers,
> >> Patrick.
> >
> > This message contains information that may be privileged or
> > confidential and is the property of Eurostep 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]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



RE: Inherited object serialized in reverse order by server, when subclass contains an array.(Axis2-3956)

2008-08-19 Thread Kraus, David
Personally, I would really like to see
"https://issues.apache.org/jira/browse/AXIS2-3956"; fixed. The
auto-generation/deployment of a web service (via scripts, etc) is much
easier to implement when the service is defined by a POJO, and
inheritance is an important feature.

We have gotten inheritance to work in our main web service offering by
developing the service WSDL-first. Then, if you use wsdl2java to create
server side and client stubs, the serialization problem does not occur.
The POJO problem seems to be related to the fact that the client stubs
(generated by wsdl2java) and the server side POJO serialization do not
agree on the order of the serialization of the array field in the
subclass. Basically, there are two different serialization mechanisms,
which are at odds.

Dave K

-Original Message-
From: balaji hari [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2008 3:59 PM
To: axis-user@ws.apache.org
Subject: RE: Inherited object serialized in reverse order by server,
when subclass contains an array.


Hi,

We are facing a similar issue. Did you get a chance to have a workaround
for
this?

The issue in jira is un-assigned.

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

The type hierarchy

SubjectDTO(caseSensitive, frequency, ignoreWhiteSpace, key)
   |
SubjectCollectionDTO (collection, contiguous, ordered)
   |
SubjectLinesDTO 


The Response XML:

  
aaa new-model

aaa authentication login default group
enable


aaa authentication login line

false
false
false
2

true


458169663-8



Axis2 ADB error:

Exception in thread "main" org.apache.axis2.AxisFault:
org.apache.axis2.databinding.ADBException: Unexpected subelement
collection
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
at
com.bmc.bcan.ws.service.RuleServiceStub.fromOM(RuleServiceStub.java:1038
)
at
com.bmc.bcan.ws.service.RuleServiceStub.getRule(RuleServiceStub.java:662
)
at
com.bmc.bcan.ws.service.RuleServiceStub.main(RuleServiceStub.java:615)
Caused by: java.lang.Exception:
org.apache.axis2.databinding.ADBException:
Unexpected subelement collection
at
com.bmc.bcan.dto.SubjectDTO$Factory.parse(SubjectDTO.java:827)
at com.bmc.bcan.dto.RuleDTO$Factory.parse(RuleDTO.java:2059)
at
com.bmc.bcan.ws.service.GetRuleResponse$Factory.parse(GetRuleResponse.ja
va:422)
at
com.bmc.bcan.ws.service.RuleServiceStub.fromOM(RuleServiceStub.java:1027
)
... 2 more
Caused by: org.apache.axis2.databinding.ADBException: Unexpected
subelement
collection
at
com.bmc.bcan.dto.SubjectDTO$Factory.parse(SubjectDTO.java:823)
... 5 more


Right now we are able to get this working using xmlbeans databinding in
the
client side.

Any pointers / workaround highly appreciated.

Balaji







Kraus, David wrote:
> 
> To further clarify: serialization code provided on the server side by
> Axis2, based on my POJO and its supporting parameter/return objects,
> serializes a polymorphic object subclass fields first, followed by
> superclass fields, when the subclass contains an array. The client
code
> generated from the WSDL of this POJO based service (using
> wsdl2java-ADB), serializes the polymorphic object in the reverse order
> with superclass fields preceding subclass fields; and also expects
that
> polymorphic objects received from the server follow this same order.
> Since the server serializes in the reverse order "unexpected
subelement"
> errors occur.
> 
>  
> 
> I am going to assume that this is a bug since I don't see this
behavior
> when the subclass does not contain an array.
> 
>  
> 
> Dave Kraus
> 
>  
> 
> 
> 
> From: Kraus, David 
> Sent: Monday, July 28, 2008 5:49 PM
> To: axis-user@ws.apache.org
> Subject: Inherited object serialized in reverse order by server, when
> subclass contains an array.
> 
>  
> 
> I deployed a simple web service as a POJO to both axis2 1.2 and axis2
> 1.4. This service basically echoes back an object which demonstrates
> inheritance. In this example, MWSAttributeObjectInfo is a subclass of
> MWSObjectInfo. To create the client I used wsdl2java against the
> deployed service.
> 
>  
> 
> When I invoked the echoAttrObjInfo method, which simply passes in
> MWSAttributeObjectInfo, and receives the same MWSAttributeObjectInfo
> back, I received an "Unexpected subelement arrayAttributeForms" in
Axis2
> 1.2, and  "Unexpected 

Re: Adding header elements to a response

2008-08-13 Thread David Ojeda
I have managed to solve this using the toOM method in the MessageReceiverInOut 
generated by the wsdl.

On Wednesday 13 August 2008 03:59:42 pm David Ojeda wrote:
> I forgot to mention that I am using Axis 2 1.4
>
> On Wednesday 13 August 2008 03:56:38 pm David Ojeda wrote:
> > Hello all,
> >
> > I've never used the soap header in a WS client or server, but now I need
> > to add a simple true/false element to a soap response.
> > How can I do this?
> > I managed to declare this in the wsdl using soap:header, but there is
> > nothing in the Skeleton that lets me add a header element.
> >
> > Could you please help me?
> >
> > Here is my WSDL:
> >
> > 
> >  > name="WSIterautoID"
> > targetNamespace="http://www.openuri.org/ws/iterauto/WSIterautoID/";
> > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> > xmlns:tns="http://www.openuri.org/ws/iterauto/WSIterautoID/";
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> > xmlns:xsd1="http://www.openuri.org/ws/dummy";>
> > 
> >  > xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> > 
> > targetNamespace="http://www.openuri.org/ws/iterauto/WSIterautoID/";>
> > 
> > 
> > 
> >  > name="iterautoID"
> > type="xsd:string">
> > 
> > 
> > 
> > 
> > 
> > 
> >  > name="code"
> > type="xsd:string">
> > 
> >  > name="msg"
> > type="xsd:string">
> > 
> >  > name="trace"
> > type="xsd:string">
> > 
> >  > name="from"
> > type="xsd:string">
> > 
> > 
> > 
> >  > name="getIterautoIDFault"
> > type="tns:WSIterautoIDException">
> > 
> >
> >  > name="hasMoreElementsHeader"
> > type="xsd:boolean">
> > 
> > 
> > http://www.w3.org/2001/XMLSchema";>
> >  > namespace="http://www.openuri.org/ws/dummy";
> > schemaLocation="../xsd/DummyInput.xsd">
> > 
> > 
> >  > name="input" element="xsd1:EmptyRequest">
> > 
> > 
> >  > name="id" element="tns:getIterautoIDResponse">
> > 
> > 
> > 
> >  > name="fault" element="tns:getIterautoIDFault">
> > 
> > 
> > 
> >  > name="hasMoreElementsHeader" 
> > element="tns:hasMoreElementsHeader">
> > 
> > 
> > 
> > 
> >  > message="tns:getIterautoIDRequest">
> >  > message="tns:getIterautoIDResponse">
> >  > name="WSIterautoIDException"
> > 

Re: Adding header elements to a response

2008-08-13 Thread David Ojeda
I forgot to mention that I am using Axis 2 1.4

On Wednesday 13 August 2008 03:56:38 pm David Ojeda wrote:
> Hello all,
>
> I've never used the soap header in a WS client or server, but now I need to
> add a simple true/false element to a soap response.
> How can I do this?
> I managed to declare this in the wsdl using soap:header, but there is
> nothing in the Skeleton that lets me add a header element.
>
> Could you please help me?
>
> Here is my WSDL:
>
> 
>name="WSIterautoID"
>   targetNamespace="http://www.openuri.org/ws/iterauto/WSIterautoID/";
>   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>   xmlns:tns="http://www.openuri.org/ws/iterauto/WSIterautoID/";
>   xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:xsd1="http://www.openuri.org/ws/dummy";>
>   
>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>   
> targetNamespace="http://www.openuri.org/ws/iterauto/WSIterautoID/";>
>   
>   
>   
>  name="iterautoID"
>   type="xsd:string">
>   
>   
>   
>   
>   
>   
>  name="code"
>   type="xsd:string">
>   
>  name="msg"
>   type="xsd:string">
>   
>  name="trace"
>   type="xsd:string">
>   
>  name="from"
>   type="xsd:string">
>   
>   
>   
>  name="getIterautoIDFault"
>   type="tns:WSIterautoIDException">
>   
>
>  name="hasMoreElementsHeader"
>   type="xsd:boolean">
>   
>   
>   http://www.w3.org/2001/XMLSchema";>
>  namespace="http://www.openuri.org/ws/dummy";
>   schemaLocation="../xsd/DummyInput.xsd">
>   
>   
>  name="input" element="xsd1:EmptyRequest">
>   
>   
>  name="id" element="tns:getIterautoIDResponse">
>   
>   
>   
>  name="fault" element="tns:getIterautoIDFault">
>   
>   
>   
>  name="hasMoreElementsHeader" 
> element="tns:hasMoreElementsHeader">
>   
>   
>   
>   
>message="tns:getIterautoIDRequest">
>message="tns:getIterautoIDResponse">
>  name="WSIterautoIDException"
>   message="tns:IterautoIDFault">
>   
>   
>   
>  name="WSIterautoIDSOAP"
>   type="tns:WSIterautoID">
>  style="document"
>   transport="http://schemas.xmlsoap.org/soap/http"; />
>   
>   
> soapAction="http://www.openuri.org/ws/iterauto/WSIterautoID/getIterautoID";
> /> 
&g

Adding header elements to a response

2008-08-13 Thread David Ojeda
Hello all,

I've never used the soap header in a WS client or server, but now I need to add 
a simple true/false element to a soap response.
How can I do this?
I managed to declare this in the wsdl using soap:header, but there is nothing 
in 
the Skeleton that lets me add a header element. 

Could you please help me?

Here is my WSDL:


http://www.openuri.org/ws/iterauto/WSIterautoID/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:tns="http://www.openuri.org/ws/iterauto/WSIterautoID/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; 
xmlns:xsd1="http://www.openuri.org/ws/dummy";>

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

targetNamespace="http://www.openuri.org/ws/iterauto/WSIterautoID/";>


























http://www.w3.org/2001/XMLSchema";>
http://www.openuri.org/ws/dummy";
schemaLocation="../xsd/DummyInput.xsd">

























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

http://www.openuri.org/ws/iterauto/WSIterautoID/getIterautoID"; />














    http://10.21.17.196:8080/WebServices/services/WSIterautoID"; />





-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



RE: Seemingly strange result switching from Axis2 1.3 to 1.4

2008-08-12 Thread Kraus, David
Just a wild guess but:

The error "Unexpected subelement typeId" would lead me to want to
investigate the handling of nil with "anyType" fields. It looks like the
deserializer hit the typeId data, maybe while processing the previous
nameList ("anyType") field. Try substituting another specific type for
nameList. 

-Original Message-
From: nate roe [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 2:11 PM
To: axis-user@ws.apache.org
Subject: Re: Seemingly strange result switching from Axis2 1.3 to 1.4

Unfortunately, I can't easily provide all of this information.  I
understand if I've provided too little for a complete picture, but I'm
hoping for an avenue of inquiry... I'm not sure where to look or how
to diagnose the problem.

On Mon, Aug 11, 2008 at 11:38 PM, Amila Suriarachchi
<[EMAIL PROTECTED]> wrote:
> Can you send your full wsdl, request and response messages?
>
> thanks,
> Amila.
>
> On Tue, Aug 12, 2008 at 4:02 AM, nate roe <[EMAIL PROTECTED]> wrote:
>>
>> I have a POJO service deployed on JBoss 4.05 under Axis2 v1.3.  I
have
>> modified this service to instead use Axis2 v1.4.  I then regenerated
>> the client-side stub classes with Axis2 1.4's wsdl2java, using the
new
>> (and slightly different) WSDL.
>>
>> My client now has a parse error reading the response, but to my eye,
>> the response looks logical and appears to follow the WSDL.
>>
>> In the WSDL, the response is defined as:
>>
>> 
>>
>>
>>> name="return"
>> nillable="true" type="ax22:SampleNamesX"/>
>>
>>
>> 
>>
>>
>> The response is an array of these elements:
>>
>> 
>>
>>> type="xs:anyType"/>
>>> type="xs:long"/>
>>> type="xs:string"/>
>>
>> 
>>
>>
>> The SOAP response looks like this:
>>
>> http://vegas.com";
>>xmlns:ax21="http://vegas.com/xsd";>
>>
>>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>xsi:nil="true">
>>
>>1138
>>foo
>>
>>
>>>
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>xsi:nil="true">
>>
>>8311
>>bar
>>
>> 
>> 
>>
>>
>> When the client receives this response, however, it throws this
exception:
>>
>> 13:47:04,965 ERROR [STDERR] org.apache.axis2.AxisFault:
>> org.apache.axis2.databinding.ADBException: Unexpected subelement
>> typeId
>> 13:47:04,965 ERROR [STDERR] at
>> org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
>> 13:47:04,965 ERROR [STDERR] at
>> com.vegas.stub.SampleServiceStub.fromOM(SampleServiceStub.java:4832)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
com.vegas.stub.SampleServiceStub.getProductTypes(SampleServiceStub.java:
1672)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypesStubCall(SampleClientUt
il.java:488)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypes(SampleClientUtil.java:
136)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
com.vegas.client.SampleClientUtil.getProductTypeList(SampleClientUtil.ja
va:162)
>> 13:47:04,965 ERROR [STDERR] at
>> org.apache.jsp.SampleClient_jsp._jspService(SampleClient_jsp.java:85)
>> 13:47:04,965 ERROR [STDERR] at
>> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>> 13:47:04,965 ERROR [STDERR] at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:334)
>> 13:47:04,965 ERROR [STDERR] at
>>
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
>> 13:47:04,965 ERROR [STDERR] at
>> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
>> 13:47:04,965 ERROR [STDERR] at
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,965 ERROR [STDERR] at
>>
>>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:96)
>> 13:47:04,980 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
>> 13:47:04,980 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
>> 13:47:04,980 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
>> 13:47:04,980 ERROR [STDERR] at
>>
>>
org.apache.catalina.core.St

Re: Axis2 Webservice called from another websiervice

2008-08-07 Thread David Rees
On Thu, Aug 7, 2008 at 4:36 AM, Chris Richmond <[EMAIL PROTECTED]> wrote:
> in short..there are MAJOR in memory collisions taking
> place whereas the Axis2 stack gets confused.   All in all, it was a
> miserable failure for using one service calling another, which is
> practically SOP in the WS world and I've done it with every other WS stack
> I've used.  In the end I had to retool my middleware layer to use another WS
> stack.

Out of curiosity, what WS stack did you end up using?

> If you ever successfully get Axis2 webservice calling another webservice
> working and working at production levels, I'd love to hear how you did it.

My first attempt to do so using Axis2 1.4 resulted in a very fast
memory leak which caused the app server to go OOM after handling a
couple dozen requests.

However, after upgrading to 1.4-RC1 and using a pool of Stubs for the
client WS calls, everything appears to be functioning OK.

-Dave

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



Re: [AXIS2] how to control logging using log4j

2008-08-05 Thread David Ojeda
I think you may have a problem with additivity, but I'm not sure. Check the 
log4j docs regarding that topic. Here is my log4j.properties so it helps you a 
bit:

log4j.rootLogger = OFF, ConsoleApp
log4j.logger.org.springframework = INFO, ConsoleApp
log4j.logger.org.apache.axis = INFO, ConsoleApp

log4j.additivity.org.springframework = false
log4j.additivity.org.apache.axis = false

log4j.appender.ConsoleApp = org.apache.log4j.ConsoleAppender
log4j.appender.ConsoleApp.layout=la.integra.logs.IntegraPatternLayout
log4j.appender.ConsoleApp.layout.ConversionPattern=[%d{ISO8601}][%-5p]
[%X{transID}][%C.%M][%X{transDesc}][%X{user}][%X{gsm}][%m][%X{data}]%n

Hope it helps

On Tuesday 05 August 2008 10:59:06 am Ashish Kulkarni wrote:
> Hi
>
> Yes rootLogger level is DEBUG, so do i have to change rootLogger level, can
> i not control by level category
>
> Ash
>
> On Tue, Aug 5, 2008 at 11:16 AM, David Ojeda <[EMAIL PROTECTED]> wrote:
> > Maybe the rootLogger is in DEBUG level...
> >
> > On Tuesday 05 August 2008 10:30:51 am Ashish Kulkarni wrote:
> > > Hi
> > >
> > > I am working on a web application which uses Log4j for logging, i added
> > > Axis2.0 to this web application and added following lines to control
> > > logging
> > >
> > >   
> > >   
> > >   
> > >   
> > >   
> > >
> > >  
> > >   
> > >   
> > >   
> > >   
> > >
> > > But still i am getting a lot of output in my log file like below, how
> > > do
> >
> > i
> >
> > > stop this?
> > >
> > > 2008-08-05 10:51:25,276 DEBUG [Thread-1] i18n.ProjectResourceBundle
> > > (ProjectResourceBundle.java:70) -
> > > org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
> > > 2008-08-05 10:51:25,276 DEBUG [Thread-1] deployment.DeploymentEngine
> > > (DeploymentEngine.java:465) - Adding new module
> > > 2008-08-05 10:51:25,697 DEBUG [Thread-1] engine.Phase (Phase.java:96) -
> > > Handler AddressingOutHandler added to Phase MessageOut
> > > 2008-08-05 10:51:25,697 DEBUG [Thread-1] engine.Phase (Phase.java:96) -
> > > Handler AddressingOutHandler added to Phase MessageOut
> > > 2008-08-05 10:51:25,775 DEBUG [Thread-1] description.AxisService
> > > (AxisService.java:716) - mapActionToOperation: Mapping Action to
> >
> > Operation:
> > > action: getVersionRequest; operation:
> > > [EMAIL PROTECTED]
> > > 2008-08-05 10:51:25,775 DEBUG [Thread-1] description.AxisService
> > > (AxisService.java:716) - mapActionToOperation: Mapping Action to
> >
> > Operation:
> > > action: getVersionResponse; operation:
> > > [EMAIL PROTECTED]
> > > 2008-08-05 10:51:25,759 INFO [Thread-1] util.Utils (Utils.java:191) -
> > > Created temporary file :
> >
> > C:\server\Tomcat5.5.26\work\Catalina\localhost\testapp\axis218320version-
> >1.
> >
> > >3.aar 2008-08-05 10:51:25,759 DEBUG [Thread-1] util.StAXUtils
> > > (StAXUtils.java:191) - XMLStreamReader is
> > > com.ctc.wstx.sr.ValidatingStreamReader
> > >
> > >
> > > Ash
> >
> > --
> > Ing. David Ojeda
> > Integra Consultores
> > Caracas, Venezuela
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: [AXIS2] how to control logging using log4j

2008-08-05 Thread David Ojeda
Maybe the rootLogger is in DEBUG level...

On Tuesday 05 August 2008 10:30:51 am Ashish Kulkarni wrote:
> Hi
>
> I am working on a web application which uses Log4j for logging, i added
> Axis2.0 to this web application and added following lines to control
> logging
>
>   
>   
>   
>   
>   
>
>  
>   
>   
>   
>   
>
> But still i am getting a lot of output in my log file like below, how do i
> stop this?
>
> 2008-08-05 10:51:25,276 DEBUG [Thread-1] i18n.ProjectResourceBundle
> (ProjectResourceBundle.java:70) -
> org.apache.axis2.i18n.resource::handleGetObject(addingnewmodule)
> 2008-08-05 10:51:25,276 DEBUG [Thread-1] deployment.DeploymentEngine
> (DeploymentEngine.java:465) - Adding new module
> 2008-08-05 10:51:25,697 DEBUG [Thread-1] engine.Phase (Phase.java:96) -
> Handler AddressingOutHandler added to Phase MessageOut
> 2008-08-05 10:51:25,697 DEBUG [Thread-1] engine.Phase (Phase.java:96) -
> Handler AddressingOutHandler added to Phase MessageOut
> 2008-08-05 10:51:25,775 DEBUG [Thread-1] description.AxisService
> (AxisService.java:716) - mapActionToOperation: Mapping Action to Operation:
> action: getVersionRequest; operation:
> [EMAIL PROTECTED]
> 2008-08-05 10:51:25,775 DEBUG [Thread-1] description.AxisService
> (AxisService.java:716) - mapActionToOperation: Mapping Action to Operation:
> action: getVersionResponse; operation:
> [EMAIL PROTECTED]
> 2008-08-05 10:51:25,759 INFO [Thread-1] util.Utils (Utils.java:191) -
> Created temporary file :
> C:\server\Tomcat5.5.26\work\Catalina\localhost\testapp\axis218320version-1.
>3.aar 2008-08-05 10:51:25,759 DEBUG [Thread-1] util.StAXUtils
> (StAXUtils.java:191) - XMLStreamReader is
> com.ctc.wstx.sr.ValidatingStreamReader
>
>
> Ash



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



RE: Integrating Axis 1.3 and Spring

2008-08-05 Thread David Land
Sagara,

 

Thanks for the information. Unfortunately, the use of Axis2 is not an
option at this point. We're using Axis 1 version 1.3, which apparently
does not have good support for integration with Spring.  I can see why
you would get confused though, the naming conventions are bizarre. Can't
we come up with a more distinct name than Axis2? Things like "Axis2
version 1.4" sound weird unintuitive. How about a totally different
name? How about Atlas? Or Allies? Or X-Axis? Or Tilt? Or anything but
the same name with a pseudo version number tacked on the end.

 

Dave

 

From: Sagara Gunathunga [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2008 10:37 PM
To: axis-user@ws.apache.org
Subject: Re: Integrating Axis 1.3 and Spring

 

Hi Dave,
I'm not sure about your question ,  but Spring user guide [1] shows  how
you can access beans defined in  the Spring application context. you
don't need to modify you Spring application context file , but need to
define "ServiceObjectSupplier" parameter in the service.xml file. 

When you come to Spring AOP proxy beans you need one more extra step to
define "ServiceClass" parameter in the service.xml file . Recently i
have done a  such example ,please refer following blog entry [2] for
more details .


[1] - http://ws.apache.org/axis2/1_4/spring.html
[2] - http://ssagara.blogspot.com/2008/08/axis2-with-spring-aop.html

Hope this will help you ,

Regards ,

Sagara Gunathunga 

Blog - ssagara.blogspot.com
Web - http://sagaras.awardspace.com/

On Fri, Aug 1, 2008 at 10:26 PM, David Land <[EMAIL PROTECTED]>
wrote:

I have a question about integrating Axis 1.3 with Spring. I want to
implement an AOP logging solution for a set of Axis web services.
Basically, I want to be able to do some logging and the beginning and
end of each web service method. My question is regarding how to get Axis
to use an instance of the Spring AOP proxy class.

 

The only solution I could find for doing it was to create a dummy web
service class that inherits from
org.springframework.remoting.jaxrpc.ServletEndpointSupport and then to
override the onInit() method to set a class variable to the AOP object
returned from the Spring application context. Then in each of the dummy
web service's methods, call the corresponding method on the AOP object.
Here is a typical example:

---
public class DummyService extends ServletEndpointSupport implements
IRealWebService {
   private IRealWebService real;

   protected void onInit() {
  this. real =
(IRealWebService)getWebApplicationContext().getBean("wsBean");
   }

   public String sayHello(String message) {
  return real.sayHello(message);
   }

 

   public String doSomethingElse (String message) {
  return real. doSomethingElse (message);
   }
}
---

I'm not a huge fan of this solution because it requires you to keep
around this dummy class that doesn't do anything but create and call the
Spring generated proxy. Then every time you want add a new method to the
web service you would have to go back and update the dummy class as
well. Isn't there a way to get Axis to instantiate and use the AOP proxy
object from the Spring application context? Maybe some lower level
handler in Axis can be overridden so you can inject the Spring object?

 

It's my understanding that Axis2 has better support for Spring, but
using Axis2 is not an option at this point.

 

Thanks,

Dave




-- 



Re: Problem testing Axis2 service with saaj + jsp

2008-08-04 Thread David Ojeda
Hello,

I couldn't solve my problem, so I gave up using SAAJ. I decided to create a jar 
with the stubs generated by wsdl2java and used xmlbeans to parse the xml.

If anyone was watching... sorry :S

On Friday 01 August 2008 12:33:28 pm David Ojeda wrote:
> Yet another update:
> I think I found the problem, but I have no idea on the solution. With a TCP
> Monitor I compared the standalone (works ok) version vs. the jsp version.
> They differ in the header:
>
> standalone version xml:
> http://schemas.xmlsoap.org/soap/envelope/";
> standalone="no"?>
> http://www.digitel.com.ve/PM_S0004";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
> 584122949996
> 2
>
> 
>
> jsp version xml:
> http://schemas.xmlsoap.org/soap/envelope/";
> standalone="no"?>
> http://www.digitel.com.ve/PM_S0004";
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
> http://www.w3.org/2005/08/addressing";>
> http://localhost:8080/WebServicesATC/services/WSMobileLineStateForR
>echargeUpdate
> urn:uuid:155B7826FDE31FB4991217609391827
> urn:anonOutInOpResponse
> 
>   
> 584122949996
> 2
>
> 
>
>
> I tried removing the header with:
> msg.getSOAPHeader().detachNode();
> but that didn't work.
>
> Any ideas?
>
> On Friday 01 August 2008 12:08:04 pm David Ojeda wrote:
> > Update:
> >
> > I just checked with a tcp monitor and the request does arrive to the
> > server, but responds with an error 500 and the same exception I mentioned
> > before.
> >
> >  > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> > xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w
> >3.
> > org/2005/08/addressing/faulturn:uuid:47691F51
> >DDE
> > 89BC4AF1217605891135<
> >wsa
> >
> >:Action>urn:anonOutInOpResponse >:tD
> >
> >etail> > xmlns:wsa="http://www.w3.org/2005/08/addressing";>wsa:ActionNot
> >Su pportedThe [action] cannot be processed at the
> > receiver.org.apache.axis2.AxisFault: The
> > [action] cannot be processed at the receiver.
> > at
> > org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault
> >(A ddressingFaultsHelper.java:373) at
> > org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSuppor
> >te dFault(AddressingFaultsHelper.java:336) at
> > org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAct
> >io n(AddressingValidationHandler.java:149) at
> > org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(A
> >dd ressingValidationHandler.java:55) at
> > org.apache.axis2.engine.Phase.invoke(Phase.java:317)
> > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
> > at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
> >(H TTPTransportUtils.java:275) at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
> >io nFilterChain.java:269) at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilte
> >rC hain.java:188) at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve
> >.j ava:213) at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve
> >.j ava:174) at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> >12 7) at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> >11 7) at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.j
> >av a:108) at
> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
> > at
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:15
> >1) at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874
> >) at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proce
> >ss Connection(Http11BaseProtocol.java:665) at
> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.
> >ja va:528) at
> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowe
> >rW orkerThread.java:81) at
> > org.apache.tomcat.

Re: Problem testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
Yet another update:
I think I found the problem, but I have no idea on the solution. With a TCP 
Monitor I compared the standalone (works ok) version vs. the jsp version. They 
differ in the header:

standalone version xml:
http://schemas.xmlsoap.org/soap/envelope/"; 
standalone="no"?>
http://www.digitel.com.ve/PM_S0004"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
   
584122949996 
2  
   


jsp version xml:
http://schemas.xmlsoap.org/soap/envelope/"; 
standalone="no"?>
http://www.digitel.com.ve/PM_S0004"; 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
http://www.w3.org/2005/08/addressing";>
http://localhost:8080/WebServicesATC/services/WSMobileLineStateForRechargeUpdate
urn:uuid:155B7826FDE31FB4991217609391827
urn:anonOutInOpResponse

   
584122949996 
2  
   



I tried removing the header with:
msg.getSOAPHeader().detachNode();
but that didn't work.

Any ideas?

On Friday 01 August 2008 12:08:04 pm David Ojeda wrote:
> Update:
>
> I just checked with a tcp monitor and the request does arrive to the
> server, but responds with an error 500 and the same exception I mentioned
> before.
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";> xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://www.w3.
>org/2005/08/addressing/faulturn:uuid:47691F51DDE
>89BC4AF1217605891135:Action>urn:anonOutInOpResponseetail> xmlns:wsa="http://www.w3.org/2005/08/addressing";>wsa:ActionNotSu
>pportedThe [action] cannot be processed at the
> receiver.org.apache.axis2.AxisFault: The
> [action] cannot be processed at the receiver.
>   at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(A
>ddressingFaultsHelper.java:373) at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupporte
>dFault(AddressingFaultsHelper.java:336) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkActio
>n(AddressingValidationHandler.java:149) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(Add
>ressingValidationHandler.java:55) at
> org.apache.axis2.engine.Phase.invoke(Phase.java:317)
>   at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
>   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
>   at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
>TTPTransportUtils.java:275) at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:174) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12
>7) at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:11
>7) at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a:108) at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
> at
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.process
>Connection(Http11BaseProtocol.java:665) at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja
>va:528) at
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW
>orkerThread.java:81) at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>va:689) at java.lang.Thread.run(Thread.java:619)
> 
>
> On Friday 01 August 2008 11:15:13 am David Ojeda wrote:
> > Hello,
> >
> > I read the thread "Send direct XML rather than using Java classes" and
> > followed the example at
> > http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm in order to
> > create a jsp page that tests a webservice deployed with axis2.
> >
> > I am getting this exception:
> > org.apache.axis2.AxisFault: The [action] cannot be processed at the
> > receiver. at
> > org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault
> >(A ddressingFaultsHelper.java:373) at
> > org.apache.axis2.addre

Integrating Axis 1.3 and Spring

2008-08-01 Thread David Land
I have a question about integrating Axis 1.3 with Spring. I want to
implement an AOP logging solution for a set of Axis web services.
Basically, I want to be able to do some logging and the beginning and
end of each web service method. My question is regarding how to get Axis
to use an instance of the Spring AOP proxy class.

 

The only solution I could find for doing it was to create a dummy web
service class that inherits from
org.springframework.remoting.jaxrpc.ServletEndpointSupport and then to
override the onInit() method to set a class variable to the AOP object
returned from the Spring application context. Then in each of the dummy
web service's methods, call the corresponding method on the AOP object.
Here is a typical example:

---
public class DummyService extends ServletEndpointSupport implements
IRealWebService {
   private IRealWebService real;

   protected void onInit() {
  this. real =
(IRealWebService)getWebApplicationContext().getBean("wsBean");
   }

   public String sayHello(String message) {
  return real.sayHello(message);
   }

 

   public String doSomethingElse (String message) {
  return real. doSomethingElse (message);
   }
}
---

I'm not a huge fan of this solution because it requires you to keep
around this dummy class that doesn't do anything but create and call the
Spring generated proxy. Then every time you want add a new method to the
web service you would have to go back and update the dummy class as
well. Isn't there a way to get Axis to instantiate and use the AOP proxy
object from the Spring application context? Maybe some lower level
handler in Axis can be overridden so you can inject the Spring object?

 

It's my understanding that Axis2 has better support for Spring, but
using Axis2 is not an option at this point.

 

Thanks,

Dave



Re: Problem testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
Update:

I just checked with a tcp monitor and the request does arrive to the server, 
but 
responds with an error 500 and the same exception I mentioned before.

http://schemas.xmlsoap.org/soap/envelope/";>http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/faulturn:uuid:47691F51DDE89BC4AF1217605891135urn:anonOutInOpResponsehttp://www.w3.org/2005/08/addressing";>wsa:ActionNotSupportedThe
 
[action] cannot be processed at the 
receiver.org.apache.axis2.AxisFault: The 
[action] cannot be processed at the receiver.
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(AddressingFaultsHelper.java:373)
at 
org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)
at 
org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)
at org.apache.axis2.engine.Phase.invoke(Phase.java:317)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:544)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
at java.lang.Thread.run(Thread.java:619)



On Friday 01 August 2008 11:15:13 am David Ojeda wrote:
> Hello,
>
> I read the thread "Send direct XML rather than using Java classes" and
> followed the example at
> http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm in order to
> create a jsp page that tests a webservice deployed with axis2.
>
> I am getting this exception:
> org.apache.axis2.AxisFault: The [action] cannot be processed at the
> receiver. at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(A
>ddressingFaultsHelper.java:373) at
> org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupporte
>dFault(AddressingFaultsHelper.java:336) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkActio
>n(AddressingValidationHandler.java:149) at
> org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(Add
>ressingValidationHandler.java:55) at
> org.apache.axis2.engine.Phase.invoke(Phase.java:317)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H
>TTPTransportUtils.java:275) at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>nFilterChain.java:269) at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>hain.java:188) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>ava:213) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>ava:174

Problem testing Axis2 service with saaj + jsp

2008-08-01 Thread David Ojeda
i 16 juin 2008 19:31
> > À : axis-user@ws.apache.org
> > Objet : Re: Send direct XML rather than using Java classes
> >
> > Use the SAAJ API. See
> > http://users.skynet.be/pascalbotte/rcx-ws-doc/saajpost.htm for
> > samples.
> >
> > Anne
> >
> > On Mon, Jun 16, 2008 at 11:04 AM, Jacky Rymasz-Maillot
> >
> > <[EMAIL PROTECTED]> wrote:
> >> I am using actually Axis 1.4.
> >> Is it still possible? If so, where can I find an example?
> >> Thank you for all your answer ;)
> >>
> >> Jack
> >>
> >> -Message d'origine-
> >> De : Paul Fremantle [mailto:[EMAIL PROTECTED]
> >> Envoyé : lundi 16 juin 2008 16:36
> >> À : axis-user@ws.apache.org
> >> Objet : Re: Send direct XML rather than using Java classes
> >>
> >> Jacky
> >>
> >> Sure. If you use Axis2 it was designed this way. The Java classes
> >> model is actually just a separate layer on top of the core XML
> >> messaging layer.
> >>
> >> You just need to look at the ServiceClient API. The XML is represented
> >> in Axis2 as an OMElement.
> >>
> >> Paul
> >>
> >> 2008/6/16 Jacky Rymasz-Maillot <[EMAIL PROTECTED]>:
> >>> Hello,
> >>>
> >>>
> >>>
> >>> I would like to know if it is possible to send a WSDL request directly
> >>> without using Java classes to create the request.
> >>>
> >>> Let's say I want to create a WSDL request (XML format) into a text
> >>> editor
> >>> and send the resulting String to my server without using the generated
> >>> Java
> >>> classes from Axis.
> >>>
> >>>
> >>>
> >>> What I want looks like that but for SOAP:
> >>>
> >>> http://users.skynet.be/pascalbotte/rcx-ws-doc/xmlpost.htm
> >>>
> >>>
> >>>
> >>> Is it possible?
> >>>
> >>>
> >>>
> >>> Thx
> >>>
> >>>
> >>>
> >>> Jack
> >>>
> >>>
> >>>
> >>>
> >>>
> >>> No virus found in this outgoing message.
> >>> Checked by AVG.
> >>> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date:
> >>> 15/06/2008
> >>> 17:52
> >>
> >> --
> >> Paul Fremantle
> >> Co-Founder and CTO, WSO2
> >> Apache Synapse PMC Chair
> >> OASIS WS-RX TC Co-chair
> >>
> >> blog: http://pzf.fremantle.org
> >> [EMAIL PROTECTED]
> >>
> >> "Oxygenating the Web Service Platform", www.wso2.com
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >> No virus found in this incoming message.
> >> Checked by AVG.
> >> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date:
> >> 15/06/2008 17:52
> >>
> >>
> >> No virus found in this outgoing message.
> >> Checked by AVG.
> >> Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date:
> >> 15/06/2008 17:52
> >>
> >>
> >> -
> >> 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]
> >
> >
> > No virus found in this incoming message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date:
> > 15/06/2008 17:52
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date:
> > 15/06/2008 17:52
> >
> >
> > No virus found in this outgoing message.
> > Checked by AVG.
> > Version: 7.5.524 / Virus Database: 270.4.1/1510 - Release Date:
> > 19/06/2008 15:21
> >
> >
> > -
> > 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]
>
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008
> 07:52
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008
> 07:52
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008
> 07:52
>
>
> No virus found in this outgoing message.
> Checked by AVG.
> Version: 7.5.524 / Virus Database: 270.4.1/1513 - Release Date: 22/06/2008
> 07:52
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: XMLBeans ? is there a better approach

2008-08-01 Thread David Ojeda
Hello Sriram,

Yes, scomp compiles without any OutofMemoryExceptions. However, I had to 
increase the memory to 384mb, -Xmx and -Xms work fine also in case you need to 
increase the memory.


When using wsdl2java I use the following options, it doesn't compile the schema 
at all since it uses the -Edwc option.








   
 
  



  
   



 

Service classes generated with WSDL2Java, erasing classes that 
will 
be replaced by xmlbeans classes














This is my xmlbeans task:








On Friday 01 August 2008 05:04:01 am sri ram wrote:
> Hi David,
>    I just wanted to confirm regarding this.
> Does the scomp compiler doesn't show any Out of Memory Exeptions?
> And Moreover when we use  wsdl2java command we do mention the databinding
> using -d option ,if we mention XMLBeans in that option will it not
> recompile the schema.Or is there a way to eliminate the recompiling of the
> schema .
>
> Would like to know your ideas on this which is of a great help .
> Thanks And Regards
> Sriram P
>
>
>
>
> --- On Fri, 1/8/08, David Ojeda <[EMAIL PROTECTED]> wrote:
> From: David Ojeda <[EMAIL PROTECTED]>
> Subject: Re: XMLBeans ? is there a better approach
> To: axis-user@ws.apache.org
> Date: Friday, 1 August, 2008, 3:50 AM
>
> Hello,
> I had a similar problem with XMLBeans, but regarding file generation.
> The XSDs I used were very big (10k classes), so this caused an
> OutOfMemoryException when doing wsdl2java.
> The solution I found was generating the XMLBeans classes in a separate xml
> with
>
> scomp and using wsdl2java with the -Ewdc option.
>
> Maybe this idea will help you.
>
> On Thursday 31 July 2008 04:31:13 am sri ram wrote:
> > Hi all,
> >  Can anyone give me the better approach of databinding that I have
>
> to
>
> > follow for my project.This project  has almost 396 method and can be more
> > in the upcoming releases, which are exposed as webservices. So while
> > using XMLBeans  as databinding it created many .java and xsb files .
> > These
>
> files
>
> > take ,quite a long time to get compiled and sometimes have
> > OutOfMemoryException and we have to set out heap size to get rid of this
> > exception. Once the aar file is deployed into the server and send a SOAP
> > request ,the Axis Servlet takes more time to get initialized which is one
> > of the main performance drawback. So can any one suggest a better
> > databinding to  have better performance  as a whole A databinding which
>
> can
>
> > give 100% schema support,Quick response and Quick initialization of the
> > servlet.
> >
> > Thanks And Regards
> > Sriram P
> >   
> >
> >
> > .
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >   Unlimited freedom, unlimited storage. Get it now, on
> > http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: XMLBeans ? is there a better approach

2008-07-31 Thread David Ojeda
Hello,
I had a similar problem with XMLBeans, but regarding file generation.
The XSDs I used were very big (10k classes), so this caused an 
OutOfMemoryException when doing wsdl2java.
The solution I found was generating the XMLBeans classes in a separate xml with 
scomp and using wsdl2java with the -Ewdc option.

Maybe this idea will help you.

On Thursday 31 July 2008 04:31:13 am sri ram wrote:
> Hi all,
>  Can anyone give me the better approach of databinding that I have to
> follow for my project.This project  has almost 396 method and can be more
> in the upcoming releases, which are exposed as webservices. So while using
> XMLBeans  as databinding it created many .java and xsb files . These files
> take ,quite a long time to get compiled and sometimes have
> OutOfMemoryException and we have to set out heap size to get rid of this
> exception. Once the aar file is deployed into the server and send a SOAP
> request ,the Axis Servlet takes more time to get initialized which is one
> of the main performance drawback. So can any one suggest a better
> databinding to  have better performance  as a whole A databinding which can
> give 100% schema support,Quick response and Quick initialization of the
> servlet.
>
> Thanks And Regards
> Sriram P
>   
>
>
> .
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   Unlimited freedom, unlimited storage. Get it now, on
> http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/



-- 
Ing. David Ojeda
Integra Consultores
Caracas, Venezuela

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



Re: When do cleanup functions need to be called?

2008-07-30 Thread David Rees
On Wed, Jul 30, 2008 at 2:09 AM, Pierre Muller <[EMAIL PROTECTED]> wrote:
> On spec, wouldn't it be related to the scope of your services ?
> http://www.developer.com/java/web/article.php/3620661

I don't think so - The default scope (request) should be fine. I don't
care about anything longer than that.

-Dave

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



Re: When do cleanup functions need to be called?

2008-07-30 Thread David Rees
On Wed, Jul 30, 2008 at 4:22 AM, Amila Suriarachchi
<[EMAIL PROTECTED]> wrote:
> On Wed, Jul 30, 2008 at 2:15 PM, David Rees <[EMAIL PROTECTED]> wrote:
>
> well see this code,
>
> public static void clientCall1() {
>  MyServiceStub stub = new MyServiceStub("http://example.com/myservice";);
>  ClientCall1 req = new ClientCall1();
>  ClientCall1Response res = stub.clientCall1(req);
>  // Need to call this when calling using this function in a web service
>  // Otherwise huge resource leak occurs
>  stub._getServiceClient().
> cleanup();
>  }
> }
>
> After this method call this class should be garbage collected. since stub
> does not have any reference after that.

Right - but I'm not having a problem with Stubs being leaked. Here's a
count of various interesting classes (I've skipped some of the Java
core classes for brevity) of which there are a high number of
instances when the heap runs out of space (using a 32mb heap):

edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$Segment
177,023, 17% heap
edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap$HashEntry[]
177,023, 6% heap
edu.emory.mathcs.backport.java.util.concurrent.locks.ReentrantLock$NonfairSync
177,023, 8% heap
java.util.HashMap$Entry[] 37926, 8% heap
java.util.HashMap 36789, 4% heap
java.util.HashMap$Entry 28853, 2% heap
java.util.ArrayList 13698, 1% heap
org.apache.axis2.description.ParameterIncludeImpl 11099, 0% heap
edu.emory.mathcs.backport.java.util.concurrent.ConcurrentHashMap 11064, 1% heap
org.apache.axis2.description.PolicySubject 11063, 0% heap
org.apache.axis2.engine.Phase 7905, 0% heap
org.apache.axis2.description.AxisBindingMessage 4668, 1% heap
org.apache.axis2.description.AxisMessage 3168

So it's pretty easy to see where the majority of the heap is being
used, about half the heap is being used by the ConcurrentHashMap and
HashMaps.

Tracing a ConcurrentHashMap$Segment to it's root goes like this (class
name w/variable name):

ConcurrentHashMap$Segment
ConcurrentHashMap$Segment[]
ConcurrentHashMap (children)
OutInAxisOperation
HashMap$Entry
HashMap$Entry[]
HashMap operationsAliasesMap
AxisService
HashMap$Entry (value)
HashMap$Entry[]
HashMap (allEndpoints)
AxisConfiguration (axisConfiguration)
AxisServlet

Hopefully that provides some insight as to where reference chain is going.

Now, after more trial and error, I believe that I've figured out a way
to keep it from leaking (the service has been running overnight now
with a 32MB heap and it has not gone OOM yet):

1. Use Axis2 1.4.1 RC1
2. Create a pool of stubs to use so that only one thread uses a Stub at a time.

#2 I tried after a lot of googling and mail archive searches where I
found a post that indicated that the creation of and use of Stubs may
not be thread safe. I don't know enough about the internals of axis2
as to why this may be an issue, but hopefully it can point the
developers in the right direction (still haven't been able to create a
small test case).

Thanks

-Dave

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



Re: [Axis2] Initialization

2008-07-30 Thread David
It's working, I understood, thanks a lot !

On Tue, Jul 29, 2008 at 7:29 PM, sumedha rubasinghe <[EMAIL PROTECTED]>wrote:

> Following example might be of help.
>
> http://wso2.org/library/333
>
> And you can find an example on latest axis2 distribution too. Inside
> axis2-1.4/samples/servicelifecycle folder. README.txt located there is a
> good starting point.
>
> /sumedha
>
>
>
>
> On Tue, Jul 29, 2008 at 10:47 PM, Sameera Jayasoma <
> [EMAIL PROTECTED]> wrote:
>
>> On Tue, Jul 29, 2008 at 9:53 PM, David <[EMAIL PROTECTED]> wrote:
>>
>>> Hi,
>>>
>>> I made my WS in Axis 2 and it's working very well, but I have one last
>>> think I would like to implement, I need to launch a method when I deploy my
>>> webservice, like an init phase where I'm loading some stuff.
>>> In Axis 1.4 I was using an InitServlet with load on startup option, so is
>>> it possible in Axis 2 when we use .aar deployed in /services ?
>>>
>>
>> Yes, there is a way to do this. Once you implement the
>> org.apache.axis2.engine.ServiceLifeCycle interface in you service class, you
>> will get two methods startup() and shutdown().
>>
>> public interface ServiceLifeCycle {
>>
>> /**
>>  * this will be called during the deployement time of the service.
>> irrespective
>>  * of the service scope this method will be called
>>  */
>> public void startUp(ConfigurationContext configctx, AxisService
>> service);
>>
>> /**
>>  * this will be called during the system shut down time. irrespective
>>  * of the service scope this method will be called
>>  */
>> public void shutDown(ConfigurationContext configctx, AxisService
>> service);
>> }
>>
>>
>> Hope you got the answer.
>>
>> Regards
>> Sameera Jayasoma
>> WSO2 Inc.
>> Oxygenating the Web Service Platform.
>> http://wso2.org/
>>
>> blog: http://sameera-jayasoma.blogspot.com/
>>
>> <http://www.flickr.com/photos/sameera-jayasoma>
>>
>
>


Re: When do cleanup functions need to be called?

2008-07-30 Thread David Rees
On Tue, Jul 29, 2008 at 10:52 PM, Amila Suriarachchi
<[EMAIL PROTECTED]> wrote:
> this method should be call when the MyServiceStub (see finalize method in
> ServiceClient) is garbage collected. I am not sure why it is not being
> called automatically.

I don't think that it's being garbage collected at all. From what I
can tell, a bunch of objects are still being referenced by the
AxisConfiguration referenced by the AxisServlet.

> In RC1 we fixed a memory leak regarding this. But I can not realy think the
> reason for your problem.

Yes, 1.4.1 RC1 makes the situation a lot better than 1.4 - Calling
cleanup has no effect on the memory leak (see my earlier followup
email).

> you can get the AxisConfiguration object like this,
> AxisConfiguration axiConfiguration =
> MessageContext.getCurrentMessageContext().getConfigurationContext().getAxisConfiguration();
>
> and check whether there are some additional objects there after calling
> clean up.
>
> Please log a jira.

Once I can create a small reproducable test-case I'll log a jira issue.

Let me know if there is any other information I can gather or if
there's anything else you want me to try in the meantime.

Thanks,

-Dave

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



Re: When do cleanup functions need to be called?

2008-07-29 Thread David Rees
On Tue, Jul 29, 2008 at 5:51 PM, David Rees <[EMAIL PROTECTED]> wrote:
> After pulling my hair out for the past 24 hours trying to figure out
> the root cause and desperately googling for answers, I finally found
> that calling MyStub._getService().cleanup() appears to fix the leak
> (at least the service can process requests for over an hour where it
> would die within minutes).

Unfortunately, I was mistaken. Calling cleanup() doesn't appear to
help at all, unfortunately I also switched to Axis2 1.4.1 RC1 at the
same time which appears to to have reduced the rate at which the heap
bloats, but eventually, it still suffers the same fate.

However, eventually, the service (running under Tomcat 5.5.26) still
runs out of heap space with the same symptoms - hundreds of thousands
of ConcurrentHashMap objects. These all appear to trace back to the
AxisServlet through this chain:

AxisBindingOperation -> AxisBindingMessage ->ConcurrentHashMap ->
AxisBinding -> AxisBindingOperation -> AxisEndpoint -> HashMap ->
AxisService -> OutInAxisOperation -> HashMap -> AxisConfiguration ->
AxisServlet.

So what's going on here? I can't imagine that I'm the only one making
Axis2 client calls from a Axis2 web service and running into this
issue - either I'm doing something unique or I'm doing something
wrong...

Thanks

Dave

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



Online Java Docs link broken on website

2008-07-29 Thread David Rees
The "Online Java Docs" link in the left navigation at the bottom of
Resources links to http://ws.apache.org/1_4/api/index.html which does
not exist. Would be nice to have the docs online. Google found the 1.3
version of the docs here: http://ws.apache.org/axis2/1_3/api/ but the
1.4 docs aren't under a similar URL, either.

Thanks

-Dave

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



  1   2   3   4   5   >