Re: Axis 1.2 - issues. Need help
This is just due to classes mismatch. You have both new and old axis library in your classpath. Better to clean classpath completely and populate it with jars again. This could certainly make axis happy. Thanks MohitDeivanai [EMAIL PROTECTED] wrote: Hi, I am using axis version 1.2 and Tomcat 4.1 with Jdk 1.4.2_01 I have used axis to generate the proxies for MS-SQL reporting web service and tried accessingthe serviceusinga client. I get the following error:- javax.servlet.ServletException: org.apache.axis.description.TypeDesc.(Ljava/lang/Class;Z)Vat org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:536)at org.apache.jsp.calcResult_jsp._jspService(calcResult_jsp.java:138)at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Your time and help is appreciated. Thanks and Regards, ---Deivanai.PRMerIndus Consulting Pvt. Ltd.Executive Chambers18/5 Cunningham RoadBangalore - 560052 ---We can make a difference if we try - www.dreamadream.org Do you Yahoo!? Meet the all-new My Yahoo! Try it today!
xml java mapping
there was a discussion on this in this list somedays back regarding making the axis mapping impl independent. so has there been a consensus on this.(so that we can switch between castor ,jaxb ) does axis use jaxp parsers internally(xerces for example). What is the mapping used internally by these parsers? __ Do you Yahoo!? All your favorites on one personal page Try My Yahoo! http://my.yahoo.com
Complex type, using axis
I am new to Soap, and using version 1.1 of axis, my question is aboutcomplex type. Code for the interface. public class FamilyInterfaceImpl {public Family getFamily(){Family f = new Family("MyFamily", 5);return f;}} Code for Family Class. public class Family { private String familyName;private int numberOfMembers; public Family(){}public Family(String familyName, int numberOfMembers){this.familyName = familyName;this.numberOfMembers = numberOfMembers;}} To get the wsdl file I use the following command. java org.apache.axis.wsdl.Java2WSDL -o family.wsdl -l"http://localhost:8080/axis/services/soapexample"-n urn:soapexample -p"soapexample" urn:soapexamplesoapexample.FamilyInterface where soapexample is the package name. Now I have to generate the Server-side Wrapper Code and Stubs for Client Access I use the following command. java org.apache.axis.wsdl.WSDL2Java -o . -d Session -s -p soapexample.wsfamily.wsdl I got 8 file and one of them that I have to overwrite is package soapexample.ws; import soapexample.FamilyInterfaceImpl; public class SoapexampleSoapBindingImpl implementssoapexample.ws.FamilyInterface{FamilyInterfaceImpl f = new FamilyInterfaceImpl();public soapexample.ws.Family getFamily() throws java.rmi.RemoteException {return f.getFamily();} } This class does not compile, because the return type is of typesoapexample.ws.Family and the method return soapexample.Family. Question: How to make soap axis work for complex type Thank you in advance
WSDL2JAVA and default constructor with inheritance properties
Title: Message Hi, How force WSDL2Java to create a constructor with inheritance properties ? I have two object : GenObj with getter and setter for code propertites. LteObj extend GenObj and add new properties AXIS utilites don't create default constructor with inheritance properties ? How could i force it ? i have tried with -all without succes ? RegardsPhilippeFichier WSDL ?xml version="1.0" encoding="UTF-8"? wsdl:definitions targetNamespace="urn:Of" xmlns:tns3="http://webservice9" xmlns:impl="urn:Of" xmlns:intf="urn:Of" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns2="http://objs.webservice9" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" !--WSDL created by Apache Axis version: 1.2RC2 Built on Nov 16, 2004 (12:19:44 EST)-- wsdl:types schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://webservice9" import namespace="http://objs.webservice9"/ import namespace="http://xml.apache.org/xml-soap"/ import namespace="http://schemas.xmlsoap.org/soap/encoding/"/ complexType abstract="true" name="GenUtil" sequence/ /complexType /schema schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://objs.webservice9" import namespace="http://webservice9"/ import namespace="http://xml.apache.org/xml-soap"/ import namespace="http://schemas.xmlsoap.org/soap/encoding/"/ complexType name="GenObj" complexContent extension base="tns3:GenUtil" sequence element name="code" nillable="true" type="xsd:string"/ /sequence /extension /complexContent /complexType complexType name="ObjLte" complexContent extension base="tns2:GenObj" sequence element name="codeGamme" nillable="true" type="xsd:string"/ element name="dateFinInitiale" nillable="true" type="xsd:string"/ element name="dateLancement" nillable="true" type="xsd:string"/ element name="designation" nillable="true" type="xsd:string"/ element name="indiceGamme" nillable="true" type="xsd:string"/ element name="lcdecl" nillable="true" type="xsd:string"/ element name="qteInitiale" type="xsd:int"/ element name="qteInitialeString" nillable="true" type="xsd:string"/ element name="suiteCle" nillable="true" type="xsd:string"/ element name="typeLancement" nillable="true" type="xsd:string"/ /sequence /extension /complexContent /complexType /schema schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xml.apache.org/xml-soap" import namespace="http://webservice9"/ import namespace="http://objs.webservice9"/ import namespace="http://schemas.xmlsoap.org/soap/encoding/"/ complexType name="mapItem" sequence element name="key" nillable="true" type="xsd:anyType"/ element name="value" nillable="true" type="xsd:anyType"/ /sequence /complexType complexType name="Map" sequence element name="item" minOccurs="0" maxOccurs="unbounded" type="apachesoap:mapItem"/ /sequence /complexType /schema /wsdl:types wsdl:message name="lte_listRequest" /wsdl:message /wsdl:portType wsdl:binding name="OfSoapBinding" type="impl:Of" wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/ wsdl:operation name="getVersion" wsdlsoap:operation soapAction=""/ wsdl:input name="getVersionRequest" wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Of"/ /wsdl:input wsdl:output name="getVersionResponse" wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Of"/ /wsdl:output wsdl:operation name="lte_list" wsdlsoap:operation soapAction=""/ wsdl:input name="lte_listRequest" wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Of"/ /wsdl:input wsdl:output name="lte_listResponse" wsdlsoap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:Of"/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name="OfService" wsdl:port name="Of" binding="impl:OfSoapBinding" wsdlsoap:address location="http://172.16.0.101:8080/axis/services/Of"/ /wsdl:port /wsdl:service /wsdl:definitions /** * ObjLte.java * * This file was auto-generated from WSDL * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter. */ package webservice9.ws.of; public class ObjLte extends webservice9.ws.of.GenObj implements java.io.Serializable { private java.lang.String codeGamme; private java.lang.String dateFinInitiale; private java.lang.String
Problems with SOAPMonitor
Dear all, I would have to use to SOAP-Monitor included in Axis for some debugging purposes. However, the Applet is not displayed. I have uncommented the respective sections in web.xml like it says on the axis-webpage. Still the applet isn't loaded. Are there any other steps I have to take to activate the monitor? thanks in advance! Robert
No Digest List?
Hi, I noticed that this mailing list ([EMAIL PROTECTED]) does not have digest mode as well as [EMAIL PROTECTED] Current digest subscribers: No digest available Digest Subscription means that you (we) can receive and read messages as threads once daily, rather than receiving a constant trickle (flow) of messages. http://www.ezmlm.org/faq-0.32/FAQ-4.html#ss4.22 Perhaps you folks might have already known, this user list is Top-10 most popular list in apache.org mailing lists. (wow) The mean posts per day are 25.16 (posts/day), high-traffic! Perhaps, someone can try to ask infrastructure@ (apmail@) to create digest mode of this list. If succeed, anyone will be able to subscribe -digest list via [EMAIL PROTECTED] Hope this helps. Cheers, - Tetsuya Kitahata -- Terra-International, Inc. E-mail: [EMAIL PROTECTED] http://www.terra-intl.com/
Re: No Digest List?
I like to read this list as a newsgroup (NNTP) via gmane.org (or you can read it via a browser thru gmane's web site) It works quite well, I don't get bombarded with emails all day long, I read the newsgroup only when I feel like it (sort of like a digest if you read the newsgroup once a day): http://www.gmane.org/ News server: news.gmane.org Newsgroup: gmane.text.xml.axis.user Or you can get a RSS feed from http://rss.gmane.org/gmane.text.xml.axis.user and read it via an RSS reader (such as Thunderbird) or via Firefox LiveBookmarks. The possibilities are unlimited, you are not confined to email only. Gmane is great! Enjoy. Tim Tetsuya Kitahata wrote: Hi, I noticed that this mailing list ([EMAIL PROTECTED]) does not have digest mode as well as [EMAIL PROTECTED] Current digest subscribers: No digest available Digest Subscription means that you (we) can receive and read messages as threads once daily, rather than receiving a constant trickle (flow) of messages. http://www.ezmlm.org/faq-0.32/FAQ-4.html#ss4.22 Perhaps you folks might have already known, this user list is Top-10 most popular list in apache.org mailing lists. (wow) The mean posts per day are 25.16 (posts/day), high-traffic! Perhaps, someone can try to ask infrastructure@ (apmail@) to create digest mode of this list. If succeed, anyone will be able to subscribe -digest list via [EMAIL PROTECTED] Hope this helps. Cheers, - Tetsuya Kitahata -- Terra-International, Inc. E-mail: [EMAIL PROTECTED] http://www.terra-intl.com/
SOAPMonitor next question
Hi! I have gotten the applet to display now. I have also deployed a simple Web Service and written a client for it. However, the SOAPMonitor does not seem to do anything. The calls to the WS ar working fine, I get the return values, but the SOAPMonitor applet remains empty Does the SOAPMonitorService monitor all deployed WS? Or do they have to be registered with the SOAPMonitor in any way? any help is appreciated Robert
Single request turning into many
Title: Single request turning into many Hi, I'm new on the list. I have been struggling with a problem over the past two weeks and am finally resigned to the fact that I'll never figure it out on my own. I have coded a simple integration server to run on top of Tomcat. It works fine, except that one of the connectors polls a SOAP connection for data on a regular schedule (which, in turn looks for data in a JMS topic). That SOAP connection is to an AXIS web service running on the same or another Tomcat instance. The problem is that when it does so it appears to add another instance of the query. For example the logs on the integration server (using log4j) show an attempt to poll once every ten seconds. On the AXIS side the logs show that during the first query there was an attempt to poll. Ten seconds later there will be two attempts to poll, then ten seconds after that three attempts and so on. This continues until things run out of memory or I Stop and Start the Axis application within Tomcat. I have piles and piles of logging code on both sides of the application and I am quite sure I am not calling the server side of this more than once every 10 seconds. I've attempted to google the problem and looked around the Apache website, but I'm no closer to solving this than I was two weeks ago. Can anybody point me in the right direction to solve this problem? I can provide whatever information might be helpful. Thanks, Mike Litherland Cleveland Clinic Foundation -- Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. Visit us online at our award-winning www.clevelandclinic.org for a complete listing of Cleveland Clinic services, staff and locations from one of the country's leading hospitals. ==
Axis Testing Tool
Hello, I have googled and I did not seem to find a tool that I am looking for. I am looking for a tool that can: automate testing of axis web services test the performance of an axis web service profile an axis web service's performance Other than writing such a tools from scratch, I am wondering if there is anything out there that I can re-use. Thanks for any tips. -- Lyndon Tiu
Manipulate soap headers
Hi! For my application I would need to add some information in the header of a SOAP massage. To be precise, I need to be able to map SOAP messages to a different workflows. That workflow information should be included in the SOAP-header, eg. workflowID=workflow1. How can I write and read such information to and from the SOAP-header in an axis environment? The information should be available on both client and server side. cheers Robert
Re: Axis Testing Tool
Take a look at TestMaker at http://www.pushtotest.com. It may do what you are looking for. -Frank On Dec 27, 2004, at 11:39 AM, Lyndon Tiu wrote: Hello, I have googled and I did not seem to find a tool that I am looking for. I am looking for a tool that can: automate testing of axis web services test the performance of an axis web service profile an axis web service's performance Other than writing such a tools from scratch, I am wondering if there is anything out there that I can re-use. Thanks for any tips. -- Lyndon Tiu --- Frank Cohen, PushToTest, http://www.PushToTest.com, phone: 408 374 7426 Author of Java Testing and Design: From Unit Tests to Automated Web Tests from Prentice Hall, details at http://thebook.pushtotest.com
Re: SOAPMonitor next question
Hi Robert, You have to set the handlers for each of the service where you would like to use SOAPMonitor in WEB-INF\server-config.wsdd Here's a sample of my server-config.wsdd. operation name="calculateFibonacciRange" qname="ns2:calculateFibonacciRange" returnQName="calculateFibonacciRangeReturn" returnType="ns2:ArrayOf_xsd_int" xmlns:ns2="urn:fibonacci" parameter name="in0" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/ parameter name="in1" type="xsd:int" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/ /operation requestFlow handler type="soapmonitor"/ /requestFlow responseFlow handler type="soapmonitor"/ /responseFlow parameter name="allowedMethods" value="calculateFibonacciRange calculateFibonacci"/ parameter name="wsdlPortType" value="Fibonacci"/ I hope that helps. Note: I'll prefer using TCPMonitor over SOAPMonitor Sunil Kothari - Original Message - From: Robert Gombotz To: [EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 12:21 AM Subject: SOAPMonitor next question Hi! I have gotten the applet to display now. I have also deployed a simple Web Service and written a client for it. However, the SOAPMonitor does not seem to do anything. The calls to the WS ar working fine, I get the return values, but the SOAPMonitor applet remains empty Does the SOAPMonitorService monitor all deployed WS? Or do they have to be registered with the SOAPMonitor in any way? any help is appreciated Robert
Re: SOAPMonitor next question
you need to set up the service's deploy.wsdd file. It's actually pretty simple as you just add requestFlow and responseFlow tags. Let's take one of the samples from the binary distrobution (axis and the samples are already compiled). cd to $AXIS_HOME/samples/Math and open up deploy.wsdd. under the service name tag, put in these lines: requestFlow handler type=soapmonitor/ /requestFlow responseFlow handler type=soapmonitor/ /responseFlow save the file. if this service is already deployed, then undeploy it and redeploy it (redeploy after changing the deploy.wsdd file). You shouldn't need to restart your appserver ( I could be wrong on this), but, anyway, whenever you run the Math service, you'll see it pop up on the SOAPMonitor. To run the math service, try this url: http://localhost:8080/axis/services/Math?method=adda=10b=20 Note: I'm not sure off the top of my head, but I think I read somewhere that SOAPMonitor doesn't work with JWS services. On Mon, 27 Dec 2004 19:51:56 +0100, Robert Gombotz [EMAIL PROTECTED] wrote: Hi! I have gotten the applet to display now. I have also deployed a simple Web Service and written a client for it. However, the SOAPMonitor does not seem to do anything. The calls to the WS ar working fine, I get the return values, but the SOAPMonitor applet remains empty Does the SOAPMonitorService monitor all deployed WS? Or do they have to be registered with the SOAPMonitor in any way? any help is appreciated Robert