WSDL - duplicate methods

2005-08-17 Thread Branko Kaucic

Hi all!

I am completely new to Axis, but... I tried to follow the user guide and to
generate Java files from sample WSDL file Axis2SampleDocLit.wsdl, but
I got duplicate methods in DataBindingSupporter classes.
Also, when I tried my sample (WSDL is attached below) without using any
user defined data types, I got the same problem. What am I doing wrong?

Also (I opened the project in Eclipse) I got some other problems in the
same DrugiServisPortTypemetoda4DatabindingSupporter.

Please, could someone help.

Thanks in advance,
B

--

http://schemas.xmlsoap.org/wsdl/";
 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
 xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
 xmlns:tns="XYZ"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 
 

 
   
 
 
   
 
 
 

 
   
 
 
   
   
 
 
   
 

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

   
 
 
   
 
 
   
 
   
   
 
 
   
 
 
   
 
   
 

 
   
 location="http://localhost/axis2/services/DrugiServis.wsdl"/>

   
 


--


RES: RES: Error - java.lang.reflect.InvocationTargetException?

2005-08-17 Thread Fabrício
I'm using tomcat 5 and I didn't understand when you say
Tomcat|Properties|JavaClasspath??? Is it a file? Folder? I putted my
external class in [TOMCAT]\common\lib, but didn't work.

I opened a setclasspath.bat file and I set this line:

set
CLASSPATH=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME%\common\lib\InputStreamHa
ndler.class;

But didn't work!! :'(

I really don't know where I have to set my classpath!!

Please does anyone have a solution for me???

Thanks to all,

Fabrício
-Mensagem original-
De: Chen, Donald [mailto:[EMAIL PROTECTED] 
Enviada em: quarta-feira, 17 de agosto de 2005 11:40
Para: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Assunto: RE: RES: Error - java.lang.reflect.InvocationTargetException?

Fabricio,

I think I have fixed my problem.  What I did is put all the necessary
classpaths to the Tomcat|Properties|JavaClasspath, and restarted the Tomcat.

After doing that, the problem is gone.

I tried to put all the necessary classes into the
[TOMCAT]webapps\axis\WEB-INF\classes and it didn't work for me either.

I guess, all the axis specific classes need to go to the
[TOMCAT]webapps\axis\WEB-INF\classes, while the Tomcat specific classes go
to the Tomcat|Properties|JavaClasspath.

Hope it will work for you too.

Don

-Original Message-
From: Fabrício [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 16, 2005 7:21 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException?

Javier,

Where I have to put the class? I putted it into
[TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more
clear please!?!

Thanks a lot!

Fabrício

-Mensagem original-
De: Javier Gonzalez [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 16 de agosto de 2005 18:34
Para: axis-user@ws.apache.org
Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException?

I'm not sure I'm understanding you two - calling all sorts of Java
classes is possible with axis. Are you sure you have all the needed
classes in the webapp classpath?

Does your class need special parameters for its constructor?

On 8/16/05, Fabrício <[EMAIL PROTECTED]> wrote:
> Hi Donald,
> 
> In my case, I really need to have the call to method from another class.
My
> web service is a kind of wrapper for a legacy application. And to do the
> call, it's necessary to escort stdin and stderr. And I'm doing this with
two
> threads. As:
> 
> cmd = "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs";
> process = Runtime.getRuntime().exec(cmd);
> 
> StringBuffer inBuffer = new StringBuffer();
> InputStream inStream = processo.getInputStream();
> new InputStreamHandler( inBuffer, inStream );
> 
> StringBuffer errBuffer = new StringBuffer();
> InputStream errStream = processo.getErrorStream();
> new InputStreamHandler( errBuffer , errStream );
> 
> process.waitFor();
> 
> The InputStreamHandler is another java class. I really don't know how to
> solve it without the use of these threads (another class). :'-(
> 
> --
> 
> Fabrício.
> 
> -Mensagem original-
> De: Chen, Donald [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 16 de agosto de 2005 16:14
> Para: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Assunto: RE: Error - java.lang.reflect.InvocationTargetException?
> 
> Yes, exactly.
> 
> The moment I let the method in the WS call another class, I got the
> problem.
> 
> Looks like we are on the same boat.
> 
> Right now, I am trying to rewrite the service provider class to avoid
> the unnecessary calling.
> 
> Also, I suspect the Tomcat is not able to find all the necessary jars to
> facilitating the call.
> 
> Let me know what's your finding?
> 
> Don
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 1:31 PM
> To: axis-user@ws.apache.org; Chen, Donald
> Subject: Re: Error - java.lang.reflect.InvocationTargetException?
> 
> Hi,
> 
> I'm having the same problem and in my case is because my web service
> needs to
> call a method from a common java class. I need to do this, but I think
> that
> isn't possible in Axis. Does your web service has a method call to
> another
> class to?
> 
> --
> 
> Fabricio.
> 
> 
> Citando "Chen, Donald" <[EMAIL PROTECTED]>:
> 
> > Hi, there.
> >
> > I got a "Error - java.lang.reflect.InvocationTargetException" complain
> > when I tried to invoke a web service.
> >
> > Any idea on how to find out what's going wrong?  And what could be the
> > reason(s)?
> >
> > Thanks.
> >
> > Don
> > PS.  Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
> >
> 
> 
> 
> 
> 
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
> 
> 
> 


-- 
Javier Gonzalez Nicolini


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.

Modify SOAP Headers for Authentication

2005-08-17 Thread Jonathan J. Vargas R.
Greets,

I want to get and set the SOAP Headers for the messages transmited
to and from my webservice.

I saw I was able to retrieve SOAP request and response messages from
MessageContext, though, after I save headers they are not really seen 
in the response message so i wondered if this was the right procedure
or it should be done in another way?

I want to work authentication through SOAP Headers, and this is the trivial
web service implementation class that I am using:

--

public class AuthImpl {

public boolean authenticate (String username, String password)
throws AuthServiceException {

boolean isValidUser = false;
try {
MessageContext mc = MessageContext.getCurrentContext ();
SOAPMessage req_message = mc.getRequestMessage ();
SOAPHeader sh = req_message.getSOAPHeader ();


// here how can i retrieve the SOAP Header element named 
"AuthRequest" ?
// ...
// and then i compare its elements against my user's data base
// ...
// and then set isValidUser to true if found..

} catch (SOAPException se) {
// ...
}

if (!isValidUser) {
throw new AuthServiceException (
"Authentication failed for supplied credentials");
}

try {
MessageContext mc = MessageContext.getCurrentContext ();
SOAPMessage resp_message = mc.getResponseMessage ();
SOAPHeader sh = resp_message.getSOAPHeader ();

// and here examine SOAP header element named "AuthResponse" and
// set username, userid and those values retrieved from database
// to proper Soap header elements to be returned to caller.. how ?

} catch (SOAPException se) {
// ...
}

// set this object values with user info extracted from data base..
// and then return it..

return isValidUser;
}

---


-- 
Jonathan J. Vargas Rodriguez
[EMAIL PROTECTED]
"Conservar el silencio interior cuando vuelo en la tormenta me es
mejor, porque asi ya no soy otra gota de la tempestad"


Re: Good basic walk-through needed

2005-08-17 Thread Suresh KC
there are couple of examples that are bundled with your axis distro.
if you want a website
google "OnJava Web Services"

http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html




On 8/16/05, Ian Piper <[EMAIL PROTECTED]> wrote:
> Can anyone point me at a good working walk-through of Web Services using
> Axis (1.1 or 1.2)?
> 
> Tutorials that I have found on the web so far are old (examples using
> features from the beta version of Axis, for instance) and even the first
> tutorial in the Axis User Guide does not work. The URL
> http://soapinterop.org used in example 1 in the operation name is not a
> working url and there is a minor typo in the same line: 
> 
> call.setOperationName(new QName("http://soapinterop.org/";, echoString"));
> //leading " missing
> 
> Any pointers to up-to-date worked (and working) examples would be much
> appreciated.
> 
> Thanks,
> 
> 
> Ian.
> 
> 
> --
> 
> Dr Ian M Piper
> 
> [EMAIL PROTECTED]
> 
> --
> 
> Where is the wisdom we have lost in knowledge? 
> 
> Where is the knowledge we have lost in information?
> 
>


Document/literal example

2005-08-17 Thread Johan Kumps



Hi 
all,
 
Can somebody point 
me to example code of a document/literal webservice?
 
Thanks in 
advance,
 


Versioning of Web Services

2005-08-17 Thread James Wilson
Does anyone have any good resources you can direct me to regarding versioning of
web services?  What strategies are recommended in the schema? What about changes
in the WSDL messages and port bindings that effect the clients?
  -- deprecation of methods?
  -- deployment strategies?

I appreciate any links you can send my way!

Thanks,

-James





[axis2] in-only MEP

2005-08-17 Thread Gordon Gekko

Hi!

I've a question about in-only message exchange pattern and exception.

I've written a client and a server that both manage in-only message 
exchange.  Now, when the server computation goes fine I get back a http 
packet with 202 (accepted) as response code and when something goes 
wrong an exception is raised in the server and I get back an http 
message with response code 500 (internal server error) and a soap fault 
message in the body.  But in the latter case an exception is not raised 
in the client so I cannot notice that something went wrong in the server.


I know that it is called "fire and forget" but I should not be aware 
that something went wrong in the server?  Or am I doing something wrong?


Thanks a lot for any reply!

Diego



Re: How to get hold of current servlet context and session in axis 1.2

2005-08-17 Thread shantanu chawla
it worked !
 
Thanks
 
Shantanu 
On 8/17/05, Javier Gonzalez <[EMAIL PROTECTED]> wrote:
If I see it right, you are missing a step.This instruction:(HttpSession)messageContext.getProperty( 
HTTPConstants.MC_HTTP_SERVLETREQUEST);will return a HttpServletRequest object, not a HttpSessionObject.You need to do:HttpSession session =((HttpServletRequest)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST
)).getSession();On 8/17/05, shantanu chawla <[EMAIL PROTECTED]> wrote:> my webservice running is axis1.2RC3 needs to access current servlet session
> and servletContext. I believe axis is running as a servlet so I can get hold> of the session and servlet context.>> I am using this code:  MessageContext messageContext =
> MessageContext.getCurrentContext();>>  HttpServlet servlet => (HttpServlet)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLET);>  ServletContext servletContext => (ServletContext)servlet.getServletContext();
>>   HttpSession session> =(HttpSession)messageContext.getProperty(> HTTPConstants.MC_HTTP_SERVLETREQUEST);>>  I am getting java.lang.ClassCastException on casting to HttpSession. I am
> doing the right thing>> Thanks>> Shantanu Chawla>>> --> Graduate Student> Department of Computer Science,> San Diego State University
--Javier Gonzalez Nicolini-- Graduate Student Department of Computer Science,San Diego State University 


Re: How to get hold of current servlet context and session in axis 1.2

2005-08-17 Thread Javier Gonzalez
If I see it right, you are missing a step. 

This instruction:
(HttpSession)messageContext.getProperty( HTTPConstants.MC_HTTP_SERVLETREQUEST);

will return a HttpServletRequest object, not a HttpSessionObject.

You need to do:
HttpSession session =((HttpServletRequest)messageContext.getProperty(
HTTPConstants.MC_HTTP_SERVLETREQUEST)).getSession();

On 8/17/05, shantanu chawla <[EMAIL PROTECTED]> wrote:
> my webservice running is axis1.2RC3 needs to access current servlet session
> and servletContext. I believe axis is running as a servlet so I can get hold
> of the session and servlet context. 
>   
> I am using this code: 
>   
>  
> 
>  MessageContext messageContext =
> MessageContext.getCurrentContext(); 
> 
>  HttpServlet servlet =
> (HttpServlet)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLET);
>  ServletContext servletContext =
> (ServletContext)servlet.getServletContext();
> 
>   HttpSession session
> =(HttpSession)messageContext.getProperty(
> HTTPConstants.MC_HTTP_SERVLETREQUEST); 
> 
>  I am getting java.lang.ClassCastException on casting to HttpSession. I am
> doing the right thing 
> 
> Thanks 
> 
> Shantanu Chawla
>
> 
> -- 
> Graduate Student 
> Department of Computer Science,
> San Diego State University 


-- 
Javier Gonzalez Nicolini


How to get hold of current servlet context and session in axis 1.2

2005-08-17 Thread shantanu chawla
my webservice running is axis1.2RC3 needs to access current servlet session and servletContext. I believe axis is running as a servlet so I can get hold of the session and servlet context.
 
I am using this code:
 

 MessageContext messageContext = MessageContext.getCurrentContext();
 HttpServlet servlet = (HttpServlet)messageContext.getProperty(HTTPConstants.MC_HTTP_SERVLET); ServletContext servletContext = (ServletContext)servlet.getServletContext();  HttpSession session =(HttpSession)messageContext.getProperty(
HTTPConstants.MC_HTTP_SERVLETREQUEST);
 I am getting java.lang.ClassCastException on casting to HttpSession. I am doing the right thing
Thanks
Shantanu Chawla   -- Graduate Student Department of Computer Science,San Diego State University 


Re: How to get Envelope String - or other ideas?

2005-08-17 Thread Davanum Srinivas
See http://shemnon.com/speling/archives/98.html on how to set the
cookie by yourself.

-- dims

On 8/17/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> 
> I have to write a web service client in short time that calls a web service
> running on a WebSphere app server.  The service is not under my control as
> it is a vendor product.  The service is in our SSO domain so we can call it
> with the LTPA token as a cookie(actually its a requirement for SSO since it
> is a background call) and not require the user's password.  I didnt see a
> way to do this using the custom cookie (LtpaToken) with Axis even though
> similar things were hashed over in hundreds of posts to this list.  For now
> I have a quick solution using Apache SOAP that works where: I use Apache
> SOAP to build the request envelope then unmarshal it into String, use
> Commons HttpClient to send it after adding the Http Header representing the
> LtpaToken as a cookie to the request, then use Apache SOAP to marshal the
> response back into a response envelope for processing.  Its convoluted, I
> know, but the SSO works and I didnt see a better way in the time I need it
> done. 
>  
> The problem is that some of the vendors services take org.w3c.dom.Elements
> as arguments and Apache SOAP has no serializers/deserializers for (literal)
> Elements.  Apache Axis handles org.w3c.dom.Elements fine, but it appears to
> be a much more difficult proposition to get the String, or byte[]
> representation of the Envelope that it intends to send across the wire, user
> HttpClient to actually send it, and then to build a response envelope from
> the response bytes that come back through HttpClient.  Can anyone point me
> to a quick way to do one, or both?  Or am I missing the boat and there is an
> easier way to add the cookie to the request when Axis goes to send the
> request?
>  
> Thanks in advance.
> Mike 
>  


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform


How to get Envelope String - or other ideas?

2005-08-17 Thread Mike . Witters
I have to write a web service client in short time that calls a web service running on a WebSphere app server.  The service is not under my control as it is a vendor product.  The service is in our SSO domain so we can call it with the LTPA token as a cookie(actually its a requirement for SSO since it is a background call) and not require the user's password.  I didnt see a way to do this using the custom cookie (LtpaToken) with Axis even though similar things were hashed over in hundreds of posts to this list.  For now I have a quick solution using Apache SOAP that works where: I use Apache SOAP to build the request envelope then unmarshal it into String, use Commons HttpClient to send it after adding the Http Header representing the LtpaToken as a cookie to the request, then use Apache SOAP to marshal the response back into a response envelope for processing.  Its convoluted, I know, but the SSO works and I didnt see a better way in the time I need it done.  The problem is that some of the vendors services take org.w3c.dom.Elements as arguments and Apache SOAP has no serializers/deserializers for (literal) Elements.  Apache Axis handles org.w3c.dom.Elements fine, but it appears to be a much more difficult proposition to get the String, or byte[] representation of the Envelope that it intends to send across the wire, user HttpClient to actually send it, and then to build a response envelope from the response bytes that come back through HttpClient.  Can anyone point me to a quick way to do one, or both?  Or am I missing the boat and there is an easier way to add the cookie to the request when Axis goes to send the request? Thanks in advance.Mike  

Re: AW: Axis on IBM websphere5.0

2005-08-17 Thread Davanum Srinivas
Mick,

Choices are as follows:

Get support for Axis from Covalent:
http://news.google.com/news?q=covalent+axis

Or use the certified stack from SourceLabs which includes Axis:
http://news.google.com/news?q=sourcelabs+axis

Or Switch to Geronimo which IBM supports and which embeds Axis:
(http://www.internetnews.com/dev-news/article.php/3526276)

Anyways, *ASK* for a refund from the BigCo :)

-- dims


On 8/17/05, Mick Knutson <[EMAIL PROTECTED]> wrote:
> Yes, removing webservices.jar DOES work.
> HOWEVER!
> 
> You CTO my skin you alive when the boat load of money you spent on WAS is
> lost as IBM will void all warrenty and support by deleting this jar. THUS,
> you might as well go with JBoss in that case... :-)
> 
> 
> Thank You
> Mick Knutson
> 
> Sr. Java/J2EE Consultant
> BASE logic, inc.
> (415) 648-1804 (S.F., CA)
> http://www.BASELogic.com
> 
> HP Consulting Services (Walnut Creek, CA)
> 
> 
> 
> 
> >From: [EMAIL PROTECTED]
> >Reply-To: axis-user@ws.apache.org
> >To: axis-user@ws.apache.org
> >Subject: RE: AW: Axis on IBM websphere5.0
> >Date: Wed, 17 Aug 2005 16:29:45 +
> >
> >I, also am running Axis 1.2.1 on WebSphere 5.1.
> >
> >In my case, however, we're using a custom transport for JMS because the
> >existing one didn't support our needs--so if there are conflicts with the
> >HTTP/HTTPS handling, I wouldn't run into them.
> >
> >WSDL2Java generation worked great once I got the WSAD jars off my
> >classpath... (I was fooled for several days because I didn't realize I was
> >generating the old classes from the WSAD built-in WSDL2Java code).
> >
> >I am also running only as a client, and not a service, so it's possible
> >I've managed to avoid some problems that way.
> >
> >The marshalling/unmarshalling for rpc-encoded xml seems to be working
> >wonderfully, though, and that's the piece I really wanted Axis for, since
> >JAXB 1.5 cannot read the Siebel-generated WSDL I have, and can't handle
> >rpc-encoded services anyway (at least, from what I've been able to learn).
> >XMLBeans reads the WSDL, but also can't seem to handle the rpc-encoded
> >messages (at least, not without me hand-creating some schemas for the
> >message elements).
> >
> >Meghan Pietila
> >Granite Consulting
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform


DIMEBodyPart question

2005-08-17 Thread Paul Grillo








There are very few questions, and less answers on DIME support for Axis
out there, but I’ll give this a try.

 

If I turn on DIME support and attach normally, the system appears to send
using DIME making assumptions, I assume, as to how to fill out the header
information.

 

I noticed DimeBodyPart.  Was/Is this class meant to be
usable/constructable and then passed to axis for attachment/use?  Or is it
used internally (perhaps) in some way to help map AttachmentPart to DimeBodyPart?


 

I simply want to see if I can set the ID and Type in the DIME header,
which this class appears to allow. Is this class or these fields available to
be set?  Perhaps a mapping in AttachmentPart?

 

Whoever wrote this or has used this (DimeBodyPart), perhaps could send a
few words to set me in the right direction. 

 

Any clues would be helpful.

 

thanks

 

 








RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread pietila . meghan
Just to clarify--

We have not removed a "webservices.jar" file or made any modifications to our 
WebSphere install.  You haven't described what problems you ran into; perhaps 
one of the circumstances of my setup is protecting us from the error--the fact 
that we don't use HTTP/HTTPS, or that we are not hosting any services but 
merely running clients, or the custom transport layer that I wrote and plugged 
in (to give us the JMS support we needed).

I'm certainly not saying that the knowledge you have gained is not a good 
warning for others, but it appears that in some circumstances, Axis 1.2.1 can 
be used on WebSphere 5.1.

Meghan Pietila
Granite Consulting


>>>Original messages below:
>From [EMAIL PROTECTED] on 08/17/2005 at 01:24 PM CST:

Yes, removing webservices.jar DOES work.
HOWEVER!

You CTO my skin you alive when the boat load of money you spent on WAS is 
lost as IBM will void all warrenty and support by deleting this jar. THUS, 
you might as well go with JBoss in that case... :-)


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




>From: [EMAIL PROTECTED]
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: RE: AW: Axis on IBM websphere5.0
>Date: Wed, 17 Aug 2005 16:29:45 +
>
>I, also am running Axis 1.2.1 on WebSphere 5.1.
>
>In my case, however, we're using a custom transport for JMS because the 
>existing one didn't support our needs--so if there are conflicts with the 
>HTTP/HTTPS handling, I wouldn't run into them.
>
>WSDL2Java generation worked great once I got the WSAD jars off my 
>classpath... (I was fooled for several days because I didn't realize I was 
>generating the old classes from the WSAD built-in WSDL2Java code).
>
>I am also running only as a client, and not a service, so it's possible 
>I've managed to avoid some problems that way.
>
>The marshalling/unmarshalling for rpc-encoded xml seems to be working 
>wonderfully, though, and that's the piece I really wanted Axis for, since 
>JAXB 1.5 cannot read the Siebel-generated WSDL I have, and can't handle 
>rpc-encoded services anyway (at least, from what I've been able to learn).  
>XMLBeans reads the WSDL, but also can't seem to handle the rpc-encoded 
>messages (at least, not without me hand-creating some schemas for the 
>message elements).
>
>Meghan Pietila
>Granite Consulting





RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread Mick Knutson
mapping between a Service on an Nonstop server (NSK) running Axis, and WAS 
5.1.1.3
The wsdl is comming from the NSK and takes special mapping to work with the 
ibm wsdl2java.

And our cto will never allow us to void the ibm warrenty


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)





From: "Wierenga, R. - SPLXE" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: RE: AW: Axis on IBM websphere5.0
Date: Wed, 17 Aug 2005 18:13:13 +0200

Not supported?

I'm providing a soap/http webservice (without any security) using Axis on
WAS 5.1 and it works fine. I don't know about WAS 5.0 though. That could be
different. Oh and I also use custom (de)serialization using jaxb because 
the

wsdl2java tool is not as extensive as jaxb's generation tool.

What kind of problems do you have Mick?

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 17, 2005 6:02 PM
To: axis-user@ws.apache.org
Subject: RE: AW: Axis on IBM websphere5.0

AXIS IS NOT SUPPORTED ON WAS 5.x

This means, you either have to delete webservices.jar in was, or convert
100% of your webservices to WAS's implementation of SOAP/Jaxrpc and use
WAS:Wsdl2Java, not Axis:wsdl2Java

I just pissed away 2 weeks killing myself with IBM support on this issue, 
and feel it a waste that anyone else kill themselves over the IBM

proprietary WS implementation.
Hope I can help.


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




>From: "Dorner, Thomas" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: AW: Axis on IBM websphere5.0
>Date: Wed, 17 Aug 2005 11:00:04 +0200
>
>You have to set saaj.jar in the classpath of WebSphere - see mailinglist
>
>
>
>
>Thomas Dorner
>Systementwickler
>
>T-Systems International GmbH
>
>Service Line Systems Integration
>BC EPDM/D Design & Prototype Data Management
>Fasanenweg 5, D-70771 Leinfelden-Echterdingen
>
>Tel.:+49/711 972 - 44747
>Fax.:   +49/711 972 - 90330
>
>Email:[EMAIL PROTECTED]
>Internet: http://www.t-systems.de
>
>
>
>
>
>-Ursprüngliche Nachricht-
>Von: Pradeep Chauhan [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 17. August 2005 10:51
>An: axis-user@ws.apache.org
>Betreff: Axis on IBM websphere5.0
>
>Hi All,
>
>Can we use AXIS on IBM websphere 5.0? if yes then Is there any extra
>activities need to perform.
>
>Regards,
>Pradeep Chauhan
>
>
>
>DISCLAIMER:
>This message, including any attachments contains confidential and
>privileged
>information for the sole use of the intended recipient(s), and is 
protected

>by law.
>If you are not the intended recipient, please 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.
>Indus and R Systems International Ltd reserves the right to record,
>monitor,
>and inspect all email communications through its internal and external
>networks. Your messages shall be subject to such lawful supervision as
>Indus
>and R Systems International Ltd deems necessary in order to protect its
>information, interests and reputation.
>Indus and R Systems International Ltd prohibits and takes steps to 
prevent
>its information systems from being used to view, store or forward 
offensive

>or discriminatory material.



**
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential 
and privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment 
may be disclosed, copied or distributed, and that any other action related 
to this e-mail or attachment is strictly prohibited, and may be unlawful. 
If you have received this e-mail by error, please notify the sender 
immediately by return e-mail, and delete this message. Koninklijke 
Luchtvaart Maatschappij NV (KLM), its subsidiaries and/or its employees 
shall not be liable for the incorrect or incomplete transmission of this 
e-mail or any attachments, nor responsible for any delay in receipt.

**






RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread Mick Knutson

Yes, removing webservices.jar DOES work.
HOWEVER!

You CTO my skin you alive when the boat load of money you spent on WAS is 
lost as IBM will void all warrenty and support by deleting this jar. THUS, 
you might as well go with JBoss in that case... :-)



Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)





From: [EMAIL PROTECTED]
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: RE: AW: Axis on IBM websphere5.0
Date: Wed, 17 Aug 2005 16:29:45 +

I, also am running Axis 1.2.1 on WebSphere 5.1.

In my case, however, we're using a custom transport for JMS because the 
existing one didn't support our needs--so if there are conflicts with the 
HTTP/HTTPS handling, I wouldn't run into them.


WSDL2Java generation worked great once I got the WSAD jars off my 
classpath... (I was fooled for several days because I didn't realize I was 
generating the old classes from the WSAD built-in WSDL2Java code).


I am also running only as a client, and not a service, so it's possible 
I've managed to avoid some problems that way.


The marshalling/unmarshalling for rpc-encoded xml seems to be working 
wonderfully, though, and that's the piece I really wanted Axis for, since 
JAXB 1.5 cannot read the Siebel-generated WSDL I have, and can't handle 
rpc-encoded services anyway (at least, from what I've been able to learn).  
XMLBeans reads the WSDL, but also can't seem to handle the rpc-encoded 
messages (at least, not without me hand-creating some schemas for the 
message elements).


Meghan Pietila
Granite Consulting





Re: [Axis2] Consuming axis2 webservice with .net client

2005-08-17 Thread shantanu chawla
yes I did that. I named my wsdl to service.wsdl and is in META-INF
> folder along with service.xml while building my .aar. Attached is my
> aar.
> 
> Shantanu

On 8/17/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> Shantanu,
> 
> did you drop the wsdl that you used in the META-INF directory inside
> the service jar (parallel to service.xml)?
> 
> -- dims
> 
> On 8/17/05, shantanu chawla <[EMAIL PROTECTED]> wrote:
> > I have created a simple axis2 webservice name test with a function
> > Hello that accepts a String param and returns a String.
> >
> > I can consume the webservice with an axis client.
> >
> > But how can I access the service in a .net client. When I fires my
> > visual studio and tries to add web reference to the my webservice as
> > http://localhost:8080/axis2/services/test?wsdl
> >
> > I can see it shows test description with the method Hello but VS
> > displays the message "The HTML document does not contain Web service
> > discovery information".
> >
> > though the same url in the browser displays the wsdl on the screen.
> >
> > Does anyone knows how to access the axis2 webservice in Visual  Studio .NET 
> > 03
> >
> > Thanks
> >
> > Shantanu Chawla
> >
> > --
> > Graduate Student
> > Department of Computer Science,
> > San Diego State University
> >
> 
> 
> --
> Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform
> 


-- 
Graduate Student 
Department of Computer Science,
San Diego State University


Re: [Axis2] Consuming axis2 webservice with .net client

2005-08-17 Thread Davanum Srinivas
Shantanu,

did you drop the wsdl that you used in the META-INF directory inside
the service jar (parallel to service.xml)?

-- dims

On 8/17/05, shantanu chawla <[EMAIL PROTECTED]> wrote:
> I have created a simple axis2 webservice name test with a function
> Hello that accepts a String param and returns a String.
> 
> I can consume the webservice with an axis client.
> 
> But how can I access the service in a .net client. When I fires my
> visual studio and tries to add web reference to the my webservice as
> http://localhost:8080/axis2/services/test?wsdl
> 
> I can see it shows test description with the method Hello but VS
> displays the message "The HTML document does not contain Web service
> discovery information".
> 
> though the same url in the browser displays the wsdl on the screen.
> 
> Does anyone knows how to access the axis2 webservice in Visual  Studio .NET 03
> 
> Thanks
> 
> Shantanu Chawla
> 
> --
> Graduate Student
> Department of Computer Science,
> San Diego State University
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform


[Axis2] Consuming axis2 webservice with .net client

2005-08-17 Thread shantanu chawla
I have created a simple axis2 webservice name test with a function
Hello that accepts a String param and returns a String.

I can consume the webservice with an axis client.

But how can I access the service in a .net client. When I fires my
visual studio and tries to add web reference to the my webservice as
http://localhost:8080/axis2/services/test?wsdl

I can see it shows test description with the method Hello but VS
displays the message "The HTML document does not contain Web service
discovery information".

though the same url in the browser displays the wsdl on the screen.

Does anyone knows how to access the axis2 webservice in Visual  Studio .NET 03

Thanks

Shantanu Chawla

-- 
Graduate Student 
Department of Computer Science,
San Diego State University


[Axis2] Webservice as RESTful webservice

2005-08-17 Thread shantanu chawla
I have created a simple test webservice using axis2. My webservice
name is test and It has a simple function named Hello that takes a
string parameter and returns another string parameter

String Hello(String)

I created the axis server and clients using WSDL2Java.
I can consume the webservice using axis client. thats ok
I want to consume the webservice as RESTful webservice so that I can
test it by issuing GET command from the url as

http://localhost:8080/axis2/services/test/Hello

I have uncommented the line in axis2.xml to enable REST support. but I
am getting this error.

 
- http://schemas.xmlsoap.org/soap/envelope/";>
   
- 
- 
  Client 
  Data binding error; nested exception is:
java.lang.RuntimeException: Data binding error
  http://myAxisServer/role/default 
- 
  Data binding error; nested exception is:
java.lang.RuntimeException: Data binding error
  
  
  
  

Can someone tell me wht is the error. or I am doing wrong. this is
first time I am using axis2.

Shantanu Chawla

-- 
Graduate Student 
Department of Computer Science,
San Diego State University


RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread pietila . meghan
I, also am running Axis 1.2.1 on WebSphere 5.1.  

In my case, however, we're using a custom transport for JMS because the 
existing one didn't support our needs--so if there are conflicts with the 
HTTP/HTTPS handling, I wouldn't run into them.

WSDL2Java generation worked great once I got the WSAD jars off my classpath... 
(I was fooled for several days because I didn't realize I was generating the 
old classes from the WSAD built-in WSDL2Java code).

I am also running only as a client, and not a service, so it's possible I've 
managed to avoid some problems that way.

The marshalling/unmarshalling for rpc-encoded xml seems to be working 
wonderfully, though, and that's the piece I really wanted Axis for, since JAXB 
1.5 cannot read the Siebel-generated WSDL I have, and can't handle rpc-encoded 
services anyway (at least, from what I've been able to learn).  XMLBeans reads 
the WSDL, but also can't seem to handle the rpc-encoded messages (at least, not 
without me hand-creating some schemas for the message elements).

Meghan Pietila
Granite Consulting


RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread Wierenga, R. - SPLXE
Not supported?

I'm providing a soap/http webservice (without any security) using Axis on
WAS 5.1 and it works fine. I don't know about WAS 5.0 though. That could be
different. Oh and I also use custom (de)serialization using jaxb because the
wsdl2java tool is not as extensive as jaxb's generation tool.

What kind of problems do you have Mick?

-Original Message-
From: Mick Knutson [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 17, 2005 6:02 PM
To: axis-user@ws.apache.org
Subject: RE: AW: Axis on IBM websphere5.0

AXIS IS NOT SUPPORTED ON WAS 5.x

This means, you either have to delete webservices.jar in was, or convert 
100% of your webservices to WAS's implementation of SOAP/Jaxrpc and use 
WAS:Wsdl2Java, not Axis:wsdl2Java

I just pissed away 2 weeks killing myself with IBM support on this issue, and 
feel it a waste that anyone else kill themselves over the IBM 
proprietary WS implementation.
Hope I can help.


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)




>From: "Dorner, Thomas" <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: AW: Axis on IBM websphere5.0
>Date: Wed, 17 Aug 2005 11:00:04 +0200
>
>You have to set saaj.jar in the classpath of WebSphere - see mailinglist
>
>
>
>
>Thomas Dorner
>Systementwickler
>
>T-Systems International GmbH
>
>Service Line Systems Integration
>BC EPDM/D Design & Prototype Data Management
>Fasanenweg 5, D-70771 Leinfelden-Echterdingen
>
>Tel.:+49/711 972 - 44747
>Fax.:   +49/711 972 - 90330
>
>Email:[EMAIL PROTECTED]
>Internet: http://www.t-systems.de
>
>
>
>
>
>-Ursprüngliche Nachricht-
>Von: Pradeep Chauhan [mailto:[EMAIL PROTECTED]
>Gesendet: Mittwoch, 17. August 2005 10:51
>An: axis-user@ws.apache.org
>Betreff: Axis on IBM websphere5.0
>
>Hi All,
>
>Can we use AXIS on IBM websphere 5.0? if yes then Is there any extra
>activities need to perform.
>
>Regards,
>Pradeep Chauhan
>
>
>
>DISCLAIMER:
>This message, including any attachments contains confidential and 
>privileged
>information for the sole use of the intended recipient(s), and is protected
>by law.
>If you are not the intended recipient, please 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.
>Indus and R Systems International Ltd reserves the right to record, 
>monitor,
>and inspect all email communications through its internal and external
>networks. Your messages shall be subject to such lawful supervision as 
>Indus
>and R Systems International Ltd deems necessary in order to protect its
>information, interests and reputation.
>Indus and R Systems International Ltd prohibits and takes steps to prevent
>its information systems from being used to view, store or forward offensive
>or discriminatory material.



**
For information, services and offers, please visit our web site: 
http://www.klm.com. This e-mail and any attachment may contain confidential and 
privileged material intended for the addressee only. If you are not the 
addressee, you are notified that no part of the e-mail or any attachment may be 
disclosed, copied or distributed, and that any other action related to this 
e-mail or attachment is strictly prohibited, and may be unlawful. If you have 
received this e-mail by error, please notify the sender immediately by return 
e-mail, and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), 
its subsidiaries and/or its employees shall not be liable for the incorrect or 
incomplete transmission of this e-mail or any attachments, nor responsible for 
any delay in receipt.
**



RE: AW: Axis on IBM websphere5.0

2005-08-17 Thread Mick Knutson

AXIS IS NOT SUPPORTED ON WAS 5.x

This means, you either have to delete webservices.jar in was, or convert 
100% of your webservices to WAS's implementation of SOAP/Jaxrpc and use 
WAS:Wsdl2Java, not Axis:wsdl2Java


I just pissed away 2 weeks killing myself with IBM support on this issue, 
and feel it a waste that anyone else kill themselves over the IBM 
proprietary WS implementation.

Hope I can help.


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)





From: "Dorner, Thomas" <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: AW: Axis on IBM websphere5.0
Date: Wed, 17 Aug 2005 11:00:04 +0200

You have to set saaj.jar in the classpath of WebSphere - see mailinglist




Thomas Dorner
Systementwickler

T-Systems International GmbH

Service Line Systems Integration
BC EPDM/D Design & Prototype Data Management
Fasanenweg 5, D-70771 Leinfelden-Echterdingen

Tel.:+49/711 972 - 44747
Fax.:   +49/711 972 - 90330

Email:[EMAIL PROTECTED]
Internet: http://www.t-systems.de





-Ursprüngliche Nachricht-
Von: Pradeep Chauhan [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. August 2005 10:51
An: axis-user@ws.apache.org
Betreff: Axis on IBM websphere5.0

Hi All,

Can we use AXIS on IBM websphere 5.0? if yes then Is there any extra
activities need to perform.

Regards,
Pradeep Chauhan



DISCLAIMER:
This message, including any attachments contains confidential and 
privileged

information for the sole use of the intended recipient(s), and is protected
by law.
If you are not the intended recipient, please 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.
Indus and R Systems International Ltd reserves the right to record, 
monitor,

and inspect all email communications through its internal and external
networks. Your messages shall be subject to such lawful supervision as 
Indus

and R Systems International Ltd deems necessary in order to protect its
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent
its information systems from being used to view, store or forward offensive
or discriminatory material.





WS examples for handling modestly complex input parameters and return types

2005-08-17 Thread Chen, Donald
Hi, there.

I am a newbie of Axis and looking for code examples of WS(both service
and client) which has input parameters like array and/or hash, and
return types like array/hash.  

I found no such samples included in the Axis release.

Any type clue(such as a URL) will be appreciated!

Don


RE: RES: Error - java.lang.reflect.InvocationTargetException?

2005-08-17 Thread Chen, Donald
Fabricio,

I think I have fixed my problem.  What I did is put all the necessary 
classpaths to the Tomcat|Properties|JavaClasspath, and restarted the Tomcat.

After doing that, the problem is gone.

I tried to put all the necessary classes into the 
[TOMCAT]webapps\axis\WEB-INF\classes and it didn't work for me either.

I guess, all the axis specific classes need to go to the 
[TOMCAT]webapps\axis\WEB-INF\classes, while the Tomcat specific classes go to 
the Tomcat|Properties|JavaClasspath.

Hope it will work for you too.

Don

-Original Message-
From: Fabrício [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 16, 2005 7:21 PM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RES: RES: Error - java.lang.reflect.InvocationTargetException?

Javier,

Where I have to put the class? I putted it into
[TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more
clear please!?!

Thanks a lot!

Fabrício

-Mensagem original-
De: Javier Gonzalez [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 16 de agosto de 2005 18:34
Para: axis-user@ws.apache.org
Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException?

I'm not sure I'm understanding you two - calling all sorts of Java
classes is possible with axis. Are you sure you have all the needed
classes in the webapp classpath?

Does your class need special parameters for its constructor?

On 8/16/05, Fabrício <[EMAIL PROTECTED]> wrote:
> Hi Donald,
> 
> In my case, I really need to have the call to method from another class.
My
> web service is a kind of wrapper for a legacy application. And to do the
> call, it's necessary to escort stdin and stderr. And I'm doing this with
two
> threads. As:
> 
> cmd = "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs";
> process = Runtime.getRuntime().exec(cmd);
> 
> StringBuffer inBuffer = new StringBuffer();
> InputStream inStream = processo.getInputStream();
> new InputStreamHandler( inBuffer, inStream );
> 
> StringBuffer errBuffer = new StringBuffer();
> InputStream errStream = processo.getErrorStream();
> new InputStreamHandler( errBuffer , errStream );
> 
> process.waitFor();
> 
> The InputStreamHandler is another java class. I really don't know how to
> solve it without the use of these threads (another class). :'-(
> 
> --
> 
> Fabrício.
> 
> -Mensagem original-
> De: Chen, Donald [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 16 de agosto de 2005 16:14
> Para: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Assunto: RE: Error - java.lang.reflect.InvocationTargetException?
> 
> Yes, exactly.
> 
> The moment I let the method in the WS call another class, I got the
> problem.
> 
> Looks like we are on the same boat.
> 
> Right now, I am trying to rewrite the service provider class to avoid
> the unnecessary calling.
> 
> Also, I suspect the Tomcat is not able to find all the necessary jars to
> facilitating the call.
> 
> Let me know what's your finding?
> 
> Don
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 1:31 PM
> To: axis-user@ws.apache.org; Chen, Donald
> Subject: Re: Error - java.lang.reflect.InvocationTargetException?
> 
> Hi,
> 
> I'm having the same problem and in my case is because my web service
> needs to
> call a method from a common java class. I need to do this, but I think
> that
> isn't possible in Axis. Does your web service has a method call to
> another
> class to?
> 
> --
> 
> Fabricio.
> 
> 
> Citando "Chen, Donald" <[EMAIL PROTECTED]>:
> 
> > Hi, there.
> >
> > I got a "Error - java.lang.reflect.InvocationTargetException" complain
> > when I tried to invoke a web service.
> >
> > Any idea on how to find out what's going wrong?  And what could be the
> > reason(s)?
> >
> > Thanks.
> >
> > Don
> > PS.  Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
> >
> 
> 
> 
> 
> 
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
> 
> 
> 


-- 
Javier Gonzalez Nicolini


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005




Re: Using global variables in Axis (HttpSession and ServletContext)

2005-08-17 Thread Jeff Greif
You can get access to the MessageContext in your threads IF you put it 
there yourself instead of depending on the static  method 
MessageContext.getCurrentContext().  Having invoked that method where it 
works (the thread handling the web service request), you can place the 
result in a thread local of other threads.


That is, if your thread lives for the processing of a single request, 
you can copy the message context reference to it when you create the 
thread.   Otherwise you copy it to the thread each time it starts 
processing a request. 


Jeff

Juha Kononen wrote:


Thanks for advise!

Too bad that it's not possible to get an access to MessageContext in
user's own threads.
Does this mean that the session mechanism can be used only partially in
axis (because there is no
way to get HttpSession in threads)? I had an idea to use HttpSession as
a global variable in each session where to
store session-specific information (data sent by a client) for each
client. This global
session-specific storage would help me to get data directly instead of
passing it
to objects and threads via many function parameters (in contrast to
HttpSession I use ServletContext as a global variable
for storing a reference to a database pool). Of course, I could get the
data sent by a client via a static class variable
in my DSServiceSOAPBindingImpl class. But unfortunately class variables
are shared with all sessions, so that will not work if
I want my class variables to be session-spefic. So is there any way I
can use a global, session-specific variable anywhere in
my server-side code (including those threads)? Java doesn't have global
variables, but don't we still need them? :)

Juha

 





Change attachment file name

2005-08-17 Thread Ferruh Zamangoer








Hi,

 

I want to know if it is possible to store attachments
files with the real name. If I send for example a file like star.mp3 on the
server side the file is stored as Axis333.att in the attachment directory. How
can I change it or do I have rename it manually?

 

Thanks for any help in advance.

 

Regards

Ferruh   








ArrayStoreException when reading reply from Indy Soap

2005-08-17 Thread tobiasextern
Hi.

I am having problems with Axis (1.2.1) when receiving an answer from a 
webservice that is provided by a server implemented in Delphi using Indy 9 and 
Indy Soap. While deserializing the SOAP response, I get an 
"ArrayStoreException", which is thrown in  ArrayDeserializer.valueComplete(). 
To be more specific: it is caught at first, but then its thrown again in 
super.valueComplete() but not caught then. The current "value" in 
ArrayDeserializer holds .arrayClass = TourVorschlag[] but contains in 
elementData[] one entry of class TourVorschlag and one entry of class 
ArrayDeserializer$ArrayListExtension. The latter ist the problem. It is the 
reason why the exception is thrown, when an element of type ArrayListExtension 
is tried to fit in an array of type TourVorschlag[].

When tracing the call it seems that the "top" element of the response: 
"getZeitfensterListeReturn" (see "Delphi SOAP server respons" at the bottom) is 
parsed completely without an error - including all the references objects. But 
after that the item0, item1 and item2 items are parsed. And then the exception 
is raised.

By the way: When I would use a method with a single complex type as return 
value, the response from the Delphi soap server would always be parsed by Axis 
as array containg the same object twice. Returning arrays of a complex type is 
not a problem though! So I changed the webservices to always return Arrays of 
complex types instead of a single instance.

The problem described above only occurs when the returned complex type contains 
an array of another complex type (case a). Returning an array of a complex type 
which does not contain an array of a complex type (case b) works perfectly.

case a: Example
  public Comp1[] getComp1FromWebservice();
  public class Comp1 {
Comp2[] nestedArray= null;
  }

case b: Example
  public Comp2[] getComp2FromWebservice();
  public class Comp2 {
int somePrimitive= 0;
  }

To make a long story short (I invested quite some hours tracing through axis 
code). The same server set up with Tomcat 5.0 and axis delivers a slightly 
different answer to the request which in turn is parsed by axis without a 
problem (as expected).

No to my question: Maybe someone can hint on the differences between the two 
server responses to circle the problem a bit closer? To me the two answers look 
somehow similar at first sight. And I don't understand why axis has the problem 
described above when receiving the answer from the Delphi server.

First: the answer from the SOAP server implemented in Delphi using Indy
Second: the answer given by the server implemented in Java using Axis

Kind regards,
Tobias.

P.S.: For now I solved the problem by instructing the Delphi server not to use 
references. No. 3 (see below) shows the server response in this case.



No. 1
Delphi SOAP server respons:


- http://www.w3.org/2001/XMLSchema"; 
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- 
- http://schemas.xmlsoap.org/soap/encoding/";>
  0815
  
  
  
 
 
- http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:ns="urn:inform-ac.com/zfserver/v1/" 
xmlns:ns1="http://soap.data.inform.com";>
- 
- http://schemas.xmlsoap.org/soap/encoding/";>
- 
  
  
  
  
- 
  
  2005-08-16T14:40:52.453+02:00
  
  
- 
  
  2005-08-16T14:40:52.453+02:00
  
  
- 
  
  2005-08-16T14:40:52.453+02:00
  
  
- 
  
  
  
  1990-01-01T08:00:00+02:00
  
  
  false
  
  
  false
  0
  0
  1990-01-01T07:00:00+02:00
- 
  
  
  
- 
  
  
  
  1990-01-01T12:00:00+02:00
  
  
  false
  
  
  false
  0
  0
  1990-01-01T11:00:00+02:00
- 
  
  
  
- 
  
  
  
  1990-01-01T17:00:00+02:00
  
  
  false
  
  
  false
  0
  0
  1990-01-01T16:00:00+02:00
- 
  
  
  
  
  
  
 


No. 2
Java SOAP server response:


- http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
- 
- http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="urn:inform-ac.com/zfserver/v1/">
- http://soap.data.inform.com"; 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";>
  
  
  
  
  
- http://schemas.xmlsoap.org/soap/encoding/"; 
xsi:type="ns3:Zeitfenster" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns3="http://soap.data.inform.com";>
  3
  
  
  
  
  
  
  
  
  
  
  
  
- 
  
  
  
  
- http://schemas.xmlsoap.org/soap/encoding/"; 
xsi

RE: [SPAM_EMAIL] - Using global variables in Axis (HttpSession andServletContext) - Email has different SMTP TO: and MIME TO: fields in the email addresses

2005-08-17 Thread Mohit.Gupta
Hi,

Solution is purely dependent on your requirements and the scenarios.

If you are not using the thread pools:

- Install a handler on your request path.
- Maintain a InheritableThreadLocal with this handler.
- Set the session to this thread local variable whenever a request is received 
by this  handler.
- Expose a method to get the session - getSession.
- Now the main thread and all its child thread can access this property.


But if you are using thread pools, then the problem is complicate. And the 
possible solution  is 

- Maintain a Inheritable thread local variable i.e. property store in every 
component or  taskwhich can be started in a new thread.
- Modify the thread pool in such a way that any parameter can be passed to the 
thread pool.
- Use this parameter to set the thread local variable of the task i.e. the 
component, after  starting the task in a thread.
- This may help you to get the access for this property.

Thanks
Mohit.

-Original Message-
From: Juha Kononen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 17, 2005 3:58 PM
To: axis-user@ws.apache.org
Subject: [SPAM_EMAIL] - Using global variables in Axis (HttpSession
andServletContext) - Email has different SMTP TO: and MIME TO: fields in
the email addresses


Thanks for advise!

 Too bad that it's not possible to get an access to MessageContext in
user's own threads.
Does this mean that the session mechanism can be used only partially in
axis (because there is no
way to get HttpSession in threads)? I had an idea to use HttpSession as
a global variable in each session where to
store session-specific information (data sent by a client) for each
client. This global
session-specific storage would help me to get data directly instead of
passing it
to objects and threads via many function parameters (in contrast to
HttpSession I use ServletContext as a global variable
for storing a reference to a database pool). Of course, I could get the
data sent by a client via a static class variable
in my DSServiceSOAPBindingImpl class. But unfortunately class variables
are shared with all sessions, so that will not work if
I want my class variables to be session-spefic. So is there any way I
can use a global, session-specific variable anywhere in
my server-side code (including those threads)? Java doesn't have global
variables, but don't we still need them? :)

Juha

>>> [EMAIL PROTECTED] 08/16 4:18  >>>
The message context returned from this method is held in a thread-local

variable of the thread handling the web service request.  This is the
way a 
static method can be used to return a message context correctly for 
simultaneously-handled web service requests of various kinds.  However,
it 
only works in the request-handling threads (i.e., the ones in which the

implementation method of the web service operation is called).

Jeff
- Original Message - 
From: Juha Kononen
To: axis-user@ws.apache.org 
Sent: Tuesday, August 16, 2005 4:03 AM
Subject: The static MessageContext.getCurrentContext method
doesn'twork


Hi, I have a problem with using the MessageContext.getCurrentContext
method 
in my server-side code.
I would like to get the current context to able to get an access to the

current session. Well, everything works just fine if I use the 
getCurrentContext method in one of my own objects, but something
strange 
happends when I'm trying to use this method inside a thread. Everytime
I 
call the MessageContext.getCurrentContext method in a thread it returns
only 
null. Is this a bug? As I told, the the
MessageContext.getCurrentContext 
method works great, I can get my MessageContext object, if I don't use
the 
method in threads. Have you guys got this method working in threads?
Even if 
I can pass a MessageContext reference into a thread via a static
variable 
the getCurrentContext doesn't work. There's got to be something wrong
with 
this method. Because of this problem it's impossible to make use of the

session mechanism in threads. 




Using global variables in Axis (HttpSession and ServletContext)

2005-08-17 Thread Juha Kononen
Thanks for advise!

 Too bad that it's not possible to get an access to MessageContext in
user's own threads.
Does this mean that the session mechanism can be used only partially in
axis (because there is no
way to get HttpSession in threads)? I had an idea to use HttpSession as
a global variable in each session where to
store session-specific information (data sent by a client) for each
client. This global
session-specific storage would help me to get data directly instead of
passing it
to objects and threads via many function parameters (in contrast to
HttpSession I use ServletContext as a global variable
for storing a reference to a database pool). Of course, I could get the
data sent by a client via a static class variable
in my DSServiceSOAPBindingImpl class. But unfortunately class variables
are shared with all sessions, so that will not work if
I want my class variables to be session-spefic. So is there any way I
can use a global, session-specific variable anywhere in
my server-side code (including those threads)? Java doesn't have global
variables, but don't we still need them? :)

Juha

>>> [EMAIL PROTECTED] 08/16 4:18  >>>
The message context returned from this method is held in a thread-local

variable of the thread handling the web service request.  This is the
way a 
static method can be used to return a message context correctly for 
simultaneously-handled web service requests of various kinds.  However,
it 
only works in the request-handling threads (i.e., the ones in which the

implementation method of the web service operation is called).

Jeff
- Original Message - 
From: Juha Kononen
To: axis-user@ws.apache.org 
Sent: Tuesday, August 16, 2005 4:03 AM
Subject: The static MessageContext.getCurrentContext method
doesn'twork


Hi, I have a problem with using the MessageContext.getCurrentContext
method 
in my server-side code.
I would like to get the current context to able to get an access to the

current session. Well, everything works just fine if I use the 
getCurrentContext method in one of my own objects, but something
strange 
happends when I'm trying to use this method inside a thread. Everytime
I 
call the MessageContext.getCurrentContext method in a thread it returns
only 
null. Is this a bug? As I told, the the
MessageContext.getCurrentContext 
method works great, I can get my MessageContext object, if I don't use
the 
method in threads. Have you guys got this method working in threads?
Even if 
I can pass a MessageContext reference into a thread via a static
variable 
the getCurrentContext doesn't work. There's got to be something wrong
with 
this method. Because of this problem it's impossible to make use of the

session mechanism in threads. 




array xml serialization

2005-08-17 Thread Ricardo Rocha

Hi all.

I'm trying to reuse the Axis serialization classes to store an xml version of some objects in a service. The goal is to reuse a couple of xsl stylesheets that go over the soap responses from the 
service directly on this objects.


I got to a point where the serialization is done, but not completely. I also 
found that the code in 1.2 is much nicer and easy to use, but for the moment 
i'm stuck with 1.1.

So here's the snippet of code i use:

SerializerFactory fct = BaseSerializerFactory.createFactory(
ArraySerializerFactory.class,
TransferActivity[].class,
new QName("http://glite.org/wsdl/services/org.glite.data.transfer.stats";,
"ArrayOf_tns3_TransferActivity"));

Serializer ser = (Serializer)fct.getSerializerAs(Constants.AXIS_SAX);
MessageContext ctx = new MessageContext(new Service().getEngine());
ctx.reset();

StringWriter sw = new StringWriter();
SerializationContext sc = new SerializationContextImpl(sw, ctx);
as.serialize(new 
QName("http://glite.org/wsdl/services/org.glite.data.transfer.stats";,
"ArrayOf_tns3_TransferActivity"), null, activities, sc);

And here is the xml result in the StringWriter:


http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; 
xmlns:ns1="http://glite.org/wsdl/services/org.glite.data.transfer.stats";>

  
  
  
  


Problem with this is that i don't get the information linked by the identifiers 
in the message above anywhere. Is there a way i can force it to generate all 
info?

I wasn't sure if this belongs better in axis-user or axis-dev, but here it 
goes. If you know another way to do this i would appreciate too.

Thanks in advance,
  Ricardo


smime.p7s
Description: S/MIME Cryptographic Signature


There is any way to expose constants in web services using axis??

2005-08-17 Thread Mik
Hello.
My question is: 
There is any known way toexpose constants making use of axis1.2 :

server side:

class State implements Serializable {
 public static final String CONSTANT_1="CONSTANT_1";

 public static final String CONSTANT_2="CONSTANT_2";

}


client side:

myWebService.setState(State.CONSTANT_1);

I mean generating code from java2wsdl does not seem to generate static
or final constants.

Thanks in advance.


TCPMonitor

2005-08-17 Thread Plorks mail


Hello

I've managed to set up TCPMonitor to monitor a remote web service that has a 
http://. endpoint using my local pc and i can see the soap 
request/response



However i now need to monitor a remote web service that has a https:// 
endpoint.  When i configure TCPMon i get this error


Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.


Can anyone help me out

Thanks

_
Winks & nudges are here - download MSN Messenger 7.0 today! 
http://messenger.msn.co.uk




RE: [SPAM_EMAIL] - A simple question about SOAP monitor in Axis 1.2 - Email has different SMTP TO: and MIME TO: fields in the email addresses

2005-08-17 Thread Mohit.Gupta
Hi,

SOAP Monitor Service is a handler which can be integrated with both client as 
well as server side handler chain of Axis Framework. So if you have installed 
this handler in your handler chain, all the message will be logged.

Simply install this handler 
using client-config.wsdd in the client side path of S1 Web service.
or using server-config.wsdd in the server side path of S2 web service.

Thanks,
Mohit.

-Original Message-
From: Zheng Li [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 17, 2005 2:43 PM
To: axis-user@ws.apache.org
Subject: [SPAM_EMAIL] - A simple question about SOAP monitor in Axis 1.2
- Email has different SMTP TO: and MIME TO: fields in the email
addresses


Hi guys:

As we know, the SOAPMonitorService in Aixs 1.2 can monitor the request SOAP
messages a Web service receives from the client, and resopnse messages a Web
service sends to the client. But can it monitor the request SOAP messages a
Web service sends to another Web service?? 

For example, Web service S1 sends a SOAP request message M1 to Web service
S2 to invoke its method, can SOAPMonitorService monitor this SOAP request
message M1??

Hope I make myself understood. Looking forward to your reply.

Many thnx.

Zheng



A simple question about SOAP monitor in Axis 1.2

2005-08-17 Thread Zheng Li
Hi guys:

As we know, the SOAPMonitorService in Aixs 1.2 can monitor the request SOAP
messages a Web service receives from the client, and resopnse messages a Web
service sends to the client. But can it monitor the request SOAP messages a
Web service sends to another Web service?? 

For example, Web service S1 sends a SOAP request message M1 to Web service
S2 to invoke its method, can SOAPMonitorService monitor this SOAP request
message M1??

Hope I make myself understood. Looking forward to your reply.

Many thnx.

Zheng



AW: Axis on IBM websphere5.0

2005-08-17 Thread Dorner, Thomas
You have to set saaj.jar in the classpath of WebSphere - see mailinglist 


 

Thomas Dorner
Systementwickler
 
T-Systems International GmbH
 
Service Line Systems Integration
BC EPDM/D Design & Prototype Data Management
Fasanenweg 5, D-70771 Leinfelden-Echterdingen
 
Tel.:+49/711 972 - 44747
Fax.:   +49/711 972 - 90330

Email:[EMAIL PROTECTED]
Internet: http://www.t-systems.de
 
 
 
 

-Ursprüngliche Nachricht-
Von: Pradeep Chauhan [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. August 2005 10:51
An: axis-user@ws.apache.org
Betreff: Axis on IBM websphere5.0

Hi All, 

Can we use AXIS on IBM websphere 5.0? if yes then Is there any extra
activities need to perform.

Regards,
Pradeep Chauhan



DISCLAIMER:
This message, including any attachments contains confidential and privileged
information for the sole use of the intended recipient(s), and is protected
by law.
If you are not the intended recipient, please 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.
Indus and R Systems International Ltd reserves the right to record, monitor,
and inspect all email communications through its internal and external
networks. Your messages shall be subject to such lawful supervision as Indus
and R Systems International Ltd deems necessary in order to protect its
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent
its information systems from being used to view, store or forward offensive
or discriminatory material.


Axis on IBM websphere5.0

2005-08-17 Thread Pradeep Chauhan
Hi All, 

Can we use AXIS on IBM websphere 5.0? if yes then Is there any extra
activities need to perform.

Regards, 
Pradeep Chauhan



DISCLAIMER:
This message, including any attachments contains confidential and privileged 
information for the sole use of the intended recipient(s), and is protected by 
law.
If you are not the intended recipient, please 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.
Indus and R Systems International Ltd reserves the right to record, monitor, 
and inspect all email communications through its internal and external 
networks. Your messages shall be subject to such lawful supervision as Indus 
and R Systems International Ltd deems necessary in order to protect its 
information, interests and reputation.
Indus and R Systems International Ltd prohibits and takes steps to prevent its 
information systems from being used to view, store or forward offensive or 
discriminatory material.



RE: [SPAM_EMAIL] - RE: RES: Error - java.lang.reflect.InvocationTargetException? - Email has different SMTP TO: and MIME TO: fields in the email addresses

2005-08-17 Thread Mohit.Gupta

Check the second point suggested by Fabrício. Whether your classes need some 
arguments in their new constructor.

The best way is to wrap the service method of your web service in a try - catch 
block. And print the stack trace and its causes (which will be printed 
automatically). This stack trace will give you a fair idea about the problem.

Thanks,
Mohit.

-Original Message-
From: zze-ELSOKHON Tony RD-BIZZ-ISS
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 17, 2005 1:03 PM
To: axis-user@ws.apache.org
Subject: [SPAM_EMAIL] - RE: RES: Error -
java.lang.reflect.InvocationTargetException? - Email has different SMTP
TO: and MIME TO: fields in the email addresses




> Javier,

> Where I have to put the class? I putted it into
> [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more
> clear please!?!

> Thanks a lot!

> Fabrício

Fabricio,

The Java 1.4.2 API documentation says:

InvocationTargetException is a checked exception that wraps an exception
 thrown by an invoked method or constructor. [...] The "target 
exception" that is provided at construction time [...] may be accessed via the 
Throwable.getCause() method.

So the JVM's class loader actually finds the classes used by the service 
implementation.
If you catch the exception and print the stack trace of its cause, you will be 
able to find what Exception was thrown by the secondary classes used by the 
service.

-Mensagem original-
De: Javier Gonzalez [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 16 de agosto de 2005 18:34
Para: axis-user@ws.apache.org
Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException?

I'm not sure I'm understanding you two - calling all sorts of Java
classes is possible with axis. Are you sure you have all the needed
classes in the webapp classpath?

Does your class need special parameters for its constructor?

On 8/16/05, Fabrício <[EMAIL PROTECTED]> wrote:
> Hi Donald,
> 
> In my case, I really need to have the call to method from another class.
My
> web service is a kind of wrapper for a legacy application. And to do the
> call, it's necessary to escort stdin and stderr. And I'm doing this with
two
> threads. As:
> 
> cmd = "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs";
> process = Runtime.getRuntime().exec(cmd);
> 
> StringBuffer inBuffer = new StringBuffer();
> InputStream inStream = processo.getInputStream();
> new InputStreamHandler( inBuffer, inStream );
> 
> StringBuffer errBuffer = new StringBuffer();
> InputStream errStream = processo.getErrorStream();
> new InputStreamHandler( errBuffer , errStream );
> 
> process.waitFor();
> 
> The InputStreamHandler is another java class. I really don't know how to
> solve it without the use of these threads (another class). :'-(
> 
> --
> 
> Fabrício.
> 
> -Mensagem original-
> De: Chen, Donald [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 16 de agosto de 2005 16:14
> Para: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Assunto: RE: Error - java.lang.reflect.InvocationTargetException?
> 
> Yes, exactly.
> 
> The moment I let the method in the WS call another class, I got the
> problem.
> 
> Looks like we are on the same boat.
> 
> Right now, I am trying to rewrite the service provider class to avoid
> the unnecessary calling.
> 
> Also, I suspect the Tomcat is not able to find all the necessary jars to
> facilitating the call.
> 
> Let me know what's your finding?
> 
> Don
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 1:31 PM
> To: axis-user@ws.apache.org; Chen, Donald
> Subject: Re: Error - java.lang.reflect.InvocationTargetException?
> 
> Hi,
> 
> I'm having the same problem and in my case is because my web service
> needs to
> call a method from a common java class. I need to do this, but I think
> that
> isn't possible in Axis. Does your web service has a method call to
> another
> class to?
> 
> --
> 
> Fabricio.
> 
> 
> Citando "Chen, Donald" <[EMAIL PROTECTED]>:
> 
> > Hi, there.
> >
> > I got a "Error - java.lang.reflect.InvocationTargetException" complain
> > when I tried to invoke a web service.
> >
> > Any idea on how to find out what's going wrong?  And what could be the
> > reason(s)?
> >
> > Thanks.
> >
> > Don
> > PS.  Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
> >
> 
> 
> 
> 
> 
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
> 
> 
> 


-- 
Javier Gonzalez Nicolini


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005




RE: RES: Error - java.lang.reflect.InvocationTargetException?

2005-08-17 Thread zze-ELSOKHON Tony RD-BIZZ-ISS


> Javier,

> Where I have to put the class? I putted it into
> [TOMCAT]webapps\axis\WEB-INF\classes and didn't work. Could you be more
> clear please!?!

> Thanks a lot!

> Fabrício

Fabricio,

The Java 1.4.2 API documentation says:

InvocationTargetException is a checked exception that wraps an exception
 thrown by an invoked method or constructor. [...] The "target 
exception" that is provided at construction time [...] may be accessed via the 
Throwable.getCause() method.

So the JVM's class loader actually finds the classes used by the service 
implementation.
If you catch the exception and print the stack trace of its cause, you will be 
able to find what Exception was thrown by the secondary classes used by the 
service.

-Mensagem original-
De: Javier Gonzalez [mailto:[EMAIL PROTECTED] 
Enviada em: terça-feira, 16 de agosto de 2005 18:34
Para: axis-user@ws.apache.org
Assunto: Re: RES: Error - java.lang.reflect.InvocationTargetException?

I'm not sure I'm understanding you two - calling all sorts of Java
classes is possible with axis. Are you sure you have all the needed
classes in the webapp classpath?

Does your class need special parameters for its constructor?

On 8/16/05, Fabrício <[EMAIL PROTECTED]> wrote:
> Hi Donald,
> 
> In my case, I really need to have the call to method from another class.
My
> web service is a kind of wrapper for a legacy application. And to do the
> call, it's necessary to escort stdin and stderr. And I'm doing this with
two
> threads. As:
> 
> cmd = "d:\\programs\\cap3\\cap3 " + newPath + "my_seqs";
> process = Runtime.getRuntime().exec(cmd);
> 
> StringBuffer inBuffer = new StringBuffer();
> InputStream inStream = processo.getInputStream();
> new InputStreamHandler( inBuffer, inStream );
> 
> StringBuffer errBuffer = new StringBuffer();
> InputStream errStream = processo.getErrorStream();
> new InputStreamHandler( errBuffer , errStream );
> 
> process.waitFor();
> 
> The InputStreamHandler is another java class. I really don't know how to
> solve it without the use of these threads (another class). :'-(
> 
> --
> 
> Fabrício.
> 
> -Mensagem original-
> De: Chen, Donald [mailto:[EMAIL PROTECTED]
> Enviada em: terça-feira, 16 de agosto de 2005 16:14
> Para: [EMAIL PROTECTED]; axis-user@ws.apache.org
> Assunto: RE: Error - java.lang.reflect.InvocationTargetException?
> 
> Yes, exactly.
> 
> The moment I let the method in the WS call another class, I got the
> problem.
> 
> Looks like we are on the same boat.
> 
> Right now, I am trying to rewrite the service provider class to avoid
> the unnecessary calling.
> 
> Also, I suspect the Tomcat is not able to find all the necessary jars to
> facilitating the call.
> 
> Let me know what's your finding?
> 
> Don
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 16, 2005 1:31 PM
> To: axis-user@ws.apache.org; Chen, Donald
> Subject: Re: Error - java.lang.reflect.InvocationTargetException?
> 
> Hi,
> 
> I'm having the same problem and in my case is because my web service
> needs to
> call a method from a common java class. I need to do this, but I think
> that
> isn't possible in Axis. Does your web service has a method call to
> another
> class to?
> 
> --
> 
> Fabricio.
> 
> 
> Citando "Chen, Donald" <[EMAIL PROTECTED]>:
> 
> > Hi, there.
> >
> > I got a "Error - java.lang.reflect.InvocationTargetException" complain
> > when I tried to invoke a web service.
> >
> > Any idea on how to find out what's going wrong?  And what could be the
> > reason(s)?
> >
> > Thanks.
> >
> > Don
> > PS.  Configure: WinXPPro Tomcat5.5/Axis1.2/JRE1.5
> >
> 
> 
> 
> 
> 
> This message was sent using IMP, the Internet Messaging Program.
> 
> 
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005
> 
> 
> 


-- 
Javier Gonzalez Nicolini


-- 
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15/8/2005