axis 7 « axis « Java Enterprise Q&A

Java Enterprise Q&A
39.Web Service
Java Enterprise Q&A » axis » axis 7 

1. my webservice supports Axis1.x but not Axis2.x ,so is it the compatibility issue?

I have one web service and i want to test whether it supports Axis1.x and Axis2.x or not? I tried to create the stubs classes using Axis 2-1.2 , the stubs classes are generated successfully. But when I used this stubs classes in my client side code and sent the soap request to one service method , I It returned me ...

2. my webservice supports Axis1.x but not Axis2.x ,so is it the compatibility issue?

I have one web service and i want to test whether it supports Axis1.x and Axis2.x or not? I tried to create the stubs classes using Axis 2-1.2 , the stubs classes are generated successfully. But when I used this stubs classes in my client side code and sent the soap request to one service method , I It returned me ...

3. Axis 2 - Abstract types

4. Axis 1.4 throwing org.xml.sax.SAXException: Invalid element

Hi All, I too am getting a org.xml.sax.SAXException: Invalid element error using a client side generated from the wsdl by Axis 1.4 Here's what's coming back from the web service (note: I'm expecting this to be an error message from the service): 3300 A017-CHECKPNRLOCATOR Here's the error stack: 14:56:06,712 ERROR Call:2469 - Exception: ...

5. Axis2 on beaWeblogic 9.2

6. AXIS 1.4 Call.invoke() - (401)Unauthorized

Hi, I have a stateless session bean wrapped as a webservice and deployed in BEA weblogic 8.1 server. I created the stubs from the WSDL through AXIS 1.4 and I am getting the below exception when I call it through my client Exception in thread "main" AxisFault faultCode: {}HTTP faultSubcode: faultString: (401)Unauthorized faultActor: faultNode: faultDetail: {}:return code: 401 Any thoughts. Thanks ...

7. axis

Hi All I'm using Axis 1.4 to generate the client from the wsdl. The soap message contains SR I don't want the xsi:type="xsd:string" sent to the web service. The org.apache.axis.encoding.SerializationContextImpl has a flag: shouldSendXSIType() Get whether or not to write xsi:type attributes. which is true by default ---- I can't figure out to set this value to false. My service ...

8. Credendials in Axis

9. Does Axis2 support service class inheritance?

I'm new to Axis2. I created two classes, one is the parent service class, from which the other is extended. Then I made the child class as a service in Axis2 (v1.3), but only the declared methods in the child classes are exposed, but not inherited ones. Has anyone had a similar problem before? Or do I have to configure some ...

10. User Input Validation in Axis2

Hi, I have developed a webservice in axis2.0 with ADB and JiBX technique. Now I don't know how to validate the user input. So please help me out with this issue if anybody has done validation with axis2. I tried putting validate.mar file in web-inf/modules directory of axis2 and changing the services.xml file accordingly but it is not working. I reffered ...

11. axis 1.4 maxOccurs writes out xsi:type - turn off

If your wsdl uses maxOccurs and you want to turn off the writing of the xsi:type in the soap message you'll need to hack the axis source code - see COMMENT OUT THIS LOGIC below. package org.apache.axis.encoding; public class SerializationContext implements javax.xml.rpc.encoding.SerializationContext private void serializeActual(QName elemQName, Attributes attributes, Object value, QName xmlType, Class javaClass, Boolean sendType) throws IOException { boolean shouldSendType ...

13. Axis2 and gSoap

I have a web service which is based on gSoap. I want to create a java client. I got the WSDL, and i've used axis 1.1, 1.2, and 1.4 to generate client side. I faced many problems with base64binary like: Found character data inside an array element while deserializing etc.. I switched to Axis2 1.3. Now i'm receiving AxisFault : End ...

14. Test axis service

Originally posted by Andy Hahn: I would like to avoid having to mock up a sample request, but if there was a standard way to ping an endpoint or endpoint + method, that would be great. What would you do any differently if the "sample request" fails instead of the actual request? And just because the sample request succeeds doesn't guarantee ...

15. Axis 1.4 and Java 5

16. Axis issue

17. Print out xml for axis client

18. Axis 1.4 username/password auth with stubs

Hello, I am using an Axis 1.4 client with a WebSphere 6.1 web service. I am using the username/password properties in the soap header to pass auth data. When I create a thin client not using Axis I can pass the auth data tot he web service fine and it all works but when I try to do the same thing ...

19. Axis2 Interface Reference Variable Instantiationexception

Hi Everyone. Web Services newbie question; seems so basic, but I can't find a similar thread... We are using Axis2 to expose existing java code as web services. We are using the WSDL created automatically by the web app. We are having a problem calling any method which exposes a parameter which contains objects with interface reference variables. eg. - PostCodeConcrete ...

20. Apache Axis2 Examples

21. Axis2 Mutiple Port Problem

22. Where to put Axis

23. Axis2 1.4 client

24. Couple of questions on Axis and web services

Hi all, I have couple of questions and issues(all togather), which I got while I was exploring Apache Axis 1.4. Before I go for the questions, let me confirm my understanding, - Web services or services can be invoked or called by two ways one of them is by using the JAX-RPC way and other by SOAP. I was able to ...

25. AXIS 1.4 with ws-security: Can I turn it off programmatically?

Hello, I am working on a JAX-RPC client using Axis and one of the webservices I am calling needs ws-security another one does not. I am guessing that I need to turn the wss4j api off for that call or set the mustunderstand flag to false but have not found a way to do that on the fly. (I am using ...

26. Apache Axis2 Installation problem

27. Axis custom serializer

28. Install Axis2 1.4 on Linux CentOS

I'm trying to deploy Axis2 1.4 inside of Apache-Tomcat 5.5.23 on Linux CentOS 5.x. It's using JDK 1.4.2. I have this successfully working on Windows and need to port to Linux. I copied the axis2.war file under the webapps directory of Tomcat 5.5.23 and this resulted in auto-deployment of the axis2. Installation seemed to go well and i can access the ...

29. Axis2 Webserivce

Using SOAP is not an really option with Axis (version 1 or 2) - it's the only kind of WS Axis supports (unless you're talking about REST-style WS, where the client is not sending SOAP). The whole point of using WS is to decouple the client from the server. So if the basic interoperability rules are obeyed (as layed down in ...

30. how wirefreames communicate with Axis2(Interoperability)

Hello, Currently my requirement is as follows: Presentation part will be doveloped using wireframes(no idea on wireframes). for ex: If they create login page using wireframes, whenever the user enters username and password and click on submit button, they will create an xml and send to me. Here we need to pass the xml to webservice developed by using Axis2. Here, ...

31. Axis2 with DIME

32. Axis service always reads "(MEMO)" from arguments

Hey everyone- I am having an issue that is confusing the hell out of me. I have a fairly simple web service (deployed the easy way via .jws file) that functions perfectly fine when run as a normal java app. When I have it deployed, I can access it and it seems to run fine, but for some reason my simple ...

33. started web services AXIS

Hi all, I started to learn web services, now i hv some knowledge about what is webservices and why it is used? I also created one Hello.jws and called the service using But want to know abt deploy.wsdd, where i put this file(under WEB-INF\). And also want to know abt wsdl. Does anybody help me out to start my learning. ...

35. Web-app to web-service (Axis)

I want to convert a web-application to web-service, and i want to know what are the changes i need to make. I have been through the second page here It does tell me how to use java2wsdl and wsdl2java tool, but then some commands dont work for me, am using axis2-1.4 the latest one from Apache's site. can somebody in ...

37. Connection Pooling with Axis2

I have a (probably) fairly technical question about connection pooling with Axis2 I'd like to throw out there, in case someone else has come across this. I'd like to deploy a POJO that connects to a DB backend through Axis2 on Tomcat, using the .aar archive to deploy. I managed to get it working with a connection pool the usual way ...

38. axis 1.4 + wss4j not working.

I try to follow an example on Java Ranch, Web Services Security - Part 1: Authentication by Ulf Dittmer, (, I use JDK 1.5, TOMCAT 5.5.23, wss4j 1.4. it is not working, i will be very much appreciated, if you can give me some advise. Client Request: POST /axis/services/fibonacci-sec HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: ...

39. axis2: connection pool vs servicelifecycle

I've read a few articles and tutorials now on extending the servicelifecycle in axis2 to establish a database connection at the time a service is launched, and using that connection for the lifetime of the service. In this case, the recommendation is to create the connection in the startUp method and the cleanup in the shutDown method. It looks like a ...

40. Is the "multiRef" element an Apache Axis invention?

Hi, I had an issue on a project recently with Apache Axis sending Multi Reference values to a JWSDP 1.1 Web Service. The problem was solved by advising the client to turn off multiRefs in Axis. (I know RPC/Encoded is deprecated but this is legacy tech). Anyway, this incident got me curious and investigating what these "multirefs" were. I can see ...

42. Axis2- unable to execute client class

43. MessageContext is giving null in AXIS

44. Axis2-Redploying faulty service

I click the link for the faulty service, and instead of taking me to wsdl it takes me to another page that says, This Web axisService has deployment faults Error: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass( at at at$100( at$ at Method) at at org.apache.axis2.deployment.DeploymentClassLoader.findClass( at java.lang.ClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ...

45. Web Services with Axis2

Binu, As William said, it's all there. For example, \axis2-1.4\samples\jaxws-samples\src\main\org\apache\axis2\jaxws\samples\client\echo\ is - package org.apache.axis2.jaxws.samples.client.echo; import javax.xml.namespace.QName; import; import; import; import; import; @WebServiceClient(name = "EchoService", targetNamespace = "http://org/apache/axis2/jaxws/samples/echo/", wsdlLocation = "WEB-INF/wsdl/Echo.wsdl") public class EchoService extends Service { private final static URL ECHOSERVICE_WSDL_LOCATION; static { URL url = null; try { url = new URL("file:/WEB-INF/wsdl/Echo.wsdl"); } catch (MalformedURLException ...

46. Axis2: passing an ArrayList to a webservice

Hi, I don't know if this has been discussed already. I am new to web services and axis2 in particular. I have a web service with a method that takes an ArrayList as a parameter. the ArrayList further has a Hashtable as one of its elements. when i call the web service from a client, passing the ArrayList as the input, ...

47. How do I report a bug in Axis2?

48. Problem using IBM-RAD / AXIS2

49. Axis2 and mustUnderstand

Hi I have a secured web service in oc4j app server, an oracle generated web service. I have a client using rampart and axis2 to connect and rend a request. The request is authenticated successfully and processed, the response I successful but I get this axis fault... Exception in thread "main" org.apache.axis2.AxisFault: Must Understand check failed for header

50. Axis2 vs. Axis1

Hello, have been working with Axis-1 and trying to learn Axis-2. I am reading the Axis2 doc, etc. It looks like that I need to (at least it is advocated) deploy axis2.war into Tomcat first and all my future services will be deployed into axis2. That means axis2 app itself serves as an entry point for all services. However, in Axis-1, ...

51. Axis2 - WstxIOException

hi guys... my english is not so good, but I'll try... I get this exception in my webservice. If I call the service once and wait the response, it works fine, but if I call many times, this exception happens. has anybody gotten this exception? what is wrong? please, help - me. I lost one day trying looking for the solution, ...

53. Creating a web service with Axis2 built in script

1. I downloaded axis2 in C:\axis2 and set AXIS2_HOME environment variable to point to C:\axis2 2. I have JAVA_HOME pointing to my java installation C:\Java_1.4.2 3. I was able to download the samples and run the ant build files that come with them to create the services and C:\axis2\samples\quickstart My problem is I can't do the same thing on my little ...

54. Axis2 (Embded in tomcat5.5) - Moving services.xml to custom location (or JAX-WS)

Hi, I have an existing webapp without web services that works on tomcat. To add axis2 web services functionality I added org.apache.axis2.transport.http.AxisServlet to web.xml I have a working web services axis2 on tomcat 5.5 web app. My problem is that although I have my class (service) files in custom location (of course I modified the services.xml file accordingly) I MUST (or ...

56. Axis JWS Document/Literal

Hi, I am fairly new to using Axis and have hit on upon a roadblock for which I couldn't find anything on the net. I was hoping that someone here migh thav encoutered a similar issue and know the solution. I have a JWS file which is hosted on a Tomcat server. The client of this service is a .NET client. ...

58. Axis2-1.4 help

Hello All, Iam new to webservices.Iam using axis21.4 and apache tomcat application server. Iam trying to create a wsdl file for a simple program.Program which iam trying to create wsdl file is: package; import; public class StudentWebService implements Serializable { StudentService service = new StudentService(); public void registerstudent(Student student) { service.registerStudent(student); } public Student getStudent(String name) throws StudentNotFoundException { ...

59. JAX-WS vs. Axis2

JAX-WS is just one API; Axis2 implements a good deal more, e.g. WS-Security. The built-in stuff also limits you to using the built-in web server (which is rather limited in capability), and the API versions it implements (of JAX-WS and JAXB) are already outdated. So I wouldn't use it for more than toying around; certainly not for a production setting.

60. Newbie to Axis webservices

Hi, my problem is as follows (I'll try to word the question as best i can but im new to webservices so be gentle): I'm working with a webservice test tool that has already been implemented in .net and i've been asked to do the same in java. So, I used the existing wsdl files for the .net implementation and apache ...

61. JAX-WS vs Axis2

We're currently trying to build a WS client from the WSDL provided by a vendor. The client will then be used by a Java web app to do its things (as you do). usually there is only Axis that you use, however now JAX-WS has come to the equation. What I'd to know is whether there has been an analysis done ...

62. Data type checking in Axis2

We're currently wanting to use Axis2 to generate the stubs from WSDL provided by outside vendor. Unfortunately although there is an xsd file, the data passed back to the client (us) sometimes is incorrect. For example, for a URI, which becomes the Java class URI at the client, sometimes the data coming back has characters which caused the instantiation of a ...

63. Need help using annotations with Axis2

Hi Ranchers, I am trying to use the java annotations instead of xml files to deploy a web service some problems arise. I followed this tutorial to create jax-ws web services. The web service is a simple hello world : @javax.jws.WebService() public class ServiceTest { @javax.jws.WebMethod() public String hello() { return "Hello world"; } } It is compiled this way : ...

64. Axis2 weird exception/error handling

65. Pivot axis

66. (X,Y) axis in Applet(URGENT)

DANGER!! WARNING!!! What Manfred said was that before you can set a particular location for a component, you have to turn off the Layout Manager that is currently setting the locations. DO THIS WITH CARE. You are buying into doing the 102 other things that the layout manager does for you automatically. But if you choose to do this then public ...

67. Trying to Run AXIS examples - New to Java

Hi, I am sorry if this has been asked a thousand times but.... 1. I have installed AXIS 1.3 and all seems well i.e. I can view the happyaxis.jsp page and all the relevant jars are there. 2. As a post install activity I tried to run some of the web samples provided in the "Consuming Web Services with AXIS" section ...


Remote is just a marker interface. Its javadocs state "The Remote interface serves to identify interfaces whose methods may be invoked from a non-local virtual machine." Arguably, this applies to web service calls even thouhg no RMI is involved. RMIException is probably the closest to a fitting (existing) exception they found. I'm fairly certain there's no actual RMI use involved, since ...

69. Axis2 support for collections

70. Calling a web service in Axis2

Hi, I am new to web services. I am trying to make my first web service to work. I am using Axis2. This example i am trying is from the book 'Developing web services with apache axis2' by Kent Ka Iok Tong. ( I downloaded the source code and trying to run 'SimpleService' example. I deployed this service to axis and ...

71. Attachments in Axis 1.0

72. org.apache.axis..

73. Help Needed in java web services using axis2

Hi All, I am newbie to Java Web Services. I am trying to learn java web services with axis2. I am using jdk1.5, axis2 1.4.1 and tomcat 5.5. I have also installed the eclipse plugins - axis2-eclipse-codegen-wizard & axis2-eclipse-service-archiver-wizard. I began to write a simple program following the site : All the steps for the part I were completed successfully, ...

74. How to setup my application as a stand alone axis2 web service

Hi all, After I've done a lot of google, I have to ask to see if anyone can give me a light. I have developed an application which I want to make it as a web service. I know that in Axis 1 we can simplely copy axis.jar into my web application's wen-inf/lib directory to make it as a web service. ...

75. client implementation with Axis2

Hi all, This is my third posting and didn't get much help so far.. I have been trying to just create a client to a web service (with valid wsld soap uri) using axis2 and I tried the wsld2java built in script and ended up with errors.. What I want is to be able to create a client class from scratch ...

76. axis : No operation name specified!

77. Axis2 client - SOAPProcessingException

Hi, Am building a wrapper webservice using Axis2 1.3 for an existing sharepoint webservice. Once i build the web service client, i write a test class to invoke the sharepoint webservice to retrieve a list of items; what am running into is an exception stack which says "org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found html" Any ...

78. AXIS2 - set conditions - XmlValueDisconnectedException

Hi group, I have no luck setting condition when connecting to the microsoft crm's web service. I can't set query condition correctly when retrieving data from CRM. The problem is the following code: String s = "12345678"; StringReader strr = new StringReader(s); XmlObject obj = XmlObject.Factory.parse(strr); System.out.println("obj.xmlText();"+obj.xmlText()); XmlObject xmlObj = XmlObject.Factory.parse(s); ArrayOfString attributes = ArrayOfString.Factory.newInstance(); attributes.addAttribute("accountnumber"); ArrayOfAnyType values = ArrayOfAnyType.Factory.newInstance(); values.set(xmlObj); ...

79. Windows Live login using Axis

80. Axis Vs Axis2

Hi Everyone, Can anyone tell me what is the difference between the Axis and Axis2, in terms of Efforts required to generate the webservice client, means I have the WSDL, I have to create the client for this web service. Mainly, I have to migrate from AXIS to AXIS2 please assist in this. Regards,

81. Attachments with Axis

Hello, I'm somewhat of a Web Services newbie. I am trying to modify an existing web service that FTPs a CSV file from a legacy system, reads through it, and writes some XML out to the web service. It is pretty top-down in that (for the most part) it reads a line of CSV, writes out a chunk of XML, rinse, ...

82. Problem installing Axis

83. Java WebServices with Axis

Hi There, I am using Axis 1.2 to implement Java web services. I have put a simple sample and it works with primitive data types in JBOSS. Now I want to return a collection like ArrayList from a Web Service. When I try this, it shows me the following error. {} java.lang.IllegalArgumentException: object is not an instance of declaring class at ...

84. Making a webservice call using axis2

I am developing a client for a web service that is already existing. I got axis2 and created the code form the WSDL2Java from the web service's WSDL. I set all of the objects but now do not know how to make the call to the service. The documentation provided from the web service vendor is in ASP.NET, however, I'm using ...

85. Axis for Webservices

Long time ago, I thought of preparing for the SCDJWS exam and I was going through the tutorials for SOAP and I did not want to explore any furthur as it had too many information that I had to keep in mind in order to sit for the exam and also I was not working on Webservices at thost times. But ...

86. Axis2 1.4 Problem in generating code

Hi All, I am trying to generate the code using axis2 utility wsdl2java. Below is the error message which popped up with the stack trace as shown : E:\softwares\axis2-1.4.1\bin>wsdl2java.bat -uri E:/AccountService.wsdl -o E:/Release9.1/CR18164/source -d xmlbeans -b Using AXIS2_HOME: E:\softwares\axis2-1.4.1 Using JAVA_HOME: D:\j2sdk1.4.2_07 Retrieving document at 'E:/AccountService.wsdl'. [Fatal Error] AccountService.wsdl:1:7: The processing instruction target matching "[xX][mM][lL]" is not allowed. Exception in thread ...

87. Apache AXIS problem

88. Axis2 question

89. Apache Axis 1.4.1

90. Does Axis2 supports Legacy applications

You're in luck - there is no problem accessing an Axis web service by a client that's written in some other language. One of the main points of web services is interoperability; none of the SOAP standards (SOAP, WSDL, UDDI, WS-Security etc.) is limited to any one language; it's all just XML that can be created and processed by any language ...

91. JaxWS vs. Axis

I am seeking clarification... In an environment of shared services, my team develops WSs using JaxWS. I have a peer whose team uses Axis and we have been unable to make dynamic calls to his services. (To be clear, security is NOT the issue) I am being told I need to add the jar files that support Axis in order to ...

92. < is replaced by < in axis2 web service

Hi, I am using axis2 to develop a RESTFul webservice. The method takes and returns the xml as a string. I am preparing the response xml using Document object and converting it into string using Transformer class. When I return the converted string from the service the < sigh is replaced by '& lt;'. (I inserted the space between & and ...

95. Axis 2 problems

17:52:33,514 ERROR http-8080-Processor24 AxisEngine:receive:212 - java.util.HashMap org.apache.axis2.AxisFault: java.util.HashMap at org.apache.axis2.AxisFault.makeFault( at com.librarysystem.service.LibraryServiceMessageReceiverInOut.invokeBusinessLogic( at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic( at org.apache.axis2.receivers.AbstractMessageReceiver.receive( at org.apache.axis2.engine.AxisEngine.receive( at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest( at org.apache.axis2.transport.http.AxisServlet.doPost( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection( at at at org.apache.tomcat.util.threads.ThreadPool$ at Caused by: java.lang.ClassCastException: java.util.HashMap at com.librarysystem.service.LibraryServiceSkeleton.executeCommand( at ...

96. upgrade AXIS 1.2 to AXIS 1.4

97. General Question about Webservice development approaches (axis2)

Hello, I recently started to learn a bit about webservices (axis2), so far it has been working fine, for new projects that is... I was wondering how I should implement a webservice in a large j2ee application that has already been running for quite some time. What is a clean way to get access to the projects infrastructure (DAOs etc) from ...

98. Passing Set and List in Axis 2.0

vinoth subramaniam wrote:How can i pass them ? You've got bigger problems. Not only are you trying to return "A list of books" - you are trying to return an entire object graph and to make things worse, an object graph with cycles. XML is notoriously bad at representing graphs (and the cycles don't help either) because XML is hierarchical in ...

99. Apache Axis versus JbossWS

Sandeep saahil wrote:wstools : It generates the stubs but only some java classes are generated and also the package structure is not correct. wsconsume : I m able to generate the stubs only if i remove entries for faults from the WSDL(i guess since faults extends AxisFault) This seems to indicate that you are approaching this with an inappropriate set of ...  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.