RE: Calling a secure Axis web service with .net client
Hi thomas I was doing exactly what you had suggested in your mail. But then for some reason the username and password are not being sent as an header. The only way i could add a header was to override the GetWebRequest() method and then add any header i wanted to add. But i guess there must be some way to do it directly without taking such pain. Do you think I might be missing something here ? Thanks for your time. Vidyanand -Original Message- From: [EMAIL PROTECTED] Sent: Mon 5/20/2002 6:56 PM To: [EMAIL PROTECTED] Cc: Subject: RE: Calling a secure Axis web service with .net client Have a look to what I sent earlier in the mailing list but something like that should do it (FirstServiceService is the C# generated for my service when I do the add web reference): FirstService.FirstServiceService firstService = new FirstService.FirstServiceService (); firstService.Url = FIRST_SERVICE_END_POINT_URL; // I am not 100% since documentation is not very clear, but it seems that without the // PreAuthenticate, every operation call will always be two HTTP requests: one without // the Authentication header (then a WWW-Authenticate header is returned in the access // denied), then a second request with the Authentication header. I was hoping that this // will also do the trick to be able to use the unauthenticatedIdentity of JBoss, but the // first request still expect the WWW-Authenticate header before sending the Authentication // one. firstService.PreAuthenticate = true; firstService.Credentials = new NetworkCredential (userName, userPassword); -Original Message- From: Vidyanand Murunikkara [ mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:53 PM To: [EMAIL PROTECTED] Subject: Calling a secure Axis web service with .net client HI i have a Web service running using Axis. I have turned on HTTP Authentication for this. So the only way i can access this service( verified using some handlers ) is to have a username and password . If i have a client generated using axis then in the Client stub i can set the Username and password. But does anyone know how i can access this web service from a .net client. I havent been able to figure out a way to set the username and password headers required for the web service in .net. ( I am using C# clients ). Thanks for looking into this. Vidyanand. winmail.dat
RE: SSL Digest authentication
You can't select a particular key entry from a Java keystore by just setting environment variables. You will have to do some programming at the JSSE level. Yeapp, I was afraid of this. :) However, Axis is an open source project and one could always modify the source code to add new feature. In fact I did. Right now I'm implementing the HTTP Digest challenge/authentication based of RFC2617. If it looks OK, I'll send it so it can be included in some nightly build. a new API ( or even better, a new property string to be set on Call object ) so that HTTPSender knows which alias to use. Look at JSSE examples for how to do this. Now this is information I still not have. I only saw examples where they're setting the keystore environment variable. This one is pretty easy, I can do that. But I didn't see any example, where a certain certificate is choosed by alias. [That's way I said this is off-topic :) ] Another interesting aspect is the validation/verification of the certificate I had no problem here. Of course I'm not much of an expert, but I managed to put this into practice (at least I think so). Both server and client authentication worked. I mean the certificate was accepted if is was in the trust-store. That's all I know.
AW: String[] as return type
Hi, It seems like you are not setting the namespace correctly (via call.setOperationName). -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet am: Donnerstag, 23. Mai 2002 18:34 An: [EMAIL PROTECTED] Betreff: Re: String[] as return type Hi Erik, thanks to you I made one step... but I still need help... I switched the .Net service to use the RPC/encoded style, but now I get the following exception: Server was unable to read request. -- There is an error in XML document (4, 4). -- lt;MyServiceMethod xmlns=''gt; was not expected. at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13 4) [...] The service method has no input parameters, and on the client side when i use the call.invoke method I pass an empty Object array. Thankyou so much for your attention, Filippo - Questo messaggio è stato inviato utilizzando http://it.my.gsmbox.com
Axis on Linux Test
Hi all, I have installed Axis on Linux and have tried to run the following tests from the Axis user guide. The first test, java samples.userguide.example1.TestClient, runs okay but the second test java samples.userguide.example2.CalcClient -p8080 add 2 5 fails on exception, Exception in thread main java.lang.NoSuchFieldError: IN at samples.userguide.example2.CalcClient.main(CalcClient.java:94) Does anybody know why I am getting this exception. Dharmesh
Re: NEW TO AXIS
If SOAPService.getInitializedServiceDesc returns null, this would cause a NullPointerException where you are seeing one. The chances are this is a class loading problem. Please double-check where you have placed the various classes. You could also search the axis-user archive (see http://xml.apache.org/axis/mail.html) to pick up any weblogic hints and tips, especially about installing jars in particular directories. I don't know what level of Axis build you're running, but you could try replacing SOAPService with the attached class. I added some extra diagnostics to log the exception when a class isn't found. Unfortunately, SOAPService has changed since beta 2, so if you're running beta 2, you may need to pick up a recent nightly build to get my version to run correctly as I'm not sure whether the changes made to SOAPService since beta 2 will run without corresponding changes elsewhere in Axis. I guess the easiest thing is to give it a shot and, if it produces diagnostics about which class is not being found, you should be able to narrow down the problem. Glyn (See attached file: SOAPService.class)(See attached file: SOAPService.java) SOAPService.class Description: Binary data SOAPService.java Description: Binary data
Re: Axis on Linux Test
Not sure why, but Idon't think i's to do with Linux - I have axis running fine on Linux. Paul On Fri, 2002-05-24 at 09:42, Chohan, DB (Dharmesh) wrote: Hi all, I have installed Axis on Linux and have tried to run the following tests from the Axis user guide. The first test, java samples.userguide.example1.TestClient, runs okay but the second test java samples.userguide.example2.CalcClient -p8080 add 2 5 fails on exception, Exception in thread main java.lang.NoSuchFieldError: IN at samples.userguide.example2.CalcClient.main(CalcClient.java:94) Does anybody know why I am getting this exception. Dharmesh
Connection problem
Having just said that everything is working fine on Linux :-), I know get a connection refused error when I try to run my client classes. They all worked before and are unchanged. Any thoughts as to why this might be? Paul Hunnisett
concurrent request connection problem
axis-beta2, win xp pro, orion 1.5.4 Hi, I'm quite new to AXIS but have succesfully set up two web services for use within our company. They have been working well during development and I am now at the performance testing stage. With one thread running multiple requests the performance is acceptable, however when I run two threads making concurrent requests I randomly get: Exception: java.lang.Exception: Remote Exception performing search: java.net.ConnectException: Connection refused: connect Each thread is only making 10 requests in succession (hardly a heavy load). Is this a limitation of my app server and platform or is it AXIS related? Has anyone else tested their web applications with multiple concurrent requests? Thanks for any advice, Richard Taylor New Scientist Developer
Re: Question regarding deploying service using deploy.wsdd
this is a known bug in beta2. try one of the more recent nightly builds Chaudhri Rohit-CRC037 wrote: As specified in the documentation, I used the parameter name=allowedMethods value= method names / tag to specify the methods that I should be exposed in the Web Service. But still after I deploy the web service copy the jar files in the webapps/axis/lib directory, all the methods of the class its super class get exposed (the super class inherits from the Object class, but the Object class methods donot get exposed). Am I doing something wrong? Thanks -Original Message- From: Martin Senger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 3:05 AM To: [EMAIL PROTECTED] Subject: Re: Question regarding deploying service using deploy.wsdd The auto-generated WSDL contains information (types/portTypes/messages) for all the methods ( their parameters return types). How do I prevent this from happening? The documentation says: ...we could also have restricted the SOAP-accessible methods by using a space or comma separated list of available method names. Martin -- Martin Senger EMBL Outstation - Hinxton[EMAIL PROTECTED] European Bioinformatics InstitutePhone: (+44) 1223 494636 Wellcome Trust Genome Campus (Switchboard: 49) Hinxton Fax : (+44) 1223 494468 Cambridge CB10 1SD United Kingdom http://industry.ebi.ac.uk/~senger
client deploy WSDD syntax
Hi guys ! How to add some client side handler to the response/request flow correctly ? I saw no example. I assume is similar to server side, but how to do it exactly ? If I add a transport, that works, but I want to specifiy handlers on both request and response flow. So how to do it ? Is there a client tag like the service in the other case ? If yes, how does it look ? BTW, as soon as somebody has a good (any) description of WSDD syntax, please, announce us. Thanx, Geza
Re: normal Array in XML, how ?
I'm using an array of String in my wsdl file. I attach it if it can help... regards --Gaël 23.05.2002 21:07:17, Houman Moshtagh [EMAIL PROTECTED] wrote: From: Houman Moshtagh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:normal Array in XML, how ? Date: Thu, 23 May 2002 21:07:17 +0200 Hello all, I try to use an one-dimensional array in a WSDL file. It shouldnt be as hard to realize that. I couldn't find anything useful about array but in http://www.w3.org/TR/ wsdl. So I've tried to correct my code. It looks now almost the same as the wc3 example. But it still doesn't work. Can someone send me a working WSDL file including StringArray please? Or could someone take a look at my WSDL code below, maybe I've overseen something. It cant be as difficult. I appreciate every help, since Ive tried everything :( Houman ?xml version='1.0' encoding='UTF-8' ? !-- Generated 05/23/02 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1124.0 -- definitions name='SoapInTempo' targetNamespace='http://tempuri.org/SoapInTempo/wsdl/' xmlns:wsdlns='http://tempuri.org/SoapInTempo/wsdl/' xmlns:typens='http://tempuri.org/SoapInTempo/type/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension' xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/' types schema targetNamespace='http://tempuri.org/SoapInTempo/type/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementFormDefault='qualified' import namespace='http://schemas.xmlsoap.org/soap/encoding/'/ import namespace='http://schemas.xmlsoap.org/wsdl/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/ complexType name=ArrayOfString complexContent restriction base=SOAP-ENC:Array attribute ref=SOAP-ENC:arrayType wsdl:arrayType=xsd:string[]/ /restriction /complexContent /complexType /schema /types message name='LogIn.makeConnection' part name='uid' type='xsd:string'/ part name='password' type='xsd:string'/ /message message name='LogIn.makeConnectionResponse' part name='Result' type='xsd:ArrayOfString'/ /message portType name='LogInSoapPort' operation name='makeConnection' parameterOrder='uid password' input message='wsdlns:LogIn.makeConnection'/ output message='wsdlns:LogIn.makeConnectionResponse'/ /operation /portType binding name='LogInSoapBinding' type='wsdlns:LogInSoapPort' stk:binding preferredEncoding='UTF-8'/ soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/ operation name='makeConnection' soap:operation soapAction='http://tempuri.org/SoapInTempo/action/LogIn.makeConnection'/ input soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='uid password'/ /input output soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='Result'/ /output /operation /binding service name='SoapInTempo' port name='LogInSoapPort' binding='wsdlns:LogInSoapBinding' soap:address location='http://localhost/server/SoapInTempo.ASP'/ /port /service /definitions foo.wsdl Description: Binary data
Re: String[] as return type
Hi Erik! Yeah! Now it works!! Thankyou very much indeed! Your help was precious! Bye! Filippo - Questo messaggio è stato inviato utilizzando http://it.my.gsmbox.com
How do I access a webservice via HTTPS?
Many thanks for your replies. If I understood correctly from the document Pankaj wrote, there will be no need for custom client code to be developed, only security configurations in the JVM, right? Regards, Nuno Guerreiro __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
RE: How do I access a webservice via HTTPS?
Title: RE: How do I access a webservice via HTTPS? Right (unless multiple keys/certificate in your client keystore, then you need some code to be able to send the right one). Thomas -Original Message- From: Nuno Guerreiro [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 4:49 AM To: Axis Subject: How do I access a webservice via HTTPS? Many thanks for your replies. If I understood correctly from the document Pankaj wrote, there will be no need for custom client code to be developed, only security configurations in the JVM, right? Regards, Nuno Guerreiro __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
RE: Calling a secure Axis web service with .net client
Title: RE: Calling a secure Axis web service with .net client I had similar problem with the .NET client because in by back-end server (JBoss, web service implemented as an EJB) I enabled a default identity to be used for unauthenticated user. To make it short, it seems that the .NET client will not send any user/password in the HTTP header (Authentication HTTPheader) until it receives a request for authentication. Your server must deny the first request sent from the .NET client. When doing that, it is supposed, in the deny response, to send a WWW-Authenticate header tothe client, which will try the request again and that time with the Authentication header (which will contain user/password). Use the tcpmon of Axis to see what is going on at the HTTP level. As long as your server will not send back any WWW-Authenticate header, the .NET client will not send the Authentication header (or at least that is the behavior I observed). Thomas -Original Message-From: Vidyanand Murunikkara [mailto:[EMAIL PROTECTED]]Sent: Friday, May 24, 2002 2:42 AMTo: [EMAIL PROTECTED]Subject: RE: Calling a secure Axis web service with .net client Hi thomas I was doing exactly what you had suggested in your mail. But then for some reason the username and password are not being sent as an header. The only way i could add a header was to override the GetWebRequest() method and then add any header i wanted to add. But i guess there must be some way to do it directly without taking such pain. Do you thinkI might be missing something here ? Thanks for your time. Vidyanand -Original Message- From: [EMAIL PROTECTED] Sent: Mon 5/20/2002 6:56 PM To: [EMAIL PROTECTED] Cc: Subject: RE: Calling a secure Axis web service with .net client Have a look to what I sent earlier in the mailing list but something like that should do it (FirstServiceService is the C# generated for my service when I do the add web reference): FirstService.FirstServiceService firstService = new FirstService.FirstServiceService (); firstService.Url = FIRST_SERVICE_END_POINT_URL; // I am not 100% since documentation is not very clear, but it seems that without the // PreAuthenticate, every operation call will always be two HTTP requests: one without // the Authentication header (then a WWW-Authenticate header is returned in the access // denied), then a second request with the Authentication header. I was hoping that this // will also do the trick to be able to use the unauthenticatedIdentity of JBoss, but the // first request still expect the WWW-Authenticate header before sending the Authentication // one. firstService.PreAuthenticate = true; firstService.Credentials = new NetworkCredential (userName, userPassword); -Original Message- From: Vidyanand Murunikkara [mailto:[EMAIL PROTECTED]] Sent: Monday, May 20, 2002 7:53 PM To: [EMAIL PROTECTED] Subject: Calling a secure Axis web service with .net client HI i have a Web service running using Axis. I have turned on HTTP Authentication for this. So the only way i can access this service( verified using some handlers ) is to have a username and password . If i have a client generated using axis then in the Client stub i can set the Username and password. But does anyone know how i can access this web service from a .net client. I havent been able to figure out a way to set the username and password headers required for the web service in .net. ( I am using C# clients ). Thanks for looking into this. Vidyanand.
RE: normal Array in XML, how ?
I'm interested to know how you get the values of the array using the Call object. Call.invoke( .. ) returns an object, not an array, so that doesn't work. I tried call.getOutputValues() but doesn't work either. Suggestions? thanks, Stephan -Original Message- From: Gaël Pouzerate [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: normal Array in XML, how ? I'm using an array of String in my wsdl file. I attach it if it can help... regards --Gaël 23.05.2002 21:07:17, Houman Moshtagh [EMAIL PROTECTED] wrote: From: Houman Moshtagh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:normal Array in XML, how ? Date: Thu, 23 May 2002 21:07:17 +0200 Hello all, I try to use an one-dimensional array in a WSDL file. It shouldnt be as hard to realize that. I couldn't find anything useful about array but in http://www.w3.org/TR/ wsdl. So I've tried to correct my code. It looks now almost the same as the wc3 example. But it still doesn't work. Can someone send me a working WSDL file including StringArray please? Or could someone take a look at my WSDL code below, maybe I've overseen something. It cant be as difficult. I appreciate every help, since Ive tried everything :( Houman ?xml version='1.0' encoding='UTF-8' ? !-- Generated 05/23/02 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1124.0 -- definitions name='SoapInTempo' targetNamespace='http://tempuri.org/SoapInTempo/wsdl/' xmlns:wsdlns='http://tempuri.org/SoapInTempo/wsdl/' xmlns:typens='http://tempuri.org/SoapInTempo/type/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension' xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/' types schema targetNamespace='http://tempuri.org/SoapInTempo/type/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementFormDefault='qualified' import namespace='http://schemas.xmlsoap.org/soap/encoding/'/ import namespace='http://schemas.xmlsoap.org/wsdl/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/ complexType name=ArrayOfString complexContent restriction base=SOAP-ENC:Array attribute ref=SOAP-ENC:arrayType wsdl:arrayType=xsd:string[]/ /restriction /complexContent /complexType /schema /types message name='LogIn.makeConnection' part name='uid' type='xsd:string'/ part name='password' type='xsd:string'/ /message message name='LogIn.makeConnectionResponse' part name='Result' type='xsd:ArrayOfString'/ /message portType name='LogInSoapPort' operation name='makeConnection' parameterOrder='uid password' input message='wsdlns:LogIn.makeConnection'/ output message='wsdlns:LogIn.makeConnectionResponse'/ /operation /portType binding name='LogInSoapBinding' type='wsdlns:LogInSoapPort' stk:binding preferredEncoding='UTF-8'/ soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/ operation name='makeConnection' soap:operation soapAction='http://tempuri.org/SoapInTempo/action/LogIn.makeCo nnection'/ input soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='uid password'/ /input output soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='Result'/ /output /operation /binding service name='SoapInTempo' port name='LogInSoapPort' binding='wsdlns:LogInSoapBinding' soap:address location='http://localhost/server/SoapInTempo.ASP'/ /port /service /definitions
Last but not least !
Is there anybody who succeed in using "any" type in complex Type ? Thanks Jean MArc
RE: normal Array in XML, how ?
Isn't an array an Object in Java...? On Fri, 2002-05-24 at 14:05, [EMAIL PROTECTED] wrote: I'm interested to know how you get the values of the array using the Call object. Call.invoke( .. ) returns an object, not an array, so that doesn't work. I tried call.getOutputValues() but doesn't work either. Suggestions? thanks, Stephan -Original Message- From: Gaël Pouzerate [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: normal Array in XML, how ? I'm using an array of String in my wsdl file. I attach it if it can help... regards --Gaël 23.05.2002 21:07:17, Houman Moshtagh [EMAIL PROTECTED] wrote: From: Houman Moshtagh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:normal Array in XML, how ? Date: Thu, 23 May 2002 21:07:17 +0200 Hello all, I try to use an one-dimensional array in a WSDL file. It shouldn’t be as hard to realize that. I couldn't find anything useful about array but in http://www.w3.org/TR/ wsdl. So I've tried to correct my code. It looks now almost the same as the wc3 example. But it still doesn't work. Can someone send me a working WSDL file including StringArray please? Or could someone take a look at my WSDL code below, maybe I've overseen something. It can’t be as difficult. I appreciate every help, since I’ve tried everything :( Houman ?xml version='1.0' encoding='UTF-8' ? !-- Generated 05/23/02 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1124.0 -- definitions name='SoapInTempo' targetNamespace='http://tempuri.org/SoapInTempo/wsdl/' xmlns:wsdlns='http://tempuri.org/SoapInTempo/wsdl/' xmlns:typens='http://tempuri.org/SoapInTempo/type/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension' xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/' types schema targetNamespace='http://tempuri.org/SoapInTempo/type/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementFormDefault='qualified' import namespace='http://schemas.xmlsoap.org/soap/encoding/'/ import namespace='http://schemas.xmlsoap.org/wsdl/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/ complexType name=ArrayOfString complexContent restriction base=SOAP-ENC:Array attribute ref=SOAP-ENC:arrayType wsdl:arrayType=xsd:string[]/ /restriction /complexContent /complexType /schema /types message name='LogIn.makeConnection' part name='uid' type='xsd:string'/ part name='password' type='xsd:string'/ /message message name='LogIn.makeConnectionResponse' part name='Result' type='xsd:ArrayOfString'/ /message portType name='LogInSoapPort' operation name='makeConnection' parameterOrder='uid password' input message='wsdlns:LogIn.makeConnection'/ output message='wsdlns:LogIn.makeConnectionResponse'/ /operation /portType binding name='LogInSoapBinding' type='wsdlns:LogInSoapPort' stk:binding preferredEncoding='UTF-8'/ soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/ operation name='makeConnection' soap:operation soapAction='http://tempuri.org/SoapInTempo/action/LogIn.makeCo nnection'/ input soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='uid password'/ /input output soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='Result'/ /output /operation /binding service name='SoapInTempo' port name='LogInSoapPort' binding='wsdlns:LogInSoapBinding' soap:address location='http://localhost/server/SoapInTempo.ASP'/ /port /service /definitions
RE: normal Array in XML, how ?
yep, just found out that an object of type java.util.ArrayList is returned (still doesn't work: array.size=0, but i'm closer) Stephan -Original Message- From: Paul Hunnisett [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 3:17 PM To: [EMAIL PROTECTED] Subject: RE: normal Array in XML, how ? Isn't an array an Object in Java...? On Fri, 2002-05-24 at 14:05, [EMAIL PROTECTED] wrote: I'm interested to know how you get the values of the array using the Call object. Call.invoke( .. ) returns an object, not an array, so that doesn't work. I tried call.getOutputValues() but doesn't work either. Suggestions? thanks, Stephan -Original Message- From: Gaël Pouzerate [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: normal Array in XML, how ? I'm using an array of String in my wsdl file. I attach it if it can help... regards --Gaël 23.05.2002 21:07:17, Houman Moshtagh [EMAIL PROTECTED] wrote: From: Houman Moshtagh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject:normal Array in XML, how ? Date: Thu, 23 May 2002 21:07:17 +0200 Hello all, I try to use an one-dimensional array in a WSDL file. It shouldn’t be as hard to realize that. I couldn't find anything useful about array but in http://www.w3.org/TR/ wsdl. So I've tried to correct my code. It looks now almost the same as the wc3 example. But it still doesn't work. Can someone send me a working WSDL file including StringArray please? Or could someone take a look at my WSDL code below, maybe I've overseen something. It can’t be as difficult. I appreciate every help, since I’ve tried everything :( Houman ?xml version='1.0' encoding='UTF-8' ? !-- Generated 05/23/02 by Microsoft SOAP Toolkit WSDL File Generator, Version 3.00.1124.0 -- definitions name='SoapInTempo' targetNamespace='http://tempuri.org/SoapInTempo/wsdl/' xmlns:wsdlns='http://tempuri.org/SoapInTempo/wsdl/' xmlns:typens='http://tempuri.org/SoapInTempo/type/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:stk='http://schemas.microsoft.com/soap-toolkit/wsdl-extension' xmlns:dime='http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/' xmlns:ref='http://schemas.xmlsoap.org/ws/2002/04/reference/' xmlns:content='http://schemas.xmlsoap.org/ws/2002/04/content-type/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' xmlns='http://schemas.xmlsoap.org/wsdl/' types schema targetNamespace='http://tempuri.org/SoapInTempo/type/' xmlns='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' elementFormDefault='qualified' import namespace='http://schemas.xmlsoap.org/soap/encoding/'/ import namespace='http://schemas.xmlsoap.org/wsdl/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/reference/'/ import namespace='http://schemas.xmlsoap.org/ws/2002/04/content-type/'/ complexType name=ArrayOfString complexContent restriction base=SOAP-ENC:Array attribute ref=SOAP-ENC:arrayType wsdl:arrayType=xsd:string[]/ /restriction /complexContent /complexType /schema /types message name='LogIn.makeConnection' part name='uid' type='xsd:string'/ part name='password' type='xsd:string'/ /message message name='LogIn.makeConnectionResponse' part name='Result' type='xsd:ArrayOfString'/ /message portType name='LogInSoapPort' operation name='makeConnection' parameterOrder='uid password' input message='wsdlns:LogIn.makeConnection'/ output message='wsdlns:LogIn.makeConnectionResponse'/ /operation /portType binding name='LogInSoapBinding' type='wsdlns:LogInSoapPort' stk:binding preferredEncoding='UTF-8'/ soap:binding style='rpc' transport='http://schemas.xmlsoap.org/soap/http'/ operation name='makeConnection' soap:operation soapAction='http://tempuri.org/SoapInTempo/action/LogIn.makeCo nnection'/ input soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/' encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' parts='uid password'/ /input output soap:body use='encoded' namespace='http://tempuri.org/SoapInTempo/message/'
IllegalArgumentException: argument type mismatch
I'm getting this exception when passing a JavaBean that a couple of the properties are java.sql.Date objects. i noticed from the archives that Axis my have trouble with Dates and sql.Date. Is this true or is there a better workaround? Jonathan Bricker Lilly Research Labs Java ATG
RE: Design guidelines for web service interfaces?
Your question is somewhat vague so I am not too sure what kind of problem you are facing, however something I can tell you is that I could implements a rather large API using method overloading and abstract complex base types. Sylvain. -Original Message- From: Ronald Hütter [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 4:40 PM To: [EMAIL PROTECTED] Subject: Design guidelines for web service interfaces? Does anybody know about some guidelines on how to design web service interfaces? I'm facing a couple of problems when translating object oriented interfaces into traditional RPCs. Thanks, Ronald This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: Design guidelines for web service interfaces?
Doing web service design obviously you have to consider the trade-off between coarse versus fine grained methods and the number of roundtrips. We, for example, implemented a relative small number of methods which return large amounts of data (with the possibility to filter) in order to reduce the number of roundtrips to the server. This works in general fine. However doing so you can run into problems with errors. What if one of the parts of the data returned fails. Does the whole function generate an exception? Or is the part that cannot be returned empty? etc. Stephan -Original Message- From: Ronald Hütter [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:40 PM To: [EMAIL PROTECTED] Subject: Design guidelines for web service interfaces? Does anybody know about some guidelines on how to design web service interfaces? I'm facing a couple of problems when translating object oriented interfaces into traditional RPCs. Thanks, Ronald
HoTo setReturnType of an Object
Hi, I am trying to set the return type (call.setReturnType()) of an Object. I have even tried to set the return class (call.setReturnClass(myObject.class)), but when I execute the client, it tell me I have to set the return type if I have used call.addParameter. Thanks for your help. Bill Elliott Phone: (970)295-5547 Email: [EMAIL PROTECTED]
RE: Design guidelines for web service interfaces?
I get it. We have avoided boxcaring for this first version, we came up with the same questions as you. One of the thing we did to help us out on the performance side is passing array of things. If the operation fails for one object the whole transaction fail. This being said the complexity of doing boxcaring reside in the returned informations. The more powerfull the request the more complex is the response, this added complexity on the WS consumer was not something we though was worth it for now. Sylvain. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 10:08 AM To: [EMAIL PROTECTED] Subject: RE: Design guidelines for web service interfaces? Doing web service design obviously you have to consider the trade-off between coarse versus fine grained methods and the number of roundtrips. We, for example, implemented a relative small number of methods which return large amounts of data (with the possibility to filter) in order to reduce the number of roundtrips to the server. This works in general fine. However doing so you can run into problems with errors. What if one of the parts of the data returned fails. Does the whole function generate an exception? Or is the part that cannot be returned empty? etc. Stephan -Original Message- From: Ronald Hütter [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 23, 2002 10:40 PM To: [EMAIL PROTECTED] Subject: Design guidelines for web service interfaces? Does anybody know about some guidelines on how to design web service interfaces? I'm facing a couple of problems when translating object oriented interfaces into traditional RPCs. Thanks, Ronald This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
Re: concurrent request connection problem
Easy answer --- Win Pro limits you to 10 simultaneous connections. Shell out more money and buy a Server version of Win or migrate to Linux. I've easily rigged up load tests that tried to crank up 600 parallel requests to a simple echo service (on Linux) that ran fine, though due to cpu speed limitations the maximum actual concurrent threads didn't peak over 50 on the client side (i.e. client didn't have cpu/power to drive over 50 hot threads, without slowing down to the point where new threads came in after earlier threads finished). That type of test, on an AMD 750, handled approximately 40 requests per second. Heitzso On Fri, 2002-05-24 at 05:52, Richard Taylor wrote: axis-beta2, win xp pro, orion 1.5.4 Hi, I'm quite new to AXIS but have succesfully set up two web services for use within our company. With one thread running multiple requests the performance is acceptable, however when I run two threads making concurrent requests I randomly get: Exception: java.lang.Exception: Remote Exception performing search: java.net.ConnectException: Connection refused: connect Each thread is only making 10 requests in succession (hardly a heavy load). Is this a limitation of my app server and platform or is it AXIS related? Has anyone else tested their web applications with multiple concurrent requests? Thanks for any advice, Richard Taylor New Scientist Developer
RE: HoTo setReturnType of an Object
I am surprised when reading the axis users list recently by the number of people doing everything by hand and thus not benefiting from the power and ease of the Axis's WSDL2Java component? Many problems seems related to technicality that the code generated by WSDL2Java takes care of. One thing that might help you guys those people, is have a look at the generated code, you most probably have to duplicate this when doing it manually. Sylvain. -Original Message- From: Elliott, William [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 10:34 AM To: '[EMAIL PROTECTED]' Subject: HoTo setReturnType of an Object Hi, I am trying to set the return type (call.setReturnType()) of an Object. I have even tried to set the return class (call.setReturnClass(myObject.class)), but when I execute the client, it tell me I have to set the return type if I have used call.addParameter. Thanks for your help. Bill Elliott Phone: (970)295-5547 Email: [EMAIL PROTECTED] This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
RE: Changing the target URL for an Axis web service (Tomcat)
you will need to modify the deployment descriptor for the servlet... -Original Message-From: Jim Dibble [mailto:[EMAIL PROTECTED]]Sent: Monday, May 20, 2002 9:01 PMTo: [EMAIL PROTECTED]Subject: Changing the target URL for an Axis web service (Tomcat) Id like to change the target URL for my Axis web service, which I am deploying to Tomcat. Namely, Id like to change the name axis to tutorial, and remove the requirement for the word services in the path. So, rather than using this URL: http://localhost:8080/axis/services/OrderProcessingService?wsdl the user will use this URL: http://localhost:8080/tutorial/OrderProcessingService?wsdl What is the recommended way to do this? Heres what I tried so far: 1) I renamed the axis.war to tutorial.war. 2) I changed the URL pattern in the web.xml file from /services/* to simply * This almost did the trick, but now I cant use the AdminClient to register web services (it seems to be looking for the URL /axis/services/AdminService). Any advice?
AW: Classpath problems
Thank you I finally got my stuff working by installing tomcat 4.0.4 as my servlet container (had a hard day bringing all the stuff over from jrun to tomcat, but it works in the end ;-)) But all these classpath problems I had are still confusing to me, you never know which classes are picked up and which classes are not :-((( So, anyway, thank you for your help. Till -Ursprüngliche Nachricht- Von: Heitzso [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 23. Mai 2002 21:09 An: [EMAIL PROTECTED] Betreff: Re: Classpath problems Assuming you're having trouble finding axis classes ... Try running with jdk 1.4.0 and using -Djava.endorsed.dirs=axis/lib in jdk invocation. You may not want to do this, but unfortunately axis is trying to be standards compliant and hence requires use of javax.blat classes, but those same classes are blocked by servlet container from being picked up in WEB-INF/lib. Rumors are next release of tomcat may solve this problem someway. Also possible that jdk X.X comes with all of the core pieces internally. If you're having trouble finding regular classes then you need to spec version of tomcat you tested with. Current 4.0.3 is servlet spec 2.3 which should honor WEB-INF/lib jars. However JRun 3.0 is, I believe, servlet spec 2.2 which has a different set of rules for finding classes. For what it's worth --- avoid servlet spec 2.2 and prior containers like the plague. 2.3 supports better class loader behavior with webapps. Heitzso On Thu, 2002-05-23 at 14:50, Wörner Till wrote: Hi, I have big problems with classes I want to access from axis. I am testing with JRun 3.0 but Tomcat was the same...None of the handlers I have written and none of my web service classes can find the classes sitting under the WEB-INF directory where my web service is running. If the classes lie in the lib directory of the server (note: not in the lib dir of the web app!), I cann access all the classes. But because of access restrictions I do not want to put all my shared classes (shared with another servlet in the same web app) into the servers lib dir. So, how can I force axis to find my classes beneath the WEB-INF dir??? Thanks, Till Woerner -- T-Systems GEI GmbH Hausanschrift: Eichhornstraße 3, D-10785 Berlin Postanschrift: D-10875 Berlin Telefon: +49 (30) 2554 3254 E-Mail: [EMAIL PROTECTED]
tcpmon bug?
Has anyone else noticed that sometimes when you click on the Remove All button, tcpmon chews up all the CPU time and never come back? You'll have to kill the javaw process and restart tcpmon. Charles This message may contain privileged and/or confidential information. If you have received this e-mail in error or are not the intended recipient, you may not use, copy, disseminate or distribute it; do not open any attachments, delete it immediately from your system and notify the sender promptly by e-mail that you have done so. Thank you.
weblogic6.0 sp2 ¿instructions?
I'm trying to deploy axisbeta2 in Weblogic6.0 sp2, can anyone help me? I go fine till the index page I click in Visit the Axis Servlet and I have the next error in the console: log4j:ERROR Could not instantiate configurator [WEB-INF/classes/log4j.properties]. log4j:ERROR No appenders could be found for category (org.apache.axis.transport.http.AxisServlet). log4j:ERROR Please initialize the log4j system properly. The error is the same deploying with .war or with the context structure thanks. e-mail: [EMAIL PROTECTED] Telf: +34 91 484 77 07
RE: SSL Digest authentication
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] a new API ( or even better, a new property string to be set on Call object ) so that HTTPSender knows which alias to use. Look at JSSE examples for how to do this. Now this is information I still not have. I only saw examples where they're setting the keystore environment variable. This one is pretty easy, I can do that. But I didn't see any example, where a certain certificate is choosed by alias. [That's way I said this is off-topic :) ] Look at the Java Security book by Scott Oak. He has some cool examples ... Another interesting aspect is the validation/verification of the certificate I had no problem here. Of course I'm not much of an expert, but I managed to put this into practice (at least I think so). Both server and client authentication worked. I mean the certificate was accepted if is was in the trust-store. That's all I know. The default verification by JSSE is okay in number of cases. But if you want extra functionality ( like verification against a Certificate Revocation List ), you will have to either get a more capable provider or write your own code. All depends on the requirements of your production environment ... /Pankaj.
axis exception
Hi! I have a curious problemif I try to invoke methods through axis I get an internal server error now, although it already worked, but I don't remember what I changed. ;-) It throws the exception shown below. My Catalina-classpath is shown below as well. If somebody has a solution for this, please respond Thanks!! -Mark. Ps: org.w3c.dom.Node should be in xerces.jar or jdom.jar ... set FG_CLASSPATH=d:\Program Files\Development\Apache Tomcat 4.0\soap\crimson.jar;%FG_CLASSPATH%; set FG_CLASSPATH=%FG_JARDIR%\various\mysql.jar set FG_CLASSPATH=%FG_CLASSPATH%;%FG_JARDIR%\various\XML\soap-2_2\lib\soap.jar set FG_CLASSPATH=%FG_CLASSPATH%;%FG_JARDIR%\various set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\servlets\addressbook set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\soap\bsf.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\soap\js.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\soap\mail.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\soap\activation.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\soap\activation.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\axis.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\jaxrpc.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\log4j-core.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\tt-bytecode.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\wsdl4j.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\common\lib\jaxm.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\jdom\jdom-b8\build\jdom.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\jdom\jdom-b8\build\xerces.jar set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\servlets\soap-2_2 set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\webapps\soap\WEB-INF\classes set FG_CLASSPATH=%FG_CLASSPATH%;d:\Program Files\Development\Apache Tomcat 4.0\webapps\soap\WEB-INF\classes\org\apache\soap set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\ws set FG_CLASSPATH=%FG_CLASSPATH%;d:\java\ws_session type Exception report message Internal Server Error description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request. exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java: 1011) at
Some applet guidance
Ok, firstly - I'm a user jax-rpc user, I'm trying to move into something a little faster for development so I've installed axis today. Plus I have an interesting issue and I'm hoping I can overcome it with axis. I want to call my webservices from an applet running in a browser. What will the dependancies be for the client, eg: what must I include in the applet JAR file ? Will the client-side axis JAR's work in this fasion ? Why do I ask ... Well; JAX-RPC,WASP and various others all don't - the clientside classes cause some security issues that noone seems to know how to overcome, btw: this is a signed applet. So ... Is this possible ? Thanks ! Craig
Method not allowed error
Any one know what cause Method not allowed error? at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:518) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:174) at org.apache.axis.client.Call.invoke(Call.java:1905) at org.apache.axis.client.Call.invoke(Call.java:1690) at org.apache.axis.client.Call.invoke(Call.java:1608) at org.apache.axis.client.Call.invoke(Call.java:1169) Thanks Anna
NPE in RPCElement
Hello, I am using Axis Beta 2 for both client and service. I am running into an NullPointerException in RPCElement.java when I place my call. I'm hoping someone can see the error of my ways. Thanks very much in advance! Seth stacktrace: java.lang.NullPointerException at org.apache.axis.message.RPCElement.lt;init(RPCElement.java:106) at org.apache.axis.message.BodyBuilder.onStartChild(BodyBuilder.java:137) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:831) at com.caucho.xml.XmlParser.addElement(XmlParser.java:2335) at com.caucho.xml.XmlParser.parseElement(XmlParser.java:609) at com.caucho.xml.XmlParser.parseNode(XmlParser.java(Compiled Code)) at com.caucho.xml.XmlParser.parseInt(XmlParser.java:242) at com.caucho.xml.AbstractParser.parse(AbstractParser.java:554) at javax.xml.parsers.SAXParser.parse(SAXParser.java:257) at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:202) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:428) at org.apache.axis.Message.getSOAPEnvelope(Message.java:306) Client's request: ?xml version=1.0 encoding=UTF-8? SOAP-ENV:Envelope SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/; SOAP-ENV:Body ns1:post xmlns:ns1=http://service.brivo.com/2002/service#; arg0 href=#id0/ /ns1:post multiRef id=id0 SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xsi:type=ns3:Request xmlns:ns2=http://schemas.xmlsoap.org/soap/envelope/:encodingStyle; xmlns:ns3=http://service.brivo.com/2002/service#; version xsi:nil=true/ uuid xsi:type=xsd:string3232342f2f3/uuid uri xsi:type=xsd:string/service/queue/12345/outgoing/uri state xsi:type=xsd:int0/state operation xsi:type=xsd:int0/operation payload xsi:nil=true/ VERSION_0_9 xsi:type=xsd:string0.9/VERSION_0_9 GET xsi:type=xsd:int0/GET PUT xsi:type=xsd:int1/PUT DELETE xsi:type=xsd:int2/DELETE NEW xsi:type=xsd:int100/NEW WAITING_DELIVERY xsi:type=xsd:int101/WAITING_DELIVERY WAITING_REPLY xsi:type=xsd:int102/WAITING_REPLY REPLIED xsi:type=xsd:int103/REPLIED /multiRef /SOAP-ENV:Body /SOAP-ENV:Envelope
How does Axis know what the deployment server is ?
I just deployment my first test service using a wsdd file. How did AdminClient know what server/port to deploy on to ? Craig
It didn't work (part of earlier post)
Ok, I got my web service working and tested it from a Swing GUI. Works great. I then created a SwingApplet and used the identical code and get the following error. Code below; Error at the end of email. /* * axtestapplet.java * * Created on 24 May 2002, 20:06 */ package com.ip80.research.axistest1; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.rpc.namespace.QName; /** * * author Administrator */ public class axtestapplet extends javax.swing.JApplet { /** Creates new form axtestapplet */ public axtestapplet() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() { jButton1 = new javax.swing.JButton(); jButton1.setText(jButton1); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1, java.awt.BorderLayout.NORTH); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { String endpoint = http://water:8080/axis/services/axtest1;; Service service = new Service(); Call call= (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName(http://soapinterop.org/;, sayHello)); String ret = (String) call.invoke( new Object[] {} ); jButton1.setText(ret); } catch (Exception e) { } } // Variables declaration - do not modify private javax.swing.JButton jButton1; // End of variables declaration } THE ERROR IS AS FOLLOWS; java.lang.ExceptionInInitializerError at org.apache.axis.client.Service.init(Service.java:109) at com.ip80.research.axistest1.axtestapplet.jButton1ActionPerformed(axtesta pplet.java:45) at com.ip80.research.axistest1.axtestapplet.access$000(axtestapplet.java:15 ) at com.ip80.research.axistest1.axtestapplet$1.actionPerformed(axtestapplet. java:33) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractB utton.java:1820) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.ja va:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonList ener.java:258) at java.awt.Component.processMouseEvent(Component.java:5021) at java.awt.Component.processEvent(Component.java:4818) at java.awt.Container.processEvent(Container.java:1380) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Container.dispatchEventImpl(Container.java:1437) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859) at java.awt.Container.dispatchEventImpl(Container.java:1423) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.EventQueue.dispatchEvent(EventQueue.java:445) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThrea d.java:190) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread. java:144) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130) at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) Caused by: org.apache.commons.logging.LogConfigurationException: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:509) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImp l.java:285) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:400) at org.apache.axis.configuration.DefaultEngineConfigurationFactory.clinit (DefaultEngineConfigurationFactory.java:84) ... 26 more Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.NullPointerException at org.apache.commons.logging.impl.LogFactoryImpl.getLogConstructor(LogFact oryImpl.java:404) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp l.java:502)
RE: Java2WSDL problem in namespace for bindings
Hi, I reported the same thing in the axis-dev list but did not get any resolution. There was a bit of discussion on the subject. Look into the thread [BUG] Beta2 interop (was RE: Interoperability issue with MSVC++.Net). This seems to have changed in beta2. It was OK in beta1. -Original Message- From: Bihani, Swastik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 6:43 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Java2WSDL problem in namespace for bindings Hi I am running the WSDL2Java on the following class that comes along with the Apache Soap 2.2 samples. samples.mime.MimeTest However, in the bindings, I'm getting a wrong output: wsdl:binding name=MimeTestSoapBinding type=intf:MimeTest wsdlsoap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=getFileArray wsdlsoap:operation soapAction=/ wsdl:input wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=getFileArray use=encoded/ /wsdl:input wsdl:output wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=urn:MimeTest use=encoded/ /wsdl:output /wsdl:operation wsdl:operation name=getFileVector wsdlsoap:operation soapAction=/ wsdl:input wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=getFileVector use=encoded/ /wsdl:input wsdl:output wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=urn:MimeTest use=encoded/ /wsdl:output /wsdl:operation wsdl:operation name=listAttachments wsdlsoap:operation soapAction=/ wsdl:input wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=listAttachments use=encoded/ /wsdl:input wsdl:output wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=urn:MimeTest use=encoded/ /wsdl:output /wsdl:operation /wsdl:binding If you see, the namespace for the input operation is the same as the operation name instead of being urn:MimeTest (as is correctly set in the output operation. Has anyone hit the same problem before?? Regards, ~Swastik
AW: How does Axis know what the deployment server is ?
;-) If you do not specify anything it uses http://localhost:8080/axis/servlet/AxisServlet as the default path to its servlet. (If you are interested in the possible command line parameters for AdminCLient look into the API docs.) Greetings, Till -- Caught in our narrowminded believe... - Till Woerner Berlin, Germany EMail:[EMAIL PROTECTED] ICQ#: 7162410 -Ursprüngliche Nachricht- Von: Craig Williams [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 24. Mai 2002 21:01 An: [EMAIL PROTECTED] Betreff: How does Axis know what the deployment server is ? I just deployment my first test service using a wsdd file. How did AdminClient know what server/port to deploy on to ? Craig
Trouble running Apache Axis
Hello, I have just downloaded Axis beta2 release but I am having trouble getting my code to work. I am using Tomcat 4.0. The .jws file seems to be working okay and is generating a wsdl file When I run the examples however I am recieving this error.(I have Tomcat running) Exception in thread main java.lang.NoClassDefFoundError: CalcClient (wrong name: samples/userguide/example2/CalcClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) I believe the problem is related to not properly setting my classpath. Where and how should I set my classpath. I am using Windows XP Here is what the user guide says to do xml-axis-beta2/lib/axis.jar xml-axis-beta2/lib/jaxrpc.jar xml-axis-beta2/lib/commons-logging.jar xml-axis-beta2/lib/tt-bytecode.jar xml-axis-beta2/lib/wsdl4j.jar xml-axis-beta2/ (for the sample code) A JAXP-1.1 compliant XML parser such as xerces or crimson I have tried to set the classpath in a few different places but have had no luck. I had copied the above files into a lib dir I created under C:\Projects and tried setting my classpath at the prompt but that failed to work. I can't find anyplace in Tomcat to set the classpath. I tried doing it in C:\Program Files\Apache Tomcat 4.0\bin\setclasspath.bat but I had no luck. Let me know if anybody knows of any possible solutions. Thanks for your help Andy __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Re: Trouble running Apache Axis
Andy, Which version of Java are you running? If you are using Java 2 Standard Edition version 1.4 (J2SE v1.4), then you might be having a problem with the endorsed standards override mechanism. If that's the case, then you could try step 3 of the following modified version of the installation instructions. http://home.attbi.com/~danchisholm/axis/doc/install.html Dan - Original Message - From: Andy Faraclas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 24, 2002 1:57 PM Subject: Trouble running Apache Axis Hello, I have just downloaded Axis beta2 release but I am having trouble getting my code to work. I am using Tomcat 4.0. The .jws file seems to be working okay and is generating a wsdl file When I run the examples however I am recieving this error.(I have Tomcat running) Exception in thread main java.lang.NoClassDefFoundError: CalcClient (wrong name: samples/userguide/example2/CalcClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) I believe the problem is related to not properly setting my classpath. Where and how should I set my classpath. I am using Windows XP Here is what the user guide says to do xml-axis-beta2/lib/axis.jar xml-axis-beta2/lib/jaxrpc.jar xml-axis-beta2/lib/commons-logging.jar xml-axis-beta2/lib/tt-bytecode.jar xml-axis-beta2/lib/wsdl4j.jar xml-axis-beta2/ (for the sample code) A JAXP-1.1 compliant XML parser such as xerces or crimson I have tried to set the classpath in a few different places but have had no luck. I had copied the above files into a lib dir I created under C:\Projects and tried setting my classpath at the prompt but that failed to work. I can't find anyplace in Tomcat to set the classpath. I tried doing it in C:\Program Files\Apache Tomcat 4.0\bin\setclasspath.bat but I had no luck. Let me know if anybody knows of any possible solutions. Thanks for your help Andy __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Problems with Axis's XML-- Java Mapping
Im encountering problems with Axiss XML Java mapping. Does Axis assume that a class with getName and setName methods also has a field named name? I have an example where my get/set methods operate on _name, and it causes problems for Axis. I created a class PurchaseOrder that is sent as a parameter to my service. The class looks like this: public class PurchaseOrder { private String _id; private String _customerName; private String _address; private String _city; private String _state; private java.util.Vector _itemVector; OrderItem[] itemArray = new OrderItem[] {}; public PurchaseOrder() { _itemVector = new Vector(); } public String getId() { return _id; } public void setId(String id) { _id = id; } public String getCustomerName() { return _customerName; } public void setCustomerName(String customerName) { _customerName = customerName; } public String getAddress() { return _address; } public void setAddress(String address) { _address = address; } public String getCity() { return _city; } public void setCity(String city) { _city = city; } public String getState() { return _state; } public void setState(String state) { _state = state; } public OrderItem[] getItems() { return (OrderItem[])(_itemVector.toArray(itemArray)); } public void setItems(OrderItem[] items) { for (int i=0; i items.length; i++) { _itemVector.addElement(items[i]); } } protected void addItem(OrderItem item) { _itemVector.addElement(item); } } Theres also a similar OrderItem class, with fields beginning with _. My wsdd file contains beanMapping entries like this: beanMapping qname=ord:PurchaseOrder languageSpecificType=java:com.amberpoint.tutorial.orders.PurchaseOrder/ beanMapping qname=ord:OrderItem languageSpecificType=java:com.amberpoint.tutorial.orders. OrderItem/ When I generate client code and write a test client, I run into a problem when I send a message to the web service. The client seems to generate an XML document with elements beginning with upper-case characters: CustomerNameCole Hardware/CustomerName CitySan Francisco/City StateCA/State But Axis does not seem to recognize the elements if they start with upper-case characters. (I changed them by hand to lower-case characters, and the problem went away). My service also has a method that returns a PurchaseOrder as a return value. I notice that the response SOAP message for this operation uses lower-case characters for the element names. It seems like the generated client code is capable of handling the lower-case version, but produces the upper-case version. The Axis server code can only handle the lower-case version, and always produces the lower-case version. Note that the schema in the generated WSDL file contains all elements starting with an upper-case character. Is this a known bug? Is there any workaround other than rewriting the code for my parameter classes so that field names match getter/setter names? Jim
RE: It didn't work (part of earlier post)
IT WORKED ! THANK YOU ! Man I'm so happy Just one tiny little question ;-) I added the -Djava etc to the java console, how do I get around a client having to download the libraries and also put in the -Djava ? Craig -Original Message- From: Heitzso [mailto:[EMAIL PROTECTED]] Sent: 24 May 2002 20:28 To: [EMAIL PROTECTED] Subject: Re: It didn't work (part of earlier post) just guessing ... but a lot of the problems with axis stem from it's pushing boundaries with standards (good way -- trying to ride the leading edge). So best to run server side from tomcat 4.0.4, or 4.0.3 with 1.4 jvm with -Djava.endorsed.dirs=axis/lib etc. All of which is necessary to get the correct xerces/javax.blat etc. jars lined up in the correct order in the jvm. Please try running with Sun jdk 1.4.0 plugin for browser, and add the -Djava.endorsed.dirs to the java console for that jvm (control panel, etc.) and point it to the axis/lib directory, finally add a version of xerces to classpath that works for you server side and see what happens. On Fri, 2002-05-24 at 15:12, Craig Williams wrote: Ok, I got my web service working and tested it from a Swing GUI. Works great. I then created a SwingApplet and used the identical code and get the following error. Code below; Error at the end of email. /* * axtestapplet.java * * Created on 24 May 2002, 20:06 */ package com.ip80.research.axistest1; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import javax.xml.rpc.namespace.QName; /** * * @author Administrator */ public class axtestapplet extends javax.swing.JApplet { /** Creates new form axtestapplet */ public axtestapplet() { initComponents(); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ private void initComponents() { jButton1 = new javax.swing.JButton(); jButton1.setText(jButton1); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); getContentPane().add(jButton1, java.awt.BorderLayout.NORTH); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { String endpoint = http://water:8080/axis/services/axtest1;; Service service = new Service(); Call call= (Call) service.createCall(); call.setTargetEndpointAddress( new java.net.URL(endpoint) ); call.setOperationName(new QName(http://soapinterop.org/;, sayHello)); String ret = (String) call.invoke( new Object[] {} ); jButton1.setText(ret); } catch (Exception e) { } } // Variables declaration - do not modify private javax.swing.JButton jButton1; // End of variables declaration } THE ERROR IS AS FOLLOWS; java.lang.ExceptionInInitializerError at org.apache.axis.client.Service.init(Service.java:109) at com.ip80.research.axistest1.axtestapplet.jButton1ActionPerformed(axtes ta pplet.java:45) at com.ip80.research.axistest1.axtestapplet.access$000(axtestappl et.java:15 ) at com.ip80.research.axistest1.axtestapplet$1.actionPerformed(axt estapplet. java:33) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton. java:1767) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed (AbstractB utton.java:1820) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButt onModel.ja va:419) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Basic ButtonList ener.java:258) at java.awt.Component.processMouseEvent(Component.java:5021) at java.awt.Component.processEvent(Component.java:4818) at java.awt.Container.processEvent(Container.java:1380) at java.awt.Component.dispatchEventImpl(Component.java:3526) at java.awt.Container.dispatchEventImpl(Container.java:1437) at java.awt.Component.dispatchEvent(Component.java:3367) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859) at
Known problem with encodingStyle missing namespace?
When I generate an XML document from either an axis client or the axis servlet, if the document includes an object reference, the encodingStyle attribute is missing the SOAP-ENV namespace (http://schemas.xmlsoap.org/soap/envelope/). This is causing problems when I use the XML document in tools that are expecting the namespace. Is this a known problem? For example, this is the request document generated by the axis SOAP client. Note that the SOAP-ENV:Envelope element has an encodingStyle attribute that is namespace-qualified, but the multiref elements have encodingStyle attributes that do not include a namespace prefix. ?xml version=1.0 encoding=UTF-8? SOAP-ENV:Envelope SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/ xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance SOAP-ENV:Body ns1:processOrder xmlns:ns1=processOrder newOrder href=#id0/ /ns1:processOrder multiRef SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ id=id0 xmlns:ns2=http://schemas.xmlsoap.org/soap/envelope/:encodingStyle xmlns:ns3=http://amberpoint.com/tutorial/orders xsi:type=ns3:PurchaseOrder customerName xsi:type=xsd:stringOakland Home and Garden/customerName city xsi:type=xsd:stringOakland/city state xsi:type=xsd:stringCA/state items SOAP-ENC:arrayType=ns3:OrderItem[4] xsi:type=SOAP-ENC:Array item href=#id1/ item href=#id2/ item href=#id3/ item href=#id4/ /items id xsi:nil=true/ address xsi:nil=true/ /multiRef multiRef SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ id=id3 xmlns:ns4=http://amberpoint.com/tutorial/orders xsi:type=ns4:OrderItem itemId xsi:type=xsd:stringASF17843/itemId quantity xsi:type=xsd:int3/quantity price xsi:type=xsd:double3600.0/price description xsi:type=xsd:stringHot tub/description /multiRef multiRef SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ id=id4 xmlns:ns5=http://amberpoint.com/tutorial/orders xsi:type=ns5:OrderItem itemId xsi:type=xsd:stringQFA17589/itemId quantity xsi:type=xsd:int20/quantity price xsi:type=xsd:double2.99/price description xsi:type=xsd:stringBucket of ladybugs/description /multiRef multiRef SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ id=id1 xmlns:ns6=http://amberpoint.com/tutorial/orders xsi:type=ns6:OrderItem itemId xsi:type=xsd:stringTSR14523/itemId quantity xsi:type=xsd:int200/quantity price xsi:type=xsd:double89.95/price description xsi:type=xsd:stringJigsaw/description /multiRef multiRef SOAP-ENC:root=0 encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ id=id2 xmlns:ns7=http://amberpoint.com/tutorial/orders xsi:type=ns7:OrderItem itemId xsi:type=xsd:stringUAF13429/itemId quantity xsi:type=xsd:int30/quantity price xsi:type=xsd:double18.23/price description xsi:type=xsd:stringMop/description /multiRef /SOAP-ENV:Body /SOAP-ENV:Envelope
RE: Trouble running Apache Axis
It sounds like you need to add the current directory to your classpath. set CLASSPATH=.; followed by all of your jar files I also noticed that I also included log4j-core.jar to my Axis classpath. -Original Message- From: Andy Faraclas [mailto:[EMAIL PROTECTED]] Sent: Friday, May 24, 2002 1:57 PM To: [EMAIL PROTECTED] Subject: Trouble running Apache Axis Hello, I have just downloaded Axis beta2 release but I am having trouble getting my code to work. I am using Tomcat 4.0. The .jws file seems to be working okay and is generating a wsdl file When I run the examples however I am recieving this error.(I have Tomcat running) Exception in thread main java.lang.NoClassDefFoundError: CalcClient (wrong name: samples/userguide/example2/CalcClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) I believe the problem is related to not properly setting my classpath. Where and how should I set my classpath. I am using Windows XP Here is what the user guide says to do xml-axis-beta2/lib/axis.jar xml-axis-beta2/lib/jaxrpc.jar xml-axis-beta2/lib/commons-logging.jar xml-axis-beta2/lib/tt-bytecode.jar xml-axis-beta2/lib/wsdl4j.jar xml-axis-beta2/ (for the sample code) A JAXP-1.1 compliant XML parser such as xerces or crimson I have tried to set the classpath in a few different places but have had no luck. I had copied the above files into a lib dir I created under C:\Projects and tried setting my classpath at the prompt but that failed to work. I can't find anyplace in Tomcat to set the classpath. I tried doing it in C:\Program Files\Apache Tomcat 4.0\bin\setclasspath.bat but I had no luck. Let me know if anybody knows of any possible solutions. Thanks for your help Andy __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com
Problem with javadoc generation (jdk1.4)
Hello, Idownloaded http://xml.apache.org/axis/dist/beta2/xml-axis-beta2-src.tar.gzand tried to compile it using Jdk1.4 on Win 95. Build failed when it tired to generate javadocs. There is a package named org.apache.axis.providers.java. I think problem is javadoc treats it as a java source file instead of a package and complains about non-existent java source file named org.apache.axis.providers.java. I was able to compile only afteradding this attribute of javadoc tag: excludepackagenames="org.apache.axis.providers.java.*" because failonerror="false" didn't work. Also in build.xml axis version is written as beta1 instead of beta2 property name="axis.version" value="beta1"/ I think problem is with jdk1.4 javadoc. I thought I should report it so that you can determine if it is really javadoc problem? Also there is no file explaining what is required to compile this source package. One thing I was unable to determine is security files(${security.present}). Where this package is available?
Re: Problem with javadoc generation (jdk1.4)
try using ant1.5beta1 for java1.4 work, if at all possible. It's the only version of ant that is approximately aware of java1.4. then if it still doesnt work, consider filing an ant bug. - Original Message - From: Sukhwinder Singh [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, May 24, 2002 7:38 PM Subject: Problem with javadoc generation (jdk1.4) Hello, I downloaded http://xml.apache.org/axis/dist/beta2/xml-axis-beta2-src.tar.gz and tried to compile it using Jdk1.4 on Win 95. Build failed when it tired to generate javadocs. There is a package named org.apache.axis.providers.java. I think problem is javadoc treats it as a java source file instead of a package and complains about non-existent java source file named org.apache.axis.providers.java. I was able to compile only after adding this attribute of javadoc tag: excludepackagenames=org.apache.axis.providers.java.* because failonerror=false didn't work. Also in build.xml axis version is written as beta1 instead of beta2 property name=axis.version value=beta1/ I think problem is with jdk1.4 javadoc. I thought I should report it so that you can determine if it is really javadoc problem? Also there is no file explaining what is required to compile this source package. One thing I was unable to determine is security files(${security.present}). Where this package is available?