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 ... |
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 ... |
|
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: ... |
|
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://xml.apache.org/axis/}HTTP faultSubcode: faultString: (401)Unauthorized faultActor: faultNode: faultDetail: {}:return code: 401 Any thoughts. Thanks ... |
7. axis coderanch.comHi 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 ... |
|
|
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 ... |
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 ... |
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 ... |
|
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 ... |
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 ... |
|
|
|
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 ... |
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 ... |
|
|
|
|
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 ... |
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 ... |
|
|
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 ... |
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 ... |
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, ... |
|
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 ... |
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 HelloClient.java. 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. ... |
|
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 http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 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 ... |
|
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 ... |
I try to follow an example on Java Ranch, Web Services Security - Part 1: Authentication by Ulf Dittmer, (http://www.javaranch.com/journal/200603/Journal200603.jsp#a2), 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: ... |
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 ... |
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 ... |
|
|
|
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(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:72) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) ... |
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\EchoService.java is - package org.apache.axis2.jaxws.samples.client.echo; import javax.xml.namespace.QName; import javax.xml.ws.Service; import javax.xml.ws.WebEndpoint; import javax.xml.ws.WebServiceClient; import java.net.MalformedURLException; import java.net.URL; @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 ... |
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, ... |
|
|
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 |
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, ... |
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, ... |
|
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 ... |
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 ... |
|
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. ... |
|
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 org.apache.axis2.training; import java.io.Serializable; public class StudentWebService implements Serializable { StudentService service = new StudentService(); public void registerstudent(Student student) { service.registerStudent(student); } public Student getStudent(String name) throws StudentNotFoundException { ... |
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. |
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 ... |
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 ... |
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 ... |
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 : ... |
|
|
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 ... |
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 ... |
68. AXIS RMI coderanch.comRemote 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 ... |
|
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. (http://www.agileskills2.org/DWSAA/index.html) I downloaded the source code and trying to run 'SimpleService' example. I deployed this service to axis and ... |
|
|
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 : http://wso2.org/library/1719. All the steps for the part I were completed successfully, ... |
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. ... |
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 ... |
|
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 ... |
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); ... |
|
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, |
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, ... |
|
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. {http://xml.apache.org/axis/}stackTrace:java.io.IOException: java.lang.IllegalArgumentException: object is not an instance of declaring class at ... |
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 ... |
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 ... |
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 ... |
|
|
|
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 ... |
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 ... |
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 ... |
|
|
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(AxisFault.java:430) at com.librarysystem.service.LibraryServiceMessageReceiverInOut.invokeBusinessLogic(LibraryServiceMessageReceiverInOut.java:65) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.ClassCastException: java.util.HashMap at com.librarysystem.service.LibraryServiceSkeleton.executeCommand(LibraryServiceSkeleton.java:29) at ... |
|
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 ... |
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 ... |
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 ... |
|