axis 5 « axis « Java Enterprise Q&A





1. Stupid question from a beginer (Axis)    coderanch.com

May be this is too stupid, but I am learning... Axis can be used to implement both client and server. My question is that both client and server have to use Axis. Can I use Axis to implement a client and access web service by .NET, and vice versa? Thank you for your answer at advance. Moreover, do you have any ...

2. Axis - Custom Serializer    coderanch.com

3. Null serializer factory specified : Axis 1.2 RC2 Bug ?    coderanch.com

Hi All, I was trying to use Castor as AXIS 1.2 RC2 (De)Serializers and was following the tutorials http://www-106.ibm.com/developerworks/webservices/library/ws-castor/#getcastor. When I register my service using below lines in server-config.wsdd, the service is not deployed properly and I get below exception. I am struck with this error from past 5 days and no matter how do I debug I am making no ...

4. Axis: guides for custom serializers / deserializers?    coderanch.com

Hello all. I need to write a custom serializer/deserializer. Unfortunately, the Axis documentation on this subject is a little sparse ("go look at the code"). I find that the code can be a little daunting, especially if the serializer I need can be simple. So, does anybody know of a guide that can step me though this process? A document with ...

5. JAX-RPC, JAXM, Apache Axis    coderanch.com

Hello All, In my project, I am at a point of developing Web Service clients to invoke two different web services. One takes a custom object as method parameter (returns a custom object) and another takes a string argument (returns a string). Now, I looked at various technologies to design my client viz Apache Axis, JAXM, JAX-RPC, WebLogic's Web service's supporting ...

6. why Axis doesn't preserve Inheritance ?    coderanch.com

Hi All, I am using AXIS 1.2 RC2 and trying to expose an EJB as web service with below wsdl which is somewhat handcrafted to support java collections using my custom AXIS (De)Serialzers.

7. Apache Axis versus JAX-RPC    coderanch.com

I've been looking into implementing a web service client using Apache Axis 1.1. However from what I see this is pretty much based on the JAX-RPC libraries. Its unclear to me what the incentive would be to use something like Apache Axis rather that the Sun JAX-RPC libraries. Can someone help explain?

8. Apache AXIS2    coderanch.com

9. ClassCastException in axis    coderanch.com

Hi all, I'm having problems accessing a soap server running on my machine using Axis. I get a ClassCastException at runtime error whenever I use the service stub to invoke a method, the same problem also occurs when I try to invoke methods that return void. I'm not too sure whether the problem is with the soap server or with my ...





10. use="literal" with axis    coderanch.com

Hello, I want to use the use=literal with my wsdd I tried adding use=literal in the wsdd and I get this from axis when I try to load the wsdl in the browser: AXIS error Sorry, something seems to have gone wrong... here are the details: Fault - WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://api.ptf.bl.webapp.pds.reuters.com'. Namespace prefixes must be set on ...

11. Trouble with Axis    coderanch.com

I've installed Axis under TomCat. I've added xerces.jar into axis\WEB-INF\lib. I tried to run the simplest example from tutorial - Calculator.jws public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } } If I try to call this service from browser http://localhost:8080/axis/Calculator.jws?method=add&i1=1&i2=2 all ...

13. AXIS attachments    coderanch.com

14. How to Custom (De)Serilaizer in AXIS    coderanch.com

Hi All, I am using AXIS 1.2 RC2 both on server and client. Can anyone please tell me how to write a custom serializer and deserializer in axis in order to consume below soap request message from AXIS Client. My WSDL has also been included in this mail. Please redirect me to any docs/tutorials/code samples. Please suggest .... Request Soap Message ...

15. Axis issue    coderanch.com

Hi, Does AXIS supports Choice entries defined in XSD? I have defined following entries in xsd : I am only setting ElementB in the request but at runtime i am getting error saying both the requests can't be set at the same time. Any advice on this will be highly ...

16. Simple Web Service using Axis    coderanch.com

i am trying to make a simple web service using axis on tomcat 5 Here the Calculator.jws file public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; } } Here is CalcClient.java client file package com; import org.apache.axis.client.Call; import org.apache.axis.client.Service; import org.apache.axis.encoding.XMLType; import ...





17. Anyone use Apache Axis    coderanch.com

18. help apache axis    coderanch.com

Hello Guys ..... This is driving me Nuts totally... I am using Axis client to invoke a remotely hosted web-service at XMethods. I've been sitting on this problem for the past 10 days .....still no clue on it.... ================================================================================ Here is my classpath setting: C:\Soap>set classpath=.;D:\Tomcat\webapps\axis\WEB-INF\lib\axis.jar;D:\Tomcat\we bapps\axis\WEB-INF\lib\commons-discovery.jar;D:\Tomcat\webapps\axis\WEB-INF\lib\ commons-logging.jar;D:\Tomcat\webapps\axis\WEB-INF\lib\jaxrpc.jar;D:\Tomcat\weba pps\axis\WEB-INF\lib\saaj.jar;D:\Tomcat\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar ;C:\activation.jar;C:\mail.jar; ================================================================================ Here is my code: import org.apache.axis.client.Call; import javax.xml.namespace.QName; public class ...

19. Problem when running with Axis    coderanch.com

20. Axis and document-literal style    coderanch.com

With Tomcat 5.0.28 and Axis 1.2RC3, I try to send document-literal XML message to a web service but get the following error message: No such operation. The XML message sent is: add 8 The service Endpoint contains the following method: public String myMethod(String x, int y) It seems that ...

21. references and axis code generation    coderanch.com

Hi all, I'm trying to build a web service that has a complex XML document as input. In that XML document I have some elements referencing each other, something like this for example: (...) I defined these references in my WSDL file using key and keyref elements. I would have ...

22. NoSuchMethodError in my Axis Client    coderanch.com

23. java.util.Date in axis    coderanch.com

24. Does Axis 1.2 require Java 5.0?    coderanch.com

I am trying to port an application that originally used Axis 1.1 to Axis 1.2. However, the generated code doesn't compile. It looks like some of the code is assigning primatives to wrapper objects. With Java 5.0, this is not a problem with autoboxing. Unfortunately, I am using Java 1.4.2. Question. Does Axis 1.2 require Java 5.0? And if it doesn't, ...

25. Problem running Apache axis    coderanch.com

hi, after the installation you must copy the directory YourAXIS-Home/webapps/axis into (by example!!) C:\Programme\Tomcat5.0\webapps (axis runs as wepapps!!) yue need an application server (T:-)Cat)? if you are working with resin: into C:\Programme\resin-3.0.12\webapps On the box: this is my batch file to start tomcat and axis: rem begin of file setJava.bat @echo off @rem ----------------------------------------- @rem setJava.bat @rem @rem Sets up the ...

26. AXIS date issue    coderanch.com

Amit, I don't have a link, but I have confirmed it. And its pretty logical stuff to do, coz ur webservice can be anywhere in world, and can be accessed from anywhere, so obviously it can't assume what timezone is used rather than using something standard. If its not doing that, then the webservice has a bug. Ashutosh

27. ConfigurationException when using attachments with axis    coderanch.com

Hi All, I am trying to use attachment support with axis and I have activation.jar and mail.jar in my WEB-INF\lib directory. I am using AXIS 1.2 Final and Tomcat and I have below service registered in server-config.wsdd file : Now when I ...

28. Axis Web Service Client : NullPointerException    coderanch.com

Hi I have written a very simple web service on my local machine. Am using Tomcat w/Apache Axis to implement the same. I coded a very simple *.jws file in the Tomcat webapp directory. The file has two very simple public methods. With Tomcat & Axis, I was able to see the wsdl of the web service on my browser. That ...

31. Axis client handler    coderanch.com

thanks for your reply. I was thinking that a server container was needed because of the clientsecuritydeploy.wsdd file provide by axis security sample. I have to authenticate the sender of a message and the integrity of the message so I try to use apache axis with XML-security. On the server side, there is a handler wich intercept the message and verify ...

32. Axis AdminClient    coderanch.com

33. Axis and custom socketFactory    coderanch.com

Hi All, I am now successfully able to use Axis with my own SocketFactory class to make external SOAP webservice call. But having a little problem. I am currently making 3 SOAP call to 3 different URL and for I have stored keystore for all 3 websites in same file. This runs fine but I was wondering whether it is possible ...

34. Apache AXIS - How big is too big?    coderanch.com

35. Experiences with Axis    coderanch.com

I'm curious about folks' experiences with Apache Axis. I just created a small simple web service. One class, deployed as a .jws file, and the client just calls instance methods of the class. No session/persistence. No objects. Just remote function calls. Using Axis this way seems pretty simple. Writing a client looks to be pretty simple too, but I haven't had ...

36. Apache Axis Web Service and WSAD Client    coderanch.com

Hi All, Is it possible to generate Client Stud's in WSAD 5.1 and call Web Service deployed in Apache Axis? Assumin that I have WSDL file for the Web Serice deployed in Apache Axis and I am working on WSAD and WAS and Apache Axis is running on another machine. Thanks in Advance. Kamalakar B. [ August 11, 2005: Message edited ...

37. Issue while invoking Web Services with Axis....    coderanch.com

Hi All, I am using axis 1.0 to invoke a web service deployed on web logic server 8.1. I have generated the client side Java Classes and Stubs using WSDL2Java tool of axis. When I try to invoke the remote method, I was getting the following exception. I am not always getting this exception. Sometimes I could hit the remote service ...

38. Thread safety of Axis client classes    coderanch.com

I have a web service deployed in WAS on one machine and I have used the WSDL file to generate Axis 1.1 client classes using the Axis WSDL2Java tool. I want to run a client app from another machine where the client will be a servlet running in Tomcat or possibly JRun. The generated code includes the usual *ServiceLocator and *ServiceBindingStub ...

39. truncated xml by axis    coderanch.com

40. Axis WebService with Attachments    coderanch.com

41. axis & weblogic6.1    coderanch.com

Hello, I am trying to integrate axis1.1 with weblogic 6.1. i have created war file of axis web components containing all required jars. The same war i have deployed on weblogic6.1. The problem is that when i invoke axis from browser, happyaxis jsp is selecting saxparser from weblogic.jar XML Parser weblogic.xml.jaxp.RegistrySAXParser XML ParserLocation C:\bea\wlserver6.1\lib\weblogic.jar instead of XML Parser org.apache.xerces.jaxp.SAXParserImpl XML ParserLocation ...

42. Relation between JAX-RPC and Axis    coderanch.com

43. Determine Web Service name using Axis    coderanch.com

45. Axis Stock Quote Example    coderanch.com

46. Is it possible to tell Axis to reuse a connection?    coderanch.com

Hello, I have a java program, written by someone else, that uses Axis generated stubs to invoke methods on a web service. The problem is that there is a large loop, and a method gets invoked with each iteration, creating a new connection each time. Is there a way to make subsequent iterations reuse the same connection? Here is the general ...

47. apache axis, inheritance and overloading    coderanch.com

i want to pass events from a client to a server via a web service interface such as: public void accept(Event e); now Event is actually an interface (or abstract class) with specialisations defined for each concrete event type (e.g. AddUserEvent, UpdateUserEvent, etc..). So, how do i do it. Does SOAP handle inheritance, or if not can i overload the service: ...

48. axis -ClassCastException...Pls help    coderanch.com

49. WSS4J problem in Axis    coderanch.com

The happyaxis page works fine. I did deploy the service and it doesn't show up on that page. I did get my client to return a SOAP message so the service I created works. Now I am getting a error on the PWCallback.java page. xisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: WSHandler: cannot load password callback class: PWCallback; nested exception is: java.lang.ClassNotFoundException: PWCallback; ...

50. Where can I get the Axis source code?    coderanch.com

51. Axis generates unwanted xsi:nil elements    coderanch.com

We're using axis to generate Java stubs from our WSDL, but when we generate a message and send it, it includes elements without values as which causes the server side to reject the request. The other strange issue is that these nil elements are even included in the request when it is a choice, that is all of ...

52. web service client, axis    coderanch.com

53. Why Axis can't deserialize my object if I write in this way?    coderanch.com

Hi friends: I am developing WebService with axis. I want to publish a webservice in server.So Iwrite a method: public List getPeople(User user){ ArrayListlist=new ArrayList(); list.add(user); return list; } See the above code ,the User Object! After publish this method to web, when client invoke this method,Axis will serialize the User object and deserialize the User object for us. I don't ...

54. Apache Axis Vs JAX-RPC    coderanch.com

Hello, I am presently working with JAX-RPC to implement web services and i am a beginner. I just want to know which one is the best to implement web services. I am referring the book MONSON-HAEFEL for web services. Which one do i choose? 1. JAX-RPC 2. Apache Axis 3. Apache Soap 4. JAX-WS and any other I need to have ...

55. Axis issues    coderanch.com

Hi, this is my first post, and also my first use of webservices. I have 3 issues, all of which seem to be common, but the solutions don't work for me. In general this WS: uses document/literal , uses only int[],String[],int and String and uses attachments, the adminclient works, the happy page is happy First of all I noticed that all ...

56. installation of Axis in tomcat4.1    coderanch.com

hi, please let me know how to install Axis in tomcat 4.1 .. I tried to follow the steps which was mentioned at the Apace website.. but it wasnt clear. I downloaded the Axis 1.3 from apache website and I already have tomcat4.1 installed. i unzipped the Axis 1.3, I found the folders docs, lib, samples, webapp xmls, license file,readme file,release-notes ...

57. Install Axis on iPlanet 6.0    coderanch.com

Morning all, Quick question. I'm trying to install Axis on iPlanet 6.0 so that it works (please don't ask me why I'm using iPlanet 6.0, I know it's out of date and all that), but I'm having no luck. I've been successful installing Axis on Tomcat with no problem. I have put Axis on iPlanet so that it looks like it's ...

58. conditional axis web service - sample nowhere    coderanch.com

<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%-- --%> <%-- <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> --%> index.jsp

Welcome to Reptest System

See Service Definition WSDL here:

http://localhost:8080/ReptestSystem/services/ReptestService?wsdl

Test Service Below

get a rep zip
update a rep zip <%@page contentType="text/html"%> ...

59. Axis + CGLIB = BeanSerializerFactory problems    coderanch.com

Hello there! I've my WS configured My wsdd looks like this:

60. axis : java.lang.NoSuchMethodError    coderanch.com

Well, you seem to have more than version of the axis.jar file. So check all of them, and make sure they are identical. In particular, make sure that the one you develop against is the same version as the one you run against. [ February 01, 2006: Message edited by: Ulf Dittmer ]

61. Using Axis "BeanSerializer" for stand-alone applications    coderanch.com

Hi, I'm trying to use Axis BeanSerializer in a stand-alone application (converting between java objects & xml). Example (assuming you have a "Customer" bean): Customer cust=new Customer("john", "ibm"); BeanSerializer ser=new BeanSerializer(Customer.class, null); SerializationContext ctx=new SerializationContext(new FileWriter("cust.xml")); ser.serialize(someQName, null, cust, ctx); My question: Can I *customize* this BeanSerializer, so as to control the XML output ? For example: - Configure xml namespaces ...

62. Axis - Null pointer exception    coderanch.com

63. Axis problem    coderanch.com

Hi I have missed the xmlsec-1.2.1.jar . When I have done that I am getting the following exception - - - ns1:Server.NoService The AXIS engine could not find a target service to invoke! targetService is EchoHeaders.jws - pc-svraman-in The following are the parameters getting ...

64. Axis Stock Quote Example    coderanch.com

Hi , i am started learning web service using apache axis . i deploy the Axis Stock Quote Example. in my tomcat web server . can any one explain how i can execute the service with browser . i would like to see the answer. any give the idea . because i am very new to the web services. if possible ...

65. unable to call a web service using axis    coderanch.com

66. Axis BSFProvider, anyone?    coderanch.com

Hi- Does anyone have experience with the BSFProvider in Axis 1? There seems to be no information available on how to invoke it, not even on the Axis mailing list. I found an age-old WSDD file that demonstrates the server side, but can't figure out what kind of SOAP request it accepts. Actually, at this point, I'd be grateful for any ...

67. Axis invoke() freezes    coderanch.com

Hi all! I have problems invoking a Web Service with AXIS. When I call a web service which is on localhost, the process freezes when invoke() is called. SOAPEnvelope response = createCall(serverURI).invoke(request); After trying a few times I opened TCP Monitor to check communication. The whole traffic is very well, I see the request which seems correct. I see the response ...

68. Axis stock quote sample    coderanch.com

69. Must use GET - (405)Method Not Allowed. Axis    coderanch.com

Hi all, I call method and get the following error: AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (405)Method Not Allowed faultActor: faultNode: faultDetail: {}:return code: 405 Must use GET {http://xml.apache.org/axis/}HttpErrorCode:405 (405)Method Not Allowed at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:2443) at org.apache.axis.client.Call.invoke(Call.java:2366) at org.apache.axis.client.Call.invoke(Call.java:1812) Can you tell me what this error means? ...

70. Axis and inheritance    coderanch.com

We used Axis to automatically generate request and response types from our beans and it worked wonderfully. But now they want a little change, and I have no idea how to do that. So I hope you guys can get me going. We had an original response message which looks like this (simplified version): class Response { getStatus(){..} setStatus(){..} addRecord(final Record ...

71. Attachments prob using Axis    coderanch.com

Hi all, Could you help me out with this prob, i will put down the steps what i am trying to do : - Input is a WSDL file.(I have only wsdl file as the starting point.. ) ==================== 1.Using Axis1.2 (WSDL2Java commandline utility) I generate java stubs, as in : java org.apache.axis.wsdl.WSDL2Java -o. -d Session -s -p fibonacci.ws fib.wsdl 2.The ...

72. apache axis question    coderanch.com

73. Axis custom return types    coderanch.com

74. Apache axis    coderanch.com

Hi Ben/Ulf Thanks for your sugesstion regarding display name.Hope its fine now.Comming back to the wsdl thing ive already palced the axis from axis distribution to the webapps folder of tomcat.then i tried running the axis example(happyaxis) from java ranch n its running perfectly fine.The problem arises whenever i try to run HelloClient.java program.It give Noclassdefinition found error.Later i imported all ...

75. Axis not returning from a service request    coderanch.com

Hey everyone, I'm having problems with invoking a service request in Axis. I have built a basic CRUD style service and all I want to do is get a list of all the objects in a table. The request takes no parameters. When I make the request, the server hangs while eating up my processor. Originally I was also getting java.lang.OutOfMemory ...

76. Apache axis    coderanch.com

Hi Friends, I am getting below mentioned exception when i tried to execute java ranch sample program. Please help me out asap... Badly I am running short of time... Exception in thread "main" AxisFault faultCode: {http://xml.apache.org/axis/}HTTP faultSubcode: faultString: (404)/axis/Hello.jws faultActor: faultNode: faultDetail: {}:return code: 404 Apache Tomcat/5.0.28 - Error report