schema validation of non-nillable element

2003-01-27 Thread Jason Winshell
Hi all, I have defined schema element in a WSDL to not allow a nil value either by the form: or to be used within a soap body request. I would expect Axis to validate instances of this element, disallowing: in an instance of a the soap body request. However, I am finding that Axis 1.1

Setting namespace in returned Element

2003-01-27 Thread Wes Devauld
Hello, I'm having a problem with the namespace that is set on a returned Element. The element appears on the wire with an empty namespace, but it's children elements have the proper namespace. ie: --- http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/

Re: user-defined Exceptions

2003-01-27 Thread Steve Loughran
- Original Message - From: "Olivier Gauwin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, January 24, 2003 07:01 Subject: Re: user-defined Exceptions > I've found the beginning of a solution for this problem, but I still > have questions. > > Now my server code looks like : >

Re: Custom soapfault

2003-01-27 Thread Steve Loughran
1. Axis1.1 strips out stack traces unless you configure the box as a development system. 2. if you create your own fault you can fiddle with it by adding whatever xml nodes you want; again axis1.1 makes this easier - Original Message - From: "Andreas Siegers" <[EMAIL PROTECTED]> To: <[EMAI

SIGNOFF

2003-01-27 Thread Sunil Singh
Please don't send mails to this account.

Re: Simple mapping .asmx to .jws?

2003-01-27 Thread Steve Loughran
- Original Message - From: "Randy Belknap" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 13:26 Subject: RE: Simple mapping .asmx to .jws? > Thanks! I will try these. > > BTW, I got Axis to use .asmx instead of .jws by modifying JWSHandler.java > and changing

GSI and AXIS

2003-01-27 Thread Jeffrey J Gaynor/jqhome
Hi All, I am trying to get my first GSI-enabled web service up and running. I already have a non-secure version of it that I deploy using the WSDL and Java utilities. It works just fine. Here is the problem I would like a little help with: As I gather from various FAQs, I can manually set up a

RE: www.webservicex.net has gone ?

2003-01-27 Thread Norris Merritt
There was a major internet worm incident over the weekend affecting lots of servers, maybe it got hit? -Original Message- From: Reynardine [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 1:34 PM To: [EMAIL PROTECTED] Subject: www.webservicex.net has gone ? I had an axis web ser

RE: Probably a simple issue, but can't find it

2003-01-27 Thread Brain, Jim
Oh, THANKS! However, this does bring up a question: It seems like AXIS should be able to do this mapping, because it knows the class information (via reflection). Why do I have to add it by hand? Jim Jim Brain, [EMAIL PROTECTED] "Researching tomorrow's decisions today." (319) 369-2070 (work)

Re: WSIF 2.0 RC4 available

2003-01-27 Thread Aleksander Slominski
[EMAIL PROTECTED] wrote: I have a question about WSDL and binding. Are the various WSDL tools to generate code going to have problems if there are other bindings available besides soap in the WSDL doc? hi David, that will depend on tools used - theoretically they should ignore unknown bindi

www.webservicex.net has gone ?

2003-01-27 Thread Reynardine
I had an axis web service client working using the WebserviceX's stockquote service? Over the weekend the site is now dead. Does anyone know what happened ? -- Rey -- __ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.

RE: Interoperative attachments

2003-01-27 Thread Mark Mueller
Josh, This was very helpful -- thanks a lot! I've implemented my service this way, and I return the URL of the attachment content-id as the return-value of the call. I have another question. The WSDL created by Java2WSDL doesn't mention the file that I return as an attachment. Should I revis

RE: Simple mapping .asmx to .jws?

2003-01-27 Thread Randy Belknap
Thanks! I will try these. BTW, I got Axis to use .asmx instead of .jws by modifying JWSHandler.java and changing DEFAULT_JWS_FILE_EXTENSION from '.jws' to '.asmx'. There was a small gotcha that some of the substring code assumes a 3 character file extension. There are two places where you need

RE: Probably a simple issue, but can't find it

2003-01-27 Thread Cory Wilkerson
Axis requires that the service know which class is used to deserialize the incoming ConnectInfo parameter (in namespace http://producer): Add something *like this* to your service description (*.wsdd) http://producer"; languageSpecificType="java:your.package.ConnectInfo"/> Good luc

Probably a simple issue, but can't find it

2003-01-27 Thread Brain, Jim
I have created my web service in AXIS 1.1b, which has two methods. Both take a ConnectInfo classe that is Serializable and has 2 fields (UID, PW) The service deploys fine I create the stubs via wsdl2java, and all is fine. I run the test, and I get: org.xml.sax.SAXException: Deserializing param

Re: Sending Map to a server

2003-01-27 Thread Benjamin Tomasini
Maps are not typesafe. While it is possible to get it to work, I don't think you want to send a non-typesafe component over a webservice. It would open the door to errors. XML-RPC works the best when your types are expiclity declared. I would avoid anyType declarations. Usually they can be avoi

Sending Map to a server

2003-01-27 Thread Shellman, Joel
In my service, I have a method that accepts a Map as a parameter: public MyObject serviceMethod(Map values) { // impl... } I used Axis to auto generate the WSDL for it and it did generate: http://xml.apache.org/xml-soap";> http://schemas.xmlsoap.org/soap/encoding/"; />

Re: WSIF 2.0 RC4 available

2003-01-27 Thread David . Pool
Thanks Alek for the quick answers. I have a question about WSDL and binding. Are the various WSDL tools to generate code going to have problems if there are other bindings available besides soap in the WSDL doc? Is the (remote) WSDL doc retrieved each time a service is invoked? Thanks, David

RE: Programmatic deployment of web services

2003-01-27 Thread James Flagg
I added my services to server-config.wsdd, commented out the admin service, put it in my webapp's WEB-INF directory, and it worked perfectly! Thank you. -Original Message- From: Benjamin Tomasini [mailto:[EMAIL PROTECTED]] Sent: Monday, January 27, 2003 11:31 AM To: [EMAIL PROTECTED] Sub

re: can't inherit from final class

2003-01-27 Thread James Black
Hello, I am trying to figure out where this error message is, as my web service complains that it Cannot inherit from final class. The last two errors are at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123) org.apache.catalina.loader.WebappClassLoader.findClassInternal(We

Re: Simple mapping .asmx to .jws?

2003-01-27 Thread Steve Loughran
- Original Message - From: "Randy Belknap" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 25, 2003 11:19 Subject: RE: Simple mapping .asmx to .jws? > Does anyone know whether OPTION_JWS_FILE_EXTENSION is implemented? The > org.apache.axis.handlers.JWSHandler has thi

Re: WSIF 2.0 RC4 available

2003-01-27 Thread Jeremy Hughes
David, There is no server side component to WSIF. Each invocation requires the service to be described in WSDL with the necessary WSDL extension. eg we have a WSDL extension for describing the necessary information for a client to call the EJB. Logically (and preferably) the WSDL should be written

Re: Programmatic deployment of web services

2003-01-27 Thread Benjamin Tomasini
Or, just be sure to use the same server-config.wsdd file for the webapp after each deployment. Any settings in this file will be reloaded when the webapp starts. Auto deploying through the admin client on startup would be redundant and complex - probably more buggy, too. On Mon, 2003-01-27 at 14

Re: Programmatic deployment of web services

2003-01-27 Thread Benjamin Tomasini
I would just modifiy the server-config.wsdd manually. Same effect. On Mon, 2003-01-27 at 14:26, James Flagg wrote: > > Greetings all, > > According to the Axis documentation, the way to deploy web services using > WSDD is to invoke the AdminClient from the command line: > > % java org.apache.a

Programmatic deployment of web services

2003-01-27 Thread James Flagg
Greetings all, According to the Axis documentation, the way to deploy web services using WSDD is to invoke the AdminClient from the command line: % java org.apache.axis.client.AdminClient deploy.wsdd which connects to the Axis servlet on localhost:8080 and registers the service. However, I hav

WSDL invocation

2003-01-27 Thread m . giordano
Hi axis users, I have installed axis with Tomcat 4.1.18. the validate jsp page gives me the result I have included in the attached file. It seems to me that everything is OK. Nevertheless, when I click on the "wsdl" in the "view" page I have the download form appearing in my browser... I expect

How to deploy two web services in one web container?

2003-01-27 Thread Naresh Bhatia
Title: How to deploy two web services in one web container? I would like to deploy two web services in the same web container. What is the recommended approach for doing this? I was thinking of two possibilities: 1) One Web App with two services defined in server-config.wsdd. Is this possibl

Keep-alive SOAP connections are disabled in Axis; Axis hangs if they are enabled

2003-01-27 Thread Norris Merritt
Anyone care to comment on this, or the code submission from Shih-Chang Chen of 4/9/2002 to fix it: http://marc.theaimsgroup.com/?l=axis-dev&m=101837980122603&w=2 Here is what I have found so far in looking into this, from the perspective of using Axis as a client: 1) org.apache.axis.transport.htt

Re: WSIF 2.0 RC4 available

2003-01-27 Thread Aleksander Slominski
[EMAIL PROTECTED] wrote: Is WSIF a client-side only technology? In other words, my server-side SOAP, EJB, JCA, code doesn't change any to be accessible by the client does it? There is no server side component specific to WSIF is there? hi David, that is right. WSIF is client-side library.

Re: WSIF 2.0 RC4 available

2003-01-27 Thread David . Pool
I've been looking into WSIF a bit. Is WSIF a client-side only technology? In other words, my server-side SOAP, EJB, JCA, code doesn't change any to be accessible by the client does it? There is no server side component specific to WSIF is there? Is WSIF a java-only product at this point? Do any

[ANN] Apache WSIF 2.0

2003-01-27 Thread Aleksander Slominski
Apache WSIF 2.0 Released The Apache WSIF (Web Services Invocation Framework) team is proud to announce the first open release of Apache WSIF. WSIF (the "Web Services Invocation Framework") is a WSDL-based API for invoking WSDL-described services. WSIF developers interact

RE: MessageContext

2003-01-27 Thread Cory Wilkerson
Yeah...I just ran across that in the source -- agreed -- ThreadLocal is very cool. Of course, that said, I suppose I can't spin off a separate thread and expect to be able to use MessageContext.getCurrentContext() with any reliability. Cory -Original Message- From: Jess Sightler [mailt

Re: MessageContext

2003-01-27 Thread Jess Sightler
Hi Cory, My understanding is that this is thread-safe, because MessageContext.getCurrentContext() uses a ThreadLocal variable to get the current context (so each separate thread would "see" the correct variable only for it's current thread). ThreadLocal is very cool. :) On Mon, 2003-01-27 at 12

MessageContext

2003-01-27 Thread Cory Wilkerson
Is the following thread safe? The fact that this is a static method scares me a bit, ie, will MessageContext.getCurrentContext() hold true in situations like this or is it possible that as two threads enter this method simultaneously...things could get a little funky. public static RequestHa

Trying to get response

2003-01-27 Thread Jens Viebig
I'm trying to call a SOAP method on a python server, which is developed by an other person- Why can't Axis get the return value of the method ? This is my code: Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress("http://"+serve

RE: Getting the IP Address of a Web Service Client

2003-01-27 Thread Cory Wilkerson
  public void someService() {     MessageContext mc = MessageContext.getCurrentContext();     String ip = (String)mc.getProperty("remoteaddr"); }     -Original Message-From: Nicolas Dinh [mailto:[EMAIL PROTECTED]]Sent: Saturday, January 25, 2003 9:48 AMTo: [EMAIL PROTECTED]Sub

Re: SAXParser throws carriage returns away

2003-01-27 Thread Aleksander Slominski
Akacem Mohammed wrote: I have the probleme that the SaxParser when parsing a string is presumely replacing \r\n throught \n. Has someone an idea how I could avoid this? I actually need the carriage return (\r) because the string will be displayed later on on a client (win) . ( now I am simpl

re: [wsif] attachments!

2003-01-27 Thread Anthony Elder
The SAAJ specification describes the structure of the SOAP message used with attachments. WSIF doesn't work directly with the SOAP message, the WSIF AXIS provider uses AXIS for that, so SAAJ doesn't directly apply to WSIF. The WSIF attachment interface uses the jax-rpc interface which uses the Java

Re: SAXParser throws carriage returns away

2003-01-27 Thread Dennis Sosnoski
Akacem Mohammed wrote: I have the probleme that the SaxParser when parsing a string is presumely replacing \r\n throught \n. Has someone an idea how I could avoid this? I actually need the carriage return (\r) because the string will be displayed later on on a client (win) . ( now I am simpl

RE: How to Override '?WSDL' to generate WSDL file and How to get web service list from Client?

2003-01-27 Thread Christer Holmér
The class path won't matter (at least not in the version of Axis I checked), as a FileInputStream is created with the path to the WSDL file. The path could be absolute or relative to your startup directory. Taken from org.apache.axis.handlers.soap.SOAPService /** * Generate WSDL. If we

SAXParser throws carriage returns away

2003-01-27 Thread Akacem Mohammed
Hello, I have the probleme that the SaxParser when parsing a string is presumely replacing \r\n throught \n. Has someone an idea how I could avoid this? I actually need the carriage return (\r) because the string will be displayed later on on a client (win) . ( now I am simply adding the ca