Antwort: Re: Blockers for Axis 1.2 Final

2005-04-28 Thread Oliver Wulff
What about http://issues.apache.org/jira/browse/AXIS-1947?

This bug prevents us from using Axis in client applications. There is no
workaround.



   
  "Tim K. (Gmane)" 
  <[EMAIL PROTECTED]An:   
axis-user@ws.apache.org
  net> Kopie:  
  Gesendet von:Thema:Re: Blockers for Axis 
1.2 Final
  news 
  <[EMAIL PROTECTED]
  rg>  
   
   
  29.04.2005 02:23 
  Bitte antworten  
  an axis-user 
   
   




I just filed another blocker bug, it's a regression from RC2:

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

Tim



Davanum Srinivas wrote:

>Hi all,
>
>FYI, There are 2 last remaining blockers for Axis 1.2 Final:
>- http://issues.apache.org/jira/browse/AXIS-1838
>- http://issues.apache.org/jira/browse/AXIS-1547
>
>I'd encourage everyone to try latest CVS / Nightly ASAP.
>http://cvs.apache.org/dist/axis/nightly/
>http://cvs.apache.org/snapshots/ws-axis/
>
>Thanks,
>dims
>
>
>









*** BITTE BEACHTEN ***
Diese Nachricht (wie auch allfällige Anhänge dazu) beinhaltet
möglicherweise vertrauliche oder gesetzlich geschützte Daten oder
Informationen. Zum Empfang derselben ist (sind) ausschliesslich die
genannte(n) Person(en) bestimmt. Falls Sie diese Nachricht
irrtümlicherweise erreicht hat, sind Sie höflich gebeten, diese unter
Ausschluss jeder Reproduktion zu zerstören und die absendende Person
umgehend zu benachrichtigen. Vielen Dank für Ihre Hilfe.



Re: Re: Xerces with Axis1.2RC3

2005-04-28 Thread Chris Angelo Yu Averia
Hello Fernando,

when I viewed happyaxis.jsp that comes along with the Axis
package,  there is a section:

**
Examining Application Server
Servlet version 2.4 
XML Parser org.apache.xerces.jaxp.SAXParserImpl 
XML ParserLocation an unknown location 
**

So I guess its the Xerces-J2...I understand that the XML parser
that comes along JDK is Crimson right?

Any more details that I can provide to help your analysis?
 
Thanks!





Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


 On Thu, 28 Apr 2005, Fernando Nasser ([EMAIL PROTECTED])
wrote:

> Are you sure it is the Xerces-j2 jar that comes with Tomcat
that is 
> being picked or the broken xerces-j-based implementation that
comes with 
> the JDK?
> 
> Regards,
> Fernando
> 
> Chris Angelo Yu Averia wrote:
> > Hello,
> > 
> > I am just new to Axis.  Hope you can help out with my
concern. 
> > I am using JDK 1.4, Tomcat 5.0 and Axis 1.2RC3.
> > 
> > As stated in the installation guide, Axis prefers to use
Xerces
> > as its XML parser.  So no problem here, since I am using
Tomcat,
> > Xerces is already included in the
> > "/common/endorsed" directory.  I am just
quite
> > puzzled with how the Xerces XML Parser
> > "org.apache.xerces.jaxp.*" gets picked up by the
classloader.  
> > 
> > If I leave XercesImpl.jar in the
> > "/common/endorsed" directory, as
> > expected, it is loaded by the bootstrap.  However, if I move
> > XercesImpl.jar to
> > "WEB-INF/lib" directory, it also gets picked up the
bootstrap
> > class loader.  I always thought that placing a JAR file in
the
> > "WEB-INF/lib"
> > (aside from the javax packages) will get picked up by the
> > WebAppClassLoader...
> > 
> > But when I tried to use an XML parser from IBM and put it in
> > WEB-INF/lib directory, it gets correctly picked up by the
> > WebAppClassLoader.
> > 
> > So my question is why does the Xerces Parser
> > "org.apache.xerces.jaxp.*", when moved to WEB-INF/lib, gets
> > picked up by the bootstap classloader instead of the
> > WebAppClassLoader?  
> > 
> > Any ideas?
> > 
> > Thanks in advance!
> > Chris
> > 
> > 
> > 
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more
> > http://www.ureach.com/reg/tag
> > 
> 
> -- 
> Fernando Nasser
> Red Hat Canada Ltd. E-Mail: 
[EMAIL PROTECTED]
> 2323 Yonge Street, Suite #300
> Toronto, Ontario   M4P 2C9
> 
> 



Re: Blockers for Axis 1.2 Final

2005-04-28 Thread Tim K. (Gmane)
I just filed another blocker bug, it's a regression from RC2:
http://issues.apache.org/jira/browse/AXIS-1966
Tim

Davanum Srinivas wrote:
Hi all,
FYI, There are 2 last remaining blockers for Axis 1.2 Final:
- http://issues.apache.org/jira/browse/AXIS-1838
- http://issues.apache.org/jira/browse/AXIS-1547
I'd encourage everyone to try latest CVS / Nightly ASAP.
http://cvs.apache.org/dist/axis/nightly/
http://cvs.apache.org/snapshots/ws-axis/
Thanks,
dims
 




RE: Unable to find javac compiler

2005-04-28 Thread Soti, Dheeraj
Title: Message



To do 
a quick fix you can grab the tool.jar from your java directory and drop it under 
your WEB-INF/lib

  
  -Original Message-From: Ponze, Bart 
  [mailto:[EMAIL PROTECTED] Sent: Thursday, April 28, 2005 4:58 
  PMTo: 'axis-user@ws.apache.org'Subject: Unable to find 
  javac compiler
  I am getting 
  "Unable to find javac compiler" when accessing http://localhost:8080/axis from a browser after a new install f Tomcat 5.0 and Axis.  
  JAVA_HOME looks correct ("JAVA_HOME=C:\Borland\JBuilder2005\jdk1.4") and PATH 
  contains "%JAVA_HOME%\bin".  Other Tomcat webapps seem to work (such as 
  http://localhost:8080/tomcat-docs).  
  The log is attached.
   
  Help!  Any ideas or leads would be appreciated.  
  Thanks.
   
  Bart
   
  Apr 28, 2005 
  6:40:49 PM org.apache.coyote.http11.Http11Protocol initINFO: Initializing 
  Coyote HTTP/1.1 on http-8080Apr 28, 2005 6:40:49 PM 
  org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 
  671 msApr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardService 
  startINFO: Starting service CatalinaApr 28, 2005 6:40:49 PM 
  org.apache.catalina.core.StandardEngine startINFO: Starting Servlet 
  Engine: Apache Tomcat/5.0.30Apr 28, 2005 6:40:49 PM 
  org.apache.catalina.core.StandardHost startINFO: XML validation 
  disabledApr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardHost 
  getDeployerINFO: Create Host deployer for direct deployment ( non-jmx ) 
  Apr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardHostDeployer 
  installINFO: Processing Context configuration file URL file:C:\Program 
  Files\Apache Software Foundation\Tomcat 
  5.0\conf\Catalina\localhost\admin.xmlApr 28, 2005 6:40:51 PM 
  org.apache.catalina.core.StandardHostDeployer installINFO: Processing 
  Context configuration file URL file:C:\Program Files\Apache Software 
  Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xmlApr 28, 2005 
  6:40:51 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
  Processing Context configuration file URL file:C:\Program Files\Apache 
  Software Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xmlApr 28, 
  2005 6:40:51 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
  Installing web application at context path /axis from URL file:C:\Program 
  Files\Apache Software Foundation\Tomcat 5.0\webapps\axis- Unable to find 
  config file.  Creating new servlet engine config file: 
  /WEB-INF/server-config.wsdd- Unable to find required classes 
  (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). 
  Attachment support is disabled.Apr 28, 2005 6:40:52 PM 
  org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
  application at context path /jsp-examples from URL file:C:\Program 
  Files\Apache Software Foundation\Tomcat 5.0\webapps\jsp-examplesApr 28, 
  2005 6:40:52 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
  Installing web application at context path  from URL file:C:\Program 
  Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOTApr 28, 2005 
  6:40:52 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
  Installing web application at context path /servlets-examples from URL 
  file:C:\Program Files\Apache Software Foundation\Tomcat 
  5.0\webapps\servlets-examplesApr 28, 2005 6:40:52 PM 
  org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
  application at context path /tomcat-docs from URL file:C:\Program Files\Apache 
  Software Foundation\Tomcat 5.0\webapps\tomcat-docsApr 28, 2005 6:40:52 PM 
  org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
  application at context path /webdav from URL file:C:\Program Files\Apache 
  Software Foundation\Tomcat 5.0\webapps\webdavApr 28, 2005 6:40:52 PM 
  org.apache.coyote.http11.Http11Protocol startINFO: Starting Coyote 
  HTTP/1.1 on http-8080Apr 28, 2005 6:40:53 PM 
  org.apache.jk.common.ChannelSocket initINFO: JK2: ajp13 listening on 
  /0.0.0.0:8009Apr 28, 2005 6:40:53 PM org.apache.jk.server.JkMain 
  startINFO: Jk running ID=0 time=0/20  config=C:\Program Files\Apache 
  Software Foundation\Tomcat 5.0\conf\jk2.propertiesApr 28, 2005 6:40:53 PM 
  org.apache.catalina.startup.Catalina startINFO: Server startup in 3605 
  ms- Javac exception Unable to find a javac 
  compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps 
  JAVA_HOME does not point to the JDK at 
  org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105) at 
  org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) at 
  org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at 
  org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407) at 
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) at 
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) at 
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) at 
  org.apache.

Unable to find javac compiler

2005-04-28 Thread Ponze, Bart



I am getting "Unable 
to find javac compiler" when accessing http://localhost:8080/axis from a browser after a new install f Tomcat 5.0 and Axis.  JAVA_HOME 
looks correct ("JAVA_HOME=C:\Borland\JBuilder2005\jdk1.4") and PATH contains 
"%JAVA_HOME%\bin".  Other Tomcat webapps seem to work (such as http://localhost:8080/tomcat-docs).  
The log is attached.
 
Help!  Any 
ideas or leads would be appreciated.  Thanks.
 
Bart
 
Apr 28, 2005 6:40:49 
PM org.apache.coyote.http11.Http11Protocol initINFO: Initializing Coyote 
HTTP/1.1 on http-8080Apr 28, 2005 6:40:49 PM 
org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 
671 msApr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardService 
startINFO: Starting service CatalinaApr 28, 2005 6:40:49 PM 
org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: 
Apache Tomcat/5.0.30Apr 28, 2005 6:40:49 PM 
org.apache.catalina.core.StandardHost startINFO: XML validation 
disabledApr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardHost 
getDeployerINFO: Create Host deployer for direct deployment ( non-jmx ) 
Apr 28, 2005 6:40:49 PM org.apache.catalina.core.StandardHostDeployer 
installINFO: Processing Context configuration file URL file:C:\Program 
Files\Apache Software Foundation\Tomcat 
5.0\conf\Catalina\localhost\admin.xmlApr 28, 2005 6:40:51 PM 
org.apache.catalina.core.StandardHostDeployer installINFO: Processing 
Context configuration file URL file:C:\Program Files\Apache Software 
Foundation\Tomcat 5.0\conf\Catalina\localhost\balancer.xmlApr 28, 2005 
6:40:51 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
Processing Context configuration file URL file:C:\Program Files\Apache Software 
Foundation\Tomcat 5.0\conf\Catalina\localhost\manager.xmlApr 28, 2005 
6:40:51 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
Installing web application at context path /axis from URL file:C:\Program 
Files\Apache Software Foundation\Tomcat 5.0\webapps\axis- Unable to find 
config file.  Creating new servlet engine config file: 
/WEB-INF/server-config.wsdd- Unable to find required classes 
(javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment 
support is disabled.Apr 28, 2005 6:40:52 PM 
org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
application at context path /jsp-examples from URL file:C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\webapps\jsp-examplesApr 28, 2005 6:40:52 PM 
org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
application at context path  from URL file:C:\Program Files\Apache Software 
Foundation\Tomcat 5.0\webapps\ROOTApr 28, 2005 6:40:52 PM 
org.apache.catalina.core.StandardHostDeployer installINFO: Installing web 
application at context path /servlets-examples from URL file:C:\Program 
Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examplesApr 28, 
2005 6:40:52 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
Installing web application at context path /tomcat-docs from URL file:C:\Program 
Files\Apache Software Foundation\Tomcat 5.0\webapps\tomcat-docsApr 28, 2005 
6:40:52 PM org.apache.catalina.core.StandardHostDeployer installINFO: 
Installing web application at context path /webdav from URL file:C:\Program 
Files\Apache Software Foundation\Tomcat 5.0\webapps\webdavApr 28, 2005 
6:40:52 PM org.apache.coyote.http11.Http11Protocol startINFO: Starting 
Coyote HTTP/1.1 on http-8080Apr 28, 2005 6:40:53 PM 
org.apache.jk.common.ChannelSocket initINFO: JK2: ajp13 listening on 
/0.0.0.0:8009Apr 28, 2005 6:40:53 PM org.apache.jk.server.JkMain 
startINFO: Jk running ID=0 time=0/20  config=C:\Program Files\Apache 
Software Foundation\Tomcat 5.0\conf\jk2.propertiesApr 28, 2005 6:40:53 PM 
org.apache.catalina.startup.Catalina startINFO: Server startup in 3605 
ms- Javac exception Unable to find a javac 
compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps 
JAVA_HOME does not point to the JDK at 
org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105) at 
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929) at 
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at 
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:407) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:497) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:476) at 
org.apache.jasper.compiler.Compiler.compile(Compiler.java:464) at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511) at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295) at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:

Re: AXIS / Tomcat Memory Leak

2005-04-28 Thread Davanum Srinivas
Tom,

Please try the following:
http://marc.theaimsgroup.com/?l=axis-user&m=110607346029093&w=2

-- dims

On 4/28/05, Jay, Thomas <[EMAIL PROTECTED]> wrote:
> Not to rehash an old problem but I have been testing AXIS 1.2RC3 with Tomcat
> for the last couple of weeks.
> 
> Not that we have Load Runner up and running and sending in thousands of 
> transactions
> we have found that Tomcat dies after about 7 hours.
> 
> This is appearent after severel messages as follows:
> 
> 15:11:24,748 ERROR [Engine] StandardWrappedValue[AxisServlet]: 
> Servlet.service() for servlet AxisServlet threw exception
> java.lang.OutOfMemoryError
> 
> I found an Open AXIS Bug - AXIS-1391 severe memory leakage in server side 
> service with tomcat
> that has not been resolved.
> 
> Has anyone made progress on this ?
> 
> Thanks,
> Tom
> 
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


RE: Axis Log4j initialization failure...

2005-04-28 Thread Cameron Bromley
You need to make sure the log4j.properties file is in the classpath of
the client. There is one that ships with 1.2rc3 in the lib directory.
Contents as follows:

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE

# Set the enterprise logger category to FATAL and its only appender to
CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=INFO
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x -
%m%n


You will probably run into other output complaining about missing
classes which can be solved by getting the java activation framework and
javamail from the Sun site and making sure those too are in your client
classpath

http://java.sun.com/products/javabeans/glasgow/jaf.html 

http://java.sun.com/products/javamail/downloads/index.

Cam.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, 29 April 2005 3:52 AM
To: axis-user@ws.apache.org
Subject: Axis Log4j initialization failure...

Back in February someone reported a problem with the Axis 1.2 always
reporting the following. 

log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.

This occurs when trying to execute any client SOAP application.
There is no follow on e-mail thread and I need to solve the same
problem.

Does anyone have an idea what I need to do to get this to stop?

I am running Java 1.5 with Axis 1.2 RC3.  Not that the server side
should
matter, but I'm running Tomcat 5.5.

  Cliff




Re: Document/Literal Encoding and .NET interop

2005-04-28 Thread Elam Daly
Anne Thomas Manes wrote:
Your .NET web service provides a WSDL description of the service
interface. Run wsdl2java on this WSDL document, and Axis will generate
a Java client proxy for the service. Then you can just invoke
operations on this proxy. Axis will automatically generate
document/literal if that's what the WSDL says.
And btw -- there's no way to send XML data such as
"data1data2" as a string within another
element without escaping the XML.
I expect that the actual input parameter is not in fact a string, it
is something like this:

 
   
  
  
   
 

Anne
 

Hi Anne,
I'm pretty sure the web service is expecting one string.  This is the
description of the .net web service:
 SOAP
The following is a sample SOAP request and response. The placeholders
shown need to be replaced with actual values.
POST /ServerLink.asmx HTTP/1.1
Host: [deleted]
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/VRSDataWS/ServerLink/InitTransfer";

http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 
   http://tempuri.org/VRSDataWS/ServerLink";>
 string
   
 


HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
 
   http://tempuri.org/VRSDataWS/ServerLink";>
 string
   
 


Regardless, is the wsdl file something that is implicit in the service( 
can I extract it with Axis? ) or do I need to explicity ask the 
developer for the file?

Thanks for your help,
Elam Daly



AXIS / Tomcat Memory Leak

2005-04-28 Thread Jay, Thomas
Not to rehash an old problem but I have been testing AXIS 1.2RC3 with Tomcat
for the last couple of weeks.

Not that we have Load Runner up and running and sending in thousands of 
transactions
we have found that Tomcat dies after about 7 hours.

This is appearent after severel messages as follows:

15:11:24,748 ERROR [Engine] StandardWrappedValue[AxisServlet]: 
Servlet.service() for servlet AxisServlet threw exception
java.lang.OutOfMemoryError

I found an Open AXIS Bug - AXIS-1391 severe memory leakage in server side 
service with tomcat
that has not been resolved.

Has anyone made progress on this ?

Thanks,
Tom




Help with authentication/session concepts (fairly new user) in axis?

2005-04-28 Thread Camuto, Matthew








Hi-

 

 

I am a little new to axis
and have a few questions about authentication/session handling within the axis
framework. I

Have combed through the
examples as well

 

My application is going to
be a simple client/server. The client is going to be a swing application and
the server will running in most probably tomcat.

 

 

We would be desired would be
to

 

 

- 
Authenticate once when we log in (using our own authentication web service)

  

o    Possible get a session handle or ID at this point if
valid

 

- 
Make sure every other web service call we make is from a valid user

 

o    Either re-pass over credentials or use a session Id.

 

Very basic model I know
however ….

 

Here are the questions. I
noticed with the sample applications in the wsdd file there are request flow
elements for authentication. Now what I was curious is if  we HAVE to have a
request flow filter for every web service to pre process authentication and/or
session handling in each wsdd file OR if there was a way to make all services
be session bound and un accessible if the caller (client) was not bound to a
particular session. This is one concept I can not seem to grasp from the documentation.

 

In summary I am basically trying
to figure out the quickest and easiest to have an authenticated session bound

Client (fat) server
relationship for my product.

 

Any help or simple samples
would be great. All the examples in the src seem to not demonstrate this
easily.

 

 

Thanks

 

 

m

 

 








Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3

2005-04-28 Thread Jason Carreira
There's something weird going on with type mappings, best I can figure. 

In this part of the Call class, it's getting the javaType as null, when
it should be (I think) the WeatherInfo type created by WSDL2Java:


    javaType = parameters.returnParam.getType().getName();
    }
    if (javaType == null) {
    javaType = "";
    }
    else {
    javaType = javaType + ".class";
    }
    this.setReturnType(returnType);
    try {
   
Class clazz = ClassUtils.forName(javaType);
    this.setReturnClass(clazz);
    } catch (ClassNotFoundException swallowedException) {
    //log that this lookup failed,
   
log.debug(Messages.getMessage("clientNoReturnClass",
   
javaType));
    }
later it does this:

    Use use = bEntry.getInputBodyType(bop.getOperation());
    setOperationUse(use);
    if (use == Use.LITERAL) {
    // Turn off encoding
    setEncodingStyle(null);
    // turn off XSI types
   
setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
    }

user comes back as "literal" which makes the encoding style be set to
null... therefore it can't be used later to look up the type mappings.

I guess I don't understand type mappings in Axis. Here's what the unit test generated by WSDL2Java does:

org.apache.axis.description.OperationDesc oper;
    oper = new org.apache.axis.description.OperationDesc();
    oper.setName("GetWeatherInfo");
    oper.addParameter(new
javax.xml.namespace.QName("http://ejse.com/WeatherService/",
"zipCode"), new
javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"),
int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
    oper.setReturnType(new
javax.xml.namespace.QName("http://ejse.com/WeatherService/",
"WeatherInfo"));
    oper.setReturnClass(com.eplus.app.service.bind.weather.WeatherInfo.class);
    oper.setReturnQName(new
javax.xml.namespace.QName("http://ejse.com/WeatherService/",
"GetWeatherInfoResult"));
    oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
    oper.setUse(org.apache.axis.constants.Use.LITERAL);
    _operations[0] = oper;

then later it sets this OperatatonDesc into a new Call object to call
the operation. I'm not sure how it fits in, but it also does this:

   
qName = new
javax.xml.namespace.QName("http://ejse.com/WeatherService/",
"WeatherInfo");
    cachedSerQNames.add(qName);
    cls = com.eplus.app.service.bind.weather.WeatherInfo.class;
    cachedSerClasses.add(cls);
    cachedSerFactories.add(beansf);
    cachedDeserFactories.add(beandf);

For my Spring-enabled client (autogenerating a stub and wrapping RemoteExceptions) I do this type mapping:

    TypeMappingRegistry tmr = service.getTypeMappingRegistry();
    TypeMapping tm = tmr.createTypeMapping();

    registerMapping(tm, "WeatherInfo", WeatherInfo.class);
    registerMapping(tm, "ExtendedWeatherInfo", ExtendedWeatherInfo.class);
    registerMapping(tm, "DayForecastInfo", DayForecastInfo.class);
    registerMapping(tm, "NineDayForecastInfo", NineDayForecastInfo.class);
    registerMapping(tm, "ForecastDays", ForecastDays.class);
    registerMapping(tm, "IraqCities", IraqCities.class);
    tmr.register(org.apache.axis.Constants.URI_SOAP11_ENC, tm);
    }

    private void registerMapping(TypeMapping tm, String name, Class clazz) {
    QName qname = new QName("http://ejse.com/WeatherService/",name);

    tm.register(clazz,qname,
   
new BeanSerializerFactory(clazz, qname),
   
new BeanDeserializerFactory(clazz, qname));
    }

Does anything stand out here? I know the type mappings are getting in
there correctly, because I've seen them as I step through with the
debugger, but the encodingStyle is being emptied out because it's
decided it's used as "literal", so it doesn't find my type mappings. 

Thanks,

Jason
On 4/28/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
Jason,are u using the WSDL2Java generated classes? i just tried it and it works fine.-- dimsOn 4/28/05, Jason Carreira <[EMAIL PROTECTED]> wrote:
> Ok, I've created an issue:> http://issues.apache.org/jira/browse/AXIS-1964>>  Now I'm on to another bug :-)>>  For some reason when it's trying to find the type mappings it's not getting
> the correct encoding. In the> org.apache.axis.MessageContext#encodingStyle it's got "".> My type mappings are correctly mapped for> org.apache.axis.Constants#URI_SOAP11_ENC> ("
http://schemas.xmlsoap.org/soap/encoding/"), so they're> not found and I end up with:>>  org.xml.sax.SAXException: Deserializing parameter 'GetWeatherInfoResult':
> could not find deserializer for type> {http://ejse.com/WeatherService/}WeatherInfo>  at> org.apache.axis.message.RPCHandler.onStartChild
(RPCHand

JIRA down again

2005-04-28 Thread Tim K. (Gmane)





Who should I notify when JIRA is down? Thanks.


http://issues.apache.org/jira/


Proxy Error
The proxy server received an invalid response from an upstream
server.
The proxy server could not handle the request GET /jira/secure/Dashboard.jspa.

Reason: Error reading from remote server

Apache/2.0.54 (Unix) mod_ssl/2.0.54 OpenSSL/0.9.7a DAV/2
SVN/1.2.0-dev Server at issues.apache.org Port 80






Re: Document/Literal Encoding and .NET interop

2005-04-28 Thread Anne Thomas Manes
Your .NET web service provides a WSDL description of the service
interface. Run wsdl2java on this WSDL document, and Axis will generate
a Java client proxy for the service. Then you can just invoke
operations on this proxy. Axis will automatically generate
document/literal if that's what the WSDL says.

And btw -- there's no way to send XML data such as
"data1data2" as a string within another
element without escaping the XML.

I expect that the actual input parameter is not in fact a string, it
is something like this:


  

   
   

  


Anne

On 4/28/05, Elam Daly <[EMAIL PROTECTED]> wrote:
> Howdy all,
> 
> I am new to both web-services and Axis.  I have been assigned the task
> of accessing a .net web service which takes one parameter, a string.
> The String has to be data ie:  type="xsd:string">data1data2.
> But when I send this out over the wire using Axis, all the xml is
> encoded, so < become < and > becomes >.
> 
>  From what I can gather, this has to do with .net web services using
> Document/Literal encoding by default, where as Axis does not.  If this
> is the case, how can I specify Axis to use Document/literal encoding?
> 
> Cheers,
> Elam  Daly
>


Document/Literal Encoding and .NET interop

2005-04-28 Thread Elam Daly
Howdy all,
I am new to both web-services and Axis.  I have been assigned the task 
of accessing a .net web service which takes one parameter, a string.  
The String has to be data ie: data1data2.  
But when I send this out over the wire using Axis, all the xml is 
encoded, so < become < and > becomes >. 

From what I can gather, this has to do with .net web services using 
Document/Literal encoding by default, where as Axis does not.  If this 
is the case, how can I specify Axis to use Document/literal encoding? 

Cheers,
Elam  Daly


Axis 1.2 Attachments Question

2005-04-28 Thread Jeremy Hynoski
Hi,

Not sure if this has been dealt with before.
We have a wsdl that uses application/octet-stream to pass an attachment to a
web service.
Now this attachment can be HUGE, often up to 50 meg in size.

The issue is, the axis OctetStream class is nigh on useless, since it
entails reading the entire file into memory as a byte array in order to be
able to send this file. This is not scalable and a nasty solution.

Is there a better way to stream from a file direct into the soap attachment
output stream? I noticed in the alphas that octetstreams were mapping to
DataHandlers which I thought would do this, but this "bug" was fixed
(AXIS-1289).

Jeremy



Resource has been deleted Exception while Processing Attachments

2005-04-28 Thread Schwarz, Karl
This problem has been reported before but I don't see any resolution. I am 
having a similar issue.

I have a service that accepts or sends a 
org.apache.axis.attachments.OctetStream.  Here are the method signatures from 
the stub:

public void addImage(com.examples.ImageService.types.ImageInfo imageInfo, 
org.apache.axis.attachments.OctetStream image, 
javax.xml.rpc.holders.StringHolder status, 
javax.xml.rpc.holders.LongHolder id) 

public void getImage(com.examples.ImageService.types.ImageInfo imageInfo, 
 javax.xml.rpc.holders.StringHolder status, 
 org.apache.axis.holders.OctetStreamHolder image)

I have a test client that is looping and invoking the addImage and getImage 
operations. After several loops I get the following exception:

java.io.IOException: Resource has been deleted.
at 
org.apache.axis.attachments.ManagedMemoryDataSource$Instream.(ManagedMemoryDataSource.java:517)
at 
org.apache.axis.attachments.ManagedMemoryDataSource.getInputStream(ManagedMemoryDataSource.java:182)
at javax.activation.DataHandler.writeTo(DataHandler.java:287)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1206)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:707)
at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:256)
at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:67)
at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)
at javax.activation.DataHandler.writeTo(DataHandler.java:295)
at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1206)
at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1611)
at 
org.apache.axis.attachments.MimeUtils.writeToMultiPartStream(MimeUtils.java:202)
at 
org.apache.axis.attachments.AttachmentsImpl.writeContentToStream(AttachmentsImpl.java:461)
at org.apache.axis.Message.writeTo(Message.java:525)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:504)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:135)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
at org.apache.axis.client.Call.invoke(Call.java:2737)
at org.apache.axis.client.Call.invoke(Call.java:2413)
at org.apache.axis.client.Call.invoke(Call.java:2336)
at org.apache.axis.client.Call.invoke(Call.java:1793)
at 
com.examples.ImageService.ImageryServiceBindingStub.getImage(ImageryServiceBindingStub.java:231)
at 
com.examples.ImageService.ImageryServicePortTypeProxy.getImage(ImageryServicePortTypeProxy.java:51)
at com.examples.ImageService.TestImageService.main(TestImageService.java:87)

If I remove the getImage invocation from the test client it runs without error. 
If I remove the addImage invocation I get the same error, again after just a 
few loops.

Any thoughts?

regards,
Karl


Axis Log4j initialization failure...

2005-04-28 Thread Grimm_Clifford
Back in February someone reported a problem with the Axis 1.2 always
reporting the following. 

log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.

This occurs when trying to execute any client SOAP application.
There is no follow on e-mail thread and I need to solve the same problem.

Does anyone have an idea what I need to do to get this to stop?

I am running Java 1.5 with Axis 1.2 RC3.  Not that the server side should
matter, but I'm running Tomcat 5.5.

  Cliff




RE: RemoteException: java.lang.NullPointerException

2005-04-28 Thread Shawn Zhu
Hi James,
  I think all you need to do is to include xercesImpl.jar and
xml-apis.jar from Xerces in your class path when calling WSDL2java.  
  Yes I also see that axis1.1 and axis1.2 wsdl2java gerenate different
sets of proxy classes with the same wsdl.  I really don't think that is
a good idea on the axis part though as that means you will have to
change your application when upgrading to axis1.2

sz
-Original Message-
From: James Chiu [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 10:43 AM
To: axis-user@ws.apache.org
Subject: RE: RemoteException: java.lang.NullPointerException

Instead of upgrading to Axis 1.2, I downgraded Java to 1.4 and the
problem
is resolved. 
Do you know any documents that describe version conflicts?

Thanks a lot,

James

-Original Message-
From: James Chiu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:45 AM
To: axis-user@ws.apache.org
Subject: RE: RemoteException: java.lang.NullPointerException

I actually started with Axis 1.2. While compiling the client stub
classes
generated from WSDL2Java, I received a ClassNotFoundException error.
However, once I changed to Axis 1.1, the problem is gone. Using the same
WSDL file, the client stub classes generated from WSDL2Java are (quite)
different. 

James

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:30 AM
To: axis-user@ws.apache.org
Subject: Re: RemoteException: java.lang.NullPointerException

That's your problem -- they don't work well together. 
I suggest you upgrade to Axis 1.2.

On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote:
> Yes, I am using Java 1.5 and Axis 1.1.
> 
> James
> 
> -Original Message-
> From: Dominik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 27, 2005 5:40 AM
> To: axis-user@ws.apache.org
> Subject: Re: RemoteException: java.lang.NullPointerException
> 
> Are you using Java 1.5 and Axis 1.1 ?
> 
> - Original Message -
> From: "James Chiu" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 27, 2005 12:30 AM
> Subject: RemoteException: java.lang.NullPointerException
> 
> Hi,
> 
> I received a RemoteException: java.lang.NullPointerException after my
client
> makes a WS method call. I used the WSDL2Java utility to create client
stub
> classes. The server side is hosted by Microsoft IIS. I turned on the
> debugger and found where the exception is thrown as following:
> 
> {http://xml.apache.org/axis/}stackTrace:
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:396)
> at
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXPar
serI
> mpl.java:395)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializatio
nCon
> textImpl.java:246)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
>
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:675
> )
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
> at
>
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:
> 71)
> at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
> at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
> at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
> at org.apache.axis.client.Call.invoke(Call.java:2553)
> at org.apache.axis.client.Call.invoke(Call.java:2248)
> at org.apache.axis.client.Call.invoke(Call.java:2171)
> at org.apache.axis.client.Call.invoke(Call.java:1691)
> at
>
com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Re
port
>
ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703)
> at
>
responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:5
4)
> at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)
> 
>


RE: RemoteException: java.lang.NullPointerException

2005-04-28 Thread James Chiu
Instead of upgrading to Axis 1.2, I downgraded Java to 1.4 and the problem
is resolved. 
Do you know any documents that describe version conflicts?

Thanks a lot,

James

-Original Message-
From: James Chiu [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:45 AM
To: axis-user@ws.apache.org
Subject: RE: RemoteException: java.lang.NullPointerException

I actually started with Axis 1.2. While compiling the client stub classes
generated from WSDL2Java, I received a ClassNotFoundException error.
However, once I changed to Axis 1.1, the problem is gone. Using the same
WSDL file, the client stub classes generated from WSDL2Java are (quite)
different. 

James

-Original Message-
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 27, 2005 10:30 AM
To: axis-user@ws.apache.org
Subject: Re: RemoteException: java.lang.NullPointerException

That's your problem -- they don't work well together. 
I suggest you upgrade to Axis 1.2.

On 4/27/05, James Chiu <[EMAIL PROTECTED]> wrote:
> Yes, I am using Java 1.5 and Axis 1.1.
> 
> James
> 
> -Original Message-
> From: Dominik [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 27, 2005 5:40 AM
> To: axis-user@ws.apache.org
> Subject: Re: RemoteException: java.lang.NullPointerException
> 
> Are you using Java 1.5 and Axis 1.1 ?
> 
> - Original Message -
> From: "James Chiu" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, April 27, 2005 12:30 AM
> Subject: RemoteException: java.lang.NullPointerException
> 
> Hi,
> 
> I received a RemoteException: java.lang.NullPointerException after my
client
> makes a WS method call. I used the WSDL2Java utility to create client stub
> classes. The server side is hosted by Microsoft IIS. I turned on the
> debugger and found where the exception is thrown as following:
> 
> {http://xml.apache.org/axis/}stackTrace:
> java.lang.NullPointerException
> at java.util.Hashtable.put(Hashtable.java:396)
> at
>
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(SAXParserI
> mpl.java:395)
> at
>
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
> textImpl.java:246)
> at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
> at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
> at
>
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:675
> )
> at
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
> 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.client.AxisClient.invoke(AxisClient.java:180)
> at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
> at org.apache.axis.client.Call.invoke(Call.java:2553)
> at org.apache.axis.client.Call.invoke(Call.java:2248)
> at org.apache.axis.client.Call.invoke(Call.java:2171)
> at org.apache.axis.client.Call.invoke(Call.java:1691)
> at
>
com.microsoft.schemas.sqlserver._2003._12.reporting.reportingservices.Report
> ingServiceSoapStub.listSecureMethods(ReportingServiceSoapStub.java:1703)
> at
> responsys.advrpt.msrsclient.MSRSClient.getChildrenList(MSRSClient.java:54)
> at responsys.advrpt.msrsclient.MSRSClient.main(MSRSClient.java:116)
> 
>


Re: Axis 1.1 Array Problems

2005-04-28 Thread John Green
Anne,

Sorry to hit you directly, but I wanted to thank you
so very much for your response, I got a simple case to
work.  I changed the type to rpc/encoded and got an
array of strings and a class wrapping an array of
strings back. It is amazing that it was such a simple
fix.  

Of course I had to push the envelope and add an array
of a complex type.  Well once I did that, now I get a
problem with a missing serializer.  I modified the
mapping and deployment files, but not sure why it
cannot find the serializer.  I have attached the WSDL,
Bean, Mapping, and Deployment files.  I want to put
together a lessons learned post because it seems like
there is tons of hunting and pecking going on to try
and get this working.

Any insight into this you could provide would be quite
helpful.

Once again, thank you very much for your response and
look forward to seeing more posts from you.

Thanks,

John Green


 


--- Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Don't try to use rpc/literal with Axis 1.1.
> You have three choices:
> - use rpc/encoded
> - use document/literal (I suggest "wrapped" style)
> - upgrade to Axis 1.2
> 
> Anne
> 
> On 4/27/05, John Green <[EMAIL PROTECTED]> wrote:
> > All,
> > 
> > I am seeing lots of posts about problems with
> arrays.
> > Not sure what the solution is, the problem I am
> seeing
> > is that an array is being populated with many
> elements
> > on the server-side, but on the client I am only
> > getting the last element in the array.  I have
> tried
> > several things from changing the style and use in
> the
> > ant task, to wrapping the array in a class.  Here
> is
> > what is generated in the WDSL for the class that
> > contains the array.
> > 
> > 
> >   > type="impl:ArrayOf_tns1_Provider"/>
> > 
> > 
> > 
> > 
> >  
> >   
> > > type="tns1:ProviderArray"/>
> >   
> > 
> > 
> > 
> > 
> > 
> >  
> >> wsdl:arrayType="tns1:Provider[]"/>
> >  
> > 
> > 
> > 
> > Can anyone give me some new suggestions to try? 
> Is
> > this a bug with the ant task?  Here is the ant
> task I
> > have setup:
> >  >
>
classname="net.ussouth.incomm.postpay.webService.WebServiceFacadeEndpoint"
> >
>
namespace="http://net.ussouth.incomm.postpay.webService/";
> >
>
location="http://localhost:8080/ws4ee/services/WebServiceFacadeService";
> > serviceElementName="WebServiceFacade"
> >
> servicePortName="WebServiceFacadeEndpoint"
> > style="rpc"
> > use="literal"
> > output="${rsrc.home}/wsdl/WebServiceFacade.wsdl">
> > 
> > 
> > 
> > Thanks,
> > 
> > John Green
> > 
> >
> http://java.sun.com/xml/ns/j2ee";
xmlns:impl="http://com.incomm.hello";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd";
version="1.1">


com.webservice.response
http://com.webservice.response


com.webservice.response.ResponseBean
http://response.webservice.com";>typeNS:ResponseBean
complexType

strArray
strArray


strArray2
strArray2


complexResponses
complexResponses



com.webservice.response.ResponseClass
http://response.webservice.com";>typeNS:ResponseClass
complexType

name
name


description
description










http://com.webservice.sessionBean.wsTest/"; xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:impl="http://com.webservice.sessionBean.wsTest/"; xmlns:intf="http://com.webservice.sessionBean.wsTest/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns1="http://response.webservice.com"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";>

 
  http://response.webservice.com"; xmlns="http://www.w3.org/2001/XMLSchema";>
   http://com.webservice.sessionBean.wsTest/"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   

 
 

   
   

 

   
   

 
 
 

   
  
  http://com.webservice.sessionBean.wsTest/"; xmlns="http://www.w3.org/2001/XMLSchema";>
   http://response.webservice.com"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   

 
  
 

   
   

 
  
 

   
  
 

   

  

   

   

   

   

  

 

 

  

   

   

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

  

 

 

http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://com.webservice.sessionBean.wsTest/"; use="encoded"/>

 

 

http://schemas.xmlsoap.org/soap/encoding/"; namespace="http://com.webservice.sessionBean.ws

Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3

2005-04-28 Thread Jason Carreira
Well, in the previous case it was.. I supplied a patch. 

I'm looking at what it could be now, because the auto-generated test
case seems to work now. Did something change in type mapping between
1.1 and 1.2? I'm working with this through Spring, as described here:

http://springframework.org/docs/reference_1.2RC2/remoting.html#d0e10505On 4/28/05, 
Jeff <[EMAIL PROTECTED]> wrote:
I mentioned this yesterday for J2SE 1.4.2_06 (I don't use J2SE 1.5). Theimplication being that it's unlikely to be an Axis 1.2RC3 issue causing theproblem!Jeff- Original Message -
From: "Davanum Srinivas" <[EMAIL PROTECTED]>To: "Jason Carreira" <[EMAIL PROTECTED]>Cc: <
axis-user@ws.apache.org>Sent: Thursday, April 28, 2005 10:45 AMSubject: Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3Jason,are u using the WSDL2Java generated classes? i just tried it and it works
fine.-- dimsOn 4/28/05, Jason Carreira <[EMAIL PROTECTED]> wrote:> Ok, I've created an issue:> 
http://issues.apache.org/jira/browse/AXIS-1964>>  Now I'm on to another bug :-)>>  For some reason when it's trying to find the type mappings it's notgetting> the correct encoding. In the
> org.apache.axis.MessageContext#encodingStyle it's got "".> My type mappings are correctly mapped for> org.apache.axis.Constants#URI_SOAP11_ENC> ("
http://schemas.xmlsoap.org/soap/encoding/"), so they're> not found and I end up with:>>  org.xml.sax.SAXException: Deserializing parameter 'GetWeatherInfoResult':> could not find deserializer for type
> {http://ejse.com/WeatherService/}WeatherInfo>  at> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:270)>  at
>org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)>>  Any thoughts on where I should look or what I might be doing wrong?>>  Jason>
> On 4/27/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:> > Jason,> >> > throw JavaUtils.xmlNameToJava into the mix and see if it works with
> > all your test cases...if it does, open up a JIRA bug and i will check> > it in.> >> > thanks,> > dims> >> > On 4/27/05, Jason Carreira < 
[EMAIL PROTECTED]> wrote:> > > Hi all,> > >> > >  I'm moving from Apache Axis 1.1 to 1.2RC3 and I'm having an issuewith> > > calling methods on a web service I've generated a client for. I
> re-generated> > > the client code for 1.2RC3. I'm switching because we're moving from> JDK1.4.2> > > up to JDK5 and the "enum" variable names and package are illegal.
> > >> > >  Anyway, on to my problem. The service I'm binding to is the weather> service> > > here:> > >> 
http://www.ejse.com/services/weather_xml_web_services.htm.> > > It's just an example app to show how we can do these things and totest> out> > > using Spring's Axis support. With 1.1
 this worked fine. With 1.2RC3I've> > > tracked the problem down to the section starting with line 1338 in> > > org.apache.axis.client.Call:> > >>
>
>  for (
int i = 0 ; i < operations.size() ; i++, op=null ) {> >
>  op
= (Operation) operations.get( i );> >
>  if
( opName.equals( op.getName() ) ) {> >
>  break
;> > >  }> > >  }> > >> > >  The problem is that opName is the name of the method from thegenerated> > > stub interface: "getWeatherInfo". The 
op.getName is returning> > > "GetWeatherInfo". I looked at the code for Call in Axis 1.1, and it> looks> > > the same, so I'm not sure why it was working, but it was.Unfortunately,
> no> > > such luck in Axis 1.2RC3.> > >> > >  Any ideas? Is there something I'm doing wrong, or is this a bug?> > >> > >  Thanks,> > >
> > >  Jason> >> > --> > Davanum Srinivas - http://webservices.apache.org/~dims/> >>>--Davanum Srinivas - 
http://webservices.apache.org/~dims/

Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3

2005-04-28 Thread Jeff
I mentioned this yesterday for J2SE 1.4.2_06 (I don't use J2SE 1.5). The
implication being that it's unlikely to be an Axis 1.2RC3 issue causing the
problem!


Jeff


- Original Message - 
From: "Davanum Srinivas" <[EMAIL PROTECTED]>
To: "Jason Carreira" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, April 28, 2005 10:45 AM
Subject: Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3


Jason,

are u using the WSDL2Java generated classes? i just tried it and it works
fine.

-- dims

On 4/28/05, Jason Carreira <[EMAIL PROTECTED]> wrote:
> Ok, I've created an issue:
> http://issues.apache.org/jira/browse/AXIS-1964
>
>  Now I'm on to another bug :-)
>
>  For some reason when it's trying to find the type mappings it's not
getting
> the correct encoding. In the
> org.apache.axis.MessageContext#encodingStyle it's got "".
> My type mappings are correctly mapped for
> org.apache.axis.Constants#URI_SOAP11_ENC
> ("http://schemas.xmlsoap.org/soap/encoding/";), so they're
> not found and I end up with:
>
>  org.xml.sax.SAXException: Deserializing parameter 'GetWeatherInfoResult':
> could not find deserializer for type
> {http://ejse.com/WeatherService/}WeatherInfo
>  at
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:270)
>  at
>
org.apache.axis.encoding.DeserializationContext.startElement(Deserialization
Context.java:1035)
>
>  Any thoughts on where I should look or what I might be doing wrong?
>
>  Jason
>
> On 4/27/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > Jason,
> >
> > throw JavaUtils.xmlNameToJava into the mix and see if it works with
> > all your test cases...if it does, open up a JIRA bug and i will check
> > it in.
> >
> > thanks,
> > dims
> >
> > On 4/27/05, Jason Carreira < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > >  I'm moving from Apache Axis 1.1 to 1.2RC3 and I'm having an issue
with
> > > calling methods on a web service I've generated a client for. I
> re-generated
> > > the client code for 1.2RC3. I'm switching because we're moving from
> JDK1.4.2
> > > up to JDK5 and the "enum" variable names and package are illegal.
> > >
> > >  Anyway, on to my problem. The service I'm binding to is the weather
> service
> > > here:
> > >
> http://www.ejse.com/services/weather_xml_web_services.htm.
> > > It's just an example app to show how we can do these things and to
test
> out
> > > using Spring's Axis support. With 1.1 this worked fine. With 1.2RC3
I've
> > > tracked the problem down to the section starting with line 1338 in
> > > org.apache.axis.client.Call:
> > >
> > >  for ( int i = 0 ; i < operations.size() ; i++, op=null ) {
> > >  op = (Operation) operations.get( i );
> > >  if ( opName.equals( op.getName() ) ) {
> > >  break ;
> > >  }
> > >  }
> > >
> > >  The problem is that opName is the name of the method from the
generated
> > > stub interface: "getWeatherInfo". The op.getName is returning
> > > "GetWeatherInfo". I looked at the code for Call in Axis 1.1, and it
> looks
> > > the same, so I'm not sure why it was working, but it was.
Unfortunately,
> no
> > > such luck in Axis 1.2RC3.
> > >
> > >  Any ideas? Is there something I'm doing wrong, or is this a bug?
> > >
> > >  Thanks,
> > >
> > >  Jason
> >
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> >
>
>


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/



Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3

2005-04-28 Thread Davanum Srinivas
Jason,

are u using the WSDL2Java generated classes? i just tried it and it works fine. 

-- dims

On 4/28/05, Jason Carreira <[EMAIL PROTECTED]> wrote:
> Ok, I've created an issue:
> http://issues.apache.org/jira/browse/AXIS-1964
>  
>  Now I'm on to another bug :-)
>  
>  For some reason when it's trying to find the type mappings it's not getting
> the correct encoding. In the
> org.apache.axis.MessageContext#encodingStyle it's got "".
> My type mappings are correctly mapped for
> org.apache.axis.Constants#URI_SOAP11_ENC
> ("http://schemas.xmlsoap.org/soap/encoding/";), so they're
> not found and I end up with:
>  
>  org.xml.sax.SAXException: Deserializing parameter 'GetWeatherInfoResult': 
> could not find deserializer for type
> {http://ejse.com/WeatherService/}WeatherInfo
>  at
> org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:270)
>  at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
>  
>  Any thoughts on where I should look or what I might be doing wrong?
>  
>  Jason
> 
> On 4/27/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> > Jason,
> > 
> > throw JavaUtils.xmlNameToJava into the mix and see if it works with
> > all your test cases...if it does, open up a JIRA bug and i will check
> > it in.
> > 
> > thanks,
> > dims
> > 
> > On 4/27/05, Jason Carreira < [EMAIL PROTECTED]> wrote:
> > > Hi all,
> > >
> > >  I'm moving from Apache Axis 1.1 to 1.2RC3 and I'm having an issue with
> > > calling methods on a web service I've generated a client for. I
> re-generated 
> > > the client code for 1.2RC3. I'm switching because we're moving from
> JDK1.4.2
> > > up to JDK5 and the "enum" variable names and package are illegal.
> > >
> > >  Anyway, on to my problem. The service I'm binding to is the weather
> service 
> > > here:
> > >
> http://www.ejse.com/services/weather_xml_web_services.htm.
> > > It's just an example app to show how we can do these things and to test
> out 
> > > using Spring's Axis support. With 1.1 this worked fine. With 1.2RC3 I've
> > > tracked the problem down to the section starting with line 1338 in
> > > org.apache.axis.client.Call:
> > >
> > >  for ( int i = 0 ; i < operations.size() ; i++, op=null ) {
> > >  op = (Operation) operations.get( i );
> > >  if ( opName.equals( op.getName() ) ) {
> > >  break ;
> > >  }
> > >  } 
> > >
> > >  The problem is that opName is the name of the method from the generated
> > > stub interface: "getWeatherInfo". The op.getName is returning
> > > "GetWeatherInfo". I looked at the code for Call in Axis 1.1, and it
> looks
> > > the same, so I'm not sure why it was working, but it was. Unfortunately,
> no
> > > such luck in Axis 1.2RC3.
> > >
> > >  Any ideas? Is there something I'm doing wrong, or is this a bug?
> > >
> > >  Thanks,
> > >
> > >  Jason
> > 
> > --
> > Davanum Srinivas - http://webservices.apache.org/~dims/
> > 
> 
>  


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


Re: Could someone provide the following please ....

2005-04-28 Thread Plorks mail
I'm confusing myself bigtime !
I've written some servlets
I need to write some server-sdie webservices exposing the methods using a 
wsd file

I then need to write client web services using the methods from the 
server-side ws

My end goal is the client enters some credentials, if the credentials are 
valid i will pass a value from the server-side back to the client and update 
the client soap header's value

Every call the client makes i need to keep passng the value in te soap 
header up the chain so the value can be checked.  Then if necessary pass it 
back down to the client where the soap header vlaue is updated

I can't fnd any examples of doing this o anything similar that i can work 
from

Thanks for any help

From: Shawn McKinney <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: Re: Could someone provide the following please 
Date: Thu, 28 Apr 2005 06:53:36 -0700 (PDT)
Plorks - Axis provides several examples for you in
their distro.  What style of web service are you
interested in?
--- Plorks mail <[EMAIL PROTECTED]> wrote:
>
>
> So i could see what's going on
>
> A sample axis web service (server-side) and a sample
> axis client web service
>
>
> Many many thanks
>
>
_
> Want to block unwanted pop-ups? Download the free
> MSN Toolbar now!
> http://toolbar.msn.co.uk/
>
>
_
Winks & nudges are here - download MSN Messenger 7.0 today! 
http://messenger.msn.co.uk



Re: Problem upgrading from Axis 1.1 to Axis 1.2RC3

2005-04-28 Thread Jason Carreira
Ok, I've created an issue: http://issues.apache.org/jira/browse/AXIS-1964

Now I'm on to another bug :-)

For some reason when it's trying to find the type mappings it's not
getting the correct encoding. In the
org.apache.axis.MessageContext#encodingStyle it's got "". My type
mappings are correctly mapped for
org.apache.axis.Constants#URI_SOAP11_ENC
("http://schemas.xmlsoap.org/soap/encoding/"), so they're not found and
I end up with:

org.xml.sax.SAXException: Deserializing parameter
'GetWeatherInfoResult':  could not find deserializer for type
{http://ejse.com/WeatherService/}WeatherInfo
    at org.apache.axis.message.RPCHandler.onStartChild(RPCHandler.java:270)
    at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)

Any thoughts on where I should look or what I might be doing wrong?

JasonOn 4/27/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
Jason,throw JavaUtils.xmlNameToJava into the mix and see if it works withall your test cases...if it does, open up a JIRA bug and i will checkit in.thanks,dimsOn 4/27/05, Jason Carreira <
[EMAIL PROTECTED]> wrote:> Hi all,>>  I'm moving from Apache Axis 1.1 to 1.2RC3 and I'm having an issue with> calling methods on a web service I've generated a client for. I re-generated
> the client code for 1.2RC3. I'm switching because we're moving from JDK1.4.2> up to JDK5 and the "enum" variable names and package are illegal.>>  Anyway, on to my problem. The service I'm binding to is the weather service
> here:> http://www.ejse.com/services/weather_xml_web_services.htm.> It's just an example app to show how we can do these things and to test out
> using Spring's Axis support. With 1.1 this worked fine. With 1.2RC3 I've> tracked the problem down to the section starting with line 1338 in> org.apache.axis.client.Call:>>  for ( int i = 0 ; i < 
operations.size() ; i++, op=null ) {>  op = (Operation) operations.get( i );>  if ( opName.equals( op.getName() ) ) {>  break ;>  }>  }
>>  The problem is that opName is the name of the method from the generated> stub interface: "getWeatherInfo". The op.getName is returning> "GetWeatherInfo". I looked at the code for Call in Axis 
1.1, and it looks> the same, so I'm not sure why it was working, but it was. Unfortunately, no> such luck in Axis 1.2RC3.>>  Any ideas? Is there something I'm doing wrong, or is this a bug?
>>  Thanks,>>  Jason--Davanum Srinivas - http://webservices.apache.org/~dims/

Re: reply:help with a ClassCastException

2005-04-28 Thread Bruno Gonçalves




I already try that, but I get the same
ClassCastException.
I think that the problem is some type of conflict with the jars of
tomcat... I'm tired :(

Thanks anyway zhangyu :)

[EMAIL PROTECTED] wrote:

  Modified code: 
public String Test(String str){

try{
EchoServiceLocator service = new EchoServiceLocator();
Echo port = service.getEcho();
return (String)port.echoMethod(str); <= You can change here!
}catch (Exception e)
{

System.err.println(e.getMessage());
logger.error("Could not connect to Web Service!",e);
return null;
}
}
  
  
  
  

  

Subject:

help with a ClassCastException
  
  

From: 
Bruno Gon鏰lves <[EMAIL PROTECTED]>
  
  

Date: 
Thu, 28 Apr 2005 12:30:26 +0100
  
  

To: 
axis-user@ws.apache.org
  

  
  

  

To: 
axis-user@ws.apache.org
  

  
  
  
  Hi everyone!
  
Still have the same ClassCastException when I invoke a method on my
stub.
  
  My code:
      public String Test(String str){
        
        try{
            EchoServiceLocator service = new EchoServiceLocator();
            Echo port = service.getEcho();
            return port.echoMethod(str); <=
ClassCastException
        }catch (Exception e)
        {
            System.err.println(e.getMessage());
            logger.error("Could not connect to Web Service!",e);
            return null;
        }
    }
  
  ERROR:
  AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ClassCastException
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
    at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
    at
org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:441)
    at
org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
    at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2413)
    at org.apache.axis.client.Call.invoke(Call.java:2336)
    at org.apache.axis.client.Call.invoke(Call.java:1793)
    at
bvg.axis.services.Echo.EchoSoapBindingStub.echoMethod(EchoSoapBindingStub.java:102)
    at com.jcms.Axis.Webservices.Test(Webservices.java:61)
    at jaas.module.SampleLoginModule.login(SampleLoginModule.java:210)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at
javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
    at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)

    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at

Re: Xerces with Axis1.2RC3

2005-04-28 Thread Fernando Nasser
Are you sure it is the Xerces-j2 jar that comes with Tomcat that is 
being picked or the broken xerces-j-based implementation that comes with 
the JDK?

Regards,
Fernando
Chris Angelo Yu Averia wrote:
Hello,
I am just new to Axis.  Hope you can help out with my concern. 
I am using JDK 1.4, Tomcat 5.0 and Axis 1.2RC3.

As stated in the installation guide, Axis prefers to use Xerces
as its XML parser.  So no problem here, since I am using Tomcat,
Xerces is already included in the
"/common/endorsed" directory.  I am just quite
puzzled with how the Xerces XML Parser
"org.apache.xerces.jaxp.*" gets picked up by the classloader.  

If I leave XercesImpl.jar in the
"/common/endorsed" directory, as
expected, it is loaded by the bootstrap.  However, if I move
XercesImpl.jar to
"WEB-INF/lib" directory, it also gets picked up the bootstrap
class loader.  I always thought that placing a JAR file in the
"WEB-INF/lib"
(aside from the javax packages) will get picked up by the
WebAppClassLoader...
But when I tried to use an XML parser from IBM and put it in
WEB-INF/lib directory, it gets correctly picked up by the
WebAppClassLoader.
So my question is why does the Xerces Parser
"org.apache.xerces.jaxp.*", when moved to WEB-INF/lib, gets
picked up by the bootstap classloader instead of the
WebAppClassLoader?  

Any ideas?
Thanks in advance!
Chris

Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail:  [EMAIL PROTECTED]
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9


RE: Could someone provide the following please ....

2005-04-28 Thread Garbacz Paweł
Hello,

The simplest service would be:

"simplestService.jws"

--- cut here ---
public class SimplestService {
public boolean myMethod(String theName) {
return "Paweł".equals(theName);
}
}
--- cut here ---

The only thing you need to do is to configure Tomcat in web.xml file to process 
*.jws files as WebServices by adding these lines:

  
webServiceProcessor

  org.apache.axis.transport.http.AxisServlet

  

  
webServiceProcessor
*.jws
  

And then add axis.jar, wsdl4j.jar, saaj.jar and jaxrpc.jar files into 
/WEB-INF/lib directory of your web application handling the services.

--
Best regards,

Paweł Garbacz (Web Technology Team)
TETA S.A. --== www.teta.com.pl ==--


-Original Message-
From: Plorks mail [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 28, 2005 3:42 PM
To: axis-user@ws.apache.org
Subject: Could someone provide the following please 



So i could see what's going on

A sample axis web service (server-side) and a sample axis client web service


Many many thanks

_
Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
http://toolbar.msn.co.uk/




Re: Return string[][][]

2005-04-28 Thread Anne Thomas Manes
This is not a valid XML Schema type: xsd:string[][][]

Anne
 

On 4/28/05, Garbacz Paweł <[EMAIL PROTECTED]> wrote:
> Hi everyone,
> 
> I had this stupid situation. I wrote a WebService exhibiting the web method 
> String[][][] getUpdates(). Until it had the definition String[][] 
> getUpdates() it worked fine. I was wondering if there is a problem with Axis 
> servlet or something, because when I use my web method in C# project made in 
> VS.NET, it builds a wrapper method as string[] getUpdates() instead of 
> string[][][] getUpdates().
> 
> Type definition in wsdl generated by Axis is:
> 
> 
> 
>  wsdl:arrayType="xsd:string[][][]"/>
> 
> 
> 
> 
> The relevant web method written in C# produces quite different wsdl:
> 
> 
> 
>  name="ArrayOfArrayOfString" nillable="true" type="tns:ArrayOfArrayOfString"/>
> 
> 
> 
> 
>  name="ArrayOfString" nillable="true" type="tns:ArrayOfString"/>
> 
> 
> 
> 
>  nillable="true" type="s:string"/>
> 
> 
> 
> One can see the difference - the first type is written as simple array type, 
> the second one uses simple type made more complex (as a collection). Is it 
> OK? Maybe Axis does something wrong?
> 
> --
> Best regards,
> 
> Paweł Garbacz (Web Technology Team)
> TETA S.A. --== www.teta.com.pl ==--
>


Re: Could someone provide the following please ....

2005-04-28 Thread Shawn McKinney
Plorks - Axis provides several examples for you in
their distro.  What style of web service are you
interested in?

--- Plorks mail <[EMAIL PROTECTED]> wrote:
> 
> 
> So i could see what's going on
> 
> A sample axis web service (server-side) and a sample
> axis client web service
> 
> 
> Many many thanks
> 
>
_
> Want to block unwanted pop-ups? Download the free
> MSN Toolbar now!  
> http://toolbar.msn.co.uk/
> 
> 


RE: Return string[][][]

2005-04-28 Thread Garbacz Paweł
Hi,

OK. I know what's wrong. According to 
http://ws.apache.org/axis/java/requirements.html multidimensional arrays are 
not supported. Unfortunately. And the String[][] two dimensional array I 
mentioned in my previous post was not also correct - it was replaced by simple 
1D array of Strings.

Therefore another question I could ask: does anyone know, when the 
multidimensional array support will be included in Axis?

--
Best regards,

Paweł Garbacz (Web Technology Team)
TETA S.A. --== www.teta.com.pl ==-- 


-Original Message-
From: Garbacz Paweł 
Sent: Thursday, April 28, 2005 3:33 PM
To: axis-user@ws.apache.org
Subject: Return string[][][]

Hi everyone,

I had this stupid situation. I wrote a WebService exhibiting the web method 
String[][][] getUpdates(). Until it had the definition String[][] getUpdates() 
it worked fine. I was wondering if there is a problem with Axis servlet or 
something, because when I use my web method in C# project made in VS.NET, it 
builds a wrapper method as string[] getUpdates() instead of string[][][] 
getUpdates().

Type definition in wsdl generated by Axis is:








The relevant web method written in C# produces quite different wsdl:

















One can see the difference - the first type is written as simple array type, 
the second one uses simple type made more complex (as a collection). Is it OK? 
Maybe Axis does something wrong?

--
Best regards,

Paweł Garbacz (Web Technology Team)
TETA S.A. --== www.teta.com.pl ==--



Could someone provide the following please ....

2005-04-28 Thread Plorks mail

So i could see what's going on
A sample axis web service (server-side) and a sample axis client web service
Many many thanks
_
Want to block unwanted pop-ups? Download the free MSN Toolbar now!  
http://toolbar.msn.co.uk/



Xerces with Axis1.2RC3

2005-04-28 Thread Chris Angelo Yu Averia
Hello,

I am just new to Axis.  Hope you can help out with my concern. 
I am using JDK 1.4, Tomcat 5.0 and Axis 1.2RC3.

As stated in the installation guide, Axis prefers to use Xerces
as its XML parser.  So no problem here, since I am using Tomcat,
Xerces is already included in the
"/common/endorsed" directory.  I am just quite
puzzled with how the Xerces XML Parser
"org.apache.xerces.jaxp.*" gets picked up by the classloader.  

If I leave XercesImpl.jar in the
"/common/endorsed" directory, as
expected, it is loaded by the bootstrap.  However, if I move
XercesImpl.jar to
"WEB-INF/lib" directory, it also gets picked up the bootstrap
class loader.  I always thought that placing a JAR file in the
"WEB-INF/lib"
(aside from the javax packages) will get picked up by the
WebAppClassLoader...

But when I tried to use an XML parser from IBM and put it in
WEB-INF/lib directory, it gets correctly picked up by the
WebAppClassLoader.

So my question is why does the Xerces Parser
"org.apache.xerces.jaxp.*", when moved to WEB-INF/lib, gets
picked up by the bootstap classloader instead of the
WebAppClassLoader?  

Any ideas?

Thanks in advance!
Chris



Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


Blockers for Axis 1.2 Final

2005-04-28 Thread Davanum Srinivas
Hi all,

FYI, There are 2 last remaining blockers for Axis 1.2 Final:
- http://issues.apache.org/jira/browse/AXIS-1838
- http://issues.apache.org/jira/browse/AXIS-1547

I'd encourage everyone to try latest CVS / Nightly ASAP.
http://cvs.apache.org/dist/axis/nightly/
http://cvs.apache.org/snapshots/ws-axis/

Thanks,
dims

-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


Return string[][][]

2005-04-28 Thread Garbacz Paweł
Hi everyone,

I had this stupid situation. I wrote a WebService exhibiting the web method 
String[][][] getUpdates(). Until it had the definition String[][] getUpdates() 
it worked fine. I was wondering if there is a problem with Axis servlet or 
something, because when I use my web method in C# project made in VS.NET, it 
builds a wrapper method as string[] getUpdates() instead of string[][][] 
getUpdates().

Type definition in wsdl generated by Axis is:








The relevant web method written in C# produces quite different wsdl:

















One can see the difference - the first type is written as simple array type, 
the second one uses simple type made more complex (as a collection). Is it OK? 
Maybe Axis does something wrong?

--
Best regards,

Paweł Garbacz (Web Technology Team)
TETA S.A. --== www.teta.com.pl ==--


Re: Question about Axis1.2RC3

2005-04-28 Thread Anne Thomas Manes
Another approach you might take is to create your own provider -- that
way you have complete control over how requests are dispatched.

Anne

On 4/28/05, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:
> Are you saying that you would like your SOAP message to look like this:
> 
> 
> 
>  X
> 
> 
> 
> First -- the child of the  element should be namespace
> qualified, so in general, I would say that this is a bad idea. The
> SOAP spec says that the child element MAY be namespace qualified, so,
> technically, it's okay that it isn't, but there's no way to define an
> unqualified element using WSDL, and I don't think that Axis can
> support it.
> 
> The only way that you can define this scenario in WSDL is to use the
>  element:
> 
> 
>
>http://javabean.websrv.napsi.eng.it";
>  elementFormDefault="unqualified"/>
>  
> 
>
>   
>
> 
>  
>   
> 
> 
> 
>
> 
> 
> And then use the RPC provider instead of the message provider. Axis
> will then automatically dispatch the request to the proper method for
> you, and it should map the  element to a DOM for
> you.
> 
> I think that's what you want.
> 
> Anne
> 
> On 4/28/05, angeloimm <[EMAIL PROTECTED]> wrote:
> > Hi all; first of all i want to thank Anne Thomas Manes for her tips.
> > I want to ask a thing i have a web service built in java; it is a java 
> > class that has several methods.
> > Now in my axis.wsdd i have added a service like this one:
> >  > provider="java:MSG" style="message" use="literal" validate="false">
> > 
> >  > value="it.eng.napsi.websrv.javabean.Interaction" 
> > regenerateElement="false"/>
> >  > regenerateElement="false"/>
> > http://javabean.websrv.napsi.eng.it
> >  > returnQName="ns1:byFiscalCodeReturn"
> > returnType="xsd:anyType" qname="ns1:byFiscalCode"
> > regenerateElement="false" 
> > xmlns:ns1="http://javabean.websrv.napsi.eng.it"/>
> > 
> >
> > Now i have this simple client:
> > package it.eng.test.client.util;
> >
> > import org.apache.axis.client.Call;
> > import org.apache.axis.client.Service;
> > import org.apache.axis.message.SOAPBodyElement;
> > import org.apache.axis.message.SOAPBody;
> > import org.apache.axis.utils.XMLUtils;
> > import javax.xml.rpc.ServiceException;
> >
> > import java.util.Vector;
> > import org.w3c.dom.Document;
> > import javax.xml.namespace.QName;
> >
> > import org.apache.log4j.Logger;
> > import java.net.URL;
> > import java.net.MalformedURLException;
> > import javax.xml.parsers.DocumentBuilderFactory;
> > import javax.xml.parsers.DocumentBuilder;
> > import java.util.*;
> >
> > import it.eng.napsi.input.individuo.IndividualMarshaller;
> >
> > public class SimpleAxisClient {
> > public SimpleAxisClient() {
> > }
> >
> > private static final Logger LOG = 
> > Logger.getLogger(SimpleAxisClient.class.
> > getName());
> >
> > private Call getCall(String endpoint, String operation) throws
> > ServiceException {
> >
> > if (LOG.isDebugEnabled()) {
> >
> > LOG.debug("Creating call.");
> > }
> > Call result = (Call) (new Service()).createCall();
> > try {
> > result.setTargetEndpointAddress(new URL(endpoint));
> >
> > } catch (MalformedURLException ex) {
> >
> > LOG.error(ex);
> > }
> >
> > result.setOperation(new QName(endpoint, operation), operation);
> > if (LOG.isDebugEnabled()) {
> >
> > LOG.debug("Done!!");
> > }
> > return result;
> > }
> >
> > public Document getDocument(Document doc, String endpoint,
> > String operation) throws Exception {
> > Call call = getCall(endpoint, operation);
> > Vector result = (Vector) call.invoke(new Object[] {doc});
> > //Vector result = (Vector) call.invoke(new SOAPBodyElement[] { new 
> > SOAPBodyElement( doc.getDocumentElement() )});
> > SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);
> >
> > if (LOG.isDebugEnabled()) {
> >
> > LOG.debug("Body ricevuto: " +
> >   XMLUtils.DocumentToString(sbe.getAsDocument()));
> > }
> > return sbe.getAsDocument();
> > }
> >
> > public static void main(String args[]) throws Exception {
> >
> > IndividualMarshaller ind = new IndividualMarshaller();
> > Map envi = new Hashtable();
> > envi.put( "codFisc","MMDNGL74C22H703K" );
> > //String xmlString = ind.toStringDocument( envi );
> > /*
> > String xmlString = " > xmlns:impl='http://javabean.websrv.napsi.eng.it'>"+
> >
> > "X"+
> >"";
> >  */
> > String xmlString = " > xmlns:impl='http://javabean.websrv.napsi.eng.it'>"+
> > 

Re: Axis 1.2 RC3 and array deserialization problem

2005-04-28 Thread Sergio Bossa
On 4/28/05, Davanum Srinivas <[EMAIL PROTECTED]> wrote:
> try latest Nightly / CVS and THEN file a bug :)

I've just done, but nothing works  so, I'll regress to Axis 1.2
RC2 and I'll file a bug report as soon as I can.
However, there's one thing with RC2 that makes me puzzled 
Its SOAP envelope:

http://schemas.xmlsoap.org/soap/encoding/";>
ts
1113390437052


It uses SOAP encoding, even if my services are in doc/literal wrapped
style (see my first post and the reported code for any doubt)!

-- 
Sergio Bossa
Author and Developer of:
- Montag, Web Services System for XML Database Interaction:
  http://montag.sourceforge.net
- QuickNote:
  http://quicknote.sourceforge.net


reply:help with a ClassCastException

2005-04-28 Thread zhangyu
Modified code: 
public String Test(String str){

try{
EchoServiceLocator service = new EchoServiceLocator();
Echo port = service.getEcho();
return (String)port.echoMethod(str); <= You can change here!
}catch (Exception e)
{
System.err.println(e.getMessage());
logger.error("Could not connect to Web Service!",e);
return null;
}
}
--- Begin Message ---




Hi everyone!

Still have the same ClassCastException when I invoke a method on my
stub.

My code:
    public String Test(String str){
        
        try{
            EchoServiceLocator service = new EchoServiceLocator();
            Echo port = service.getEcho();
            return port.echoMethod(str); <=
ClassCastException
        }catch (Exception e)
        {
            System.err.println(e.getMessage());
            logger.error("Could not connect to Web Service!",e);
            return null;
        }
    }

ERROR:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ClassCastException
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
    at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
    at
org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:441)
    at
org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
    at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2413)
    at org.apache.axis.client.Call.invoke(Call.java:2336)
    at org.apache.axis.client.Call.invoke(Call.java:1793)
    at
bvg.axis.services.Echo.EchoSoapBindingStub.echoMethod(EchoSoapBindingStub.java:102)
    at com.jcms.Axis.Webservices.Test(Webservices.java:61)
    at jaas.module.SampleLoginModule.login(SampleLoginModule.java:210)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at
javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
    at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    {http://xml.apache.org/axis/}hostname:bvg

java.lang.ClassCastException
    at org.apache.axis.AxisF

Re: Axis 1.1 Array Problems

2005-04-28 Thread Anne Thomas Manes
Don't try to use rpc/literal with Axis 1.1.
You have three choices:
- use rpc/encoded
- use document/literal (I suggest "wrapped" style)
- upgrade to Axis 1.2

Anne

On 4/27/05, John Green <[EMAIL PROTECTED]> wrote:
> All,
> 
> I am seeing lots of posts about problems with arrays.
> Not sure what the solution is, the problem I am seeing
> is that an array is being populated with many elements
> on the server-side, but on the client I am only
> getting the last element in the array.  I have tried
> several things from changing the style and use in the
> ant task, to wrapping the array in a class.  Here is
> what is generated in the WDSL for the class that
> contains the array.
> 
> 
>   type="impl:ArrayOf_tns1_Provider"/>
> 
> 
> 
> 
>  
>   
> type="tns1:ProviderArray"/>
>   
> 
> 
> 
> 
> 
>  
>wsdl:arrayType="tns1:Provider[]"/>
>  
> 
> 
> 
> Can anyone give me some new suggestions to try?  Is
> this a bug with the ant task?  Here is the ant task I
> have setup:
>  classname="net.ussouth.incomm.postpay.webService.WebServiceFacadeEndpoint"
> namespace="http://net.ussouth.incomm.postpay.webService/";
> location="http://localhost:8080/ws4ee/services/WebServiceFacadeService";
> serviceElementName="WebServiceFacade"
> servicePortName="WebServiceFacadeEndpoint"
> style="rpc"
> use="literal"
> output="${rsrc.home}/wsdl/WebServiceFacade.wsdl">
> 
> 
> 
> Thanks,
> 
> John Green
> 
>


Manipulate HTTP Header

2005-04-28 Thread Markus . Koelzer








Hello AXIS users !

 

We try to put new parameters
in the HTTP header of a SOAP message.

We use the generated stubs.

 

Can anyone help us ? Can we use
the MessageContext of a Call ?

Or how do we get the HTTP Header
?

 

Greatings from Germany

Markus Koelzer

 








Re: Axis 1.2 RC3 and array deserialization problem

2005-04-28 Thread Davanum Srinivas
try latest Nightly / CVS and THEN file a bug :)

-- dims

On 4/28/05, Sergio Bossa <[EMAIL PROTECTED]> wrote:
> > You should file a bug about wsdl2java with an attached example if you want 
> > it fixed ...
> 
> I've just done.
> 
> Should I file a bug report also for the array deserialization problem?
> 
> It seems to me very absurd that Axis 1.2 RC3 broke array deserialization ...
> 
> --
> Sergio Bossa
> Author and Developer of:
> - Montag, Web Services System for XML Database Interaction:
>   http://montag.sourceforge.net
> - QuickNote:
>   http://quicknote.sourceforge.net
> 


-- 
Davanum Srinivas - http://webservices.apache.org/~dims/


Re: WRAPPED, arrays and null

2005-04-28 Thread Dominik
My wsdl is created from java definition (java2wsdl), 
I think changing wsdl definition (for each array result) everytime 
wsdl is generated is bit time consuming...

Is it possible to enforce java2wsdl to generate proper WSDL ?
or to make Axis to handle array results properly?
Thank You Anne, :-)
Dominik
- Original Message - 
From: "Anne Thomas Manes" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, April 27, 2005 8:03 PM
Subject: Re: WRAPPED, arrays and null

The WSDL looks good. I think this is caused by Axis's preference to
return nulls rather than empty elements. You might try modifying your
array definition to this:
 
  
   

   
  
 
Anne


Re: Question about Axis1.2RC3

2005-04-28 Thread Anne Thomas Manes
Are you saying that you would like your SOAP message to look like this:



 X



First -- the child of the  element should be namespace
qualified, so in general, I would say that this is a bad idea. The
SOAP spec says that the child element MAY be namespace qualified, so,
technically, it's okay that it isn't, but there's no way to define an
unqualified element using WSDL, and I don't think that Axis can
support it.

The only way that you can define this scenario in WSDL is to use the
 element:


   
   http://javabean.websrv.napsi.eng.it"; 
 elementFormDefault="unqualified"/>
 

   
  
   

 
  



   


And then use the RPC provider instead of the message provider. Axis
will then automatically dispatch the request to the proper method for
you, and it should map the  element to a DOM for
you.

I think that's what you want.

Anne
   
On 4/28/05, angeloimm <[EMAIL PROTECTED]> wrote:
> Hi all; first of all i want to thank Anne Thomas Manes for her tips.
> I want to ask a thing i have a web service built in java; it is a java class 
> that has several methods.
> Now in my axis.wsdd i have added a service like this one:
>  provider="java:MSG" style="message" use="literal" validate="false">
> 
>  value="it.eng.napsi.websrv.javabean.Interaction" 
> regenerateElement="false"/>
> 
> http://javabean.websrv.napsi.eng.it
>  returnQName="ns1:byFiscalCodeReturn"
> returnType="xsd:anyType" qname="ns1:byFiscalCode"
> regenerateElement="false" 
> xmlns:ns1="http://javabean.websrv.napsi.eng.it"/>
> 
> 
> Now i have this simple client:
> package it.eng.test.client.util;
> 
> import org.apache.axis.client.Call;
> import org.apache.axis.client.Service;
> import org.apache.axis.message.SOAPBodyElement;
> import org.apache.axis.message.SOAPBody;
> import org.apache.axis.utils.XMLUtils;
> import javax.xml.rpc.ServiceException;
> 
> import java.util.Vector;
> import org.w3c.dom.Document;
> import javax.xml.namespace.QName;
> 
> import org.apache.log4j.Logger;
> import java.net.URL;
> import java.net.MalformedURLException;
> import javax.xml.parsers.DocumentBuilderFactory;
> import javax.xml.parsers.DocumentBuilder;
> import java.util.*;
> 
> import it.eng.napsi.input.individuo.IndividualMarshaller;
> 
> public class SimpleAxisClient {
> public SimpleAxisClient() {
> }
> 
> private static final Logger LOG = Logger.getLogger(SimpleAxisClient.class.
> getName());
> 
> private Call getCall(String endpoint, String operation) throws
> ServiceException {
> 
> if (LOG.isDebugEnabled()) {
> 
> LOG.debug("Creating call.");
> }
> Call result = (Call) (new Service()).createCall();
> try {
> result.setTargetEndpointAddress(new URL(endpoint));
> 
> } catch (MalformedURLException ex) {
> 
> LOG.error(ex);
> }
> 
> result.setOperation(new QName(endpoint, operation), operation);
> if (LOG.isDebugEnabled()) {
> 
> LOG.debug("Done!!");
> }
> return result;
> }
> 
> public Document getDocument(Document doc, String endpoint,
> String operation) throws Exception {
> Call call = getCall(endpoint, operation);
> Vector result = (Vector) call.invoke(new Object[] {doc});
> //Vector result = (Vector) call.invoke(new SOAPBodyElement[] { new 
> SOAPBodyElement( doc.getDocumentElement() )});
> SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);
> 
> if (LOG.isDebugEnabled()) {
> 
> LOG.debug("Body ricevuto: " +
>   XMLUtils.DocumentToString(sbe.getAsDocument()));
> }
> return sbe.getAsDocument();
> }
> 
> public static void main(String args[]) throws Exception {
> 
> IndividualMarshaller ind = new IndividualMarshaller();
> Map envi = new Hashtable();
> envi.put( "codFisc","MMDNGL74C22H703K" );
> //String xmlString = ind.toStringDocument( envi );
> /*
> String xmlString = " xmlns:impl='http://javabean.websrv.napsi.eng.it'>"+
>
> "X"+
>"";
>  */
> String xmlString = " xmlns:impl='http://javabean.websrv.napsi.eng.it'>"+
>
> "X"+
>"";
> System.out.println( xmlString );
> SimpleAxisClient client = new SimpleAxisClient();
> Call miaCall = client.getCall(
> 
> "http://localhost:8082/ServicePublisher/services/Interaction","byFiscalCode";);
> Document doc = XMLUtils.newDocument(new 
> java.io.ByteArrayInputStream(xmlString.getBytes()));
> System.out.println("doc.getDocumentElement(): " +
>doc.getDocume

Re: Axis 1.2 RC3 and array deserialization problem

2005-04-28 Thread Sergio Bossa
> You should file a bug about wsdl2java with an attached example if you want it 
> fixed ...

I've just done.

Should I file a bug report also for the array deserialization problem?

It seems to me very absurd that Axis 1.2 RC3 broke array deserialization ... 

-- 
Sergio Bossa
Author and Developer of:
- Montag, Web Services System for XML Database Interaction:
  http://montag.sourceforge.net
- QuickNote:
  http://quicknote.sourceforge.net


Re: help with a ClassCastException

2005-04-28 Thread Bruno Gonçalves




When I run my webapp out of eclipse, just
using tomcat application, I got the same error, but with some extra
information:

ERROR:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ClassCastException:
org.apache.axis.transport.http.HTTPSender
 faultActor: 
 faultNode: 
 faultDetail: 


Any ideas?

Thanks..

Bruno Gonçalves wrote:

  
  Hi everyone!
  
Still have the same ClassCastException when I invoke a method on my
stub.
  
  My code:
      public String Test(String str){
        
        try{
            EchoServiceLocator service = new EchoServiceLocator();
            Echo port = service.getEcho();
            return port.echoMethod(str); <=
ClassCastException
        }catch (Exception e)
        {
            System.err.println(e.getMessage());
            logger.error("Could not connect to Web Service!",e);
            return null;
        }
    }
  
  ERROR:
  AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ClassCastException
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
    at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
    at
org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:441)
    at
org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
    at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2413)
    at org.apache.axis.client.Call.invoke(Call.java:2336)
    at org.apache.axis.client.Call.invoke(Call.java:1793)
    at
bvg.axis.services.Echo.EchoSoapBindingStub.echoMethod(EchoSoapBindingStub.java:102)
    at com.jcms.Axis.Webservices.Test(Webservices.java:61)
    at jaas.module.SampleLoginModule.login(SampleLoginModule.java:210)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at
javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
    at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)
  
    {http://xml.apache.org/axis/}hostname:bvg
  
java.lang.ClassCastException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    a

could not get HandlerInfo config information from handlerRequest ?

2005-04-28 Thread Pham Hoai Van








See my following code. In handlerRequeset function why am i
get map.get("krbws_action")=null all the time ? Any help will be
appriciate much. Thanks

 

public static void main(String[] args) {

AddFunction1Service srv = new
AddFunction1ServiceLocator();  

    

        ArrayList handlerInfo =
new ArrayList() ;

    Map config = new
HashMap();

    config.put("krbws_action","KerberosSecurity"); 

    QName name = new
javax.xml.namespace.QName("http://localhost:/axis/services/AddFunction1Service",
"AddFunction1Service");

    QName[] lstName =
{name};

    HandlerInfo    hi =
new HandlerInfo();

    hi.setHandlerClass(ClientSecurityHandler.class);

    hi.setHandlerConfig(config);

    hi.setHeaders(lstName);

    

    handlerInfo.add(hi);

    srv.getHandlerRegistry().setHandlerChain(name,handlerInfo);

    

    Complex a = new
Complex(1.2,2);

    Complex b = new
Complex(1.2,2);

    AddFunction1 fun =
srv.getAddFunction1Service();    

    Complex c =
fun.addComplex(a,b);

    System.out.print("Result:"+
c.getI() + " " + c.getR());

 

public class ClientSecurityHandler implements javax.xml.rpc.handler.Handler {   

       private HandlerInfo info;

    public void init(HandlerInfo config) {

    info = config;

    }

…..

    public boolean handleRequest(MessageContext
context) { 

     Map map = info.getHandlerConfig();

    System.out.println("Information:
"+map.get("krbws_action"));

…..

-
Pham Hoai Van
Y!: hoaivanpham 

 






<>

help with a ClassCastException

2005-04-28 Thread Bruno Gonçalves




Hi everyone!

Still have the same ClassCastException when I invoke a method on my
stub.

My code:
    public String Test(String str){
        
        try{
            EchoServiceLocator service = new EchoServiceLocator();
            Echo port = service.getEcho();
            return port.echoMethod(str); <=
ClassCastException
        }catch (Exception e)
        {
            System.err.println(e.getMessage());
            logger.error("Could not connect to Web Service!",e);
            return null;
        }
    }

ERROR:
AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.ClassCastException
 faultActor: 
 faultNode: 
 faultDetail: 
    {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException
    at
org.apache.axis.deployment.wsdd.WSDDTargetedChain.makeNewInstance(WSDDTargetedChain.java:157)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getNewInstance(WSDDDeployableItem.java:274)
    at
org.apache.axis.deployment.wsdd.WSDDDeployableItem.getInstance(WSDDDeployableItem.java:260)
    at
org.apache.axis.deployment.wsdd.WSDDDeployment.getTransport(WSDDDeployment.java:441)
    at
org.apache.axis.configuration.FileProvider.getTransport(FileProvider.java:257)
    at org.apache.axis.AxisEngine.getTransport(AxisEngine.java:332)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:163)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2413)
    at org.apache.axis.client.Call.invoke(Call.java:2336)
    at org.apache.axis.client.Call.invoke(Call.java:1793)
    at
bvg.axis.services.Echo.EchoSoapBindingStub.echoMethod(EchoSoapBindingStub.java:102)
    at com.jcms.Axis.Webservices.Test(Webservices.java:61)
    at jaas.module.SampleLoginModule.login(SampleLoginModule.java:210)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at
javax.security.auth.login.LoginContext.invoke(LoginContext.java:675)
    at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
    at
javax.security.auth.login.LoginContext$4.run(LoginContext.java:610)
    at java.security.AccessController.doPrivileged(Native Method)
    at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:607)
    at
javax.security.auth.login.LoginContext.login(LoginContext.java:534)
    at
org.apache.catalina.realm.JAASRealm.authenticate(JAASRealm.java:316)
    at
org.apache.catalina.authenticator.FormAuthenticator.authenticate(FormAuthenticator.java:229)
    at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:446)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
    at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
    at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
    at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
    at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
    at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
    at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
    at java.lang.Thread.run(Thread.java:534)

    {http://xml.apache.org/axis/}hostname:bvg

java.lang.ClassCastException
    at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:216)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2754)
    at org.apache.axis.client.Call.invoke(Call.java:2737)
    at org.apache.axis.client.Call.invoke(Call.java:2413)
    at org.apache.axis.client.Call.invoke(Call.java:2336)
    at org.apache.axis.client.Call.invoke(Call.java:1793)
    at
bvg.axis.services.Echo.EchoSoapBindingStub.echoMethod(EchoSoapBinding

Question about Axis1.2RC3

2005-04-28 Thread angeloimm
Hi all; first of all i want to thank Anne Thomas Manes for her tips.
I want to ask a thing i have a web service built in java; it is a java class 
that has several methods.
Now in my axis.wsdd i have added a service like this one:




http://javabean.websrv.napsi.eng.it
http://javabean.websrv.napsi.eng.it"/>


Now i have this simple client:
package it.eng.test.client.util;

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPBodyElement;
import org.apache.axis.message.SOAPBody;
import org.apache.axis.utils.XMLUtils;
import javax.xml.rpc.ServiceException;

import java.util.Vector;
import org.w3c.dom.Document;
import javax.xml.namespace.QName;

import org.apache.log4j.Logger;
import java.net.URL;
import java.net.MalformedURLException;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import java.util.*;

import it.eng.napsi.input.individuo.IndividualMarshaller;


public class SimpleAxisClient {
public SimpleAxisClient() {
}

private static final Logger LOG = Logger.getLogger(SimpleAxisClient.class.
getName());


private Call getCall(String endpoint, String operation) throws
ServiceException {

if (LOG.isDebugEnabled()) {

LOG.debug("Creating call.");
}
Call result = (Call) (new Service()).createCall();
try {
result.setTargetEndpointAddress(new URL(endpoint));

} catch (MalformedURLException ex) {

LOG.error(ex);
}

result.setOperation(new QName(endpoint, operation), operation);
if (LOG.isDebugEnabled()) {

LOG.debug("Done!!");
}
return result;
}

public Document getDocument(Document doc, String endpoint,
String operation) throws Exception {
Call call = getCall(endpoint, operation);
Vector result = (Vector) call.invoke(new Object[] {doc});
//Vector result = (Vector) call.invoke(new SOAPBodyElement[] { new 
SOAPBodyElement( doc.getDocumentElement() )});
SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);

if (LOG.isDebugEnabled()) {

LOG.debug("Body ricevuto: " +
  XMLUtils.DocumentToString(sbe.getAsDocument()));
}
return sbe.getAsDocument();
}

public static void main(String args[]) throws Exception {

IndividualMarshaller ind = new IndividualMarshaller();
Map envi = new Hashtable();
envi.put( "codFisc","MMDNGL74C22H703K" );
//String xmlString = ind.toStringDocument( envi );
/*
String xmlString = ""+
   
"X"+
   "";
 */
String xmlString = ""+
   
"X"+
   "";
System.out.println( xmlString );
SimpleAxisClient client = new SimpleAxisClient();
Call miaCall = client.getCall(

"http://localhost:8082/ServicePublisher/services/Interaction","byFiscalCode";);
Document doc = XMLUtils.newDocument(new 
java.io.ByteArrayInputStream(xmlString.getBytes()));
System.out.println("doc.getDocumentElement(): " +
   doc.getDocumentElement().getNodeName());
Vector result = (Vector) miaCall.invoke
(new SOAPBodyElement[] {new SOAPBodyElement(doc.
getDocumentElement())});
SOAPBodyElement sbe = (SOAPBodyElement) result.get(0);

System.out.println( "Ottenuto: "+ XMLUtils.DocumentToString( 
sbe.getAsDocument() ) );
}
}

As you can see i have this file xml:


  
  X
  


Now by doing so the method is called... but the document that it receives is 
the file xml that i have showed before; i'ld like that the document that the 
operation byFiscalCode accepts is
  
  X
  

How can i do?
If i must insert the operation name in the xml ( that is: http://www.libero.it




Re: deploy a javax.xml.rpc.handler.Handler at client side through file config ?

2005-04-28 Thread Ralph Pöllath
I know this isn't what you asked for, but you can deploy a 
org.apache.axis.Handler by placing client-config.wsdd in the classpath.

Cheers,
-Ralph.
On 28.04.2005, at 12:32, Pham Hoai Van wrote:
Hi all,
Is there anyway to use a javax.xml.rpc.handler.Handler at client side
through file config.
I can use it if by programming but by configing i havent find any
solution.
Anyone know please tell me. I've searched through this mailling list 
but
there isnt any solution for this.
Thanks.



deploy a javax.xml.rpc.handler.Handler at client side through file config ?

2005-04-28 Thread Pham Hoai Van
Hi all,
Is there anyway to use a javax.xml.rpc.handler.Handler at client side
through file config.

I can use it if by programming but by configing i havent find any
solution.
Anyone know please tell me. I've searched through this mailling list but
there isnt any solution for this.
Thanks.

-
Pham Hoai Van
Y!: hoaivanpham 



RE: WS-Security Binary Token Help Needed

2005-04-28 Thread Plorks mail

Cheers, you already may have looked at this one, but it may be of help
http://www.javaworld.com/javaworld/jw-01-2002/jw-0125-axis_p.html


From: Raymond Suliteanu <[EMAIL PROTECTED]>
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
CC: [EMAIL PROTECTED]
Subject: RE: WS-Security Binary Token Help Needed
Date: Wed, 27 Apr 2005 09:30:21 -0700
Check out Apache WSS4J http://ws.apache.org/ws-fx/wss4j/
-Original Message-
From: Plorks mail [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 27, 2005 1:56 AM
To: axis-user@ws.apache.org
Cc: [EMAIL PROTECTED]
Subject: RE: WS-Security Binary Token Help Needed
I'm also in the same situation
What i'm trying to do is send credetials to a sql db, get a valid token
string and insert this string into a soap header.  I then need to be able 
to

'ping-pong' the string from the client back to the server-side to keep
checking it with a sql table and return a strign back to the client
I'm having trouble understanding axis soap.  Keeo reading about wsdd files
and wsdl files.  I'm not ready for the wsdl files yet, as this is just a
file that exposes the methods that a client can use.  I just want to rite
the handles and make sure the client can create a header and the server-sde
cna pick the value up and update the vlaue
It can't be difficult, someone must have done something similar, i'm 
finding

it hard to find decent examples !!


>From: Shawn McKinney <[EMAIL PROTECTED]>
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: WS-Security Binary Token Help Needed
>Date: Tue, 26 Apr 2005 11:16:56 -0700 (PDT)
>
>
>Need help learning how to insert/retrieve WS-Security
>Binary Token into message using Axis handlers.
>
>Surely someone has an example demonstrating a
>technique for achieving this task using either WSS4J's
>toolkit or some other means.
>
>Any help/direction on this topic is most appreciated.
>
>Regards,
>
>Shawn
_
Want to block unwanted pop-ups? Download the free MSN Toolbar now!
http://toolbar.msn.co.uk/
_
Be the first to hear what's new at MSN - sign up to our free newsletters! 
http://www.msn.co.uk/newsletters