Custom Exceptions

2002-06-11 Thread Sam Kapoor
Hi: what I want to do is write a custom exception class and propagate it from one of the methods on my Web-Service to the client. So I define a Java exception class: public class EInvalidCustomer extends Exception { public EInvalidCustomer(String err){ super(err); } The method on my we

Re: WSDL2Java Design Issue

2002-06-11 Thread Martin Jericho
Thanks Russell, I'm satisfied to know that it is an issue in the backs of people's minds.  I've now resigned myself to using pure data classes with SOAP, and transferring the data into my real classes.   Still I think the idea of separating the server side and client side generation is not s

Re: Custom Exceptions

2002-06-11 Thread Bob Cotton
> "Sam" == Sam Kapoor <[EMAIL PROTECTED]> writes: Sam> Hi: what I want to do is write a custom exception class and Sam> propagate it from one of the methods on my Web-Service to the Sam> client. So I define a Java exception class: Sam> public class EInvalidCustomer extends E

RE: .Net Client for Axis Service

2002-06-11 Thread Drew Haller
Title: Message In .net when you set the credentials of your proxy, the client first sends the request with out the auth header and will retry if challenged.  The server needs to respond with a 401.  I believe you can do that by throwing an AxisFault.   -Original Message-From: J

RE: .Net Client for Axis Service

2002-06-11 Thread Jones, Rhys
Title: RE: .Net Client for Axis Service Thanks Vidyanand, I can't get the method of sending the WWW-Authenticate header back to the client to work.  I am curious of how you changed the GetWebRequest() method to send the correct headers.  It does seem like the hard way to do it, but it sounds

Custom Exceptions

2002-06-11 Thread Sam Kapoor
Hi: what I want to do is write a custom exception class and propagate it from one of the methods on my Web-Service to the client. So I define a Java exception class: public class EInvalidCustomer extends Exception { public EInvalidCustomer(String err){ super(err); } The method on my web-s

RE: .Net Client for Axis Service

2002-06-11 Thread thomas . cherel
Title: RE: .Net Client for Axis Service That should be fine. Thanks for the pointers, which is all I really needed. Thomas -Original Message- From: Vidyanand Murunikkara [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 7:08 PM To: [EMAIL PROTECTED] Subject: RE: .Net Client f

RE: .Net Client for Axis Service

2002-06-11 Thread Vidyanand Murunikkara
Hi Thomas I dont remember the exact code that i changed. But basically it involves overriding the GetWebRequest Method in the Client. Inside this method you do a GetWebRequest on the base class . TO this webrequest add the http header manually and then return it. Hope this helps. But if you

Re: JRun 4.0 question and axis beta2-Macromedia experts

2002-06-11 Thread Lyndon Durham
Thanks for the hack Jill.

RE: JRun 4.0 question and axis beta2-Macromedia experts

2002-06-11 Thread Jill Heck
i have just dropped the axis.jar in the jrun4/lib directory and it loads before jrun.jar thus using beta2 rather than beta1 in the jrun.jar. tempoary hack jill > -Original Message- > From: Lyndon Durham [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, June 11, 2002 2:52 PM > To: axis-user

RE: .Net Client for Axis Service

2002-06-11 Thread thomas . cherel
Title: RE: .Net Client for Axis Service I think that returning 401 is not enough. You need to return 401 and the WWW-Authenticate header so the .NET client understands that it has to retry by sending authentication information. Vidyanand, I will be interested to understand what you mean by ch

JRun 4.0 question and axis beta2-Macromedia experts

2002-06-11 Thread Lyndon Durham
JRun 4.0 provides web services functionality via Axis beta1 implementation. Can anyone of the Macromedia experts on this list advise as to if it is possible to upgrade their JRun bundled axis implementation from beta1 to beta2?

RE: Accessing Web Services from the web

2002-06-11 Thread Eric Roberts
Thanks guys. I had an inkling that servlets/jsps were the solution but just a bit confused on how to actually impliment it. Many Thanks Eric On Tue, 11 Jun 2002, Wimmer, Matthias wrote: > Eric: > > I think this is an issue of Servlets and JSPs. Once you are a little bit > familiar with this

RE: Accessing Web Services from the web

2002-06-11 Thread Wimmer, Matthias
Eric: I think this is an issue of Servlets and JSPs. Once you are a little bit familiar with this, I think you can easily retrieve one parameter (named machine_name or so) out of an HTML form. Then you just call LoadClient.main( machine_name) and get the result. I am not very familiar with Servl

Re: Accessing Web Services from the web

2002-06-11 Thread Lyndon Durham
If you modified your LoadClient to a web service client by replacing the main method, you could simply import it into a jsppage and invoke your web service. You could simply use a form that takes the machine name parameter and pass it to your web service client class. Web Services Definition

Re: Accessing Web Services from the web

2002-06-11 Thread James Black
Eric Roberts wrote: > Does this call for servlets/jsp? I keep reading about WSDL everywhere but > noone seems to explain how to utilize it. Every tutorial seems to stop > short of telling how to access a web service from the WEB. What am I > missing? Am I going in the right direction? I wi

Accessing Web Services from the web

2002-06-11 Thread Eric Roberts
Ok, I have a web service class that i want to use to access loads on certain machines. It takes one parameter, the machine name. The Java source looks like this: (begin source here) package samples.userguide.load; import org.apache.axis.client.Call; import org.apache.axis.client.Service; imp

re: more on getting wsdl file from server

2002-06-11 Thread James Black
Hello, I was playing around a bit, and on my system this works: http://alina.acomp.usf.edu:8080/axis/servlet/AxisServlet I get the error when I try: http://alina.acomp.usf.edu:8080/axis/services/AxisLMSServer?WSDL I didn't try it with this wsdl file, but with an earlier file, and before I us

RE: .Net Client for Axis Service

2002-06-11 Thread Vidyanand Murunikkara
Hi Rhys check this out http://marc.theaimsgroup.com/?l=axis-user &m=102224516027914&w=2 . Similar problem But there is no good solution to it. But there is one way you can make it send the required headers. But it involves chan

Bad Type with Beans problem

2002-06-11 Thread BRICKER_JONATHAN_E
I'm having a problem with the setup for an application to send a bean to a web service.  I'm getting this error : org.xml.sax.SAXException: Bad types (null -> class com.lilly.javaatg.catd.vo.canDE.PatientVOBean) I would think it is a classpath error but the PatientBean is in the program and in t

re: error when looking at servicename?wsdl

2002-06-11 Thread James Black
Hello, Here is the error I got: AXIS error Sorry, something seems to have gone wrong... here are the details: java.lang.NullPointerException Attached I have the deployment script and wsdl file. I just installed the latest nightly build, btw.

read XML file into SOAPBodyElement

2002-06-11 Thread Wimmer, Matthias
Hi, this is my code: SOAPBodyElement body = new SOAPBodyElement( file ); body.addChildElement( "Child" ); But it doesn't work. No child element is inserted. I tested it with System.out.println( body ) The method addChildElement works, if I call another constructor in advanc

RE: Apache SOAP 2.3 vs. AXIS

2002-06-11 Thread Volkmann, Mark
Title: RE: Apache SOAP 2.3 vs. AXIS See http://www.apache.org/~rubys/ApacheClientInterop.html for interop. information. Unfortunately, in the most recent run, the server running Axis and Apache SOAP was down so there are no results to look at today.   I've heard that the target for getting Ax

.Net Client for Axis Service

2002-06-11 Thread Jones, Rhys
Title: .Net Client for Axis Service Hi, I'm sorry if this is off topic, but here I go. I am trying to get a .Net client to talk to an existing Axis service which works with java clients.  Right now access to the service is controlled using a handler that checks basic authentication.  A

re: serializing linked lists

2002-06-11 Thread James Black
Hello, I am wondering if anyone has done any work on serializing a java.util.LinkedList object, or any of the similar collection type objects. Thank you.

easier automatic deployment

2002-06-11 Thread Jeff Sparkes
I'm new to AXIS, and SOAP, so I'll probably get the terminology wrong I'd like to be able to just add my services into the axis.war file and get my service deployed without have to somehow run the AdminClient. It seems that this happens automatically for .jws files. Otherwise, I seem to hav

Re: NMTOKENS

2002-06-11 Thread butek
Nope. Sorry. Russell Butek [EMAIL PROTECTED] Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: NMTOKENS Hello, Are xsd:NMTOKENS or xsd:NCName supported by Axis? Thanks, Miguel Vieira

RE: MessageContext at server side

2002-06-11 Thread Wimmer, Matthias
Thank you, it is working with this. I have some information for other persons that do the same as I did: Don't call MessageContext.getCurrentContext().getResponseMessage() within any JWS file. I did it and the result of the WebService RPC method was "null" all the time. best regards Matthias

Re: NMTOKENS

2002-06-11 Thread José Miguel Vieira
Hello again, I meant to say xsd:NMTOKEN. >Hello, > >Are xsd:NMTOKENS or xsd:NCName supported by Axis? > >Thanks, >Miguel Vieira Miguel Vieira

NMTOKENS

2002-06-11 Thread José Miguel Vieira
Hello, Are xsd:NMTOKENS or xsd:NCName supported by Axis? Thanks, Miguel Vieira

re: returning an image

2002-06-11 Thread James Black
Hello, Any ideas how I may return a png image or jpeg from the java-based web service to the client, with all the info to recreate the image? My thought may be to get the data from the web service, create the image and do any modifications in php and then return it to the client, but that limi

RE: MessageContext at server side

2002-06-11 Thread Geza.Szocs
Try using MessageContext.getCurrentContext() -Original Message- From: ext Wimmer, Matthias [mailto:[EMAIL PROTECTED]] Sent: 11. June 2002 16:08 To: '[EMAIL PROTECTED]' Subject: MessageContext at server side Hello, I read that the current MessageContext can be retrieved at server side (

MessageContext at server side

2002-06-11 Thread Wimmer, Matthias
Hello,   I read that the current MessageContext can be retrieved at server side (using JWS files) very simple: you just add a MessageContext parameter to your method. I wrote the following method and published the whole class as a JWS file.      public String echoMethod(  MessageContex

Re: WSDL2Java Design Issue

2002-06-11 Thread butek
I won't disagree with you about SOME solution being good, here. But I doubt anyone has the time to address it right now. The best thing for you to do, so this issue isn't lost, is to open a bugzilla bug. The risks I see with a flag aren't terribly critical, but they have to be considered: - if i

RE: Binary maping

2002-06-11 Thread Pavel Bernshtam
1) I need to use my own encoding 2) Can you provide example of creating my own binary serializer/desirializer and using it? 3) Can I tell Java2WSDL/WSDL2Java tools to use my own serializer/desirializer ? Thank you! Bernsht

RE: Binary maping

2002-06-11 Thread Byung Jin Chun
Don't know about a tutorial, but I believe the encoding For opaque binary data in soap is to base64 encode/decode it. Jin -Original Message- From: Pavel Bernshtam [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 4:58 AM To: '[EMAIL PROTECTED]' Subject: Binary maping Hi! Point

Re: wsdl2java io.exception problem

2002-06-11 Thread butek
The WSDL below is incomplete, and WSDL2Java is telling you so. You have an ELEMENT named OMOBJ. But you don't have a TYPE named OMOBJ. Both the element OMOBJ and the messages refer to type OMOBJ, but that type doesn't exist. Russell Butek [EMAIL PROTECTED] Please respond to [EMAIL PROTECTED]

soapAction="" why?

2002-06-11 Thread Gaël Pouzerate
Hi, In AXIS's generated WSDL files, I always get in the bindings. It causes troubles when I try to use the WSDL file from weblogic portal 4.0 for instance... Why this ""? Is this a bug? regards --Gaël Pouzerate

Weblogic5.1 log4j error

2002-06-11 Thread Andy Pang
Hi, I installed Axis Beta2 on Weblogic 5.1 successfully, but have some problems when running the samples(calculator, attachments), as follow: log4j: ERROR Could not instantiate class [log4j.properties]. java.lang.ClassNotFoundException: log4j.properties log4j: ERROR No appenders could be found fo

wsdl2java io.exception problem

2002-06-11 Thread Olga Caprotti
We are currently using axis to implement mathematical web services. In our last example, I have installed a service for Symbolic Integration at: http://perseus.risc.uni-linz.ac.at:8080/axis/services/SymbolicIntegration?wsdl We can use the service by a hand-written client however trying to generat

RE: Apache SOAP 2.3 vs. AXIS

2002-06-11 Thread Mark Hansen
Title: RE: Apache SOAP 2.3 vs. AXIS 2 More questions.   (1) How about interoperability?  Does it work well with other SOAP implementations? (2) Any idea when it will be out of beta? -Original Message-From: Volkmann, Mark [mailto:[EMAIL PROTECTED]]Sent: Monday, June 10, 2002

Binary maping

2002-06-11 Thread Pavel Bernshtam
Hi! Point me please to some article/tutorial about how I can write custom BINARY maping for some data type. I.e. I want to send as parameter object of some type, and I can send it not as XML, but as binary format (for some reasones: 1) I have already code for such binary serialization/desirializ