JAX-RPC exception

2002-03-06 Thread Monika Solanki



Hi all!

I am trying to run the "Hello world" sample code from the JAX-RPC tutorial
from Sun.  When I execute the client application, I get the following exception.

    [echo] Running the hello.HelloClient program:
    [echo] java -classpath c:\jwsdp-1_0-ea1/common/lib/jaxrpc-ri.jar:c:\jwsdp-1
0-ea1/common/lib/jaxrpc-api.jar:c:\jwsdp-1_0-ea1/common/lib/activation.jar:c:\j
sdp-1_0-ea1/common/lib/dom4j.jar:c:\jwsdp-1_0-ea1/common/lib/jaxm-api.jar:c:\jw
dp-1_0-ea1/common/lib/jaxm-client.jar:c:\jwsdp-1_0-ea1/common/lib/log4j.jar:c:\
wsdp-1_0-ea1/common/lib/mail.jar:c:\jwsdp-1_0-ea1/common/lib/xalan.jar:c:\jwsdp
1_0-ea1/common/lib/xerces.jar:build hello.HelloClient http://localhost:8080/jax
pc-hello/jaxrpc/HelloIF
    [echo]
    [java] java.rmi.RemoteException: Received fault:
"Internal server error" (c
de: "Server" namespace: "http://schemas.xmlsoap.org/soap/envelope/"); nested
exc
eption is:
    [java] Received fault: "Internal server error" (code: "Server" namespac
: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] at hello.HelloIF_Stub.sayHello(Unknown Source)
    [java] at hello.HelloClient.main(Unknown Source)
    [java] Caused by: Received fault: "Internal server error" (code: "Server"
n
mespace: "http://schemas.xmlsoap.org/soap/envelope/")
    [java] at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingS
nder.java:300)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.
ava:191)
    [java] ... 2 more

Can anyone pls help ...?
-- 
 >**<>**<>**<>**<>**<>**<>**<>**<>**<>**<
 
 Monika Solanki
 De Montfort University 
 Software Technology Research Laboratory
   Hawthorn building, H00.18  
 The Gateway. 
 Leicester LE1 9BH, UK  

phone: +44 (0)116 250 6170  intern: 6170
 >**<>**<>**<>**<>**<>**<>**<>**<>**<>**<
 






EJB's

2002-03-06 Thread DEEPTHI PRABHAKAR
Hi
I am using axis alpha 3 version. I want to publish web services using ejb's but i have no clue about it as there are no relevant examples. Can someone direct me as to how to get started so that i can carry on from thr...
thanx a lot!
DeepthiMSN Photos is the easiest way to share and print your photos: Click Here


Streaming large data in and out

2002-03-06 Thread Alain K

Hello,

We need to exchange large data between two
applications. We're considering using SOAP. Is it
possible to stream large data in and out using AXIS?
Because of the large data, we need to avoid loading
everything in memory before sending and after
receiving.

What solution is there ?

Thanks for your help.
Alain.

___
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



Re: location of client-config.wsdd

2002-03-06 Thread Glyn Normington


There is a Java system property axis.ClientConfigFile which can be used to
override the name and location of the client configuration file. I'm not
sure how it interacts with servlet engines however. Someone using WebLogic
had all sorts of problems getting access to configuration files, so please
beware.

Perhaps you'd like to try it and post your findings here.

Glyn




Problem with JMS is solved

2002-03-06 Thread jeelani basha

Hi,

This is with reference to my earlier post to help on
JMS using AXIS.

Anyway, I could invoke a Axis service using weblogic
6.1 JMS server and execute a request/response pattern.

I am planning to try the same using JBOSS 2.4.4.
If anybody has done it already, kindly let me know.

Regards,
Jeelani

__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/



Tomcat and Bad envelope namespace

2002-03-06 Thread Benoit_Aumars

Hi,

I am a bit surprise by the suggestions given to this question :
http://marc.theaimsgroup.com/?l=axis-user&m=101528580230113&w=2

My understanding is that nusa's code is an Axis CLIENT code.
Why Tomcat MUST be started ?
Do we have to run Tomcat FIRST before running any Axis CLIENT code ?
I understand if it is an Axis SERVICE code, but CLIENT's one ... ?

I've searched 'Bad envelope namespace' and 'workaround' through the archive,
and the answers are either put the axis.jar into %TOMCAT_HOME%\common\lib or

don't put.
Under what condition we put or do not put ?

I just replicate the same condition as nusa's, i.e. :

1. I run that code from my PC, no server, no firewall
2. the echo %JAVA_HOME% gives C:\j2sdk1.4.0 
3. the echo %CLASSPATH% gives "." 
4. I put axis.jar, clutil.jar, log4j.jar, wsdl4j.jar ( all jars from Axis )
into my %JAVA_HOME%\jre\lib\ext 
5. I put xercesImpl.jar and xmlParserAPIs.jar into my
%JAVA_HOME%\jre\lib\ext 
and I have the same error as him, whether I run Tomcat or not.
My last question, the next release, either Alpha 4 or Beta, does it compiled
against J2SDK ?

Thanks,
Benoit Aumars.




JLT Management Services Limited
6 Crutched Friars, London EC3N 2PH. Co Reg No 1536540
Tel: (44) (0)20 7528 4000   Fax: (44) (0)20 7528 4500
http://www.jltgroup.com

The content of this e-mail (including any attachments) as 
received may not be the same as sent. If you consider that 
the content is material to the formation or performance of 
a contract or you are otherwise relying upon its accuracy, 
you should consider requesting a copy be sent by facsimile 
or normal mail.  The information in this e-mail is 
confidential and may be legally privileged. If you are not 
the intended recipient, please notify the sender immediately 
and then delete this e-mail entirely - you must not retain, 
copy, distribute or use this e-mail for any purpose or 
disclose any of its content to others.

Opinions, conclusions and other information in this e-mail 
that do not relate to the official business of JLT 
Management Services Limited shall be understood as neither 
given nor endorsed by it.  Please note we intercept and 
monitor incoming / outgoing e-mail and therefore you should 
neither expect nor intend any e-mail to be private in nature.

We have checked this e-mail for viruses and other harmful 
components and believe but not guarantee it virus-free prior 
to leaving our computer system.  However, you should satisfy 
yourself that it is free from harmful components, as we do 
not accept responsibility for any loss or damage it may 
cause to your computer systems.





Custom wsdd loader?

2002-03-06 Thread Joseph Carew



In Apace SOAP you 
can use a custom ConfigManager.  Does AXIS have an 
equivalent?
 


Re: Custom wsdd loader?

2002-03-06 Thread Glyn Normington

You can probably achieve something by setting the Java system property
axis.EngineConfigFactory to the classname of a class that implements
org.apache.axis.EngineConfigurationFactory.

Glyn


   
   
Joseph Carew   
   
<[EMAIL PROTECTED]   To: "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>  
om>  cc:   
   
 Subject: Custom wsdd loader?  
   
06/03/02 13:32 
   
Please respond 
   
to axis-user   
   
   
   
   
   



In Apace SOAP you can use a custom ConfigManager.  Does AXIS have an
equivalent?







Deserialization of array bean objects not in beginning of array

2002-03-06 Thread Egger Oliver

Hello,

I had problems with bean deserialization, my wsdl
file contains arrays of beans in beans. during deserialization
I did not take notice that the beans will not be filled
in from the beginning in the array, so if you are just expecting
one object in the array you have to search the whole array ...

Is this behaviour intentional?

best,
Oliver



NEU:  NZZ finfox, personal finance, die finanz- und 
vermögensplanung für private http://finfox.nzz.ch
ECOFIN Research and Consulting AG
Neumuensterallee 6
CH-8032 Zuerich
+41 1 389 65 29
[EMAIL PROTECTED]
www.ecofin.ch  




Problem with classpath

2002-03-06 Thread Claudio Buffa Pace


HI All:

I made use of the wsdl2java compiler to create a client stub.  However 
when I attempt to use it,
I get the following error.


java.lang.NoSuchMethodError
   at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown 
Source)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
   at org.apache.axis.client.Call.invoke(Unknown Source)
   at org.apache.axis.client.Call.invoke(Unknown Source)
   at org.apache.axis.client.Call.invoke(Unknown Source)
   at org.apache.axis.client.Call.invoke(Unknown Source)
   at 
org.soapinterop.SoapTestSoapStub.echoSimpleTypesAsStruct(SoapTestSoapStub.java:213)
   at 
org.soapinterop.SoapTestTestCase.test4SoapTestSoapEchoSimpleTypesAsStruct(SoapTestTestCase.java:83)
   at com.ebucks.test.TestClient.main(TestClient.java:17)
5) 
test5SoapTestSoapEchoStructAsSimpleTypes(org.soapinterop.SoapTestTestCase)

I think this has to do with a faulty classpath, but where I am not sure. 
 I have all the relevant axis jars in my classpath,
and a copy of latest xerces.jar to.  

Anyone have any ideas?  

Thanks

Claudio

-- 
Claudio Buffa Pace
eBucks.com

http://www.ebucks.com
+27-(0)11-282-4666
mail:[EMAIL PROTECTED] 







An error when compile the night build

2002-03-06 Thread Emily Gu

Hi,

  I have encounter an error message as the following when
I compile the night builder of AXIS. Any help would be
greatly appreciated.

Thanks,
Emily

   [javac] Compiling 483 source files to /auto/vwsahe/xml-axis/jav
a/build/classes
#
# HotSpot Virtual Machine Error, Internal Error
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Error ID: 53484152454432554E54494D450E43505000F3 01
#
# Problematic Thread: prio=5 tid=0x29d40 nid=0x1 runnable
#
Abort - core dumped





Re: Problem with classpath

2002-03-06 Thread Richard Grossman

Hi

Use it like this:
java -cp 
axis.jar;clutil.jar;log4j-core.jar;d:/JBuilder6/lib/xerces.jar;d:/Jbuilder6/lib/wsdl4j.jar
 
org.apache.axis.wsdl.Wsdl2java  
assume that your are in the lib axis lib directory

Bye

Richard Grossman


At 02:53 PM 3/6/2002 +0200, you wrote:

>HI All:
>
>I made use of the wsdl2java compiler to create a client stub.  However 
>when I attempt to use it,
>I get the following error.
>
>
>java.lang.NoSuchMethodError
>   at org.apache.axis.encoding.DeserializationContextImpl.parse(Unknown 
> Source)
>   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(Unknown Source)
>   at org.apache.axis.client.Call.invoke(Unknown Source)
>   at org.apache.axis.client.Call.invoke(Unknown Source)
>   at org.apache.axis.client.Call.invoke(Unknown Source)
>   at org.apache.axis.client.Call.invoke(Unknown Source)
>   at 
> org.soapinterop.SoapTestSoapStub.echoSimpleTypesAsStruct(SoapTestSoapStub.java:213)
>   at 
> 
>org.soapinterop.SoapTestTestCase.test4SoapTestSoapEchoSimpleTypesAsStruct(SoapTestTestCase.java:83)
>   at com.ebucks.test.TestClient.main(TestClient.java:17)
>5) test5SoapTestSoapEchoStructAsSimpleTypes(org.soapinterop.SoapTestTestCase)
>
>I think this has to do with a faulty classpath, but where I am not sure. I 
>have all the relevant axis jars in my classpath,
>and a copy of latest xerces.jar to.
>
>Anyone have any ideas?
>
>Thanks
>
>Claudio
>
>--
>Claudio Buffa Pace
>eBucks.com
>
>http://www.ebucks.com
>+27-(0)11-282-4666
>mail:[EMAIL PROTECTED]
>
>




RE: EJB's

2002-03-06 Thread Luiz Gerosa

Try to use JRun Server. There are examples that run with webservice.

-Mensagem original-
De: DEEPTHI PRABHAKAR [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 6 de março de 2002 05:40
Para: [EMAIL PROTECTED]
Assunto: EJB's


Hi
I am using axis alpha 3 version. I want to publish web services using
ejb's but i have no clue about it as there are no relevant examples. Can
someone direct me as to how to get started so that i can carry on from
thr...
thanx a lot!
Deepthi



MSN Photos is the easiest way to share and print your photos: Click Here



java.lang.reflect.InvocationTargetException

2002-03-06 Thread Nightingale, Martin
Heya,
 
I've deployed a simple service using the command
java org.apache.axis.client.AdminClient -llocal:///AdminService 
deploy.wsdd
 
and it runs fine if i use the command 
java com.bp.webService.ReportsDescriptionServiceClient -llocal://
 
as a client which invokes the service, however, if i navigate to the 
location
http://localhost:8080/axis/servlet/AxisServlet/ReportsDescription?wsdl
 
then it is claimed that the service cannot be found
(ReportsDescription is the service name as specified in the 
deploy.wsdd.
 
 
After undeploying, I tried deploying the service again using the 
command
java org.apache.axis.client.AdminClient 
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
 
this time i could locate the wsdl file without problem (using the above 
url) but when i tried to run the service using the command
java com.bp.webService.ReportsDescriptionServiceClient 
-lhttp://localhost:8080/axis/servlet/AxisServlet
I received a java.lang.reflect.InvocationTargetException!
 
Any help/guidence would be awesome- 
and if anyones got time- whats the effect of using -llocal:// as opposed to 
the full servlet address?

samples\userguide\example3 example.

2002-03-06 Thread Di Maio Guido

hi there,
I've just installed the nightly build of  2002-03-05 and I'trying to run
examples.
In particular what I get with the 
samples\userguide\example3
is that the result is always null.
It must be something dealing with Client.java because I can sniff the
proper response with the TCPMonitor tool.
Do you know why ?

Guido Di Maio



Re: samples\userguide\example3 example.

2002-03-06 Thread Stan Jordan

Guido...
Put this line in the client, just before call.invoke(), and recompile
   call.setReturnType( XMLType.XSD_STRING );
Cheers.
Stan

- Original Message - 
From: "Di Maio Guido" <[EMAIL PROTECTED]>
To: "Axis User List (E-mail)" <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 11:21 AM
Subject: samples\userguide\example3 example.


hi there,
I've just installed the nightly build of  2002-03-05 and I'trying to run
examples.
In particular what I get with the 
samples\userguide\example3
is that the result is always null.
It must be something dealing with Client.java because I can sniff the
proper response with the TCPMonitor tool.
Do you know why ?

Guido Di Maio





JSR151 / J2EE

2002-03-06 Thread Zhiqian Yu

Here are some statements from  JavaTM 2 Platform, Enterprise Edition 1.4
(J2EE 1.4) Specification . 
How Axis will deal with this?
Thank you,
Zhiqian
Section 2: Request 
2.1 Please describe the proposed Specification:
This JSR is to develop J2EE 1.4, the next release of the Java 2 Platform,
Enterprise Edition, targeted to ship in the second half of 2002. 
The major theme for the next version of J2EE is web services. The clear
message we've gotten from J2EE vendors and users is that the J2EE platform
must evolve quickly to provide support for web services, initially using
SOAP/HTTP as the primary protocol. This protocol support is being defined in
other JSRs (enumerated below). We propose that: 
*   J2EE 1.4 will define the J2EE component model, deployment,
packaging, and container requirements for J2EE components that use JAX-RPC
and JAXM to implement web service endpoints. 
*   J2EE 1.4 will define the J2EE component model, deployment,
packaging, and container requirements for J2EE components that use JAX-RPC
and JAXM to access web service endpoints. 
*   J2EE 1.4 will define the J2EE component model, deployment,
packaging, and container requirements for use of JAXR to access web service
registries. 

From: "Russell Butek" <[EMAIL PROTECTED]> 
Date: 2002-02-19 13:40:04 
[Download message RAW ]

JSR 109 isn't a spec, yet.  I suspect AXIS will comply, but I don't think
this is decided, yet.

AXIS IS JSR 101 (JAX-RPC) compliant as much as it can be.  JSR 101 isn't a
spec yet, either, and it's still changing.  We're trying to keep up.

Russell Butek
[EMAIL PROTECTED]


Vinit Kumar <[EMAIL PROTECTED]> on 02/19/2002 08:28:31 AM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Axis compatability with JSR109




Hi All,
I have few doubts regarding Axis.They are as follows:

1.is axis compatible with JSR109.if not,is it in confermance with any
standard document???
2.if my j2ee application uses web service,how can i put mySevice
class obtained by wsdl2java tool ,to be accessed thru jndi?
3.I still could not get the standard way to use stateless session
bean to aceess thru web service,usinx xais framework??
4.JSR109 talks something about webserviceclient.xml,using axis
framework, how can i use it for my advantage
expecting prompt reply
Kumar Vinit




[prev in list ] [next in list
] [prev in thread
] [next in thread
] 

Log in / Log out 
Configure Your Environment 
About MARC 
We're Hiring! 
Want to add a list? Tell us about it
.
10East 





Re: An error when compile the night build

2002-03-06 Thread Jinghua Gu

Never mind. It is JDK VM error. I figure it out.

Thanks,
Emily

At 11:21 AM 3/6/2002 -0500, Emily Gu wrote:
>Hi,
>
>   I have encounter an error message as the following when
>I compile the night builder of AXIS. Any help would be
>greatly appreciated.
>
>Thanks,
>Emily
>
>[javac] Compiling 483 source files to /auto/vwsahe/xml-axis/jav
>a/build/classes
>#
># HotSpot Virtual Machine Error, Internal Error
># Please report this error at
># http://java.sun.com/cgi-bin/bugreport.cgi
>#
># Error ID: 53484152454432554E54494D450E43505000F3 01
>#
># Problematic Thread: prio=5 tid=0x29d40 nid=0x1 runnable
>#
>Abort - core dumped




RE: array serialization problem (committed possible fix)

2002-03-06 Thread R J Scheuerle Jr

Java2WSDL has been changed to use a sequence group.

Thanks for your support!

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   

  R J Scheuerle

  Jr/Austin/IBM@IBMTo:   [EMAIL PROTECTED]  

  US   cc: 

   Subject:  RE: array serialization 
problem (committed possible fix)  
  03/01/2002 03:05 

  PM   

  Please respond to

  axis-user

   

   




I'll change Java2WSDL to use a sequence group.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)



  Dave Dunkin

  
  e.com>   cc:

   Subject:  RE: array
serialization problem (committed possible fix)
  03/01/2002 02:58

  PM

  Please respond to

  axis-user






The fix works for an axis client, but fails for a .NET client because the
resulting wsdl contains invalid schema:


  

  

  


You can't have an  inside an . The
schema spec says a model group with an "all" compositor must "contain all
and only exactly zero or one of each element specified." You could use a
sequence compositor instead of an all, but why not use the soap array
encoding? I believe the the schema in the original wsdl was correct. The
problem is with the way axis builds the response. (btw, the wsdl is from
?wsdl).


Dave


-Original Message-
From: R J Scheuerle Jr [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 01, 2002 11:51 AM
To: [EMAIL PROTECTED]
Cc: Dave Dunkin
Subject: RE: array serialization problem (committed possible fix)





I just committed a fix to Java2WSDL that may correct your problem


Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)







  R J Scheuerle


  Jr/Austin/IBM@IBMTo:
[EMAIL PROTECTED]


  US   cc:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>


   Subject:  RE: array
serialization problem (user error ?)


  03/01/2002 08:42


  AM


  Please respond to


  axis-user











Was the wsdl generated by WSDL2Java or ?wsdl?


My concern is that the wsdl description does not match the format of the
service response.
So either the service was implemented incorrectly, or the wsdl generation
from the service is wrong.


The service is sending back a response ScreenOutputs__Table that matches
(1) below.
However the wsdl indicates that a ScreenOutputs__Table contains an
array...a different format.





Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)






  Dave Dunkin
  
  e.com>   cc:
   Subject:  RE: array
serialization problem (user error ?)
  02/28/2002 05:17
  PM
  Please respond to
  axis-user








The wsdl is from a deployed axis service. Sorry, I guess I didn't make that

part clear before. The problem isn't with the axis stubs (like I said
before, .NET stubs fail too), it's with the axis service. I've attached as
much of the source code as I can provide.





Dave Dunkin





-Original Message-
From: R J Scheuerle Jr [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 3:07 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: array serialization problem (user error ?)








I took a serious look your ServiceOne.wsdl document, and it doesn't appear
to match you

Re: WSDL2Java -problem : no desrializer defined for array type ...

2002-03-06 Thread R J Scheuerle Jr

Could you send me the wsdl file.

Thanks

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   
 
  oliver.kowalke@t-
 
  online.deTo:   [EMAIL PROTECTED]  
 
   cc: 
 
  03/05/2002 06:34 Subject:  WSDL2Java -problem : no 
desrializer defined for array type ... 
  AM   
 
  Please respond to
 
  axis-user
 
   
 
   
 



Hi,

I've a .NET Server which returns arrays of user defined tpyes. I
genereted Java classes with WSDL2Java for my java client. All works
except deserializiation of arrays!
ErrorMsg:

org.xml.sax.SAX.Exception : No deserializier defined for array type
urn:MyURN:Buchung.

I looked into the ctor of SvcSoapStub class :
...
Class beansf =
org.apache.axis.encoding.ser.BeanSerializerFactory.class;
Class beandf =
org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
Class arraysf =
org.apache.axis.encoding.ser.ArraySerializerFactory.class;
Class arraydf =
org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
...
qName = new javax.xml.rpc.namespace.QName("urn:MyURN",
"ArrayOfBuchung");
cachedSerQNames.add(qName);
cls = Test.Buchung[].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);

qName = new javax.xml.rpc.namespace.QName("urn:MyURN", "Buchung");
cachedSerQNames.add(qName);
cls = Test.Buchung.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);

What is going wrong?

with best regards,
Oliver






Re: Complex structure

2002-03-06 Thread R J Scheuerle Jr

Use the axis wsdl2java tool.



Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   
 
  Stefan Taubenberger  
 
cc: 
 
   Subject:  Complex structure 
 
  03/05/2002 08:14 AM  
 
  Please respond to
 
  axis-user
 
   
 
   
 



Hello everybody,

i have a question to complex Data Types ?

If i had any complex data Type like this:
http://soap_struct";
xmlns="http://www.w3.org/2001/XMLSchema";>
   

 
 
 
 

   
   


and i call the client with the input of struktur1  i cant get any
response...
I get always Null pointer exceptions

I generated the neccesary files with the wsdl2java tool integrated at
Borland's 6.0 IDE. Which i think is the same
as delivered by the axis project.

One of Borlands people said, that the actual release doesn't support
sendíng and receiving complex structures.
 It means that the generated files doesn support this...

Is this right ??


Or i am wrongAny other Ideas ??








Re: multirefs: Urgent

2002-03-06 Thread R J Scheuerle Jr

Rania,

There have been quite a few changes to the serialization framework.

The multi-referencing support is done in the DeserializerImpl and
DeserializationContext, and should
work without intervention.

Why do you need you need the name of the element in these cases ?

(Please contact me offline at ibm if you need to.)

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   
 
  Rania Khalaf 
 
  <[EMAIL PROTECTED]To:   [EMAIL PROTECTED]  
 
  bm.com>  cc: 
 
   Subject:  multirefs: Urgent 
 
  03/05/2002 09:38 
 
  AM   
 
  Please respond to
 
  axis-user
 
   
 
   
 



Hi,
When I hit a   in my specialized
deserializer, I need to
get the name of the element that ref'ed this muliref, and if there are
more
than one then I need the last one.

The problem I am having is that when the element first enters my
deserializer
with OnStartElement its name is already lost and I need it.

>From what I can gather so far, multirefing is broken for quite a few
cases
(ref my note Jan, 8, 2002). If I can get at least the name though, I am
able to hack around it. I need this asap though and couldn't find it :(

Please help

PS: I am using Axis ver. 3.0 (need to use a  versioned release)
Rania








Re: Deserialization of array bean objects not in beginning of array

2002-03-06 Thread R J Scheuerle Jr

Egger,

I don't understand your question.
I have done quite a bit of work in the array deserializer and bean
deserializer.

Please send me your wsdl and detailed problem and I can address it.

Thanks for supporting Axis!

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   
 
  Egger Oliver 
 
cc: 
 
   Subject:  Deserialization of array bean 
objects not in beginning of array
  03/06/2002 09:11 
 
  AM   
 
  Please respond to
 
  axis-user
 
   
 
   
 



Hello,

I had problems with bean deserialization, my wsdl
file contains arrays of beans in beans. during deserialization
I did not take notice that the beans will not be filled
in from the beginning in the array, so if you are just expecting
one object in the array you have to search the whole array ...

Is this behaviour intentional?

best,
Oliver



NEU:  NZZ finfox, personal finance, die finanz- und
vermögensplanung für private http://finfox.nzz.ch
ECOFIN Research and Consulting AG
Neumuensterallee 6
CH-8032 Zuerich
+41 1 389 65 29
[EMAIL PROTECTED]
www.ecofin.ch 







Wsdl2Java and multiRefs

2002-03-06 Thread Simon McClenahan

First, I discovered a surprising behavior in WSDL2Java. The latest
version has some different command-line options. I now use (in .bat
file):

call WSDL2Java --verbose --server-side --fileNStoPkg
%wd%\NStoPkg.properties --output %wd%\src %wd%\transerv_simple.wsdl

This generates a *Impl.java , but only if one does not already exists. I
guess this is useful so that it doesn't clobber your own implementation.
But I changed my WSDL so that the RPC call has a different method
signature, so there are now errors in compiling the original *Impl.java
file. There should be an option in WSDL2Java to specify the
implementation class when generating server-side code.


Then there's those damn multiRefs. An option in WSDL2Java to turn them
off in the client, or some way to set the Call options would be nice. I
don't even have complex type parameters that are multiple-referenced.
WSDL2Java shouldn't just assume it.



So far, it's a great system considering it's alpha!


cheers,
Simon



WSDL2Java data-holder generation (or not)

2002-03-06 Thread Bob Cotton


It seems with axis, when doing Java <-> Java development the easiest
thing is to use Java2WSDL then WSDL2Java to get your client stubs.

If I have access to the same data-holder classes on both sides, it
seems I loose functionality that may be in my Bean classes on the
server-side when I generate the client-side data-holders.

Would it be possible to add a switch to WSDL2Java to NOT generate the
data-holders and instead use the "server-side" classes?

Thanks 

 - Bob


-- 
SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are those frightful 
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see when you take your
Denver, CO  80202   | Fax:(303)534-4257 | eyes off your goal.  -Henry Ford




invokeOneWay

2002-03-06 Thread Mike Brown



I'm very interested in using the invokeOneWay 
method of the Call class to do RPC in an asynchronous fashion.  I.e. if a 
method on the server is void return type, using the invokeOneWay method.  

 
Does this concept extend to other programming 
languages? .NET?
 
Mike


[WSDL2Java] No deserializer defined for array type http://[...]/:QueryProperty

2002-03-06 Thread St-Germain, Sylvain

Hi all, 

I am having a problem with caracter case.  
My complexType is defined as "queryProperty" like :










but the generated class is "QueryProperty"

This seems to be the reason why I get a deserializer exception. Right?  
This being said, how can the object be serialized in the first place?  

Question: Although java classes are generaly named starting with an
uppercase, shouldn't WSDL2Java respects the capitalization defined in the
WSDL?

(this is with Axis v22-02-02)
--
Sylvain 

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.



RE: [WSDL2Java] No deserializer defined for array type http://[...]/: QueryProperty

2002-03-06 Thread Dave Dunkin
Title: RE: [WSDL2Java] No deserializer defined for array type http://[...]/: QueryProperty





WSDL2Java complies to the JAX-RPC specification for mapping XML identifiers to Java identifiers. That specifies that class should start with a capital letter.

Dave


-Original Message-
From: St-Germain, Sylvain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 06, 2002 1:59 PM
To: Axis-User (E-mail)
Subject: [WSDL2Java] No deserializer defined for array type
http://[...]/: QueryProperty



Hi all, 


I am having a problem with caracter case.  
My complexType is defined as "queryProperty" like :



    
        
maxOccurs="1"/>
        
        
        
    



but the generated class is "QueryProperty"


This seems to be the reason why I get a deserializer exception. Right?  
This being said, how can the object be serialized in the first place?  


Question: Although java classes are generaly named starting with an
uppercase, shouldn't WSDL2Java respects the capitalization defined in the
WSDL?


(this is with Axis v22-02-02)
--
Sylvain 


This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so.  Thank you.





Re: WSDL2Java data-holder generation (or not)

2002-03-06 Thread Russell Butek

Could you show me a concrete example of what you desire so I can be sure I
understand what you're asking for?  What sort of functionality are you
losing?  It shouldn't matter what the server-side vs client-side code looks
like as long as the SOAP messages sent back-and-forth are understood.

The WSDL2Java option would probably be rather complex.  Since it doesn't
know about the existing server-side classes, you'd have to give it lots of
information to find those classes.

Russell Butek
[EMAIL PROTECTED]


Bob Cotton <[EMAIL PROTECTED]>@synxis.com on 03/06/2002 03:27:06 PM

Please respond to [EMAIL PROTECTED]

Sent by:[EMAIL PROTECTED]


To:[EMAIL PROTECTED]
cc:
Subject:WSDL2Java data-holder generation (or not)




It seems with axis, when doing Java <-> Java development the easiest
thing is to use Java2WSDL then WSDL2Java to get your client stubs.

If I have access to the same data-holder classes on both sides, it
seems I loose functionality that may be in my Bean classes on the
server-side when I generate the client-side data-holders.

Would it be possible to add a switch to WSDL2Java to NOT generate the
data-holders and instead use the "server-side" classes?

Thanks

 - Bob


--
SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are those frightful
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see when you take
your
Denver, CO  80202   | Fax:(303)534-4257 | eyes off your goal.  -Henry
Ford






how to install/deploy sample xml-axis applications

2002-03-06 Thread Ma, June
Title: how to install/deploy sample xml-axis applications





Hi experts,


I am trying to install and run the samples that come with axis alpha3 and are having some problems. I am following the steps described in ..\xml-axis-alpha3\docs\install.html file. I have JRun 3.1 installed and is up and running. 

The question is that what should be the command that I should use in Step 5 and from which directory I should run it ?
Especially, what should be the AXIS servlet URI that I should use for the -l parameter ?


Thanks,
-June





Re: WSDL2Java data-holder generation (or not)

2002-03-06 Thread R J Scheuerle Jr

Russell,

I think that it would be reasonable to have a no overwrite option.
So prior to writing out a .java class for a type, the emitter could look
for an existing class in the class path or existing .java file.
This is done for the impl class, and this is simply and extension of that
functionality since the type class could contain implementation code.

Rich Scheuerle
XML & Web Services Development
512-838-5115  (IBM TL 678-5115)


   
 
  Russell  
 
  Butek/Austin/IBM@To:   [EMAIL PROTECTED]  
 
  IBMUScc: 
 
   Subject:  Re: WSDL2Java data-holder 
generation (or not)  
  03/06/2002 04:41 
 
  PM   
 
  Please respond to
 
  axis-user
 
   
 
   
 



Could you show me a concrete example of what you desire so I can be sure I
understand what you're asking for?  What sort of functionality are you
losing?  It shouldn't matter what the server-side vs client-side code looks
like as long as the SOAP messages sent back-and-forth are understood.

The WSDL2Java option would probably be rather complex.  Since it doesn't
know about the existing server-side classes, you'd have to give it lots of
information to find those classes.

Russell Butek
[EMAIL PROTECTED]


Bob Cotton <[EMAIL PROTECTED]>@synxis.com on 03/06/2002 03:27:06 PM

Please respond to [EMAIL PROTECTED]

Sent by:[EMAIL PROTECTED]


To:[EMAIL PROTECTED]
cc:
Subject:WSDL2Java data-holder generation (or not)




It seems with axis, when doing Java <-> Java development the easiest
thing is to use Java2WSDL then WSDL2Java to get your client stubs.

If I have access to the same data-holder classes on both sides, it
seems I loose functionality that may be in my Bean classes on the
server-side when I generate the client-side data-holders.

Would it be possible to add a switch to WSDL2Java to NOT generate the
data-holders and instead use the "server-side" classes?

Thanks

 - Bob


--
SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are those frightful
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see when you take
your
Denver, CO  80202   | Fax:(303)534-4257 | eyes off your goal.  -Henry
Ford









Re: WSDL2Java data-holder generation (or not)

2002-03-06 Thread Bob Cotton

> "Russell" == Russell Butek <[EMAIL PROTECTED]> writes:

Russell> Could you show me a concrete example of what you desire
Russell> so I can be sure I understand what you're asking for?
Russell> What sort of functionality are you losing?  It shouldn't
Russell> matter what the server-side vs client-side code looks
Russell> like as long as the SOAP messages sent back-and-forth are
Russell> understood.

I have some data-holder classes that the service uses to return data
to client. These data-holders have the full complement of getters and
setters so they can be passed through the BeanSerializer. They also
home some other functionality such as toString(), for example, that
returns the bean's getName() method. We would like to preserve this
behavior on the client side.

Russell> The WSDL2Java option would probably be rather complex.
Russell> Since it doesn't know about the existing server-side
Russell> classes, you'd have to give it lots of information to
Russell> find those classes.

Currently Java2WSDL, if not supplied with any package->NS mapping will
provide its own:

  http://va.cdo.webservices.srms.synxis.com"; 
xmlns="http://www.w3.org/2001/XMLSchema";>


With this present, WSDL2Java will use the above namespace to generate
a data-holder into com.synxis.srms.webservices.cdo.va. (The exact
place that the data-holders currently live) and my classes will be
overwritten.

The generated deploy.wsdd has the right package names for the
beanMappings. So I delete the generated data-holders, and use my
original (on both sides) and all is good.

Because we control both sides of the app, I would like to use our
existing data-holders. 

All I want is an option to suppress the generation of the
data-holders. Leave everything else as it is.

- Bob

Russell> Bob Cotton <[EMAIL PROTECTED]>@synxis.com on 03/06/2002
Russell> 03:27:06 PM

Russell> Please respond to [EMAIL PROTECTED]

Russell> Sent by: [EMAIL PROTECTED]


Russell> To: [EMAIL PROTECTED] cc: Subject: WSDL2Java
Russell> data-holder generation (or not)




Russell> It seems with axis, when doing Java <-> Java development
Russell> the easiest thing is to use Java2WSDL then WSDL2Java to
Russell> get your client stubs.

Russell> If I have access to the same data-holder classes on both
Russell> sides, it seems I loose functionality that may be in my
Russell> Bean classes on the server-side when I generate the
Russell> client-side data-holders.

Russell> Would it be possible to add a switch to WSDL2Java to NOT
Russell> generate the data-holders and instead use the
Russell> "server-side" classes?

Russell> Thanks

Russell> - Bob


Russell> -- SynXis Corporation | [EMAIL PROTECTED] | Obstacles are
Russell> those frightful 1610 Wynkoop, Suite 400 | Ph:
Russell> (303)595-2511 | things you see when you take your Denver,
Russell> CO 80202 | Fax:(303)534-4257 | eyes off your goal.
Russell> -Henry Ford



-- 
SynXis Corporation  | [EMAIL PROTECTED]| Obstacles are those frightful 
1610 Wynkoop, Suite 400 | Ph: (303)595-2511 | things you see when you take your
Denver, CO  80202   | Fax:(303)534-4257 | eyes off your goal.  -Henry Ford




Where is the "Axis Architecture Guide"

2002-03-06 Thread thilo.frotscher

Hi everybody,

reading the Axis User Guide for alpha 3, I found the following
text: "...for more details please see the Axis Architecture Guide,
a separate document."

Where can I find this document? I would appreciate access even
to a document in alpha status ;-)

Thanks,
Thilo


__
Darf es ein bisschen mehr sein? Mehr Speicher, mehr Mail, mehr Erlebnis, 
mehr Leistung, mehr Prämie unter http://club.web.de/?mc=021102




interfaces as service parameters?

2002-03-06 Thread Oliver Suciu

Hi all,

Would the following work in Axis? And in JAX-RPC?

// the service to be exposed:
public interface MyServiceProvider extends java.rmi.Remote {
  public MyData doSomething(MyData someData) throws java.rmi.RemoteException;
}

// the interface that all data objects must implement:
public interface MyData extends java.io.Serializable {
}

// some specific data object:
public class SpecificData implements MyData {
  public boolean flag;
}

???

Thx,

-- Oliver



Re: Where is the "Axis Architecture Guide"

2002-03-06 Thread Stan Jordan

Thilo...
Get a recent nightly download, install, and look here:
  C:\xml-axis\docs\architecture-guide.html
Cheers.
Stan

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 06, 2002 4:16 PM
Subject: Where is the "Axis Architecture Guide"


Hi everybody,

reading the Axis User Guide for alpha 3, I found the following
text: "...for more details please see the Axis Architecture Guide,
a separate document."

Where can I find this document? I would appreciate access even
to a document in alpha status ;-)

Thanks,
Thilo



__
Darf es ein bisschen mehr sein? Mehr Speicher, mehr Mail, mehr Erlebnis,
mehr Leistung, mehr Prämie unter http://club.web.de/?mc=021102






Session in Web Service

2002-03-06 Thread Willy Ching

Hello All,

I'm new in web services. Is there a concept of session in web services? 

thanks for any feedback.

willy



* NullPointerException on passing arguments to function..

2002-03-06 Thread Kumar, Vinay 2

hello,

i've created a TOMCAT/AXIS web service
& calling it as shown below:


///
java.lang.Boolean status;
mService = new org.apache.axis.client.Service();
mCall= (org.apache.axis.client.Call) mService.createCall();
mCall.setTargetEndpointAddress(new java.net.URL(mUrl));
/* 
* calling function: boolean Init( String str1, String str2, String str3)
*/
status = (java.lang.Boolean)mCall.invoke("Init", new Object[] {str1, str2,
str3});
/* 
* calling function: boolean State()
*/
status = (java.lang.Boolean)mCall.invoke("State, (java.lang.Object[])null);

///

this code works fine, if i'm not passing arguments to function
enlisting the error stack

pl. suggest


java.lang.NullPointerException
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
4)
at
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo
ntext.java:671)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1489)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.content(Parser2.java:1700)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1468)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:499)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:346)
at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext
.java:204)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:378)
at org.apache.axis.client.Call.invoke(Call.java:1268)
at org.apache.axis.client.Call.invoke(Call.java:1113)
at org.apache.axis.client.Call.invoke(Call.java:1043)
at org.apache.axis.client.Call.invoke(Call.java:1069)
at GenericApplet.actionPerformed(GenericApplet.java:160)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown
Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)




Re: how to install/deploy sample xml-axis applications

2002-03-06 Thread Monika Solanki
Title: how to install/deploy sample xml-axis applications



Hi

say for e.g you are trying to run the stock example. If your JRun is on 
localhost:8080, Go to your AXIS_HOME\samples\stock  directory and run 

java org.apache.axis.client.AdminClient -lhttp://localhost:8080/axis/services/AdminService
deploy.wsdd 
from there. this command would deploy your stock service on JRun.

Hope this helps...

cheers!

Monika

Ma, June wrote:
[EMAIL PROTECTED]">
  
  
  Hi experts,
  I am trying to install and run the samples
that come with axis alpha3 and are having some problems. I am following the
steps described in ..\xml-axis-alpha3\docs\install.html file. I have JRun
3.1 installed and is up and running. 
  The question is that what should be the
command that I should use in Step 5 and from which directory I should run
it ?
  Especially, what should be the AXIS servlet
URI that I should use for the -l parameter ?
  Thanks,
  -June
  
  
  -- 
 >**<>**<>**<>**<>**<>**<>**<>**<>**<>**<
 
 Monika Solanki
 De Montfort University 
 Software Technology Research Laboratory
   Hawthorn building, H00.18  
 The Gateway. 
 Leicester LE1 9BH, UK  
  
phone: +44 (0)116 250 6170  intern: 6170
 >**<>**<>**<>**<>**<>**<>**<>**<>**<>**<