|
My last sentence means , in order to code a web service in J2EE , we can code it as an EJB or a Servlet (a special Servlet called Endpoint, as far as I remember). So in AXIS we just code a simple plain class (not extending any special AXIS class or interface) and it is ready for real-world job ? ... |
Hi all, I am using Apache axis 1.4. I have a Java bean on the Server side. I want one of the functions from the Service to return this Java Bean Object. Client will access the function and will get the Java Bean object as return value. It is return in the axis user guide that it is not possible to ... |
|
|
|
Hi guys, I have a requirement to develop a simple webservice, I need to use open source framwork to achieve that, no websphere etc. I thought I could achieve that using Apache Axis, but what are the two different sections in apache axis section, one for 1.X for one for Axis2. There is no user guide available for Axis 2, where ... |
|
Thankyou Rajneesh. If I am going to pass the Soap request like the one below testvalue]]> then my request format would change right. But my request format should be similar to something like testname My client invoking the webservice is thru javascript. Is there any way to proceed with ... |
I have written a test case using junit. I am executing it through the Eclipse 3.2 IDE. The test case is a client for a webservice. it is as follows: public class TestCategoryReports extends TestCase { private String localHostEndPoint; private String targetNameSpace; private String serviceName; private String portName; public TestCategoryReports() { localHostEndPoint= "http://127.0.0.1:8181/axis/services/MstrCatReports?wsdl"; targetNameSpace = "urn:com.aah.CategoryReports"; serviceName = "CategoryReports"; portName = ... |
|
|
When I generate an axis stub with wsdl2java, the stubs uses apache XML beans (or something like that) by default to convert XML to java and the other way around. As far as I'm concerned, the stubs seem to perform validation of the XML before sending it. In the beginning I tested this by leaving a parameter empty (that is explicitly ... |
Hi, guys. I'm working on a project that I'm trying to make it as scalable and interoparable as possible. I had no previous knowledge of Web Services(only conceptual knowledge) and after digging deeper into the topic, I realized that application of Web Services in my project would be very appropriate. In shortage of time, I've tried to propel myself into this ... |
hi, i'm using axis 2 to implement a WS. the data i'm sending represents an object consisting of 3 strings, the object also has a parent class. does axis 2 (xsd2java) support inheritance ?. I've got an xsd file which i run xsd2java on it. Presumably the client of the web service will call it like the below: Customer cust = ... |
|
Hello, This could be a lengthy post, any help would be greatly appreciated. I'm a newbie in webservices. Started a week back learning webservices. I wrote a sample service and client using axis2 and don't have any problems. Coming to the real time application, I have to consume a webservice provided by a client. The webservice is written in .NET. I ... |
|
|
|
Hi friends, i am using apachi axis1.4 with tomcat5.0.28. I am able to create create and deployee a webservice using deployee.wsdd. And i am able 2 look up the service under axis. While invoking any method i am getting null as Response. Can any budy help me in resolving this. i am waiting for your inputs. |
|
This is the full text of the request with TCPMON |
When it comes to web service interfaces XML Schema Datatypes and of course the types that you define in your own schemas define the "data-types" against which you can type the web services interface. The data types of the host language are irrelevant. So the only "option" you have is to use Axis in the "encoded" mode and write (de-)serializers for ... |
Hi all, How can we send SOAP messages in gzip format & how can I inform server that I can accept Gzip format messages, ie in compressed manner. What all should I do for that? Also what should I do to uncompress the message I got as response? Do this gzip seriously improve performance? I tried something like setting Accept-Encoding property ... |
Hi, Last post in October 06 advices that Axis2 is not yet mature enough to be used. Now there is Axis2 1.1. I need to decide if I can use Axis2 or stick to Axis 1.x. I have huge preference for performance and security being eCommerce web services. I am also planning to JiBx data binding with Axis2 for performance reasons. ... |
|
Hi All, I would like to add error specific information for prev posting.Sorry for two mails. The error while invoking the happyAxis.jsp in my previous posting was returning 500 internal error , the response is: --- Error page exception The server cannot use the error page specified for your application to handle the Original Exception printed below. Please see the Error ... |
|
|
Since SOAP requests have to be valid XML you may have to take special precautions with characters having special meaning in XML. This can get wierd if the toolkit you are using takes care of special characters. If this was my problem my first step would be to use TCPMON (comes with AXIS) to find out EXACTLY what is being transmitted. ... |
|
|
|
|
If you want to zip just the SOAP (and not the whole HTTP), then it's getting more complicated, and I don't know of an easy solution for this. Instead of gzipping all of the SOAP, I would advise to compress the payload elements, and encode those with base-64 so that they can be sent over the wire. What are trying to ... |
Either your SOAP request or response is not sending/reading proper SOAP message. As long as your webservices method returns primitive data types like String/Int/decimel etc., then writing your client program will work fine. For other data types it better to use WSDL2Java utility from ApacheAxis to generate a Webservices Stub (client code). Later then you can modify this code to your ... |
|
|
Hi, I have a POJO exposed as a Webservice using Axis2. I have tested this service using RPCServiceClient and it works fine. This service needs to talk to other services which are also POJO's exposed as Webservices using Axis2. The other services also work fine when invoked by RPCServiceClient mechanism. But if I invoke those services from my Axis2 service using ... |
Hi All, We have a webservice and its corresponding Java Bean classes(generated out of Apache Axis WSDL2Java emitter) for each element in the incoming Soap message body. Now the problem comes when i've have to rename an element in the soap body, how should i make Axis runtime invoke the same webservice without regenerating the entire Java2WSDL and WSDL2Java. I have ... |
Hi All, We have a webservice and its corresponding Java Bean classes(generated out of Apache Axis WSDL2Java emitter) for each element in the incoming Soap message body. Now the problem comes when i've have to rename an element in the soap body, how should i make Axis runtime invoke the same webservice without regenerating the entire Java2WSDL and WSDL2Java. I have ... |
I am hoping others here have ran into this problem and can shed some light on what is causing some of my frustration on getting an axis client to contact a web Service running on JBoss 4.0.5. I am using an ANT script to build the AXIS client. I am using axis 1.4. |
Hi, I am struggling to figure out how to bundle supporting files (xml configs, xsl stylesheets etc.) in my .aar archives. What do I have to do to be able to reference one of these files from code? Currently, I'm bundling these files in the META-INF subdir of the .aar, but this doesn't work. For example, if I try to invoke ... |
I have deployed a web service in AXIS under Tomcat and it works well. Now, I want to deploy the same service as a deployable application in production where I do not have AXIS. For this I created a war with lib and web.xml from AXIS. When I start Tomcat it comes up without any errors, but how do I deploy ... |
|
I'm not aware that there is a way to do this, but I'm fairly certain that it wouldn't make a big difference. HTTP connections (in contrast to JDBC connection) are not kept open -I don't think HTTP keep-alive applies to this situation-, so the savings you get by using a pool is mainly the object instantiation. That used to be a ... |
Hi, Im new to web services and have gone through ibm's tutorial that explains how to use castor and axis to create a web service.But i cant seem to understand the following basic things about web service 1)If i call a url of the following form http://host ort/something/services/AddressService how does Axis know what is to be done with this(im guessing that ... |
|
Can anyone explain what is the fundamental difference between Axis 2 and Axis 1.x Web Services that breaks the communication with non-Java clients:>? I've been currently working on application with .NET and FLEX clients.. and with Axis1 everything went OK. They were talking to each other. But when I decided to upgrade Axis to version 2.. The service meant to return ... |
Hi, I installed tomcat and it is working fine then I followed instructions given on this page http://ws.apache.org/axis/java/install.html but could not install axis. Any help is appreciated. Thanks I did following things. 1-Extracted axis zip file 2- Copy following two folders C:\axis\webapp\axis2-web C:\axis\webapp\web-inf to this location C:\Tomcat 5.5\webapps\axis Accessed localhost:8080/axis and I am getting this org.apache.jasper.JasperException: Unable to compile class for ... |
|
Hi, I'm pretty new to webservices & axis, so I'm looking for advice/direction or any help at all about is it possible to create a webservice using axis that can collect statistics on other webservices such as how long a server took to respond to a webservice call the location of the calling webservice was the 'call' successful, as in response ... |
|
|
Hi, I am using Axis to expose a service. This service is exposed as jws file. It has four methods. one of its method return a custom object and Axis doest not allow me to retrun it. It send 'No serializer found for class ' error. Now searching on web i came to that i need to serialize and deserialize (or ... |
(Note sure if this is the right place to put, feel free to remove it if not.) I just want to let eveyone know that I just post some tips related to Axis2 on Weblogic8.1. It is last minute work and without cosmetic so I can finish it quickly and bring it to public view as soon as possible (Perhaps you ... |
|
|
|
Welcome to JavaRanch. Although the invoke method takes an array, that's not how the parameters are sent across the wire. Somewhere in the stub files the proper SOAP is created which sends those individually as the parameters. It's just that the invoke method takes an array parameter so that it can accommodate any number of parameters. I recommend you use a ... |
|
I built an Axis Web Service, it deploys fine to Sun App Server 9, but it seems like when I try to actually call it, I see the following issue: [#|2007-06-11T09:01:09.952-0700|INFO|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=39;_ThreadName=httpWorkerThread-8080-1;|WebModule[/TestService] ServletContext.log():Marking servlet TestService as unavailable|#] [#|2007-06-11T09:01:09.952-0700|SEVERE|sun-appserver-pe9.0|javax.enterprise.system.container.web|_ThreadID=39;_ThreadName=httpWorkerThread-8080-1;_RequestID=48f68392-faa6-40f1-97cf-afbabcb518e2;|StandardWrapperValve[TestService]: Allocate exception for servlet TestService java.lang.ClassCastException: mil.test.ws.TestServicePortImpl at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1087) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at ... |
|
Hello and thanks for reading my post. I have a problem that I was hoping someone already has solved. My team is somewhat divided over using Axis 1.x and Axis2. The issue is that Axis2 doesn't really support RPC/encoded web services fully and an application that we need to interface with as a client uses that with Axis 1.4. My gut ... |
|
posted Today 3:32 PM -------------------------------------------------------------------------------- Hi All, I am Ashwin. All these days i was used to use the WSAD 5.1.2 as my IDE. I implemented the webservices on the same IDE. Now I as recently asked "Do you know how to implemnt a WebService using Axis ?" So could someone through some light on why do I need Axis, and ... |
Im trying to invoke web service of a remote server using Asix2 generated Client Jar. Before when I used Weblogic generated Client jars, I invoked by creating a stub object and then applied proxy settings on it. But now though I am able to apply the proxy settings I am not able to invoke the method on the web service with ... |
I am currently responsible for designing new web service components, that need to integrate web service client in the old system that use Axis1. This client component is required to retrieve binary data (attachement) from new web service server. I am trying to use Axis2 implementing new server . However I concerned about the conflict between Axis1 jar and Axis2 jar ... |
Thank for your help, but Async Result was not the problem. I solved that but now I have another problem. I am supposed to get data from a database through Axi2 Web Service. How am I supposed to do that? I mean 1. Do I have to serialize the data from the database using StaX? 2. Or its better to use ... |
|
|
|
Thanks for that reply. Actually I let a webuser create a documents by creating pages, blocks, borders with colors and fill these boxes with images, text ( I use a word processor ) and tables ( spreadsheets JTable ). Kind of Adobe indesign in a applet but of course simplified. When a user has created a Document then all langugages interrested ... |
|
|
We need to do logical data validation for our published web services and we're not exactly sure where to put this logic. For example we have a web service that will add new users to our system, but each user must have a unique username. So when adding a new user we must check to see if the new username is ... |
dear folks, I want to be able to start a process from java client, then periodically checks the status of this process until it's done. But for some reason, when client checks the status code, it never changes... On the server side the status code does change. see code for detail: My server side code: public class ReportGenerate { private double ... |
|
|
|
|
|
|
Hi, I'm not sure if this question has been asked earlier on this forum...pardon me! Here's my question... Axis2 provides a clean way of generating and invoking asynchronous web services. Let's say I have implemented an axis2 asynchronous web service (axis2 internally uses WS-Addressing to provide this asynchrony) on Tomcat. Now, will a non-axis2 client implemented using C#.NET or C++ etc ... |
I developed an web service client using axis2. The code has no problems. When i execute the ws client in a windows SS i obtain the answer in 1-2 seconds. But when i put the client in a "iSeries- AS/400 V5R3" the time to obtain an answer is 20 minutes. This is a big difference for the same code in two ... |
Using Apache Axis iam doing wsdl2java (my wsdl have xsd reference). I am able to generate the stubs, skeletons, serializable java beans. I receive input as java objects and need to marshall them into XML that is to be passed to some other application. I am using JAXB to do marhsalling of java objects to XML. JAXB requires that the java ... |
|
In order to build interoperable web services you need to restrict yourself to data types that can be modelled by schemas and WSDL, modulo the restrictions placed upon it by the Web Services Basic Profile. Take a look at the WSDL exposed by that service to see if there's anything in it that doesn't look like a datatype that Java can ... |
HI I have some basic doubts in WEBSERVICES.please for give me if this is dump one. i wanna know main diffrence between JAX-RPC and APACHE AXIS.is both are same or not. what i know is JAX-RPC for invoking webservices that is publically avilable.nad i am not sure about AXIS.by using AXIS how can we implement WS.How register my webservices in UDDI.is ... |
Hi All We have implemented a SOAP Web Services server and client using Java 1.6, Apache Axis 2 v1.3 and Tomcat 6. We have also implemented a client in C# and .NET. The http connection using Java is slower than .NET but still acceptable. The https/SSL connection using Java client is much slower than .NET and about 100 times slower than ... |
Hi, I have question regarding Axis2. Noticed that using axis just generate the stub part of the code is enough to run web service. I was following this guide http://wso2.org/library/1719 So when is the skeleton code generation is needed and under what condition. I also noticed that the samples that came together with axis2 downloads does not need stub and skeleton ... |
There's no direct way to use Java data types with web services, as that would undermine the cross-platform compatibility. You could transform the list into an array (which is supported), or -alternatively- embed a serialized representation (either binary of XML) if compatibility isn't important to you, although I would advise against that. |
Hi All, I know this question should be answered somewhere but i'm not able to get a concrete answer. I need to write an axis client to invoke an asynchronous web service. When i google for this information i get information of only axis2. Doesn't axis 1.x support asynchronous invocation? I checked out axis2 approach on this and i'm not able ... |
|
|
|
|
|
I have created a simple webservice with Axis2, which takes in an object of type Event as an input argument. This Event class has a member called EventType. When I generate code using WSDL2Java tool in axis2, I am unable to figure out how to create and event and set event type in it to the proper enum I want. Here ... |
i just wrote a webservice using the axis2-framework .. the service can be found here: package de.testService; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.Vector; public class TestService { public Connection con = null; TransportContainer tc = new TransportContainer(); Vector v = new Vector(); public final void connection() throws Exception { Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection( "jdbc:mysql://localhost:3306/travelagent", "root", ""); } ... |