Re: Axis2: simple service fails to work

2006-09-25 Thread Sanjiva Weerawarana
Hi Dan,

Wow. Damning criticism. 

> I don't doubt that the Axis2 developers are working very hard to get
> all these issues resolved, but for goodness sake...you can't release a
> product as version 1.0--which implies a non-Beta, stable release--when
> the new product lacks much of the basic functionality that people are
> going to need and that they are used to having provided for them by
> the previous release (Axis 1.x).

First of all, sorry for the bad taste Axis2 has left in you. That was
obviously not our intent.

However, you touched the part of Axis2 1.0 which was done last and hence
was least tested: RPC support. Yeah I know its easier to write Java
classes and make them into services automagically but Axis2 was designed
for a much more XML centric world. It can of course do the RPC style
easily too but its fundamentally designed for a WSDL 2.0 like XML
centric world where RPC is one pattern and a good bit of the time
application authors deal directly with XML. 1.0 was really a release
that made the XML case work and had relatively little put into making
the RPC case work well. In retrospect, assuming that people will fiddle
around with XML was a mistake. Hindsight is always 20/20.

OTOH, until 1.0 was released it was impossible to get strong user
engagement. Its a chicken-n-egg problem too. 

Furthermore, as a few others have stated already, this is a total
rewrite of the Axis project and not a tweak. That was necessary for lots
of reasons. As a rewrite it will take some time to go thru the growing
pains. 

I hope you will try 1.1 .. that should be much more stable. In
particular, it would greatly help if you could try the release
candidates as they come out over the next week so that we can make sure
everything is caught and fixed properly in 1.1.

Thanks,

Sanjiva.



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



Serving rpc/encoded and doc/literal

2006-09-25 Thread Al Baker
Hi,

I was wondering if there is a way to have a single web app serve out
both an rpc/encoded service and a doc/literal service?  The use case I'm
looking at is to support backwards compatibility and not force a huge
upgrade for all clients.

On a related note, when will Axis2 support rpc/encoded?

Thanks,
Al



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



Re: [Aixs2] How to make Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope

2006-09-25 Thread Xinjun Chen
Hi Ruchith, 
 
Thank you for your enlightment. I have seen the problem now. 
Maybe I should not use SOAPEnvelope as a input parameter of the handling method. Instead, a wrapper object which contains the reference of SOAPEnvelope, such as MessageContext, should be used as input parameter. 

 Regards, 
Xinjun
 
 
On 9/26/06, Ruchith Fernando <[EMAIL PROTECTED]> wrote:
Hi Xinjun,Please see my comments:On 9/26/06, Xinjun Chen <
[EMAIL PROTECTED]> wrote:> Hi,>> I am doing a project which do the signature for SOAP messages using wss4j.> I have a handler to do the signature.>> Previously when using Axis, I can do the following:
>> public void execute(final javax.xml.soap.SOAPEnvelope envelope) {> org.w3c.dom.Document doc => ((org.apache.axis.message.SOAPEnvelope)envelope).getAsDocument();> // doing something to modify the doc, 
e.g., add more header and do> signature using wss4j.> // after modifying doc, the original envelope has updated.> }>> but now in Axis2, the following give some problem:>> public void execute(final 
org.apache.axis2.soap.SOAPEnvelope envelope) {> org.w3c.dom.Document doc => Axis2Utils.getDocumentFromSOAPEnvelope(SOAPEnvelope env);> // doing something to modify the doc, e.g., add more header and do
> signature using wss4j.> // after modifying doc, the original envelope has NOT updated.> }The Document object you have at this point is a *new* Document object.Therefore you will have to get the document element from that Document
object and set that as the SOAPEnvelope in the message context aftersecurity processing. Calling doc.getDocumentElement() on the aboveDocument instance that you created will produce a org.w3c.dom.Elementthat is also an axiom SOAPEnvelope.
HTH,Thanks,Ruchith>> Ruchith has suggested to use Rampart. But now I do not really have time to> redesign and use Rampart. The only thing I need to sort out is how to make> the Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope.
>> I think this problem is quite common, has anyone already faced this problem?> Could you give some suggestion how to solve the problem? Regards,> Xinjun
--www.ruchith.org-To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [Aixs2] How to make Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope

2006-09-25 Thread Ruchith Fernando

Hi Xinjun,

Please see my comments:

On 9/26/06, Xinjun Chen <[EMAIL PROTECTED]> wrote:

Hi,

I am doing a project which do the signature for SOAP messages using wss4j.
I have a handler to do the signature.

Previously when using Axis, I can do the following:

public void execute(final javax.xml.soap.SOAPEnvelope envelope) {
org.w3c.dom.Document doc =
((org.apache.axis.message.SOAPEnvelope)envelope).getAsDocument();
// doing something to modify the doc, e.g., add more header and do
signature using wss4j.
// after modifying doc, the original envelope has updated.
}

but now in Axis2, the following give some problem:

public void execute(final org.apache.axis2.soap.SOAPEnvelope envelope) {
org.w3c.dom.Document doc =
Axis2Utils.getDocumentFromSOAPEnvelope(SOAPEnvelope env);
// doing something to modify the doc, e.g., add more header and do
signature using wss4j.
// after modifying doc, the original envelope has NOT updated.
}


The Document object you have at this point is a *new* Document object.
Therefore you will have to get the document element from that Document
object and set that as the SOAPEnvelope in the message context after
security processing. Calling doc.getDocumentElement() on the above
Document instance that you created will produce a org.w3c.dom.Element
that is also an axiom SOAPEnvelope.

HTH,

Thanks,
Ruchith



Ruchith has suggested to use Rampart. But now I do not really have time to
redesign and use Rampart. The only thing I need to sort out is how to make
the Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope.

I think this problem is quite common, has anyone already faced this problem?
Could you give some suggestion how to solve the problem?



Regards,
Xinjun



--
www.ruchith.org

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



timeout in web services

2006-09-25 Thread Vivek Raut


Can somebody explain me timeout in axis web services?


 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

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



what can do the job of the uddi server?

2006-09-25 Thread wupeng

who can give me a suggestion?

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



Axis-1.4: Getting ">in13" for an argument that is an array in my deplot.wsdd

2006-09-25 Thread Ali Naddaf

Hi everyone.

wsdl2java is creating something like the following in the deploy.wsdd:

http://dawnatech.com/Cyclops"; 
type="tns:>in13" xmlns:tns="http://dawnatech.com/Cyclops"; 
itemQName="itns:item" xmlns:itns="http://dawnatech.com/Cyclops"/>

...(deleted content).
http://dawnatech.com/Cyclops";
   qname="ns:>in13"
   type="java:com.dawnatech.cyclops.entities.Address[]"
   innerType="cmp-ns:Address" 
xmlns:cmp-ns="http://entities.cyclops.dawnatech.com";

   encodingStyle=""
/>

and the end result is an unhappy webservice when I deploy it. If I 
manually change ">in13" to, say "myin13", then all is fine. So my 
question is why this happens, and how can I avoid that?


Many thanks
Ali.



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



[Aixs2] How to make Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope

2006-09-25 Thread Xinjun Chen
Hi, 
 
I am doing a project which do the signature for SOAP messages using wss4j. 
I have a handler to do the signature. 
 
Previously when using Axis, I can do the following: 
 
public void execute(final javax.xml.soap.SOAPEnvelope envelope) {
    org.w3c.dom.Document doc = ((org.apache.axis.message.SOAPEnvelope)envelope).getAsDocument();
    // doing something to modify the doc, e.g., add more header and do signature using wss4j.// after modifying doc, the original envelope has updated.    
}
 
but now in Axis2, the following give some problem:

public void execute(final org.apache.axis2.soap.SOAPEnvelope envelope) {
    org.w3c.dom.Document doc = Axis2Utils.getDocumentFromSOAPEnvelope(SOAPEnvelope env);
    // doing something to modify the doc, e.g., add more header and do signature using wss4j.// after modifying doc, the original envelope has NOT updated.    
}
 
Ruchith has suggested to use Rampart. But now I do not really have time to redesign and use Rampart. The only thing I need to sort out is how to make the Axis2 SOAPEnvelope as convenient as Axis SOAPEnvelope. 

 
I think this problem is quite common, has anyone already faced this problem? Could you give some suggestion how to solve the problem?
 
 
 
Regards, 
Xinjun


Building examples

2006-09-25 Thread SEOGCHAN OH
DearIn order to build the AXIS2 samples from source, the
user guide said that first, move sample codes to the modules/samples and
second, run maven. Once changing source (e.g., modifiation of GUI
of GoogleSearch example), I did above process. But nothing happened. Is there
any detailed guide as to how to build the AXIS2 samples from source?Thanks in advance.S.-C.

Re: Axis2: simple service fails to work

2006-09-25 Thread Martin Gainty
Dan-

This is a work in progress with time donated in between real jobs
so if you see something that needs doing put in the jira and wait for the answer
If it doesnt happen fast enough for your needs..grab the source and feel free 
to fix this yourself
Everyone who works on this project is donating their time..because they believe 
in the end product

If you want to setup automated tests take a look at Artur Hecfyz 'testsgen '
I used it 4 years ago with some stunning results to capture exceptions like  
ArrayIndexOutOfBoundsException and 
also the dreaded NullPointerException
feel free to check out
http://wttools.sourceforge.net/unittestsgen/package.html

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



- Original Message - 
From: "D.Kreft" <[EMAIL PROTECTED]>
To: ; <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2006 5:40 PM
Subject: Re: Axis2: simple service fails to work


> On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>> FWIW, your test case works fine with latest nightly when accessing via
>>
>> http://localhost:7070/axis2/rest/test/getInt
>>
>> and using "/services" should give you a warning to enable REST.
>>
>> http://localhost:7070/axis2/services/test/getInt
> 
> What I would really like to understand is, what is so out of the
> ordinary about my test case that it would have been missed during the
> course of unit/functional tests? I can see if I were trying to do
> something really complicated, but this is about as simple as it gets,
> no? Such oversights in a major release make me a bit nervous, if you
> know what I mean.
> 
> -dan
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

FWIW, your test case works fine with latest nightly when accessing via

http://localhost:7070/axis2/rest/test/getInt

and using "/services" should give you a warning to enable REST.

http://localhost:7070/axis2/services/test/getInt


What I would really like to understand is, what is so out of the
ordinary about my test case that it would have been missed during the
course of unit/functional tests? I can see if I were trying to do
something really complicated, but this is about as simple as it gets,
no? Such oversights in a major release make me a bit nervous, if you
know what I mean.

-dan

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



Re: Axis2: simple service fails to work

2006-09-25 Thread Davanum Srinivas

FWIW, your test case works fine with latest nightly when accessing via

http://localhost:7070/axis2/rest/test/getInt

and using "/services" should give you a warning to enable REST.

http://localhost:7070/axis2/services/test/getInt

-- dims

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:

On 9/25/06, Spies, Brennan <[EMAIL PROTECTED]> wrote:

> What Dims and Robert forgot to mention is that Axis 2.0 is really a major
> rewrite of the SOAP stack (hence the split of URLs, one for Axis 1 and one
> for Axis 2). So the same growing pains apply here as with any new project.
> Not that I don't feel your pain--I have been there many times before, trust
> me--but I can also remember a time when free software was not in such
> abundance. Given the excellent price of the software, it may be worthwhile to
> stick it out with the nightlies until version 1.1 is released (which I
> believe is at the end of this month, more or less).

The benefits you mention are not lost on me--the price is definitely
right when taken at its face. However, the poor messaging regarding
the stability/completeness of Axis2 1.0 has resulted in a net *loss*
for my employer as I went down a week-long rabbit trail. I can handle
incomplete/instable software--when I'm warned ahead of time that is
what I'm using.

-dan


>
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Kreft
> Sent: Monday, September 25, 2006 1:37 PM
> To: axis-user@ws.apache.org; [EMAIL PROTECTED]
> Subject: Re: Axis2: simple service fails to work
>
> On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>
> > JIRA Please. Can i assume you are trying the nightly?
>
> No, I'm not using the nightly. I'm using the last "good" release--1.0
> because I'm trying to develop a *production* application for my
> employer, and the thought of having core business functionality
> running on a nightly release of third-party software quite frankly is
> not a sane development practice--there is too much money on the line
> here.
>
> I think at this point, I'm going to have to complete give up on using Axis2.
>
> I and another developer I work with have had a number of difficulties
> with Axis 1.4, none of which I'll bother to go into here, but suffice
> to say that when we saw that Axis2 had finally reached version 1.0
> ("out of Beta" we thought), we were optimistic that the revised Axis
> would obviate the need for some of the hacks we have in place to
> overcome some of Axis's quirks. So I got my manager's blessing to see
> what it takes to take the humble beginnings of my new service (already
> mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
> it'd be a fairly straightforward deal, but after working on it for
> five solid days, I have nothing more to show for my hard work than a
> handful e-mails to this list, three subsequent requests for me to file
> JIRAs, and a crippled service.
>
> Did I misinterpret the major-number version bump? Is Axis2 really not
> out of Beta yet? Because if it *is* supposed to be out of Beta at this
> stage, then I cannot help but be profoundly disappointedthe
> documentation is very sparse, often times irrelevant, sometimes
> contradictory, counter-intuitive, and not terribly clear when it can
> be found (I actually found more information in artciles *about* Axis2
> than I did from the actual Axis2 website).  If it's still
> considered "Beta" then that needs to be *clearly* and prominently
> documented on the Axis2 website.
>
> But documentation woes aside, what really disappoints me is that it
> doesn't look as if anyone tested the seemingly simple case where the
> developer writes a service implementation class, let Axis2 divine its
> own WSDL from it, and have at least one of the methods return a simple
> object. Axis2 seems to have no problems returning simple data types
> (ints, Strings, primitive arrays of strings, etc.), but as soon as an
> object is returned, all Hades breaks loose. And now, writing a
> brain-dead simple service fails and I have to file a bug report for
> that!
>
> So now I've lost a full week of productivity (and a few handfuls of
> hair)...all because I naively thought that version 1.0 meant "Okay,
> we're ready for the real world."  It obviously isn't, and I can't help
> but think that someone got a little trigger-happy in promoting Axis2
> to version 1.0. In my humble estimation, it could have used a bit more
> time "baking" in Beta (i.e. with a 0.x version number). If I had any
> idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
> week on trying to get it to work...or the couple of hours I've spent
> this morning trying to come up with a "simple" example of Axis2 puking
> when an object is returned from a service method.
>
> I don't doubt that the Axis2 developers are working very hard to get
> all these issues resolved, but for goodness sake...you can't release a
> product as version 1.0--which implies a non-Beta, stable releas

Re: Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

On 9/25/06, Spies, Brennan <[EMAIL PROTECTED]> wrote:


What Dims and Robert forgot to mention is that Axis 2.0 is really a major
rewrite of the SOAP stack (hence the split of URLs, one for Axis 1 and one
for Axis 2). So the same growing pains apply here as with any new project.
Not that I don't feel your pain--I have been there many times before, trust
me--but I can also remember a time when free software was not in such
abundance. Given the excellent price of the software, it may be worthwhile to
stick it out with the nightlies until version 1.1 is released (which I
believe is at the end of this month, more or less).


The benefits you mention are not lost on me--the price is definitely
right when taken at its face. However, the poor messaging regarding
the stability/completeness of Axis2 1.0 has resulted in a net *loss*
for my employer as I went down a week-long rabbit trail. I can handle
incomplete/instable software--when I'm warned ahead of time that is
what I'm using.

-dan





-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Kreft
Sent: Monday, September 25, 2006 1:37 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: Axis2: simple service fails to work

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> JIRA Please. Can i assume you are trying the nightly?

No, I'm not using the nightly. I'm using the last "good" release--1.0
because I'm trying to develop a *production* application for my
employer, and the thought of having core business functionality
running on a nightly release of third-party software quite frankly is
not a sane development practice--there is too much money on the line
here.

I think at this point, I'm going to have to complete give up on using Axis2.

I and another developer I work with have had a number of difficulties
with Axis 1.4, none of which I'll bother to go into here, but suffice
to say that when we saw that Axis2 had finally reached version 1.0
("out of Beta" we thought), we were optimistic that the revised Axis
would obviate the need for some of the hacks we have in place to
overcome some of Axis's quirks. So I got my manager's blessing to see
what it takes to take the humble beginnings of my new service (already
mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
it'd be a fairly straightforward deal, but after working on it for
five solid days, I have nothing more to show for my hard work than a
handful e-mails to this list, three subsequent requests for me to file
JIRAs, and a crippled service.

Did I misinterpret the major-number version bump? Is Axis2 really not
out of Beta yet? Because if it *is* supposed to be out of Beta at this
stage, then I cannot help but be profoundly disappointedthe
documentation is very sparse, often times irrelevant, sometimes
contradictory, counter-intuitive, and not terribly clear when it can
be found (I actually found more information in artciles *about* Axis2
than I did from the actual Axis2 website).  If it's still
considered "Beta" then that needs to be *clearly* and prominently
documented on the Axis2 website.

But documentation woes aside, what really disappoints me is that it
doesn't look as if anyone tested the seemingly simple case where the
developer writes a service implementation class, let Axis2 divine its
own WSDL from it, and have at least one of the methods return a simple
object. Axis2 seems to have no problems returning simple data types
(ints, Strings, primitive arrays of strings, etc.), but as soon as an
object is returned, all Hades breaks loose. And now, writing a
brain-dead simple service fails and I have to file a bug report for
that!

So now I've lost a full week of productivity (and a few handfuls of
hair)...all because I naively thought that version 1.0 meant "Okay,
we're ready for the real world."  It obviously isn't, and I can't help
but think that someone got a little trigger-happy in promoting Axis2
to version 1.0. In my humble estimation, it could have used a bit more
time "baking" in Beta (i.e. with a 0.x version number). If I had any
idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
week on trying to get it to work...or the couple of hours I've spent
this morning trying to come up with a "simple" example of Axis2 puking
when an object is returned from a service method.

I don't doubt that the Axis2 developers are working very hard to get
all these issues resolved, but for goodness sake...you can't release a
product as version 1.0--which implies a non-Beta, stable release--when
the new product lacks much of the basic functionality that people are
going to need and that they are used to having provided for them by
the previous release (Axis 1.x).

-dan

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


-
To unsub

RE: Axis2: simple service fails to work

2006-09-25 Thread Spies, Brennan
Dan,

What Dims and Robert forgot to mention is that Axis 2.0 is really a major
rewrite of the SOAP stack (hence the split of URLs, one for Axis 1 and one
for Axis 2). So the same growing pains apply here as with any new project.
Not that I don't feel your pain--I have been there many times before, trust
me--but I can also remember a time when free software was not in such
abundance. Given the excellent price of the software, it may be worthwhile to
stick it out with the nightlies until version 1.1 is released (which I
believe is at the end of this month, more or less).


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Kreft
Sent: Monday, September 25, 2006 1:37 PM
To: axis-user@ws.apache.org; [EMAIL PROTECTED]
Subject: Re: Axis2: simple service fails to work

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> JIRA Please. Can i assume you are trying the nightly?

No, I'm not using the nightly. I'm using the last "good" release--1.0
because I'm trying to develop a *production* application for my
employer, and the thought of having core business functionality
running on a nightly release of third-party software quite frankly is
not a sane development practice--there is too much money on the line
here.

I think at this point, I'm going to have to complete give up on using Axis2.

I and another developer I work with have had a number of difficulties
with Axis 1.4, none of which I'll bother to go into here, but suffice
to say that when we saw that Axis2 had finally reached version 1.0
("out of Beta" we thought), we were optimistic that the revised Axis
would obviate the need for some of the hacks we have in place to
overcome some of Axis's quirks. So I got my manager's blessing to see
what it takes to take the humble beginnings of my new service (already
mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
it'd be a fairly straightforward deal, but after working on it for
five solid days, I have nothing more to show for my hard work than a
handful e-mails to this list, three subsequent requests for me to file
JIRAs, and a crippled service.

Did I misinterpret the major-number version bump? Is Axis2 really not
out of Beta yet? Because if it *is* supposed to be out of Beta at this
stage, then I cannot help but be profoundly disappointedthe
documentation is very sparse, often times irrelevant, sometimes
contradictory, counter-intuitive, and not terribly clear when it can
be found (I actually found more information in artciles *about* Axis2
than I did from the actual Axis2 website).  If it's still
considered "Beta" then that needs to be *clearly* and prominently
documented on the Axis2 website.

But documentation woes aside, what really disappoints me is that it
doesn't look as if anyone tested the seemingly simple case where the
developer writes a service implementation class, let Axis2 divine its
own WSDL from it, and have at least one of the methods return a simple
object. Axis2 seems to have no problems returning simple data types
(ints, Strings, primitive arrays of strings, etc.), but as soon as an
object is returned, all Hades breaks loose. And now, writing a
brain-dead simple service fails and I have to file a bug report for
that!

So now I've lost a full week of productivity (and a few handfuls of
hair)...all because I naively thought that version 1.0 meant "Okay,
we're ready for the real world."  It obviously isn't, and I can't help
but think that someone got a little trigger-happy in promoting Axis2
to version 1.0. In my humble estimation, it could have used a bit more
time "baking" in Beta (i.e. with a 0.x version number). If I had any
idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
week on trying to get it to work...or the couple of hours I've spent
this morning trying to come up with a "simple" example of Axis2 puking
when an object is returned from a service method.

I don't doubt that the Axis2 developers are working very hard to get
all these issues resolved, but for goodness sake...you can't release a
product as version 1.0--which implies a non-Beta, stable release--when
the new product lacks much of the basic functionality that people are
going to need and that they are used to having provided for them by
the previous release (Axis 1.x).

-dan

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


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



[Axis2] httpFrontendHostUrl

2006-09-25 Thread Punnoose, Roshan

Is there any documentation on the parameter: httpFrontendHostUrl? I'm
not exactly sure what it is does...

Roshan Punnoose
Phone: 301-497-6039

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 25, 2006 4:55 PM
To: axis-user@ws.apache.org
Subject: Re: Axis2: simple service fails to work

FWIW there is a new release upcomming in the next week or so. If you
move to the nightly now, you may end up have a good starting point.
There were some RPC bugs that have been fixed since the 1.0 release,
as well as some doc updates.

Robert

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:
> On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
>
> > JIRA Please. Can i assume you are trying the nightly?
>
> No, I'm not using the nightly. I'm using the last "good" release--1.0
> because I'm trying to develop a *production* application for my
> employer, and the thought of having core business functionality
> running on a nightly release of third-party software quite frankly is
> not a sane development practice--there is too much money on the line
> here.
>
> I think at this point, I'm going to have to complete give up on using
Axis2.
>
> I and another developer I work with have had a number of difficulties
> with Axis 1.4, none of which I'll bother to go into here, but suffice
> to say that when we saw that Axis2 had finally reached version 1.0
> ("out of Beta" we thought), we were optimistic that the revised Axis
> would obviate the need for some of the hacks we have in place to
> overcome some of Axis's quirks. So I got my manager's blessing to see
> what it takes to take the humble beginnings of my new service (already
> mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
> it'd be a fairly straightforward deal, but after working on it for
> five solid days, I have nothing more to show for my hard work than a
> handful e-mails to this list, three subsequent requests for me to file
> JIRAs, and a crippled service.
>
> Did I misinterpret the major-number version bump? Is Axis2 really not
> out of Beta yet? Because if it *is* supposed to be out of Beta at this
> stage, then I cannot help but be profoundly disappointedthe
> documentation is very sparse, often times irrelevant, sometimes
> contradictory, counter-intuitive, and not terribly clear when it can
> be found (I actually found more information in artciles *about* Axis2
> than I did from the actual Axis2 website).  If it's still
> considered "Beta" then that needs to be *clearly* and prominently
> documented on the Axis2 website.
>
> But documentation woes aside, what really disappoints me is that it
> doesn't look as if anyone tested the seemingly simple case where the
> developer writes a service implementation class, let Axis2 divine its
> own WSDL from it, and have at least one of the methods return a simple
> object. Axis2 seems to have no problems returning simple data types
> (ints, Strings, primitive arrays of strings, etc.), but as soon as an
> object is returned, all Hades breaks loose. And now, writing a
> brain-dead simple service fails and I have to file a bug report for
> that!
>
> So now I've lost a full week of productivity (and a few handfuls of
> hair)...all because I naively thought that version 1.0 meant "Okay,
> we're ready for the real world."  It obviously isn't, and I can't help
> but think that someone got a little trigger-happy in promoting Axis2
> to version 1.0. In my humble estimation, it could have used a bit more
> time "baking" in Beta (i.e. with a 0.x version number). If I had any
> idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
> week on trying to get it to work...or the couple of hours I've spent
> this morning trying to come up with a "simple" example of Axis2 puking
> when an object is returned from a service method.
>
> I don't doubt that the Axis2 developers are working very hard to get
> all these issues resolved, but for goodness sake...you can't release a
> product as version 1.0--which implies a non-Beta, stable release--when
> the new product lacks much of the basic functionality that people are
> going to need and that they are used to having provided for them by
> the previous release (Axis 1.x).
>
> -dan
>
> -
> 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]

BEGIN:VCARD
VERSION:2.1
N:Punnoose;Roshan
FN:Punnoose, Roshan
ADR;WORK:;2115
LABEL;WORK:2115
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:20050413T183207Z
END:VCARD
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Axis2: simple service fails to work

2006-09-25 Thread robert lazarski

FWIW there is a new release upcomming in the next week or so. If you
move to the nightly now, you may end up have a good starting point.
There were some RPC bugs that have been fixed since the 1.0 release,
as well as some doc updates.

Robert

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> JIRA Please. Can i assume you are trying the nightly?

No, I'm not using the nightly. I'm using the last "good" release--1.0
because I'm trying to develop a *production* application for my
employer, and the thought of having core business functionality
running on a nightly release of third-party software quite frankly is
not a sane development practice--there is too much money on the line
here.

I think at this point, I'm going to have to complete give up on using Axis2.

I and another developer I work with have had a number of difficulties
with Axis 1.4, none of which I'll bother to go into here, but suffice
to say that when we saw that Axis2 had finally reached version 1.0
("out of Beta" we thought), we were optimistic that the revised Axis
would obviate the need for some of the hacks we have in place to
overcome some of Axis's quirks. So I got my manager's blessing to see
what it takes to take the humble beginnings of my new service (already
mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
it'd be a fairly straightforward deal, but after working on it for
five solid days, I have nothing more to show for my hard work than a
handful e-mails to this list, three subsequent requests for me to file
JIRAs, and a crippled service.

Did I misinterpret the major-number version bump? Is Axis2 really not
out of Beta yet? Because if it *is* supposed to be out of Beta at this
stage, then I cannot help but be profoundly disappointedthe
documentation is very sparse, often times irrelevant, sometimes
contradictory, counter-intuitive, and not terribly clear when it can
be found (I actually found more information in artciles *about* Axis2
than I did from the actual Axis2 website).  If it's still
considered "Beta" then that needs to be *clearly* and prominently
documented on the Axis2 website.

But documentation woes aside, what really disappoints me is that it
doesn't look as if anyone tested the seemingly simple case where the
developer writes a service implementation class, let Axis2 divine its
own WSDL from it, and have at least one of the methods return a simple
object. Axis2 seems to have no problems returning simple data types
(ints, Strings, primitive arrays of strings, etc.), but as soon as an
object is returned, all Hades breaks loose. And now, writing a
brain-dead simple service fails and I have to file a bug report for
that!

So now I've lost a full week of productivity (and a few handfuls of
hair)...all because I naively thought that version 1.0 meant "Okay,
we're ready for the real world."  It obviously isn't, and I can't help
but think that someone got a little trigger-happy in promoting Axis2
to version 1.0. In my humble estimation, it could have used a bit more
time "baking" in Beta (i.e. with a 0.x version number). If I had any
idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
week on trying to get it to work...or the couple of hours I've spent
this morning trying to come up with a "simple" example of Axis2 puking
when an object is returned from a service method.

I don't doubt that the Axis2 developers are working very hard to get
all these issues resolved, but for goodness sake...you can't release a
product as version 1.0--which implies a non-Beta, stable release--when
the new product lacks much of the basic functionality that people are
going to need and that they are used to having provided for them by
the previous release (Axis 1.x).

-dan

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




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



Re: Axis2: simple service fails to work

2006-09-25 Thread Davanum Srinivas

Thanks for your feedback.

-- dims

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:

> JIRA Please. Can i assume you are trying the nightly?

No, I'm not using the nightly. I'm using the last "good" release--1.0
because I'm trying to develop a *production* application for my
employer, and the thought of having core business functionality
running on a nightly release of third-party software quite frankly is
not a sane development practice--there is too much money on the line
here.

I think at this point, I'm going to have to complete give up on using Axis2.

I and another developer I work with have had a number of difficulties
with Axis 1.4, none of which I'll bother to go into here, but suffice
to say that when we saw that Axis2 had finally reached version 1.0
("out of Beta" we thought), we were optimistic that the revised Axis
would obviate the need for some of the hacks we have in place to
overcome some of Axis's quirks. So I got my manager's blessing to see
what it takes to take the humble beginnings of my new service (already
mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
it'd be a fairly straightforward deal, but after working on it for
five solid days, I have nothing more to show for my hard work than a
handful e-mails to this list, three subsequent requests for me to file
JIRAs, and a crippled service.

Did I misinterpret the major-number version bump? Is Axis2 really not
out of Beta yet? Because if it *is* supposed to be out of Beta at this
stage, then I cannot help but be profoundly disappointedthe
documentation is very sparse, often times irrelevant, sometimes
contradictory, counter-intuitive, and not terribly clear when it can
be found (I actually found more information in artciles *about* Axis2
than I did from the actual Axis2 website).  If it's still
considered "Beta" then that needs to be *clearly* and prominently
documented on the Axis2 website.

But documentation woes aside, what really disappoints me is that it
doesn't look as if anyone tested the seemingly simple case where the
developer writes a service implementation class, let Axis2 divine its
own WSDL from it, and have at least one of the methods return a simple
object. Axis2 seems to have no problems returning simple data types
(ints, Strings, primitive arrays of strings, etc.), but as soon as an
object is returned, all Hades breaks loose. And now, writing a
brain-dead simple service fails and I have to file a bug report for
that!

So now I've lost a full week of productivity (and a few handfuls of
hair)...all because I naively thought that version 1.0 meant "Okay,
we're ready for the real world."  It obviously isn't, and I can't help
but think that someone got a little trigger-happy in promoting Axis2
to version 1.0. In my humble estimation, it could have used a bit more
time "baking" in Beta (i.e. with a 0.x version number). If I had any
idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
week on trying to get it to work...or the couple of hours I've spent
this morning trying to come up with a "simple" example of Axis2 puking
when an object is returned from a service method.

I don't doubt that the Axis2 developers are working very hard to get
all these issues resolved, but for goodness sake...you can't release a
product as version 1.0--which implies a non-Beta, stable release--when
the new product lacks much of the basic functionality that people are
going to need and that they are used to having provided for them by
the previous release (Axis 1.x).

-dan

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

On 9/25/06, Davanum Srinivas <[EMAIL PROTECTED]> wrote:


JIRA Please. Can i assume you are trying the nightly?


No, I'm not using the nightly. I'm using the last "good" release--1.0
because I'm trying to develop a *production* application for my
employer, and the thought of having core business functionality
running on a nightly release of third-party software quite frankly is
not a sane development practice--there is too much money on the line
here.

I think at this point, I'm going to have to complete give up on using Axis2.

I and another developer I work with have had a number of difficulties
with Axis 1.4, none of which I'll bother to go into here, but suffice
to say that when we saw that Axis2 had finally reached version 1.0
("out of Beta" we thought), we were optimistic that the revised Axis
would obviate the need for some of the hacks we have in place to
overcome some of Axis's quirks. So I got my manager's blessing to see
what it takes to take the humble beginnings of my new service (already
mostly functional in Axis 1.4) and make it work in Axis2. I was hoping
it'd be a fairly straightforward deal, but after working on it for
five solid days, I have nothing more to show for my hard work than a
handful e-mails to this list, three subsequent requests for me to file
JIRAs, and a crippled service.

Did I misinterpret the major-number version bump? Is Axis2 really not
out of Beta yet? Because if it *is* supposed to be out of Beta at this
stage, then I cannot help but be profoundly disappointedthe
documentation is very sparse, often times irrelevant, sometimes
contradictory, counter-intuitive, and not terribly clear when it can
be found (I actually found more information in artciles *about* Axis2
than I did from the actual Axis2 website).  If it's still
considered "Beta" then that needs to be *clearly* and prominently
documented on the Axis2 website.

But documentation woes aside, what really disappoints me is that it
doesn't look as if anyone tested the seemingly simple case where the
developer writes a service implementation class, let Axis2 divine its
own WSDL from it, and have at least one of the methods return a simple
object. Axis2 seems to have no problems returning simple data types
(ints, Strings, primitive arrays of strings, etc.), but as soon as an
object is returned, all Hades breaks loose. And now, writing a
brain-dead simple service fails and I have to file a bug report for
that!

So now I've lost a full week of productivity (and a few handfuls of
hair)...all because I naively thought that version 1.0 meant "Okay,
we're ready for the real world."  It obviously isn't, and I can't help
but think that someone got a little trigger-happy in promoting Axis2
to version 1.0. In my humble estimation, it could have used a bit more
time "baking" in Beta (i.e. with a 0.x version number). If I had any
idea that Axis was still so raw, I wouldn't have wasted a 40-hour work
week on trying to get it to work...or the couple of hours I've spent
this morning trying to come up with a "simple" example of Axis2 puking
when an object is returned from a service method.

I don't doubt that the Axis2 developers are working very hard to get
all these issues resolved, but for goodness sake...you can't release a
product as version 1.0--which implies a non-Beta, stable release--when
the new product lacks much of the basic functionality that people are
going to need and that they are used to having provided for them by
the previous release (Axis 1.x).

-dan

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



Re: Documentation change

2006-09-25 Thread robert lazarski

Not following you. I just ran wsdl2java off of the latest svn and the
services.xml class listed is the skeleton . The source file generated
itself, listed in the services.xml implements the interface. Been a
long day ... but that's correct, is it not ? We are trying to improve
the docs for the upcomming release ... so you might have caught
something, but so far I don't see it.

Robert

On 9/25/06, Hello Sticky <[EMAIL PROTECTED]> wrote:

Hi, I suggest adding a note to this piece of the user documentation:

http://ws.apache.org/axis2/1_0/userguide2.html#services_xml

to say that you must change the  from the skeleton interface name to the class
that implements the skeleton. For someone following the directions
step-by-step, although this is quite logical, it should be a simple
addition that may help some.

Thank you

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

2006-09-25 Thread Davanum Srinivas

Please try with a nightly build. If you still see the same problem,
please open a JIRA issue with your sample service and soap request (i
use tcptrace to capture the traffic -
http://www.pocketsoap.com/tcptrace/)

-- dims

On 9/25/06, Hello Sticky <[EMAIL PROTECTED]> wrote:

This is my first foray into Axis. I received a very terse exception
when calling a running web service from a .NET client. I can see my
web service in Tomcat under the services list and get its WSDL, so it
is up and running:

- Servlet.service() for servlet AxisServlet threw exception
org.apache.axiom.om.OMException
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
at 
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
at 
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
at 
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Unknown Source)
- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:599)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at 
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
at 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
at 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
at 
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invo

Re: Axis2: simple service fails to work

2006-09-25 Thread Davanum Srinivas

JIRA Please. Can i assume you are trying the nightly?

thanks,
dims

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:

I'm trying to whip-up a bare-bones service that will demonstrate
Axis2's inability to cope with complex data types returned by service
methods using RPCMessageReceiver and now I can't even get *that* to
work (what a way to start off the week). Here's the service
implementation:

public class TestService {
public String[] getArrayOfStrings() {
return new String[] {"Hello", "World"};
}

public int getInt() {
return 1;
}

public Object getObject() {
return new Object();
}

public String getString() {
return "Hello World";
}
}

And here's the services.xml:





TestService



















And the listing of my .aar file:

% jar -tf test.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
src/
src/TestService.java
TestService.class

I started Tomcat (and thus Axis2) from scratch, with only the default
'version' service and then used the web admin CGI to upload the
service. Immediately, I saw the following in the catalina.out:

- Error in schema generating null
java.lang.NullPointerException
at 
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:51)
at 
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:77)
at 
org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:77)
at 
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:209)
at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:149)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:76)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:118)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

But yet Axis2 is still able to generate a WSDL (which I won't bother to paste).

Calling http://localhost:7070/axis2/services/test/getInt results in a
"resource not found" error, with no accompanying stack trace or error
messaging in my catalina.out.

When I try to call getInt() (or any other method, for that matter) via
a Perl SOAP client, I get the exception pasted below. Can anyone see
what it is that I'm doing wrong?

-dan

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Process

Documentation change

2006-09-25 Thread Hello Sticky

Hi, I suggest adding a note to this piece of the user documentation:

http://ws.apache.org/axis2/1_0/userguide2.html#services_xml

to say that you must change the  from the skeleton interface name to the class
that implements the skeleton. For someone following the directions
step-by-step, although this is quite logical, it should be a simple
addition that may help some.

Thank you

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



ApacheCon US 2006 - Axis2 tutorail

2006-09-25 Thread Deepal Jayasinghe
Hi all;

ApacheCon US 2006 will be at the Austin Hilton on Oct 11, 12 & 13. We
want to make sure that the Axis2 community gets a chance to attend and
meet up with the top developers and power users from around the world.
In the meantime if you have planing to attend Axis2 tutorial
(http://www.us.apachecon.com/html/sessions.html#T03 ) please go and
register before 28^th September to get discount.

Thanks
Deepal

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



Re: Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

I changed the package to 'test', and still I get no respect.

-dan

On 9/25/06, Bhatra, Junaid <[EMAIL PROTECTED]> wrote:

It looks like your TestService class is in the default package. Try
putting it in some package and see what happens? Don't forget to change
the "ServiceClass" parameter to reflect the package name as well.

- Junaid

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Kreft
Sent: Monday, September 25, 2006 2:18 PM
To: Axis Users
Subject: Axis2: simple service fails to work

I'm trying to whip-up a bare-bones service that will demonstrate
Axis2's inability to cope with complex data types returned by service
methods using RPCMessageReceiver and now I can't even get *that* to
work (what a way to start off the week). Here's the service
implementation:

public class TestService {
public String[] getArrayOfStrings() {
return new String[] {"Hello", "World"};
}

public int getInt() {
return 1;
}

public Object getObject() {
return new Object();
}

public String getString() {
return "Hello World";
}
}

And here's the services.xml:





TestService



















And the listing of my .aar file:

% jar -tf test.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
src/
src/TestService.java
TestService.class

I started Tomcat (and thus Axis2) from scratch, with only the default
'version' service and then used the web admin CGI to upload the
service. Immediately, I saw the following in the catalina.out:

- Error in schema generating null
java.lang.NullPointerException
at
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLU
tils.java:51)
at
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java
2WSDLUtils.java:77)
at
org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:77)
at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:209)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde
r.java:149)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:620)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
.java:195)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
.java:207)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:155)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL
istener.java:199)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(Sche
dulerTask.java:61)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja
va:68)
at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S
cheduler.java:76)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

But yet Axis2 is still able to generate a WSDL (which I won't bother to
paste).

Calling http://localhost:7070/axis2/services/test/getInt results in a
"resource not found" error, with no accompanying stack trace or error
messaging in my catalina.out.

When I try to call getInt() (or any other method, for that matter) via
a Perl SOAP client, I get the exception pasted below. Can anyone see
what it is that I'm doing wrong?

-dan

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP
CMessageReceiver.java:136)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst
ractInOutSyncMessageReceiver.java:37)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.

RE: Axis2: simple service fails to work

2006-09-25 Thread Bhatra, Junaid
It looks like your TestService class is in the default package. Try
putting it in some package and see what happens? Don't forget to change
the "ServiceClass" parameter to reflect the package name as well.

- Junaid

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of D.Kreft
Sent: Monday, September 25, 2006 2:18 PM
To: Axis Users
Subject: Axis2: simple service fails to work

I'm trying to whip-up a bare-bones service that will demonstrate
Axis2's inability to cope with complex data types returned by service
methods using RPCMessageReceiver and now I can't even get *that* to
work (what a way to start off the week). Here's the service
implementation:

public class TestService {
public String[] getArrayOfStrings() {
return new String[] {"Hello", "World"};
}

public int getInt() {
return 1;
}

public Object getObject() {
return new Object();
}

public String getString() {
return "Hello World";
}
}

And here's the services.xml:





TestService



















And the listing of my .aar file:

% jar -tf test.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
src/
src/TestService.java
TestService.class

I started Tomcat (and thus Axis2) from scratch, with only the default
'version' service and then used the web admin CGI to upload the
service. Immediately, I saw the following in the catalina.out:

- Error in schema generating null
java.lang.NullPointerException
at
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLU
tils.java:51)
at
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java
2WSDLUtils.java:77)
at
org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:77)
at
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:209)
at
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilde
r.java:149)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGr
oup(ArchiveReader.java:76)
at
org.apache.axis2.deployment.repository.util.ArchiveReader.processService
Group(ArchiveReader.java:118)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j
ava:620)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList
.java:195)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener
.java:207)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL
istener.java:155)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL
istener.java:199)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(Sche
dulerTask.java:61)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja
va:68)
at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S
cheduler.java:76)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

But yet Axis2 is still able to generate a WSDL (which I won't bother to
paste).

Calling http://localhost:7070/axis2/services/test/getInt results in a
"resource not found" error, with no accompanying stack trace or error
messaging in my catalina.out.

When I try to call getInt() (or any other method, for that matter) via
a Perl SOAP client, I get the exception pasted below. Can anyone see
what it is that I'm doing wrong?

-dan

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP
CMessageReceiver.java:136)
at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst
ractInOutSyncMessageReceiver.java:37)
at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:284)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.c

Re: Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

On 9/25/06, robert lazarski <[EMAIL PROTECTED]> wrote:


What does  http://localhost:7070/axis2/ show ?


The standard Axis2 Welcome page. Did you mean what does
/axis2/services/listServices show? I've pasted the contents of that
page below.

Interesting thing to note...the url is busted when I click on the name
of the service. Instead of "/axis2/services/?wsdl", the
links point to "/axis2/null/?wsdl"this happens for
all services listed.

-dan

 BEGIN /axis2/services/listServices OUTPUT 

Available services
test
Service EPR : http://dkreft-2.desktop.company.com:7070/axis2/null/test
Service REST epr : http://dkreft-2.desktop.company.com:7070/axis2/rest/test
Service Description : test
Service Status : Active
Available operations

   * getObject
   * getString
   * getArrayOfStrings
   * getInt

version
Service EPR : http://dkreft-2.desktop.company.com:7070/axis2/null/version
Service REST epr : http://dkreft-2.desktop.company.com:7070/axis2/rest/version
Service Description : This service is to get the running Axis version
Service Status : Active
Available operations

   * getVersion

 END /axis2/services/listServices OUTPUT 

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



Re: Axis2: simple service fails to work

2006-09-25 Thread robert lazarski

What does  http://localhost:7070/axis2/ show ?

Robert

On 9/25/06, D. Kreft <[EMAIL PROTECTED]> wrote:

I'm trying to whip-up a bare-bones service that will demonstrate
Axis2's inability to cope with complex data types returned by service
methods using RPCMessageReceiver and now I can't even get *that* to
work (what a way to start off the week). Here's the service
implementation:

public class TestService {
public String[] getArrayOfStrings() {
return new String[] {"Hello", "World"};
}

public int getInt() {
return 1;
}

public Object getObject() {
return new Object();
}

public String getString() {
return "Hello World";
}
}

And here's the services.xml:





TestService



















And the listing of my .aar file:

% jar -tf test.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
src/
src/TestService.java
TestService.class

I started Tomcat (and thus Axis2) from scratch, with only the default
'version' service and then used the web admin CGI to upload the
service. Immediately, I saw the following in the catalina.out:

- Error in schema generating null
java.lang.NullPointerException
at 
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:51)
at 
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:77)
at 
org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:77)
at 
org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:209)
at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:149)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:76)
at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:118)
at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61)
at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)

But yet Axis2 is still able to generate a WSDL (which I won't bother to paste).

Calling http://localhost:7070/axis2/services/test/getInt results in a
"resource not found" error, with no accompanying stack trace or error
messaging in my catalina.out.

When I try to call getInt() (or any other method, for that matter) via
a Perl SOAP client, I get the exception pasted below. Can anyone see
what it is that I'm doing wrong?

-dan

org.apache.axis2.AxisFault: null; nested exception is:
java.lang.NullPointerException
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Ht

Axis2: simple service fails to work

2006-09-25 Thread D . Kreft

I'm trying to whip-up a bare-bones service that will demonstrate
Axis2's inability to cope with complex data types returned by service
methods using RPCMessageReceiver and now I can't even get *that* to
work (what a way to start off the week). Here's the service
implementation:

public class TestService {
   public String[] getArrayOfStrings() {
   return new String[] {"Hello", "World"};
   }

   public int getInt() {
   return 1;
   }

   public Object getObject() {
   return new Object();
   }

   public String getString() {
   return "Hello World";
   }
}

And here's the services.xml:




   
   TestService
   

   
   
   

   
   
   

   
   
   

   
   
   


And the listing of my .aar file:

% jar -tf test.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
src/
src/TestService.java
TestService.class

I started Tomcat (and thus Axis2) from scratch, with only the default
'version' service and then used the web admin CGI to upload the
service. Immediately, I saw the following in the catalina.out:

- Error in schema generating null
java.lang.NullPointerException
   at 
org.apache.ws.java2wsdl.Java2WSDLUtils.namespaceFromClassName(Java2WSDLUtils.java:51)
   at 
org.apache.ws.java2wsdl.Java2WSDLUtils.schemaNamespaceFromClassName(Java2WSDLUtils.java:77)
   at 
org.apache.ws.java2wsdl.SchemaGenerator.(SchemaGenerator.java:77)
   at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:209)
   at 
org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:149)
   at 
org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup(ArchiveReader.java:76)
   at 
org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGroup(ArchiveReader.java:118)
   at 
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:620)
   at 
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:195)
   at 
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:207)
   at 
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155)
   at 
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:199)
   at 
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepositary(SchedulerTask.java:61)
   at 
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68)
   at 
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76)
   at java.util.TimerThread.mainLoop(Timer.java:512)
   at java.util.TimerThread.run(Timer.java:462)

But yet Axis2 is still able to generate a WSDL (which I won't bother to paste).

Calling http://localhost:7070/axis2/services/test/getInt results in a
"resource not found" error, with no accompanying stack trace or error
messaging in my catalina.out.

When I try to call getInt() (or any other method, for that matter) via
a Perl SOAP client, I get the exception pasted below. Can anyone see
what it is that I'm doing wrong?

-dan

org.apache.axis2.AxisFault: null; nested exception is:
   java.lang.NullPointerException
   at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318)
   at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136)
   at 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
   at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)
   at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
   at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:526)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
   at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
   at 
org.apache.tomca

OMException

2006-09-25 Thread Hello Sticky

This is my first foray into Axis. I received a very terse exception
when calling a running web service from a .NET client. I can see my
web service in Tomcat under the services list and get its WSDL, so it
is up and running:

- Servlet.service() for servlet AxisServlet threw exception
org.apache.axiom.om.OMException
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265)
at 
org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75)
at 
org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222)
at 
org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76)
at 
org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
at 
org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:639)
at 
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1285)
at java.lang.Thread.run(Unknown Source)
- Servlet.service() for servlet jsp threw exception
java.lang.IllegalStateException: getOutputStream() has already been
called for this response
at org.apache.catalina.connector.Response.getWriter(Response.java:599)
at 
org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195)
at 
org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124)
at 
org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117)
at 
org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191)
at 
org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115)
at 
org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75)
at 
org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at 
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465)
at 
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at 
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at 
org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363)
at 
org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284)
at 
org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:833)
at 
org.apache.coyote.http11.Http11AprProtocol$Http11C

When is new Axis2 release planned after v1.0

2006-09-25 Thread Sharad Baronia








Hi,

 

    Can
anyone tell me when the users are going to get new Axis2 release planned after
version 1.0?

    Is
there a web site, which talks about this?

 

Thanks,

 

/Sharad Baronia





___

All outbound Email is scanned by Nexa Technologies Email Security Systems.
___






Re: Embedding an Axis2 WS in my existing web app.

2006-09-25 Thread robert lazarski

Try putting the axis2-web dir under WEB-INF:

axis2-web/WEB-INF

Also make sure all the servlet goodies are configured in your web.xml .

HTH,
Robert

On 9/25/06, James Good <[EMAIL PROTECTED]> wrote:

Ah, well that's a bit of a help, thank you Robert.

I had to use : http://localhost:/WFSAWS/services/listServices

but I get :

404 Not Found
OracleJSP: java.io.FileNotFoundException:
Set the init-param debug_mode to "true" to see the complete exception message.

11:14:10 AM java.exe:4020   FASTIO_QUERY_OPEN   
C:\Dev\oc4j-10.1.2\j2ee\home\applications\WFSAWS\WFSAWS\axis2-web\listServices.jsp
  PATH NOT FOUND  Attributes: Error

So, it's trying to find a JSP for listServices. Where is that service 
installed? It's not something that I have knowingly installed.

Thank you,

-James.

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 8:25 PM
To: axis-user@ws.apache.org
Subject: Re: Embedding an Axis2 WS in my existing web app.


What does http://localhost:/WFSAWS/listServices say?

Robert

On 9/24/06, James Good <[EMAIL PROTECTED]> wrote:
> Can someone help me please?
>
> I have an existing J2EE web app which I deploy to an OC4J 10.1.2 app server. 
I need to expose one of the objects in there as a WS. So, I have been 
investigating axis2.
>
> I have read this very useful tutorial : http://www.wso2.net/kb/90
>
> I have modified my web.xml to include the Axis servlet, and the servlet 
mapping for it :
>
>   
> AxisServlet
> Axis Servlet
> org.apache.axis2.transport.http.AxisServlet
> 1
>   
>
>   
> AxisServlet
> /services/*
>   
>
> I have, under my WEB-INF directory, created a 'services' directory, a 
'BookService' directory under that, and a META-INF directory under that. I have 
created a services.xml file as follows :
>
> 
>   targetNamespace="http://ws.apache.org/axis2/samples/book/";>
> 
> Book sample service
> 
> http://ws.apache.org/axis2/samples/book/xsd/"/>
> com.wfs.aws.services.BookService
> 
> 
> 
> 
> 
> 
> 
> 
>
> What jars should I need to include in my app? I have included all the 
axis*.jars.
>
> I add the Book and BookService classes, then I am then expecting to see my 
'BookService' service appear at
>
> http://localhost:/WFSAWS/services/BookService
>
> and be able to see the WSDL with
>
> http://localhost:/WFSAWS/services/BookService?wsdl
>
> Is that what I should expect to be able to do, or am I missing something? 
Because it's not working as I thought it would. I'm getting 404 errors when I try 
accessing those URLs above.
>
> Thank you for any help,
>
> -James.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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




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



RE: Embedding an Axis2 WS in my existing web app.

2006-09-25 Thread James Good
Ah, well that's a bit of a help, thank you Robert.

I had to use : http://localhost:/WFSAWS/services/listServices

but I get :

404 Not Found
OracleJSP: java.io.FileNotFoundException:
Set the init-param debug_mode to "true" to see the complete exception message.

11:14:10 AM java.exe:4020   FASTIO_QUERY_OPEN   
C:\Dev\oc4j-10.1.2\j2ee\home\applications\WFSAWS\WFSAWS\axis2-web\listServices.jsp
  PATH NOT FOUND  Attributes: Error   

So, it's trying to find a JSP for listServices. Where is that service 
installed? It's not something that I have knowingly installed.

Thank you,

-James.

-Original Message-
From: robert lazarski [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 24, 2006 8:25 PM
To: axis-user@ws.apache.org
Subject: Re: Embedding an Axis2 WS in my existing web app.


What does http://localhost:/WFSAWS/listServices say?

Robert

On 9/24/06, James Good <[EMAIL PROTECTED]> wrote:
> Can someone help me please?
>
> I have an existing J2EE web app which I deploy to an OC4J 10.1.2 app server. 
> I need to expose one of the objects in there as a WS. So, I have been 
> investigating axis2.
>
> I have read this very useful tutorial : http://www.wso2.net/kb/90
>
> I have modified my web.xml to include the Axis servlet, and the servlet 
> mapping for it :
>
>   
> AxisServlet
> Axis Servlet
> org.apache.axis2.transport.http.AxisServlet
> 1
>   
>
>   
> AxisServlet
> /services/*
>   
>
> I have, under my WEB-INF directory, created a 'services' directory, a 
> 'BookService' directory under that, and a META-INF directory under that. I 
> have created a services.xml file as follows :
>
> 
>   targetNamespace="http://ws.apache.org/axis2/samples/book/";>
> 
> Book sample service
> 
>  schemaNamespace="http://ws.apache.org/axis2/samples/book/xsd/"/>
>  locked="false">com.wfs.aws.services.BookService
> 
>  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> 
> 
>  class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
> 
> 
> 
>
> What jars should I need to include in my app? I have included all the 
> axis*.jars.
>
> I add the Book and BookService classes, then I am then expecting to see my 
> 'BookService' service appear at
>
> http://localhost:/WFSAWS/services/BookService
>
> and be able to see the WSDL with
>
> http://localhost:/WFSAWS/services/BookService?wsdl
>
> Is that what I should expect to be able to do, or am I missing something? 
> Because it's not working as I thought it would. I'm getting 404 errors when I 
> try accessing those URLs above.
>
> Thank you for any help,
>
> -James.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: InvocationTargetException - Error in deserialization of response of web service

2006-09-25 Thread Martin Gainty
It seems to be this statement is causing this error:

dSer.onStartElement(namespace, localName, prefix,
attributes, context);

the problem could be determined by looking at  the wsdl ..so can we see the 
wsdl?

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



- Original Message - 
From: "Jose Manuel Valladares Pernas" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 9:25 AM
Subject: InvocationTargetException - Error in deserialization of response of 
web service


> Hello,
> I have a web service client code that creates a hotel
> reservation in a online reseravation system.
> 
> The java classes were generated with wsdl2java from a
> wsdl file with several schema files.
> 
> The call to the webservice works fine (I see the
> traffic exchange with tcpdump) but when the response
> soap message has to be converted to java objects it
> throws an InvocationTargetException.
> 
> java.lang.reflect.InvocationTargetException
>at
> org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
>at
> org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
>at
> org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
>at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
>at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
>at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java: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:2448)
>at
> org.apache.axis.client.Call.invoke(Call.java:2347)
>at
> org.apache.axis.client.Call.invoke(Call.java:1804)
>at
> com.oracle.xmlns.OTA_HotelRes.OTA_HotelResBindingStub.process(OTA_HotelResBindingStub.java:6269)
>at
> ota_client.nh.NHHotelWSCaller$NHHotelReservationWS.doHotelReservationQuote(NHHotelWSCaller.java:853)
>at
> ota_client.nh.NHHotelWSCaller.doHotelReservationQuote(NHHotelWSCaller.java:157)
>at
> controllers.HotelReservationController.preReserveRooms(HotelReservationController.java:121)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>at
> java.lang.reflect.Method.invoke(Method.java:585)
>at
> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>at
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>at
> javax.faces.component.UICommand.broadcast(UICommand.java:106)
>at
> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>at
> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
> 

Solved: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann
Hello, 
At least all your hints lead me the right way. 
Thanks to all.

In the folder common/endorsed were xerces libraries that seem to be too old.
I did not even know that they were there. Tomcat must have been using those.
Now that i deleted them erverything works fine ;-)

Regards,
Alexander

-Ursprüngliche Nachricht-
Von: Alexander Hachmann [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 15:35
An: axis-user@ws.apache.org; 'Martin Gainty'
Betreff: AW: NoSuchMethodException in Service that works fine without Axis

Hi,

The javax.xml.parsers.DocumentBuilderFactory is int the rt.jar of the SDK.
Thats the one the VM uses.
Even if i put in the jars from xalan-j.

And if I run the the ServiceMethod directly I have no problems with parsing
the Document. So I cannot think of the library not being able to run that
method.

Or am I missing something??


-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 25. September 2006 14:53
An: axis-user@ws.apache.org; [EMAIL PROTECTED]
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

available in 2.7.0 distros
http://www.apache.org/dyn/closer.cgi/xml/xalan-j
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 8:35 AM
Subject: Re: NoSuchMethodException in Service that works fine without Axis


> Check the xml parser. getTextContent is not present in DOM2 which is 
> the old parser. Make sure you have the latest xerces jar and ensure 
> that it is being used.
> 
> -- dims
> 
> On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> Hello everybody,
>>
>> I have a slightly strange problem which I am not able to fix at this
point.
>> I have a class that shall read a XML-Document through DOM and give 
>> back
some
>> data.
>>
>> The Class parses the file and than processes selected Nodes. This 
>> works
fine
>> when you Instantiate an Object from that class in a simple
JavaApplication.
>> But when you deploy that service in Axis, this method seems to be
throwing a
>> NoSuchMethodException which arrives as a InvocationTargetException at 
>> the Axis Client. When I remove the line
>>
>>   content = n2.getTextContent();
>>
>> everything works fine in Axis. But in the normal Programm it even 
>> worked with that line.
>>
>> When the Exception is thrown, the Eclipse Debugger just ends and does 
>> not jump back to where the Exception would be caught.
>>
>> Has anyone had that problem too and give me some hints?
>>
>>
>>
>> Thx,
>>
>>   Alexander Hachmann
>>
>>
>>
>> P.S. This is the service Code:
>>
>>
>>
>> public int getBroadcasts(){
>>
>> String name = "";
>>
>> String content = null;
>>
>> try{
>>
>>   DocumentBuilder builder = 
>> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>>
>>   d = builder.parse("text.xml");
>>
>>   NodeList nl = d.getElementsByTagName("data"), nl2;
>>
>>   for (int i=0; i < nl.getLength(); i++){
>>
>> Node n = nl.item(i);
>>
>> Node n2 = null;
>>
>> //System.out.println(n.getNodeName());
>>
>> nl2 = n.getChildNodes();
>>
>> int text;
>>
>> //ContentPosition p ;
>>
>> for (int j=0; j < nl2.getLength(); j++){
>>
>>  n2 = nl2.item(j);
>>
>>  text = n2.getNodeType();
>>
>>  if (text == Node.ELEMENT_NODE &&
>> n2.getNodeName() != "data"){
>>
>>name = n2.getNodeName();
>>
>>try{
>>
>>  content = 
>> n2.getTextContent();
>>
>>}catch (Exception e){
>>
>>
>> System.out.println(e);
>>
>>}
>>
>>  }
>>
>> }
>>
>>   }
>>
>> }catch (ParserConfigurationException e){
>>
>>   System.out.println(e);
>>
>> }catch (IOException e){
>>
>>   System.out.println(e);
>>
>> }catch (SAXException e){
>>
>>   System.out.println(e);
>>
>> }
>>
>> return 1;
>>
>>   }
> 
> 
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service 
> Developers)
> 
> ---

RE: [Axis2] Undeploying a web service

2006-09-25 Thread Kedar, Shahar
Thanks Dims,

I've opened a JIRA.

Shahar.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 25, 2006 4:24 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Undeploying a web service

Could you please try procexp
(http://www.sysinternals.com/Utilities/ProcessExplorer.html) and see
which files are locked? (and please open a JIRA with info in this
email and the info about the locked files)

thanks,
dims

On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
>
> Hi Dims,
>
> Let me explain:
>
> I do not use .aar files but directories that are structured in the
same
> way (which is supported according to Axis2 documentation). So my
> directory structure is:
>
> ---
> |
> |
> 
> |
> |
> Services.xml
> .wsdl
> .wsdl
> ..etc
>
> When I want to undeploy a service I simply remove it from the
> services.xml file and delete its WSDL.
> When I want to undeploy all the web services in the group I try to
> delete the root directory ( folder). Most of the
> times I fail to delete it.
>
> Thanks,
> Shahar Kedar
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Monday, September 25, 2006 3:29 PM
> To: Kedar, Shahar
> Cc: axis-user@ws.apache.org
> Subject: Re: [Axis2] Undeploying a web service
>
> WSDL files??? i thought you are trying to remove .aar files...
>
> -- dims
>
> On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> > Hi Dims,
> >
> > The locking problem was not solved. Axis2 still locks WSDL files.
> >
> > -Original Message-
> > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, September 21, 2006 4:35 PM
> > To: axis-user@ws.apache.org
> > Subject: Re: [Axis2] Undeploying a web service
> >
> > Latest nightly should not have the locking problem. Can you please
> > test and confirm?
> >
> > thanks,
> > dims
> >
> > On 9/21/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > >
> > > Hi All,
> > >
> > >
> > >
> > > Let say I want to undeploy a web service while Axis is running.
What
> > is the
> > > best way of doing that? Is it simply deleting the service folder
> > (structured
> > > as an aar file)? The reason I'm asking is that sometimes when
trying
> > to
> > > delete a folder or even a single file, I am denied by the
operating
> > system.
> > > I presume that Axis2 needs to lock the folder (or aar file) once
in
> a
> > while
> > > when poling the repository for new or updated services, but it
makes
> > it very
> > > difficult to undeploy service dynamically.
> > >
> > >
> > >
> > > Is there any other way of programmatically undeploying a web
> service?
> > >
> > >
> > >
> > > Regards,
> > >
> > > Shahar Kedar
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> > Developers)
> >
> >
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> Developers)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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


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



[Axis 1.4] Replacing handler which is responsible for network access

2006-09-25 Thread Axel Bock
Hi all, I would like to replace the handler which is responsible for the network access with my own one to enable automated JUnit tests. I want the new handler to read/write from a file system instead of the real network. 
I figured out that this might actually be possible with the handler structure, but I don't really know how, and I thought that one of experts here might speed up the process of gaining the knowledge considerably :-)
Thanks for any help in advance & greetings, Axel.


AW: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann
Hi,

The javax.xml.parsers.DocumentBuilderFactory is int the rt.jar of the SDK.
Thats the one the VM uses.
Even if i put in the jars from xalan-j.

And if I run the the ServiceMethod directly I have no problems with parsing
the Document. So I cannot think 
of the library not being able to run that method.

Or am I missing something??


-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 14:53
An: axis-user@ws.apache.org; [EMAIL PROTECTED]
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

available in 2.7.0 distros
http://www.apache.org/dyn/closer.cgi/xml/xalan-j
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message -
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 8:35 AM
Subject: Re: NoSuchMethodException in Service that works fine without Axis


> Check the xml parser. getTextContent is not present in DOM2 which is
> the old parser. Make sure you have the latest xerces jar and ensure
> that it is being used.
> 
> -- dims
> 
> On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> Hello everybody,
>>
>> I have a slightly strange problem which I am not able to fix at this
point.
>> I have a class that shall read a XML-Document through DOM and give back
some
>> data.
>>
>> The Class parses the file and than processes selected Nodes. This works
fine
>> when you Instantiate an Object from that class in a simple
JavaApplication.
>> But when you deploy that service in Axis, this method seems to be
throwing a
>> NoSuchMethodException which arrives as a InvocationTargetException at the
>> Axis Client. When I remove the line
>>
>>   content = n2.getTextContent();
>>
>> everything works fine in Axis. But in the normal Programm it even worked
>> with that line.
>>
>> When the Exception is thrown, the Eclipse Debugger just ends and does not
>> jump back to where the Exception would be caught.
>>
>> Has anyone had that problem too and give me some hints?
>>
>>
>>
>> Thx,
>>
>>   Alexander Hachmann
>>
>>
>>
>> P.S. This is the service Code:
>>
>>
>>
>> public int getBroadcasts(){
>>
>> String name = "";
>>
>> String content = null;
>>
>> try{
>>
>>   DocumentBuilder builder =
>> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>>
>>   d = builder.parse("text.xml");
>>
>>   NodeList nl = d.getElementsByTagName("data"), nl2;
>>
>>   for (int i=0; i < nl.getLength(); i++){
>>
>> Node n = nl.item(i);
>>
>> Node n2 = null;
>>
>> //System.out.println(n.getNodeName());
>>
>> nl2 = n.getChildNodes();
>>
>> int text;
>>
>> //ContentPosition p ;
>>
>> for (int j=0; j < nl2.getLength(); j++){
>>
>>  n2 = nl2.item(j);
>>
>>  text = n2.getNodeType();
>>
>>  if (text == Node.ELEMENT_NODE &&
>> n2.getNodeName() != "data"){
>>
>>name = n2.getNodeName();
>>
>>try{
>>
>>  content =
>> n2.getTextContent();
>>
>>}catch (Exception e){
>>
>>
>> System.out.println(e);
>>
>>}
>>
>>  }
>>
>> }
>>
>>   }
>>
>> }catch (ParserConfigurationException e){
>>
>>   System.out.println(e);
>>
>> }catch (IOException e){
>>
>>   System.out.println(e);
>>
>> }catch (SAXException e){
>>
>>   System.out.println(e);
>>
>> }
>>
>> return 1;
>>
>>   }
> 
> 
> -- 
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


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



InvocationTargetException - Error in deserialization of response of web service

2006-09-25 Thread Jose Manuel Valladares Pernas
Hello,
I have a web service client code that creates a hotel
reservation in a online reseravation system.

The java classes were generated with wsdl2java from a
wsdl file with several schema files.

The call to the webservice works fine (I see the
traffic exchange with tcpdump) but when the response
soap message has to be converted to java objects it
throws an InvocationTargetException.

java.lang.reflect.InvocationTargetException
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
at
org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java: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:2448)
at
org.apache.axis.client.Call.invoke(Call.java:2347)
at
org.apache.axis.client.Call.invoke(Call.java:1804)
at
com.oracle.xmlns.OTA_HotelRes.OTA_HotelResBindingStub.process(OTA_HotelResBindingStub.java:6269)
at
ota_client.nh.NHHotelWSCaller$NHHotelReservationWS.doHotelReservationQuote(NHHotelWSCaller.java:853)
at
ota_client.nh.NHHotelWSCaller.doHotelReservationQuote(NHHotelWSCaller.java:157)
at
controllers.HotelReservationController.preReserveRooms(HotelReservationController.java:121)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at
java.lang.reflect.Method.invoke(Method.java:585)
at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at
javax.faces.component.UICommand.broadcast(UICommand.java:106)
at
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
11:18:30,060 ERROR [STDERR] AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString:
java.lang.reflect.InvocationTargetException
 faultActor:
 faultNode:
 faultDetail:
   
{http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
at
org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
 

Re: Setting HTTP request parameters from a client stub

2006-09-25 Thread Davanum Srinivas

Yes. Only in nightlies.

-- dims

On 9/25/06, Mark McCall <[EMAIL PROTECTED]> wrote:

I do not see this constant in the 1.0 release.  Is it only available
from the nightly releases?


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Friday, September 22, 2006 4:21 PM
To: axis-user@ws.apache.org
Subject: Re: Setting HTTP request parameters from a client stub

http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters
#HTTP_HEADERS

On 9/22/06, Mark McCall <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am using an Axis 2 generated client stub (using the 1.0 release) to
invoke
> a web service over HTTP.  I need to be able to send some arbitrary
parameter
> values in the Http Request, i.e. separate from the SOAP envelope.  How
do I
> do this?
>
>
>
> Thanks,
>
> Mark
>
>
> 
>
>
>
>
>
>
>  The information contained in this e-mail message is intended only
>  for the personal and confidential use of the recipient(s) named
>  above. This message may be an attorney-client communication and/or
>  work product and as such is privileged and confidential. If the
>  reader of this message is not the intended recipient or an agent
>  responsible for delivering it to the intended recipient, you are
>  hereby notified that you have received this document in error and
>  that any review, dissemination, distribution, or copying of this
>  message is strictly prohibited. If you have received this
>  communication in error, please notify us immediately by e-mail, and
>  delete the original message.
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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


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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2] Undeploying a web service

2006-09-25 Thread Davanum Srinivas

Could you please try procexp
(http://www.sysinternals.com/Utilities/ProcessExplorer.html) and see
which files are locked? (and please open a JIRA with info in this
email and the info about the locked files)

thanks,
dims

On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:


Hi Dims,

Let me explain:

I do not use .aar files but directories that are structured in the same
way (which is supported according to Axis2 documentation). So my
directory structure is:

---
|
|

|
|
Services.xml
.wsdl
.wsdl
..etc

When I want to undeploy a service I simply remove it from the
services.xml file and delete its WSDL.
When I want to undeploy all the web services in the group I try to
delete the root directory ( folder). Most of the
times I fail to delete it.

Thanks,
Shahar Kedar

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Monday, September 25, 2006 3:29 PM
To: Kedar, Shahar
Cc: axis-user@ws.apache.org
Subject: Re: [Axis2] Undeploying a web service

WSDL files??? i thought you are trying to remove .aar files...

-- dims

On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> Hi Dims,
>
> The locking problem was not solved. Axis2 still locks WSDL files.
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 21, 2006 4:35 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Undeploying a web service
>
> Latest nightly should not have the locking problem. Can you please
> test and confirm?
>
> thanks,
> dims
>
> On 9/21/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi All,
> >
> >
> >
> > Let say I want to undeploy a web service while Axis is running. What
> is the
> > best way of doing that? Is it simply deleting the service folder
> (structured
> > as an aar file)? The reason I'm asking is that sometimes when trying
> to
> > delete a folder or even a single file, I am denied by the operating
> system.
> > I presume that Axis2 needs to lock the folder (or aar file) once in
a
> while
> > when poling the repository for new or updated services, but it makes
> it very
> > difficult to undeploy service dynamically.
> >
> >
> >
> > Is there any other way of programmatically undeploying a web
service?
> >
> >
> >
> > Regards,
> >
> > Shahar Kedar
> >
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> Developers)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



RE: [Axis2] Undeploying a web service

2006-09-25 Thread Kedar, Shahar

Hi Dims,

Let me explain:

I do not use .aar files but directories that are structured in the same
way (which is supported according to Axis2 documentation). So my
directory structure is:

---
|
|

|
|
Services.xml
.wsdl
.wsdl
..etc

When I want to undeploy a service I simply remove it from the
services.xml file and delete its WSDL.
When I want to undeploy all the web services in the group I try to
delete the root directory ( folder). Most of the
times I fail to delete it.

Thanks,
Shahar Kedar

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 25, 2006 3:29 PM
To: Kedar, Shahar
Cc: axis-user@ws.apache.org
Subject: Re: [Axis2] Undeploying a web service

WSDL files??? i thought you are trying to remove .aar files...

-- dims

On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> Hi Dims,
>
> The locking problem was not solved. Axis2 still locks WSDL files.
>
> -Original Message-
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 21, 2006 4:35 PM
> To: axis-user@ws.apache.org
> Subject: Re: [Axis2] Undeploying a web service
>
> Latest nightly should not have the locking problem. Can you please
> test and confirm?
>
> thanks,
> dims
>
> On 9/21/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> > Hi All,
> >
> >
> >
> > Let say I want to undeploy a web service while Axis is running. What
> is the
> > best way of doing that? Is it simply deleting the service folder
> (structured
> > as an aar file)? The reason I'm asking is that sometimes when trying
> to
> > delete a folder or even a single file, I am denied by the operating
> system.
> > I presume that Axis2 needs to lock the folder (or aar file) once in
a
> while
> > when poling the repository for new or updated services, but it makes
> it very
> > difficult to undeploy service dynamically.
> >
> >
> >
> > Is there any other way of programmatically undeploying a web
service?
> >
> >
> >
> > Regards,
> >
> > Shahar Kedar
> >
> >
>
>
> --
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
> Developers)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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



RE: Setting HTTP request parameters from a client stub

2006-09-25 Thread Mark McCall
I do not see this constant in the 1.0 release.  Is it only available
from the nightly releases?


-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 22, 2006 4:21 PM
To: axis-user@ws.apache.org
Subject: Re: Setting HTTP request parameters from a client stub

http://www.wso2.net/articles/axis2/java/2006/08/01/client-api-parameters
#HTTP_HEADERS

On 9/22/06, Mark McCall <[EMAIL PROTECTED]> wrote:
>
>
>
>
> I am using an Axis 2 generated client stub (using the 1.0 release) to
invoke
> a web service over HTTP.  I need to be able to send some arbitrary
parameter
> values in the Http Request, i.e. separate from the SOAP envelope.  How
do I
> do this?
>
>
>
> Thanks,
>
> Mark
>
>
> 
>
>
>
>
>
>
>  The information contained in this e-mail message is intended only
>  for the personal and confidential use of the recipient(s) named
>  above. This message may be an attorney-client communication and/or
>  work product and as such is privileged and confidential. If the
>  reader of this message is not the intended recipient or an agent
>  responsible for delivering it to the intended recipient, you are
>  hereby notified that you have received this document in error and
>  that any review, dissemination, distribution, or copying of this
>  message is strictly prohibited. If you have received this
>  communication in error, please notify us immediately by e-mail, and
>  delete the original message.
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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


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



Re: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Martin Gainty
available in 2.7.0 distros
http://www.apache.org/dyn/closer.cgi/xml/xalan-j
M-
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 8:35 AM
Subject: Re: NoSuchMethodException in Service that works fine without Axis


> Check the xml parser. getTextContent is not present in DOM2 which is
> the old parser. Make sure you have the latest xerces jar and ensure
> that it is being used.
> 
> -- dims
> 
> On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> Hello everybody,
>>
>> I have a slightly strange problem which I am not able to fix at this point.
>> I have a class that shall read a XML-Document through DOM and give back some
>> data.
>>
>> The Class parses the file and than processes selected Nodes. This works fine
>> when you Instantiate an Object from that class in a simple JavaApplication.
>> But when you deploy that service in Axis, this method seems to be throwing a
>> NoSuchMethodException which arrives as a InvocationTargetException at the
>> Axis Client. When I remove the line
>>
>>   content = n2.getTextContent();
>>
>> everything works fine in Axis. But in the normal Programm it even worked
>> with that line.
>>
>> When the Exception is thrown, the Eclipse Debugger just ends and does not
>> jump back to where the Exception would be caught.
>>
>> Has anyone had that problem too and give me some hints?
>>
>>
>>
>> Thx,
>>
>>   Alexander Hachmann
>>
>>
>>
>> P.S. This is the service Code:
>>
>>
>>
>> public int getBroadcasts(){
>>
>> String name = "";
>>
>> String content = null;
>>
>> try{
>>
>>   DocumentBuilder builder =
>> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>>
>>   d = builder.parse("text.xml");
>>
>>   NodeList nl = d.getElementsByTagName("data"), nl2;
>>
>>   for (int i=0; i < nl.getLength(); i++){
>>
>> Node n = nl.item(i);
>>
>> Node n2 = null;
>>
>> //System.out.println(n.getNodeName());
>>
>> nl2 = n.getChildNodes();
>>
>> int text;
>>
>> //ContentPosition p ;
>>
>> for (int j=0; j < nl2.getLength(); j++){
>>
>>  n2 = nl2.item(j);
>>
>>  text = n2.getNodeType();
>>
>>  if (text == Node.ELEMENT_NODE &&
>> n2.getNodeName() != "data"){
>>
>>name = n2.getNodeName();
>>
>>try{
>>
>>  content =
>> n2.getTextContent();
>>
>>}catch (Exception e){
>>
>>
>> System.out.println(e);
>>
>>}
>>
>>  }
>>
>> }
>>
>>   }
>>
>> }catch (ParserConfigurationException e){
>>
>>   System.out.println(e);
>>
>> }catch (IOException e){
>>
>>   System.out.println(e);
>>
>> }catch (SAXException e){
>>
>>   System.out.println(e);
>>
>> }
>>
>> return 1;
>>
>>   }
> 
> 
> -- 
> Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

Re: Constructing SOAP message from Request Object in Axis2

2006-09-25 Thread Davanum Srinivas

call env.build() and it will build the rest of the child elements

-- dims

On 9/25/06, Ramasamy, Niraimathi (Cognizant)
<[EMAIL PROTECTED]> wrote:





Hi ,


I would like to construct SOAP message from request object.

 Is there any option in Axis2 to construct SOAP Message.

org.apache.axis2.context.MessageContext is the one receiving SOAP message from 
Client. I have tried with

msgContext.getEnvelope(); But it is returning SOenvelope with only root element.child 
elements of  are missing.
 But i can able to get the values from java object.


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:q0="http://www.eclipse.org/
alf/XMLSchema/Events.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soa
penv="http://schemas.xmlsoap.org/soap/envelope/";>





Please let me know , is there any other option to construct a soap message from 
request object in Axis2

Regards,
Nirai

This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
 If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
 Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
 prohibited and may be unlawful.

   Visit us at http://www.cognizant.com





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: Regarding support in Axis 2

2006-09-25 Thread Davanum Srinivas

Niraimathi,

Please create a JIRA issue with your complete wsdl.

thanks,
dims

On 9/25/06, Ramasamy, Niraimathi (Cognizant)
<[EMAIL PROTECTED]> wrote:







Hi,

I would like to have several elements with my EventExtensionType.

i was given . Axis 2 caused the error Unexpected subelement Extension. so i changed  to 
 . now I cant able to add anymore 
elements under 

I have send a soap mess like this





 It is causing the error Unexpected subelement issueID.

 i would like to have any number of elements within

 n number of elements with any type

Please let me know what are the changes I need to do in my below 























Regards,
Niraimathi R


This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information.
 If you are not the intended recipient, please contact the sender by reply 
e-mail and destroy all copies of the original message.
 Any unauthorized review, use, disclosure, dissemination, forwarding, printing 
or copying of this email or any action taken in reliance on this e-mail is 
strictly
 prohibited and may be unlawful.

   Visit us at http://www.cognizant.com





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Davanum Srinivas

Check the xml parser. getTextContent is not present in DOM2 which is
the old parser. Make sure you have the latest xerces jar and ensure
that it is being used.

-- dims

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:





Hello everybody,

I have a slightly strange problem which I am not able to fix at this point.
I have a class that shall read a XML-Document through DOM and give back some
data.

The Class parses the file and than processes selected Nodes. This works fine
when you Instantiate an Object from that class in a simple JavaApplication.
But when you deploy that service in Axis, this method seems to be throwing a
NoSuchMethodException which arrives as a InvocationTargetException at the
Axis Client. When I remove the line

  content = n2.getTextContent();

everything works fine in Axis. But in the normal Programm it even worked
with that line.

When the Exception is thrown, the Eclipse Debugger just ends and does not
jump back to where the Exception would be caught.

Has anyone had that problem too and give me some hints?



Thx,

  Alexander Hachmann



P.S. This is the service Code:



public int getBroadcasts(){

String name = "";

String content = null;

try{

  DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();

  d = builder.parse("text.xml");

  NodeList nl = d.getElementsByTagName("data"), nl2;

  for (int i=0; i < nl.getLength(); i++){

Node n = nl.item(i);

Node n2 = null;

//System.out.println(n.getNodeName());

nl2 = n.getChildNodes();

int text;

//ContentPosition p ;

for (int j=0; j < nl2.getLength(); j++){

 n2 = nl2.item(j);

 text = n2.getNodeType();

 if (text == Node.ELEMENT_NODE &&
n2.getNodeName() != "data"){

   name = n2.getNodeName();

   try{

 content =
n2.getTextContent();

   }catch (Exception e){


System.out.println(e);

   }

 }

}

  }

}catch (ParserConfigurationException e){

  System.out.println(e);

}catch (IOException e){

  System.out.println(e);

}catch (SAXException e){

  System.out.println(e);

}

return 1;

  }



--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



Re: [Axis2] Undeploying a web service

2006-09-25 Thread Davanum Srinivas

WSDL files??? i thought you are trying to remove .aar files...

-- dims

On 9/25/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:

Hi Dims,

The locking problem was not solved. Axis2 still locks WSDL files.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 21, 2006 4:35 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Undeploying a web service

Latest nightly should not have the locking problem. Can you please
test and confirm?

thanks,
dims

On 9/21/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi All,
>
>
>
> Let say I want to undeploy a web service while Axis is running. What
is the
> best way of doing that? Is it simply deleting the service folder
(structured
> as an aar file)? The reason I'm asking is that sometimes when trying
to
> delete a folder or even a single file, I am denied by the operating
system.
> I presume that Axis2 needs to lock the folder (or aar file) once in a
while
> when poling the repository for new or updated services, but it makes
it very
> difficult to undeploy service dynamically.
>
>
>
> Is there any other way of programmatically undeploying a web service?
>
>
>
> Regards,
>
> Shahar Kedar
>
>


--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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





--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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



AW: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann

Hi,
Sure, here is the WSDL. Furthermore i am using Java SDK 1.5.0_08-b03 ant
Tomcat 5.0.30

http://localhost:8080/axis/services/EpgDataService";>

  
  
  

  
  




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



http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://ws.epgdata.org"; use="encoded"/>


http://schemas.xmlsoap.org/soap/encoding/";
namespace="http://localhost:8080/axis/services/EpgDataService";
use="encoded"/>


  


http://localhost:8080/axis/services/EpgDataService"/>


 

-Ursprüngliche Nachricht-
Von: Martin Gainty [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 14:14
An: axis-user@ws.apache.org
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

Alexander-
which version of Axis are you working with?
Can we see your wsdl?
M--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.




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



Re: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Martin Gainty
Alexander-
which version of Axis are you working with?
Can we see your wsdl?
M--
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Alexander Hachmann" <[EMAIL PROTECTED]>
To: 
Sent: Monday, September 25, 2006 7:46 AM
Subject: AW: NoSuchMethodException in Service that works fine without Axis


Hi,
Ok, then i just did forget to write that the XMLDocuments i am processing
are soapmessges for the
Servicerequest. The XML data that is being processed is coming from files on
the filesystem on the Server.


Alexander 

-Ursprüngliche Nachricht-
Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 13:39
An: axis-user@ws.apache.org
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

Alexander,

If you use the RPC provider, then Axis will always convert the incoming
message elements into Java objects; therefore, you don't have the option to
directly manipulate the XML nodes. If you want to directly manipulate the
XML, you must use the MSG provider.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> Hello Anne,
> Thx for your reply.
>
> At this point, i do not want the Service to return that XMLDocument. I 
> just want to use the information in that document for creating own 
> beans and send them back. While getting the TextContent of the 
> processed Nodes the Service Crashes.
> Right now the Service even simply retunrs an Integer value, though 
> crashes anyway.
>
> Thx,
>Alexander
>
>
> -Ursprüngliche Nachricht-
> Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 25. September 2006 13:10
> An: axis-user@ws.apache.org
> Betreff: Re: NoSuchMethodException in Service that works fine without 
> Axis
>
> Make sure that you are using provider="MSG", which will then deliver 
> the message to you as a DOM element.
>
> Anne
>
> On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> > Sorry for having sent the email in html before. Wont happen again 
> > ;-)
> >
> > Hello everybody,
> >
> > I have a slightly strange problem which I am not able to fix at this
> point.
> > I have a class that shall read a XML-Document through DOM and give 
> > back some data.
> >
> > The Class parses the file and than processes selected Nodes. This 
> > works fine when you Instantiate an Object from that class in a 
> > simple
> JavaApplication.
> > But when you deploy that service in Axis, this method seems to be 
> > throwing a NoSuchMethodException which arrives as a 
> > InvocationTargetException at the Axis Client. When I remove the line
> >
> >   content = n2.getTextContent();
> >
> > everything works fine in Axis. But in the normal Programm it even 
> > worked with that line.
> >
> > When the Exception is thrown, the Eclipse Debugger just ends and 
> > does not catch the exception in the catch block :-o
> >
> > Has anyone had that problem too and give me some hints?
> >
> >
> >
> > Thx,
> >
> >   Alexander Hachmann
> >
> >
> >
> > P.S. This is the service Code:
> >
> >
> >
> > public int getBroadcasts(){
> > String name = "";
> > String content = null;
> > try{
> >   DocumentBuilder builder = 
> > DocumentBuilderFactory.newInstance().newDocumentBuilder();
> >   d = builder.parse("text.xml");
> >   NodeList nl = d.getElementsByTagName("data"), nl2;
> >   for (int i=0; i < nl.getLength(); i++){
> > Node n = nl.item(i);
> > Node n2 = null;
> > //System.out.println(n.getNodeName());
> > nl2 = n.getChildNodes();
> > int text;
> > //ContentPosition p ;
> > for (int j=0; j < nl2.getLength(); j++){
> >  n2 = nl2.item(j);
> >  text = n2.getNodeType();
> >  if (text == Node.ELEMENT_NODE &&
> > n2.getNodeName() != "data"){
> >name = n2.getNodeName();
> >try{
> >  content = n2.getTextContent();
> >}catch (Exception e){
> >  System.out.println(e);
> >}
> >  }
> > }
> >   }
> > }catch (ParserConfigurationException e){
> >   System.out.println(e);
> > }catch (IOExcep

Fw: Presence of > in anonymous-type-qname

2006-09-25 Thread Neville Peter
I'm trying to find an explanation for why every anonymous-type-qname in the 
java-wsdl-mapping generated by WSDL2Java has a $gt; in it.

For example,
urn:nhs:names:services:mhs:SLIM:types:>Parameters

This results in a faultcode being generated like:


p108:>errorList




Anyone know what it means (the use of the >)?

Does anyone know how to override so that a more appropriaet faultcode and 
faultstring can be returned (I have defined a fault in the WSDL, and although 
this allows me to incldue my own XML in the detail, I cannot set the faultcode 
or faultstring manually - see below)? 


p108:>errorList





http://our.endpoint.address
1
Error
WebServiceProcessor
Unable to call 
Service






Thanks for any help.









___ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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



AW: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann
Hi,
Ok, then i just did forget to write that the XMLDocuments i am processing
are soapmessges for the
Servicerequest. The XML data that is being processed is coming from files on
the filesystem on the Server.


Alexander 

-Ursprüngliche Nachricht-
Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 13:39
An: axis-user@ws.apache.org
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

Alexander,

If you use the RPC provider, then Axis will always convert the incoming
message elements into Java objects; therefore, you don't have the option to
directly manipulate the XML nodes. If you want to directly manipulate the
XML, you must use the MSG provider.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> Hello Anne,
> Thx for your reply.
>
> At this point, i do not want the Service to return that XMLDocument. I 
> just want to use the information in that document for creating own 
> beans and send them back. While getting the TextContent of the 
> processed Nodes the Service Crashes.
> Right now the Service even simply retunrs an Integer value, though 
> crashes anyway.
>
> Thx,
>Alexander
>
>
> -Ursprüngliche Nachricht-
> Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 25. September 2006 13:10
> An: axis-user@ws.apache.org
> Betreff: Re: NoSuchMethodException in Service that works fine without 
> Axis
>
> Make sure that you are using provider="MSG", which will then deliver 
> the message to you as a DOM element.
>
> Anne
>
> On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> > Sorry for having sent the email in html before. Wont happen again 
> > ;-)
> >
> > Hello everybody,
> >
> > I have a slightly strange problem which I am not able to fix at this
> point.
> > I have a class that shall read a XML-Document through DOM and give 
> > back some data.
> >
> > The Class parses the file and than processes selected Nodes. This 
> > works fine when you Instantiate an Object from that class in a 
> > simple
> JavaApplication.
> > But when you deploy that service in Axis, this method seems to be 
> > throwing a NoSuchMethodException which arrives as a 
> > InvocationTargetException at the Axis Client. When I remove the line
> >
> >   content = n2.getTextContent();
> >
> > everything works fine in Axis. But in the normal Programm it even 
> > worked with that line.
> >
> > When the Exception is thrown, the Eclipse Debugger just ends and 
> > does not catch the exception in the catch block :-o
> >
> > Has anyone had that problem too and give me some hints?
> >
> >
> >
> > Thx,
> >
> >   Alexander Hachmann
> >
> >
> >
> > P.S. This is the service Code:
> >
> >
> >
> > public int getBroadcasts(){
> > String name = "";
> > String content = null;
> > try{
> >   DocumentBuilder builder = 
> > DocumentBuilderFactory.newInstance().newDocumentBuilder();
> >   d = builder.parse("text.xml");
> >   NodeList nl = d.getElementsByTagName("data"), nl2;
> >   for (int i=0; i < nl.getLength(); i++){
> > Node n = nl.item(i);
> > Node n2 = null;
> > //System.out.println(n.getNodeName());
> > nl2 = n.getChildNodes();
> > int text;
> > //ContentPosition p ;
> > for (int j=0; j < nl2.getLength(); j++){
> >  n2 = nl2.item(j);
> >  text = n2.getNodeType();
> >  if (text == Node.ELEMENT_NODE &&
> > n2.getNodeName() != "data"){
> >name = n2.getNodeName();
> >try{
> >  content = n2.getTextContent();
> >}catch (Exception e){
> >  System.out.println(e);
> >}
> >  }
> > }
> >   }
> > }catch (ParserConfigurationException e){
> >   System.out.println(e);
> > }catch (IOException e){
> >   System.out.println(e);
> > }catch (SAXException e){
> >   System.out.println(e);
> > }
> > return 1;
> >   }
> >
> >
> > 
> > - To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additi

Re: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Anne Thomas Manes

Alexander,

If you use the RPC provider, then Axis will always convert the
incoming message elements into Java objects; therefore, you don't have
the option to directly manipulate the XML nodes. If you want to
directly manipulate the XML, you must use the MSG provider.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:

Hello Anne,
Thx for your reply.

At this point, i do not want the Service to return that XMLDocument. I just
want to use the information in that
document for creating own beans and send them back. While getting the
TextContent of the processed Nodes the
Service Crashes.
Right now the Service even simply retunrs an Integer value, though crashes
anyway.

Thx,
   Alexander


-Ursprüngliche Nachricht-
Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 25. September 2006 13:10
An: axis-user@ws.apache.org
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

Make sure that you are using provider="MSG", which will then deliver the
message to you as a DOM element.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> Sorry for having sent the email in html before. Wont happen again ;-)
>
> Hello everybody,
>
> I have a slightly strange problem which I am not able to fix at this
point.
> I have a class that shall read a XML-Document through DOM and give
> back some data.
>
> The Class parses the file and than processes selected Nodes. This
> works fine when you Instantiate an Object from that class in a simple
JavaApplication.
> But when you deploy that service in Axis, this method seems to be
> throwing a NoSuchMethodException which arrives as a
> InvocationTargetException at the Axis Client. When I remove the line
>
>   content = n2.getTextContent();
>
> everything works fine in Axis. But in the normal Programm it even
> worked with that line.
>
> When the Exception is thrown, the Eclipse Debugger just ends and does
> not catch the exception in the catch block :-o
>
> Has anyone had that problem too and give me some hints?
>
>
>
> Thx,
>
>   Alexander Hachmann
>
>
>
> P.S. This is the service Code:
>
>
>
> public int getBroadcasts(){
> String name = "";
> String content = null;
> try{
>   DocumentBuilder builder =
> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>   d = builder.parse("text.xml");
>   NodeList nl = d.getElementsByTagName("data"), nl2;
>   for (int i=0; i < nl.getLength(); i++){
> Node n = nl.item(i);
> Node n2 = null;
> //System.out.println(n.getNodeName());
> nl2 = n.getChildNodes();
> int text;
> //ContentPosition p ;
> for (int j=0; j < nl2.getLength(); j++){
>  n2 = nl2.item(j);
>  text = n2.getNodeType();
>  if (text == Node.ELEMENT_NODE &&
> n2.getNodeName() != "data"){
>name = n2.getNodeName();
>try{
>  content = n2.getTextContent();
>}catch (Exception e){
>  System.out.println(e);
>}
>  }
> }
>   }
> }catch (ParserConfigurationException e){
>   System.out.println(e);
> }catch (IOException e){
>   System.out.println(e);
> }catch (SAXException e){
>   System.out.println(e);
> }
> return 1;
>   }
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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




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



AW: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann
Hello Anne,
Thx for your reply. 

At this point, i do not want the Service to return that XMLDocument. I just
want to use the information in that
document for creating own beans and send them back. While getting the
TextContent of the processed Nodes the
Service Crashes.
Right now the Service even simply retunrs an Integer value, though crashes
anyway.

Thx,
   Alexander
 

-Ursprüngliche Nachricht-
Von: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 25. September 2006 13:10
An: axis-user@ws.apache.org
Betreff: Re: NoSuchMethodException in Service that works fine without Axis

Make sure that you are using provider="MSG", which will then deliver the
message to you as a DOM element.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:
> Sorry for having sent the email in html before. Wont happen again ;-)
>
> Hello everybody,
>
> I have a slightly strange problem which I am not able to fix at this
point.
> I have a class that shall read a XML-Document through DOM and give 
> back some data.
>
> The Class parses the file and than processes selected Nodes. This 
> works fine when you Instantiate an Object from that class in a simple
JavaApplication.
> But when you deploy that service in Axis, this method seems to be 
> throwing a NoSuchMethodException which arrives as a 
> InvocationTargetException at the Axis Client. When I remove the line
>
>   content = n2.getTextContent();
>
> everything works fine in Axis. But in the normal Programm it even 
> worked with that line.
>
> When the Exception is thrown, the Eclipse Debugger just ends and does 
> not catch the exception in the catch block :-o
>
> Has anyone had that problem too and give me some hints?
>
>
>
> Thx,
>
>   Alexander Hachmann
>
>
>
> P.S. This is the service Code:
>
>
>
> public int getBroadcasts(){
> String name = "";
> String content = null;
> try{
>   DocumentBuilder builder = 
> DocumentBuilderFactory.newInstance().newDocumentBuilder();
>   d = builder.parse("text.xml");
>   NodeList nl = d.getElementsByTagName("data"), nl2;
>   for (int i=0; i < nl.getLength(); i++){
> Node n = nl.item(i);
> Node n2 = null;
> //System.out.println(n.getNodeName());
> nl2 = n.getChildNodes();
> int text;
> //ContentPosition p ;
> for (int j=0; j < nl2.getLength(); j++){
>  n2 = nl2.item(j);
>  text = n2.getNodeType();
>  if (text == Node.ELEMENT_NODE &&
> n2.getNodeName() != "data"){
>name = n2.getNodeName();
>try{
>  content = n2.getTextContent();
>}catch (Exception e){
>  System.out.println(e);
>}
>  }
> }
>   }
> }catch (ParserConfigurationException e){
>   System.out.println(e);
> }catch (IOException e){
>   System.out.println(e);
> }catch (SAXException e){
>   System.out.println(e);
> }
> return 1;
>   }
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


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



Re: Regarding support in Axis 2

2006-09-25 Thread Anne Thomas Manes
The "##targetNamespace" value indicates that the element extensions must come from your targetNamespace. If you want to allow elements from other namespaces, you should specify namespace="##other". Or if you want to allow any element from any namespace, either specify namespace="##any" or just leave out the attribute.
AnneOn 9/25/06, Ramasamy, Niraimathi (Cognizant) <[EMAIL PROTECTED]> wrote:





 

 

Hi,
 
I would like to have several elements with my
EventExtensionType. 
i was given
. Axis 2 caused the error Unexpected
subelement Extension. so i changed  to
 . now I
cant able to add anymore elements under 
I have send a soap mess like this

 It is causing the error Unexpected subelement
issueID.
 i would like to have any number
of elements within 
 n number of elements
with any type
Please let me know what are the changes I
need to do in my below 





xs:documentation>
xs:annotation>

 
xs:sequence>

xs:complexType>
 
Regards,
Niraimathi
R
 
 

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com




RE: [Axis2] Undeploying a web service

2006-09-25 Thread Kedar, Shahar
Hi Dims,

The locking problem was not solved. Axis2 still locks WSDL files.

-Original Message-
From: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 4:35 PM
To: axis-user@ws.apache.org
Subject: Re: [Axis2] Undeploying a web service

Latest nightly should not have the locking problem. Can you please
test and confirm?

thanks,
dims

On 9/21/06, Kedar, Shahar <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi All,
>
>
>
> Let say I want to undeploy a web service while Axis is running. What
is the
> best way of doing that? Is it simply deleting the service folder
(structured
> as an aar file)? The reason I'm asking is that sometimes when trying
to
> delete a folder or even a single file, I am denied by the operating
system.
> I presume that Axis2 needs to lock the folder (or aar file) once in a
while
> when poling the repository for new or updated services, but it makes
it very
> difficult to undeploy service dynamically.
>
>
>
> Is there any other way of programmatically undeploying a web service?
>
>
>
> Regards,
>
> Shahar Kedar
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service
Developers)

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


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



Re: NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Anne Thomas Manes

Make sure that you are using provider="MSG", which will then deliver
the message to you as a DOM element.

Anne

On 9/25/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:

Sorry for having sent the email in html before. Wont happen again ;-)

Hello everybody,

I have a slightly strange problem which I am not able to fix at this point.
I have a class that shall read a XML-Document through DOM and give back some
data.

The Class parses the file and than processes selected Nodes. This works fine
when you Instantiate an Object from that class in a simple JavaApplication.
But when you deploy that service in Axis, this method seems to be throwing a
NoSuchMethodException which arrives as a InvocationTargetException at the
Axis Client. When I remove the line

  content = n2.getTextContent();

everything works fine in Axis. But in the normal Programm it even worked
with that line.

When the Exception is thrown, the Eclipse Debugger just ends and does not
catch the exception in the catch block :-o

Has anyone had that problem too and give me some hints?



Thx,

  Alexander Hachmann



P.S. This is the service Code:



public int getBroadcasts(){
String name = "";
String content = null;
try{
  DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
  d = builder.parse("text.xml");
  NodeList nl = d.getElementsByTagName("data"), nl2;
  for (int i=0; i < nl.getLength(); i++){
Node n = nl.item(i);
Node n2 = null;
//System.out.println(n.getNodeName());
nl2 = n.getChildNodes();
int text;
//ContentPosition p ;
for (int j=0; j < nl2.getLength(); j++){
 n2 = nl2.item(j);
 text = n2.getNodeType();
 if (text == Node.ELEMENT_NODE &&
n2.getNodeName() != "data"){
   name = n2.getNodeName();
   try{
 content = n2.getTextContent();
   }catch (Exception e){
 System.out.println(e);
   }
 }
}
  }
}catch (ParserConfigurationException e){
  System.out.println(e);
}catch (IOException e){
  System.out.println(e);
}catch (SAXException e){
  System.out.println(e);
}
return 1;
  }


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



NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann
Sorry for having sent the email in html before. Wont happen again ;-)

Hello everybody,

I have a slightly strange problem which I am not able to fix at this point.
I have a class that shall read a XML-Document through DOM and give back some
data. 

The Class parses the file and than processes selected Nodes. This works fine
when you Instantiate an Object from that class in a simple JavaApplication.
But when you deploy that service in Axis, this method seems to be throwing a
NoSuchMethodException which arrives as a InvocationTargetException at the
Axis Client. When I remove the line 

  content = n2.getTextContent();

everything works fine in Axis. But in the normal Programm it even worked
with that line.

When the Exception is thrown, the Eclipse Debugger just ends and does not
catch the exception in the catch block :-o

Has anyone had that problem too and give me some hints?

 

Thx,

  Alexander Hachmann

 

P.S. This is the service Code:

 

public int getBroadcasts(){
String name = "";
String content = null;
try{
  DocumentBuilder builder =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
  d = builder.parse("text.xml");
  NodeList nl = d.getElementsByTagName("data"), nl2;
  for (int i=0; i < nl.getLength(); i++){
Node n = nl.item(i);
Node n2 = null;
//System.out.println(n.getNodeName());
nl2 = n.getChildNodes();
int text;
//ContentPosition p ;
for (int j=0; j < nl2.getLength(); j++){
 n2 = nl2.item(j);
 text = n2.getNodeType();
 if (text == Node.ELEMENT_NODE &&
n2.getNodeName() != "data"){
   name = n2.getNodeName();
   try{
 content = n2.getTextContent();
   }catch (Exception e){
 System.out.println(e);
   }
 }
}
  }
}catch (ParserConfigurationException e){
  System.out.println(e);
}catch (IOException e){
  System.out.println(e);
}catch (SAXException e){
  System.out.println(e);
}
return 1;
  }


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



NoSuchMethodException in Service that works fine without Axis

2006-09-25 Thread Alexander Hachmann








Hello everybody,

I have a slightly strange problem which I am not able
to fix at this point. I have a class that shall read a XML-Document through DOM
and give back some data. 

The Class parses the file and than processes selected
Nodes. This works fine when you Instantiate an Object from that class in a
simple JavaApplication. But when you deploy that service in Axis, this method
seems to be throwing a NoSuchMethodException which arrives as a
InvocationTargetException at the Axis Client. When I remove the line 

  content = n2.getTextContent();

everything works fine in Axis. But in the normal
Programm it even worked with that line.

When the Exception is thrown, the Eclipse Debugger just
ends and does not jump back to where the Exception would be caught.

Has anyone had that problem too and give me some
hints?

 

Thx,

  Alexander Hachmann

 

P.S. This is the service Code:

 

public int getBroadcasts(){

   
String name = "";

   
String content = null;

   
try{

 
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();

 
d = builder.parse("text.xml");

 
NodeList nl = d.getElementsByTagName("data"), nl2;

 
for (int i=0; i < nl.getLength(); i++){

   
Node n = nl.item(i);

   
Node n2 = null;

   
//System.out.println(n.getNodeName());

   
nl2 = n.getChildNodes();

   
int text;

   
//ContentPosition
p ;

   
for (int j=0; j < nl2.getLength(); j++){


n2 = nl2.item(j);


text = n2.getNodeType();


if (text == Node.ELEMENT_NODE && n2.getNodeName() != "data"){

  
name = n2.getNodeName();

  
try{


content = n2.getTextContent();

  
}catch (Exception e){


System.out.println(e);

  
}


}

   
}

 
}

   
}catch (ParserConfigurationException e){

 
System.out.println(e);

   
}catch (IOException
e){

 
System.out.println(e);

   
}catch (SAXException e){

 
System.out.println(e);

   
}

   
return 1;

 
}








Regarding support in Axis 2

2006-09-25 Thread Ramasamy, Niraimathi \(Cognizant\)



 

 

Hi,
 
I would like to have several elements with my
EventExtensionType. 
i was given
. Axis 2 caused the error Unexpected
subelement Extension. so i changed  to
 . now I
cant able to add anymore elements under 
I have send a soap mess like this

 It is causing the error Unexpected subelement
issueID.
 i would like to have any number
of elements within 
 n number of elements
with any type
Please let me know what are the changes I
need to do in my below 




xs:documentation>
xs:annotation>

 
xs:sequence>

xs:complexType>
 
Regards,
Niraimathi
R
 
 

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com


Constructing SOAP message from Request Object in Axis2

2006-09-25 Thread Ramasamy, Niraimathi \(Cognizant\)



 

Hi ,

 
I would like to construct SOAP message from request
object.
 
 Is there any option in Axis2 to
construct SOAP Message. 
 
org.apache.axis2.context.MessageContext is the one
receiving SOAP message from Client. I have tried with

 
msgContext.getEnvelope();
But it is returning SOenvelope with only
root element.child elements of
 are missing.
 But i can able to get the values from java
object.
 
http://www.w3.org/2001/XMLSchema-instance" xmlns:q0="http://www.eclipse.org/alf/XMLSchema/Events.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
 
Please
let me know , is there any other option to construct a soap message from request
object in Axis2
 
Regards,
Nirai
 

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

  Visit us at http://www.cognizant.com


Re: Axis array serialization problem (Adnene problem)

2006-09-25 Thread Adnene

Hi all,

 It seems that the problem I have with deserialising array of strings is
know bug:

http://issues.apache.org/jira/browse/AXIS-2485
http://issues.apache.org/jira/browse/AXIS-2485 

Did someone had a look at this problem? The bug seems not to be planned. Can
anyone help me in getting this bug solved?

Adnene
-- 
View this message in context: 
http://www.nabble.com/Re%3A-Axis-array-serialization-problem-%28Adnene-problem%29-tf2157136.html#a6483093
Sent from the Axis - User mailing list archive at Nabble.com.


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



Re: How to implement init() for a endpoint service?

2006-09-25 Thread Michele Mazzucco
Stefan,

open services.xml and, after this element

true



Michele

Stefan Bokor wrote:
> Update:
> 
> Ok, getting closer...
> 
> I have realized that I use WSDL2Java with switch -S (deploy
> skeleton), so I have also modified the XXSoapBindingSkeleton
> class. My Skeleton and Impl classes now look like this:
> 
> 
> public class XXSoapBindingSkeleton
>   implements com.vx.soap.XX,
>  org.apache.axis.wsdl.Skeleton,
>  javax.xml.rpc.server.ServiceLifecycle  // added
> {
>   private com.vx.soap.XX impl;
>   ...
> 
>   // added
>   public void init(Object ctx) throws ServiceException {
> ((ServiceLifecycle) impl).init(ctx);
>   }
>   public void destroy() {
> ((ServiceLifecycle) impl).destroy();
>   }
> 
>   ...
> }
> 
> 
> public class XXSoapBindingImpl
>   implements com.vx.soap.XX,
>  ServiceLifecycle  // added
> {
>   String info = "none";
> 
>   // added
>   public void init(Object ctx) throws ServiceException {
> info = "inited";
>   }
> 
>   public void destroy() {}
> 
>   public String getX() {return info;}
> }
> -
> 
> On client side I execute getX() two times like this:
> 
> -
>   clnt = new XXSoapBindingStub(url, null);
>   String ret = clnt.getX();
>   ret += ", " + clnt.getX();
>   ...
> -
> 
> And the return is "inited, inited" - the init() in the service
> is being called each time the client invokes getX(). I would
> expect init() to be only called the 1st time, e.g.: the return
> should be "inited, empty".
> 
> BTW, I deploy the service with scope "Application".
> 
> Do I miss something? Do I need to configure Tomcat too?
> Thank you,
> -stefan
> 
> 
> -
> 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]