Re: List with HTTP servers on with AXIS installs and runs?

2002-06-14 Thread Martin Jericho

Why wait until the list is complete?  I encountered the problem with the
jaxrpc.jar file myself a couple of weeks ago, asked for help in the mailing
list, and got no response.  I then emailed another person with the same
problem, who had also asked in the mailing list and got no response, and
finally got the answer.  It has wasted a lot of person-hours simply because
no-one has bothered adding it to the installation instructions.  Things like
this really get on my goat!

- Original Message -
From: Schie, Sjaak van [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 4:18 PM
Subject: List with HTTP servers on with AXIS installs and runs?


 Hello All,

 When tring to install Axis I discovered, like others also did ;-), that
some
 versions of TomCat don't work after following the installation
instructions.

 Probably other people also discovered some difficulties when installing
Axis
 on other HTTP servers. Maybe they even have a workaround for to make Axis
 run.

 Is it a good idea to create a list with HTTP servers on which the AXIS
beta2
 has been installed and runs. And a workaround when that is available.

 A start for this list can be:
 --
 TomCat 4.0.1 | OK
 TomCat 4.0.2 | Class loading problems | Move jaxrpc.jar to common/lib
 directory
 TomCat 4.0.3 | Class loading problems | See TomCat 4.0.2
 TomCat 4.0.4-b3 | OK
 --

 Then when the list is complete enough I suggest it to be added to the
 installation documentation.

 Sjaak van Schie


 --
 The contents of this e-mail are intended for the named addressee only. It
 contains information that may be confidential. Unless you are the named
 addressee or an authorized designee, you may not copy or use it, or
disclose
 it to anyone else. If you received it in error please notify us
immediately
 and then destroy it.








how to get an exist session

2002-06-14 Thread William Guo

Hello All,
   I use session in a service as following:
   Session session =
MessageContext.getCurrentContext().getSession();
   session.set(test, Hello World!);
   
   Then in another service, I want to find out the
session and get the object Hello World! in it.
   How can I find out the session?
   if I use the following setense:
Session session =
MessageContext.getCurrentContext().getSession();
   then I find it produce a new session.
   
   I looked throuth some old message in the mail list
and still don't know the answer.

   Thanks in advance!
   William Guo

_
Do You Yahoo!? 
2002ÄêÊÀ½ç±­ÈºÐÛ÷éÕ½ ÑÅ»¢Öйú¾Û½¹ÈÕº«
http://cn.fifaworldcup.yahoo.com/



Re: Proper use of ServiceLifecycle (Re: question on migrating from Soap 2.2 to Axis)

2002-06-14 Thread Miguel A Paraz

On Thu, Jun 13, 2002 at 10:49:10AM -0500, Andrew Vardeman wrote:
 No, sessions aren't required.  I was describing something I'm using for 
 which the ServiceLifecycle functionality was added more recently than beta 
 2.  Just thought maybe the functionality you're looking for was added 
 recently too.  But it sounds like your problem is something different and 
 that's all I've got, so... good luck :)

Thanks :)  It's not all that important since I'm still experimenting.

What would be another way of maintaining a persistent database connection,
connecting and disconnecting from a database upon service startup and shutdown?  

-- 
Miguel A Paraz http://mparaz.com  Mobile: +63-916-423-7922
Imperium Technology, Inc.  [EMAIL PROTECTED]Office: +63-2-812-3155




RE: Exposing EJBs as web services...

2002-06-14 Thread Mark_Palmer


Exposing an EJB as a web service sounds very interesting.

Does anyone know how session state is maintained?  If the EJB's methods are
actually exposed to Axis clients, how is session timeout state handled?
When a session is completed (say it's a stateful session bean), how does
Axis know that the session and the bean need to be destroyed?

-Mark

--
There is no spoon.
--


   
  
Hurst, Cyrus 
  
Cyrus_Hurst@tvra   To: '[EMAIL PROTECTED]' 
[EMAIL PROTECTED]  
tings.com  cc:
  
Subject: RE: Exposing EJBs as web 
services...
06/13/2002 06:02   
  
PM 
  
Please respond to  
  
axis-user  
  
   
  
   
  




Hello,

   To solve the NoClassDefFoundErrors I had to copy the Remote and
Home
interfaces for my EJB and any classes that the Remote
interface has
dependencies on into the axis/WEB-INF/classes/ directory . Once I got thru
that I kept
  getting unknown operation(on both client and server console)  on the
exposed method of the EJB . So I
  wrote and deployed  a class
   as a web-service(using provider=java:RPC)  that basically acts as
a
delegate to the EJB . I used the
   same client code to test it and it ran fine . I undeployed that
web-service and re-deployed the other
 web-service using provider =java:EJB  and I still get the unkown
operation on the method of the EJB.
 My deployment descriptors are as follows:

For RPC -
deployment xmlns=http://xml.apache.org/axis/wsdd/;
   xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
   xmlns:xsi=http:/www.w3.org/2000/10/XMLSchema-instance
   service name=AssociateInfo provider=java:RPC
 parameter name=className value=TestCprEJBClient
/
 parameter name=allowedMethods
value=getAssociateIDFromDMZID /
   /service
/deployment

For EJB -
deployment xmlns=http://xml.apache.org/axis/wsdd/;
xmlns:java=http://xml.apache.org/axis/wsdd/providers/java;
xmlns:xsi=http:/www.w3.org/2000/10/XMLSchema-instance
service name=AssociateInfo provider=java:EJB
parameter name=beanJndiName value=jndi/ejb/AssociateSessionEJB
/
parameter name=homeInterfaceName
value=com.nielsenmedia.lrs.cpr.associate.AssociateSessionHome /
parameter name=allowedMethods value=getAssociateIDFromDMZID/
parameter name=jndiURL value=t3://d2loc:9023 /
parameter name=jndiContextClass
value=weblogic.jndi.WLInitialContextFactory /
/service
/deployment

As you can see I'm using the same operation name for both styles . In the
delegate class(TestCprEJBClient) I use the same parameters in the EJB wsdd
to do  jndi lookup, create Home interface, etc  Am I missing something?


Thanks,
-Cyrus




-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:01 PM
To: [EMAIL PROTECTED]
Subject: RE: Exposing EJBs as web services...


Exception messages can just be serialized and passed form one client to
another.
May be trying to write an independent EJB client and making it work first
can be a good idea. It will remove the Axis piece. This EJB client should
be
able to work only with the Home and remote interface in the classpath. If
you are still getting some exceptions on the weblogic console, it means
that
your bean is not correctly deployed.
-Original Message-
From: Hurst, Cyrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 5:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Exposing EJBs as web services...


  Both ..On the client console I get :
  weblogic.rmi.extensions.RemoteRuntimeException - with nested
exception:
[java.lang.NoClassDefFoundError:
com/nielsenmedia/lrs/cpr/common/CPREnterpriseException]
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13


4)
at

Question about invoking webservice

2002-06-14 Thread Jatinder Singh

Hi,
I am using WSTK3.1 , i want to invoke a webservice by instantiating the
stub generated with WSDL2JAVA. But i am not able to invoke it. Please help.
The error i got is:

Root element must be ''clientdeploy'', ''deploy'', ''undeploy'', ''list'',
''passwd'', or ''quit''
at org.apache.axis.message.SOAPFaultBuilder.endElement(Unknown
Source)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Unknown
Source)
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.java:1550)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1204)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:393)
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
HelloWorldService_Interface.ServiceSoapBindingStub.hello(ServiceSoapBindingS
tub.java:101)
at HelloClient.main(HelloClient.java:13)




Re: List with HTTP servers on with AXIS installs and runs?

2002-06-14 Thread Jim . Jackson


Does anyone know about tomcat 4.1.2?
That is the tomcat that is distributed by Sun in the

 Java Web Services Developer Pack (JWSDP) 1.0.  

 I do not have an installation problem, but a runtime problem.  




Jim Jackson
SunGard EBS


   
   
Schie, Sjaak van 
   
[EMAIL PROTECTED]   To: 
'[EMAIL PROTECTED]' [EMAIL PROTECTED]
uware.com cc: 
   
   Subject: List with HTTP servers 
on with AXIS installs and runs?
06/14/2002 01:18 AM
   
Please respond to  
   
axis-user  
   
   
   
   
   




Hello All,

When tring to install Axis I discovered, like others also did ;-), that
some
versions of TomCat don't work after following the installation
instructions.

Probably other people also discovered some difficulties when installing
Axis
on other HTTP servers. Maybe they even have a workaround for to make Axis
run.

Is it a good idea to create a list with HTTP servers on which the AXIS
beta2
has been installed and runs. And a workaround when that is available.

A start for this list can be:
--
TomCat 4.0.1 | OK
TomCat 4.0.2 | Class loading problems | Move jaxrpc.jar to common/lib
directory
TomCat 4.0.3 | Class loading problems | See TomCat 4.0.2
TomCat 4.0.4-b3 | OK
--

Then when the list is complete enough I suggest it to be added to the
installation documentation.

Sjaak van Schie


--
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or
disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.





Confidentiality Notice:

The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above.  This
message may contain confidential information.  If the reader of this
message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified that you
have received this document in error and that any review, dissemination,
distribution, or copying of this  message is strictly prohibited.  If you
have received this communication in error, please notify us immediately by
e-mail, and delete the original message.




Complex Data type

2002-06-14 Thread Aravind Chavar

Hi,
I am trying to build a webservice, which uses complex type parameters.The 
method I am following to deploy the web services is , change the .java 
extension of the file to .jws and place it in axis directory.Following is 
the source code

import java.io.*;
import java.util.* ;


/**
*
* author Arvind Chavar
*/
public class ComplexTypeOneService {
   public OutBean[] getBeans(InBean[] inBeans){
   OutBean[] result = new OutBean[inBeans.length];
   int sqrNum = 0;

   for(int i=0;iinBeans.length;i++){
   sqrNum = inBeans[i].getNum();
   result[i] .setNum(sqrNum*sqrNum);
   }

   return result;
   }
}

class OutBean{
  private int num;

  public OutBean(){

  }

  public void setNum(int num){
this.num = num;
  }

  public int getNum(){
return num;
  }
}

class InBean extends OutBean{

}


When I try to access the wsdl using following URL , the java classes for al 
three classes are complied and placed in WEB-INFJwsclasses directory under 
axis
http://localhost:8080/axis/complex/ComplexTypeOneService.jws?wsdl

Instead of getting the wsdl I get following error, eventhough the class file 
is existing there


AXIS error
Sorry, something seems to have gone wrong... here are the details:

java.lang.NoClassDefFoundError: OutBean



Why is this happening?.Any idea?.

Thanks.

Arvind




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com




Re: List with HTTP servers on with AXIS installs and runs?

2002-06-14 Thread Heitzso

Just want to flag that this problem gets thrashed on the email
list about once a week, which is probably why others didn't respond
right away.

Tomcat 4.0.something tries to insure that a war file cannot
run java.blat and javax.blat class files from its WEB-INF/lib and
perhaps circumvent security thereby.

Axis tries to be on the bleeding edge of standards, and hence
requires the use of jaxrpc et al.  You cannot put these files in
WEB-INF/lib because tomcat-trying-to-be-secure ignores them.

You have a couple of solutions, depending on the JVM you're using.

With JVM 1.4.x the simplest thing is to use 
-Djava.endorsed.dirs=path-to-axis-lib

Otherwise you need to get these files loaded in a basic way into
the classpath.  With tomcat 4.0.3 you typically put a single jar
into the classpath and then, on the way up, tomcat scrounges
around and picks up extra jars from it's lib directories.

Now the above description may not be quite perfect, but I believe
it's close to reality. Where I get fuzzy is the class ordering
between jre extension library directories, the java.endorsed.dirs
directories, classpath, tomcat common and other lib directories, 
et al.  

Note that if you use 1.4.0 jvm I believe you have to use
java.endorsed.dirs because the jvm ships with some standard
extensions that are not up to snuff for bleeding edge axis.

One other odd maybe-true info point is a rumor that tomcat
4.0.4 can be configured to use java/javax files in WEB-INF/lib
to make life easier.  

Please don't be harsh on this list.  I've been monitoring it
for awhile and I've seen this problem and variations on the
solution mentioned a good dozen times over the past few
months.  If you searched the archives you may have missed
the info because it tended to focus on the jvm more than on
the servlet container.

  
Heitzso



On Fri, 2002-06-14 at 02:18, Schie, Sjaak van wrote:
 Hello All,
 
 When tring to install Axis I discovered, like others also did ;-), that some
 versions of TomCat don't work after following the installation instructions.
 
 Probably other people also discovered some difficulties when installing Axis
 on other HTTP servers. Maybe they even have a workaround for to make Axis
 run.
 
 Is it a good idea to create a list with HTTP servers on which the AXIS beta2
 has been installed and runs. And a workaround when that is available.
 
 A start for this list can be:
 --
 TomCat 4.0.1 | OK
 TomCat 4.0.2 | Class loading problems | Move jaxrpc.jar to common/lib
 directory
 TomCat 4.0.3 | Class loading problems | See TomCat 4.0.2
 TomCat 4.0.4-b3 | OK
 --
 
 Then when the list is complete enough I suggest it to be added to the
 installation documentation.
 
 Sjaak van Schie
 
 
 -- 
 The contents of this e-mail are intended for the named addressee only. It
 contains information that may be confidential. Unless you are the named
 addressee or an authorized designee, you may not copy or use it, or disclose
 it to anyone else. If you received it in error please notify us immediately
 and then destroy it. 
 





re: creating wsdl from java when using abstract classes

2002-06-14 Thread James Black

Hello,
  I have an abstract class called AbstractCommon that has an attribute
called jceProvider that it has setters and getters for.
  I have another class, Location, that extends AbstractCommon.

  In the wsdl file element name=jceProvider ... exists in the
declaration for both AbstractCommon and Location.

  This causes problems when I try to use .NET to create a client, as it
sees two declarations for the same element.

  Any idea how I can just have it include an element only once, or not
include the element at all?
  My problem appears to start with java2WSDL btw.

  Thank you.




re: creating wsdl from java when using abstract classes

2002-06-14 Thread scheu

Is this the latest version of Java2WSDL ? 
Does the Location class have setters and getters for jceProvider ? 
(probably so since AbstractCommon is abstract)

This sounds like a bug in the Java2WSDL processing not correctly 
understanding that the setters/getters are the concrete methods
for the jceProvide in the abstract base class. 

Please open a bugzilla bug.

Thanks

Rich 'Shirley' Scheuerle
IBM WebSphere  Axis Web Services Development
512-838-5115  (IBM TL 678-5115)




James Black [EMAIL PROTECTED]
06/14/2002 10:17 AM
Please respond to axis-user

 
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
cc: 
Subject:re: creating wsdl from java when using abstract classes

 

Hello,
  I have an abstract class called AbstractCommon that has an attribute
called jceProvider that it has setters and getters for.
  I have another class, Location, that extends AbstractCommon.

  In the wsdl file element name=jceProvider ... exists in the
declaration for both AbstractCommon and Location.

  This causes problems when I try to use .NET to create a client, as it
sees two declarations for the same element.

  Any idea how I can just have it include an element only once, or not
include the element at all?
  My problem appears to start with java2WSDL btw.

  Thank you.







Re: Complex Data type

2002-06-14 Thread Jürgen Kaatz

Hi Aravind,

perhaps the error is, that your bean isn't declared as a public class.
Juergen

I am trying to build a webservice, which uses complex type parameters.The 
method I am following to deploy the web services is , change the .java 
extension of the file to .jws and place it in axis directory.Following is 
the source code

import java.io.*;
import java.util.* ;


/**
*
* @author Arvind Chavar
*/
public class ComplexTypeOneService {
   public OutBean[] getBeans(InBean[] inBeans){
   OutBean[] result = new OutBean[inBeans.length];
   int sqrNum = 0;

   for(int i=0;iinBeans.length;i++){
sqrNum = inBeans[i].getNum();
   result[i] .setNum(sqrNum*sqrNum);
   }

return result;
   }
}

class OutBean{
  private int num;

  public OutBean(){

  }

  public void setNum(int num){
this.num = num;
  }

  public int getNum(){
return num;
  }
}

class InBean extends OutBean{

}


When I try to access the wsdl using following URL , the java classes for 
al three classes are complied and placed in WEB-INFJwsclasses directory 
under axis
http://localhost:8080/axis/complex/ComplexTypeOneService.jws?wsdl

Instead of getting the wsdl I get following error, eventhough the class 
file is existing there


AXIS error
Sorry, something seems to have gone wrong... here are the details:

java.lang.NoClassDefFoundError: OutBean



Why is this happening?.Any idea?.

Thanks.

Arvind




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com

-
Juergen Kaatz
Entwickler / Developer
WWE e-commerce IT GmbH
Eiffestrasse 462
20537 Hamburg
URL: http://www.e-commerceit.de/
URL: http://www.iets.de/ (Internet Export Trading System)
Tel: +49-40-2530659-32
Fax: +49-40-2530659-50
Tel. +49-40-2530659-0 (Zentrale)
E-Mail : [EMAIL PROTECTED]




Correct Pasrser with AXIS

2002-06-14 Thread Irfan Niaz








Hi 





Which XML parser should I use with AXIS ?






Regards,

Irfan 














Re: Correct Pasrser with AXIS

2002-06-14 Thread Heitzso

I've successfully used xerces -- both the 
current 1.x series and current 2.x series work
with it.  

Note 2.x series is comprised of 2 jar files
at the moment.

Heitzso


On Fri, 2002-06-14 at 14:19, Irfan Niaz wrote:
 Hi 
  
  
 Which XML parser should I use with AXIS ? 
  
  
 Regards,
 Irfan 
  
  
  





Re: axis beta 2 in Win2k with TomCat from the JavaTM Web ServicesDeveloper Pack 1.0

2002-06-14 Thread David Gadd

Jim,

* #7 is the same for me. It doesn't seem to actually VERIFY it.
* I have an article online with detailed Axis install instructions 
and detailed use of the Java2WSDL and WSDL2Java utilities that may be 
of some help to you. You can find it at 
http://www.gaddzeit.com/articles/frame_article2.html

David Gadd
gaddzeit.com

Axis seems to be having a problem returning wsdl for a .jws service.
Items 1-7 show all the clues I have.
Anybody have an idea as to what is wrong?
Any help is surely appreciated.


1. Simple jws file
public class MyMath
{
  public int squared(int x)
  {
   return x * x;
  }
}
saved in tomcat home 's webapps dir as MyMath.jws

2. Typing http://localhost:8080/axis/MyMath.jws?wsdl in the browser does
not return anything. A blank page. View source displays
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN
HTMLHEAD
META http-equiv=Content-Type content=text/html;
charset=windows-1252/HEAD
BODY/BODY/HTML

3.
 

 

 

  java org.apache.axis.wsdl.WSDL2Java 
http://localhost:8080/axis/MyMath.jws?wsdl;
  from the command 
line   
 

 



returns
- Exception:
org.xml.sax.SAXException: Fatal Error:
URI=http://localhost:8080/axis/MyMath.jws?wsdl Line=1: Document root
element is missing.
  at
org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:472)
  at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3185)
  at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3170)
  at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:501)
  at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
  at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
  at
org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
  at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:243)
  at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:256)
  at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:151)
  at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
  at java.lang.Thread.run(Thread.java:536)
java.io.IOException: Unable to retrieve WSDL document:
http://localhost:8080/axis/MyMath.jws?wsdl
  at org.apache.axis.wsdl.toJava.Emitter.emit(Emitter.java:153)
  at org.apache.axis.wsdl.WSDL2Java$WSDLRunnable.run(WSDL2Java.java:725)
  at java.lang.Thread.run(Thread.java:536)

Which I guess is because of the same problem as #1.

4.  Axis seems to be installed and running because
http://localhost:8080/axis/servlet/AdminServlet returns
Server is running


start server


stop server


and http://localhost:8080/axis/servlet/AxisServlet


returns


And now... Some Services
  Version
   main
   getVersion
  AdminService
   main
   class$
   process
   getOptions
   getOptions
   listConfig
   registerTypeMappings
   registerTypes
   AdminService
   processWSDD
   registerChain
   registerService
   registerHandler
   registerTransport
   registerTypeMapping


5. webapps\axis\web-infjwsclasses has the MyMath.class file in it as if
axis did compile the jws file


6.  Making an intentional error in the MyMath.jws and then typing
http://localhost:8080/axis/MyMath.jws?wsdl in the browser returns


AXIS error

Sorry, something seems to have gone wrong... here are the details:


Error while compiling:  C:
\jwsdp-1_0\webapps\axis\WEB-INFjwsClasses\MyMath.java


However, the MyMath.java is not in the path displayed.


So this also leads me to think Axis is installed and at least trying to
work.





7. Finally, typing http://localhost:8080/axis/anythingyouwanttotype.jws
into the browser returns


axis/anythingyouwanttotype.jws


Hi there, this is an AXIS service!


Perhaps there will be a form for invoking the service here...


even when that jws file is non existent.


This might be just a different Axis bug.
















Jim Jackson
SunGard EBS

  Confidentiality Notice:

The information contained in this e-mail message is intended only for the
personal and confidential use of the recipient(s) named above.  This
message may contain confidential information.  If the reader of this
message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified that you
have received this document in error and that any review, dissemination,
distribution, or copying of this  message is 

org.xml.sax.SAXException: Bad types (null - class java.lang.String)

2002-06-14 Thread Michael K. Dean

Axis is not setting a null string.  I get the following error:

7066344 [ExecuteThread: '11' for queue: 'default'] ERROR http.AxisServlet
- Exception:
org.xml.sax.SAXException: Bad types (null - class java.lang.String)
org.xml.sax.SAXException: Bad types (null - class java.lang.String)
at
org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:207)
at
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:859)
at
org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:199)
at
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:637)
at
org.apache.axis.message.RPCElement.deserialize(RPCElement.java:200)
at
org.apache.axis.message.RPCElement.getParams(RPCElement.java:258)
at
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:161)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:285)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:286)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:570)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)


It looks like  the onStartChild of the RPCHandler call
JavaUtils.isConvertable which

public SOAPHandler onStartChild(String namespace,
String localName,
String prefix,
Attributes attributes,
DeserializationContext context)
throws SAXException
{
if (log.isDebugEnabled()) {
log.debug(Enter: RPCHandler.onStartChild());
}

.
if (paramDesc != null) {
// Keep the association so we can use it later
// (see RPCProvider.processMessage())
currentParam.setParamDesc(paramDesc);

if (type == null) {
type = paramDesc.getTypeQName();
} else if (paramDesc.getJavaType() != null) {
// If we have an xsi:type, make sure it makes sense
// with the current paramDesc type
Class xsiClass =
context.getTypeMapping
().getClassForQName(type);
if (!JavaUtils.isConvertable(xsiClass,
 paramDesc.getJavaType()))
{
throw new SAXException(Bad types ( +
xsiClass +  -  + paramDesc.getJavaType() +
)); // FIXME!
}
}
}
}


Which call JavaUtils.isHolderClass(Class) to see if the String is a holder
class which it is not so iJavaUtils reports that it can not convert the
null to a string which is true but you should be able to set any object to
null.

Is this a bug or am I doing something wrong.  This seemed to work with Beta
1.


Thanks

Michael





Help: Q about supported operation modes

2002-06-14 Thread Wei Chen

Hi,

The attached WSDL is the test I run to find out what operation modes Axis supports.

I run java org.apache.axis.wsdl.WSDL2Java -s -Nurn:MyService=some.pk MyService.wsdl 
to generate Java classes.

Axis generates one SEI based on portType name for both rpc/encoded and 
document/encoded stubs, one SEI based on binding name for rpc/literal stub and one SEI 
based on binding name for document/literal stub. All the SEI have the same operation 
signature. Why are there three SEIs? Is this compliant with JAX-RPC?

When I run the test, only rpc/encoded succeeded. All the other operation modes failed.

For both document/literal and document/encoded, I got No such operation from 
RPCProvider. Does Axis only support wrapped/document style? Or is the document style 
is only intended for MSGProvider? If yes, is this compliant with JAX-RPC?

For rpc/literal, I got Invalid element in BeanDeserializer. Does Axis support 
rpc/literal operation mode?

Thanks.

- Wei Chen MyService.WSDL 






MyService.WSDL
Description: MyService.WSDL


re: building test cases in Axis

2002-06-14 Thread James Black

Hello,
  When the test case is built in axis, it would be helpful if it had a 
main method, and was able to be ran without having to add this info.
  I added two methods (one being the main, the other suite) and it 
worked fine.

  Just a thought.




Re: version 1.0

2002-06-14 Thread Steve Loughran


- Original Message -
From: robert woodley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 14, 2002 13:24
Subject: version 1.0


 There was a previous post on this topic, but no
 answer.

 Can anyone give a date when v1.0 might be released? Or
 even a rough idea?

I dont know, but I do know it wont happen until after v1.0 of the jaxrpc
stuff in the Java Community Program are released, because that is a
dependency.

Will there be more betas between
 now and then?

yes,