RE: Newbie Question: No compiler found in your classpath

2004-11-18 Thread smcardle
This is definately not how to solve this issue. First make sure you have a JDK installed and not a JRE. Then ensure your environment variable JAVA_HOME is set to point to your JDK directory. This will fix your problem Regards Quoting [EMAIL PROTECTED]: > Hey, > > I had a quite similar probl

RE: Connecting to a dsn

2004-11-18 Thread smcardle
Hi, I need to see your current code connectToDsn in your client. Also, ensure you have a database configured in MYSql with the name neotest on a database server called devserver running on port 1433 If you are running all your code on the same machine (database, tomcat, client) try using local

Re: Connecting to a dsn

2004-11-18 Thread smcardle
Hi, Your entry lists jdbc/axis and nor jdbc/neotest. So either add a data source for neotest or use the axis one defined Regards Quoting John McCosker <[EMAIL PROTECTED]>: > Hi, > > I have a bean instantiated within my web service that connects to a dsn, > however I am having some difficulty

Re: Best Practice

2004-11-16 Thread smcardle
Hi, Due to a few issues generating the WSDL files from java code (in the area of custom exceptions mostly) I personal found the following approach suited me best. We already had the business class we wanted to expose as a web service so I originaly generated the WSDL from the java class. I the

Re: AW: AW: log4j help pls

2004-11-03 Thread smcardle
Hi Thomas, You do not need to have the first \\ charactes as this makes it an actual path rather than a relative path so it should be BTW just use a single forward slash instead of the double back slash it will be easier to read.. Regards Steve Quoting "Dorner, Thomas" <[EMAIL P

Re: AW: log4j help pls

2004-11-03 Thread smcardle
Hi Thomas, Your log4j properties file only needs to be located via the class path so in your case it should be put in the WEB-INF/classes directoy. Else you have specified a path somewhere (probably in a servlet property in your web.xml file) You should not be putting your context logging into

Re: log4j help pls

2004-11-03 Thread smcardle
The short answer is yes. Don't put the absolute path name just a relative path name. This has a affect depending on the context. If it is a stand alone application it will be a relative path from the directory in which you started the application. If you are using from a WEB Context it will be

RE: WSDL2Java does not generate custom exception

2004-10-27 Thread smcardle
Hi Anne, I appreciate that the specs define one thing and Axis does another, rightly or wrongly. However, most of the questions on this mailing list are to do with Axis as implemented. My point was that as Axis 1.1 is implement it may not meet the spec but to achieve the goal outlined by the

RE: WSDL2Java does not generate custom exception

2004-10-27 Thread smcardle
Hi Anne This is not true. The excepts I included in the previous post are direct extracts from my WSDL. All I did was remove all the other exceptions thrown from my operation and left just the one for brevity. This particular SOAP service has aprox 80 operations and all but a few throw custom

Re: WSDL2Java does not generate custom exception

2004-10-25 Thread smcardle
OK First define your exception as a complex type as follows: Next define the message as follows: N.B. The part name attribute is "fault" Next define the operation in the portType section of your WSDL as follows: Lastly in the bin

Re: How do I safely evolve data structures?

2004-10-25 Thread smcardle
Its a bad idea because your client contract with your service is defined by the wsdl. Regards Quoting James CE Johnson <[EMAIL PROTECTED]>: > Lets say I have defined a Customer data object, done the java2wsdl2java > dance and now I'm using the generated Customer object in my Axis client > and s

Re: AW: Still have Log4j - Problems!

2004-10-22 Thread smcardle
you must have the wsdl4j.jar in your path. So add wsdl4j.jar to your /webapps//lib directory Also if you add a log4j.properties file you will not get the message log4j:WARN Please initialize the log4j system properly. Regards Steve Quoting Florian Theurich <[EMAIL PROTECTED]>: > This is what

Re: Still have Log4j - Problems!

2004-10-22 Thread smcardle
Hi, the -Dlog4j.debug option should be defined before all of your other options i.e. java -Dlog4j.debug -cp %AXISCLASSPATH% org.apache.axis.wsdl.WSDL2Java -s -d application -o c:\tools\test c:\tools\test.wsdl Secondly your log4j.properties file should be in your Axis service classpath i.e. /

RE: [*** Mogelijke SPAM ***] - RE: newbie: namespace error - Enco ded IP

2004-10-12 Thread smcardle
Hi, I could be wrong, but, I do not think you can use a : (colon) in a namespace as it is the seperator character for the namespace prefix and the element. I have never tried using a : before in a namespace and can't remember if it is a legal character for a QNAME, you could look this up on th

RE: newbie: namespace error

2004-10-12 Thread smcardle
Hi Patrick, I don't think namespacing the elements is required as they will adopt the namespace of thier parent. This does on up the chain until a namespace for an element is resolved. Regards Steve Quoting Patrick Herber <[EMAIL PROTECTED]>: > Hello; > > NAMESPACE_ERR is raised if the qual

Re: How to extract the SOAP object from a HttpServletRequest

2004-10-12 Thread smcardle
OK, You can read the request from the HTTP request stream but once you do the request is no longer in the stream and trying to pass it on to its destination for handling will fail as the request is no longer available having been read earlier. I think the headers you are getting are infact HTTP

Re: wsdl2java fault bug ?

2004-10-11 Thread smcardle
You need to hand modify the wsdl file so that the qname for each fault is different. The java2wsdl util creates the same qname for each fault. This name is used to lookup the fault from a map and hey presto only one id returned, generally the last fault specified. If you hand modify the wsdl f

Re: AXIS log4j

2004-09-29 Thread smcardle
This is not actually an error, it just means that the logging system cannot be initiated because it has not been told what to do. Add a log4j.properties file directly to your classes directory or anywhere on your classpath. Use the following as a starting point. # Set root category priority to

Re: AXIS log4j

2004-09-29 Thread smcardle
You do not have a log4j properties file in your class path. Regards Quoting yssr <[EMAIL PROTECTED]>: > Hi > >java samples.userguide.example3.Client > -lhttp://localhost:8080/axiso/services/MyService "test > me ok" > log4j:WARN No appenders could be found for logger > (org.apache.axis.i

Re: deploy problems with axis and JBoss EJB

2004-09-07 Thread smcardle
Hi Edward, If you want to tun on loggin for Axis try this. It worked for me. Create a log4j.properties files: # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=DEBUG, LOGFILE # Set the enterprise logger category to FATAL and its only appender to CONSOLE.

Re: static inner class serialization

2004-09-07 Thread smcardle
Hi David, I have had this issue previously. Firstly, the complex type in the schema is where you set this up but there is a SERIOUS issue with the naming. The Schema spec does not allow a $ character in a qname (it is not in the allowable range of legal characters). Axis does however ignore thi

Re: Own WebService Implementation classes

2004-07-28 Thread smcardle
Hi Martin, You can just use the the generated Impl class as a forwarder to your class. If you instanciate your own class and then call your methods from the generated Impl class. This works fine for me. As WSDL2Java will not recreate or overwrite the Imple class once it exists. If I have new m

Re: javax.ejb.EJBException: Second thread call to stateful session bean

2004-06-14 Thread smcardle
The settup you want is the normal way for stateful session beans to work. A reference to the stateful session remote interface for each client will resolve to the original instance. thus, statefull session beans serve a single client as opposed to stateless session beans which are served up by t

Re: German characters cause problems for AxisServlet

2004-06-03 Thread smcardle
I cannot try the nightly build as the company policy for upgrading product versions are pretty strict. Regards Steve Quoting Davanum Srinivas <[EMAIL PROTECTED]>: > can you please try the nightly build? if it still fails, please open a > bug report with sample code to recreate the problem. >

German characters cause problems for AxisServlet

2004-06-02 Thread smcardle
Hi All, OK, I have a WSDL file that contains German characters such as ö ä ü and ß. If I open the wsdl in internet explorer it displays the wsdl correctly including all german characters. If I access the wsdl file using http://://services/?wsdl usinf the same version of Internet explorer I ge

Re: AW: How to craft a custom Fault detail message?

2004-05-18 Thread smcardle
I would like to add to this thread that I had a similar problem with custome exceptions. The java2wsdl utility unfortuantely creates the SAME QName for the elements in the WSDL for a particular operation. So if you have several custome Exceptions thrown by your method the map kept by the gener

wsdl not showing correctly in IE6.0 from Axis 1.1

2004-05-17 Thread smcardle
Hi Guys, Has anybody come across the following problem. I have a wsdl file which contains the German sharp S character. If I open the wsdl directly with IE6.0 it displays correctly including all my German characters. However, If I use the Axis 1.1 ?wsdl option from IE6.0 it fails to display my

Re: Remote Access Rejected

2004-03-24 Thread smcardle
Hi Virinie, You need to set the entry in the web.xml file to allow remote administration. It is set off by default. Regards Steve Quoting Virginie Legrand <[EMAIL PROTECTED]>: > Hi all, > > I am trying axis and I want to deploy a web service by using Adminclient : > > java org.apache.ax

Re: FW: 1-43507131 | Access Denied web service response causing an error with Apache Axis

2004-03-24 Thread smcardle
Hello Chris, Looking at your SOAP fault you do indeed have an undefined name space problem. The line [ISS.0084.9004] Access Denied has the problem xml:lang="en" problem. lang is namespace prefixed but the envelope name spaces does not include an entry for xml: Hope this helps point you in the

Re: wsdl spec examples - do they work?

2004-03-24 Thread smcardle
Hi Nitin, I see a couple of problems you want to address. 1. Always define the encoding in your xml header i.e. Both UTF-8 and UTF-16 are acceptable but I suggest UTF-8 because of some problems. This will not solve your problem. 2. In your message definition you have defined both the request

Re: AdminClient throws NoClassDefFoundError

2004-03-24 Thread smcardle
Hi Grant, you have not got the axis jar files on your class path. A common way to do this is to create an AXISCLASSPATH environment variable that has all of the Axis jar file defined in the lib directory under your AXIS_HOME installed directory and then call the method as java -cp %AXISCLASSP

Re: Newbie: How to retrieve SOAP message?

2004-03-23 Thread smcardle
Hi Kawthar, Axis is a servlet or server in your case. The way to use web services in general is to have a normal java application that exposes services via an interface. These are just plain old java objects. Once you have an interface you can the run java2WSDL against the interface to generat

Re: AW: How I get the within Axis?

2004-03-21 Thread smcardle
Hi Chris, The code snippets I sent you were for my application. The idea was to show you how to get the ServletContext from the Axis MessageContext. Basically I use the ServletContext to locate a property file I use that contains information on how my service locates a EJB on another server tha

Re: How I get the within Axis?

2004-03-20 Thread smcardle
Hi Chris, Here is some code I use from within my WebSevice to access a property file within the Web Context. Hope this helps org.apache.axis.MessageContext axisContext = org.apache.axis.MessageContext.getCurrentContext(); javax.servlet.ServletContext sc =

The problem with Exceptions (axis-dev List help would be appreciated)

2004-03-20 Thread smcardle
Hi all and especially any Axis developers looking through these mails I have posted this befor in a different format with no responce. It would appear that I have a problem nobody else has. I have an existing EJB service that I am exposing as a web service via Axis. All the serializable types a

ATTN axis-dev: tcpmon Error while using Resend

2004-03-20 Thread smcardle
Hi Developers, Got a problem with tcpmon when selecting resend for the 2nd time. The first time works and prints to the display as well as updating the tcpmon result view. However, the second time I press Resend I get the following exception and it then becomes impossible to do further Resends

RE: Problems with Axis deployment...

2004-03-19 Thread smcardle
Hi Somesh, The short answer to this is no I am not aware of problems. I have a pretty big and complex WebServices and have had very few issues. Regards Steve Quoting "Marepalli, Somesh" <[EMAIL PROTECTED]>: > Hi Steve: >Thanks for the reply. My applications is really big and I can't send

RE: Problems with Axis deployment...

2004-03-18 Thread smcardle
Hi Somesh, How big is your application, i.e. can you attach it to a mail with your wsdl and I will have a look over the weekend for you. This would appear to be a problem in the sevice and not with the deployment. Regards Steve Quoting "Marepalli, Somesh" <[EMAIL PROTECTED]>: > Hi Steve: >

Re: Antwort: Axis-Bug, INOUT, OUT

2004-03-18 Thread smcardle
Hi Oliver, It would help if this mail stated exactly what your problem is. Regards Steve Quoting Oliver Wulff <[EMAIL PROTECTED]>: > > > > > Hi all > > I'm wondering whether this is already a known bug in Axis because I didn't > get a reply so far. > Thank you for your help. > > Oliver >

RE: Problems with Axis deployment...

2004-03-18 Thread smcardle
Hi Somesh, Instead of trying to create your deployment by hand why don't you use the Axis java2WSDL to create a WSDL file and then use WSDL2java to create your deployment files named deploy.wsdd and undeploy.wsdd This will save you loads of typing and generally does a pretty good job. Lots of

RE: Problems with Axis deployment...

2004-03-18 Thread smcardle
Hi Somesh, You should have a been mapping yes. Just let me get this straight, are you deploying your service to axis or do you have your own context that you deploy your web service to i.e. NOT under axis/WEB-INF and that context has the axis jar files in its lib directory Regards Steve Quo

Re: Problems with Axis deployment...

2004-03-18 Thread smcardle
Hi Somesh, The root cause is java.lang.NoClassDefFoundError: org/apache/axis/AxisFault The Axis jar files are not available to your service. In your service WEB- INF/lib directory ensure all of the Axis jar files are present and resart Tomcat. Regards Steve Quoting "Marepalli, Somesh" <[EMA

Re: Tool for autogenerating wsdd & ?

2004-03-18 Thread smcardle
Hi Patrick, Then first run java2WSDL against either your compiled service class of better stil an interface it implements (does not have to be deployed) this will then generate a WSDL file for you. Then use the WSDL2java to create the deploy.wsdd and undeploy.wsdd and just throw away all the ot

Re: Tool for autogenerating wsdd & ?

2004-03-18 Thread smcardle
Hi Patric, It can also generate the server side code so that you can build a web service starting from a wsdl file and always creates the deploy.wsdd and undeploy.wsdd files Regards Steve Quoting "BLIS Webmaster (Patrick Houbaux)" <[EMAIL PROTECTED]>: > Hi Steve, > > I don't understand, I

Re: Tool for autogenerating wsdd & ?

2004-03-18 Thread smcardle
Hi Patric, The axis wsdl2java does this for you, it creates both a deploy.wsdd and an undeploy.wsdd Regards Steve Quoting "BLIS Webmaster (Patrick Houbaux)" <[EMAIL PROTECTED]>: > Hello all, > > I have a bunch of objects and exceptions to expose from my webservice and > writting the wsdd st

Re: AxisFault and auto generated wsdl problems

2004-03-18 Thread smcardle
Hi Patrick None of my custom Exceptions extend java.rmi.RemoteException or implement Serializable. My base exceptions extend only java.lang.Exception and all other custom exceptions extend these base exceptions. The mappings in the WSDL I created for them are correct and so is the definition i

AxisFault and auto generated wsdl problems

2004-03-18 Thread smcardle
Well good people of the list, Here are a couple of interesting problems for you to mull over and maybe help me out with. 1. I have a problem with Axis regarding the WSDL returned from a service as generated by Axis i.e when the ?wsdl option is specified. The auto generated wsdl is not usable w

Re: Viewing SOAP messages with Axis(as client) on Weblogic server

2004-03-16 Thread smcardle
Use the TCP Monitor tool that comes with Axis :) Regards Steve Quoting Jay D <[EMAIL PROTECTED]>: > > Dear List members, > > > > I am using axis (wsdl2java) in weblogic for connecting to a web service > deployed on the internet. We would like to view the soap sent and received. > Can you p

Re: Very Basic Problem with operation invocation

2004-03-11 Thread smcardle
Hi, Don't define elements named foo bar and wow. In your message just change the types of f b and w to xsd:string and instead of using element use type i.e. Regards Steve Quoting Kartik <[EMAIL PROTECTED]>: > Hi Folks. > > I have attached the very simple WSDL (paramtes

Re: Bug in WSDL2Java ?

2004-03-11 Thread smcardle
Hi If you use the same name in both the Request and Response message then it is translated as an IN/OUT parameter. As such a holder class will automatically be used and substituted. If this is not what you want i.e. you want the method to return a string then call the foo in the Response somthi

Handling AxisFault Exceptions in Java Client

2004-03-11 Thread smcardle
Hi all, I am relativel new to Axis but have trawled the net and the Axis FAQ for answers to the following question without success and have decided to come to you for help in my hour of need. I would like to know how to extract the original exception from an AxisFault. I have a Stateless Sessi