Re: Return more than one parameters
You need to use holder classes. Eg:- if you want to pass objects of type myclass back and forth in soap web services ( JAX RPC method) then here is what you need to do. 1. define holder class for myclass 2.alter your webservices to take holder class objectinstead of myclass class object as input. ( Note that from the client you will still pass the actual object, not the holder class object). There are a lot of articles about it on the web. One such is the following - Pay attention to the naming conventionand package definition . http://www.developer.com/java/web/article.php/10935_2237251_2 On 11/22/05, Eric Chow [EMAIL PROTECTED] wrote: hello,How can I use JAXRPC call to return more than one parameters ?I tried to use ParameterMode.INOUT , but nothing return ?Any example ?Best regards,Eric
Re: axis1.3-ClassCast Exception at call.invoke
you have defined the bean mappings required for serialization and deserialization at the server and client side ? On 11/21/05, jsri [EMAIL PROTECTED] wrote: Hello allI'm a newbie to webservices. I'm trying to consume webservices. I'm using axis1.3 ,Eclipse IDE. Using axis i got the java stub classes generated. I'm able to receive string literals from webservice. Problem comes with objects..bean. This is the scenairo of the application...When i send an Patient ID to the webservices it returns demographic information related to the Patient ID. (a) Query record -method returns Patient record for the requested Patient-MPI ID 1. I sent an invalid MPI ID. I got msg from webservice- MPI ID doesn't exists .2.When i send the existing MPI ID i get ClassCastException. It show the error at call.invoke().I tried using the same jar files used by the webservice provider to generate java calsses stubs.still got the same errors. I attached wsdl and soapbindingstub class.I'm pasting the code snippetsstack trace below. Generated SoapBindingStub.java * public com.stchome.mpi.MPIQueryReply queryRecord(java.lang.String in0, long in1) throws java.rmi.RemoteException { if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[0]); _call.setUseSOAPAction(true); _call.setSOAPActionURI(); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName(new javax.xml.namespace.QName(urn:mpi, queryRecord)); setRequestHeaders(_call); setAttachments(_call); try {java.lang.Object _resp = _call.invoke(new java.lang.Object [] {in0, new java.lang.Long(in1)}); if (_resp instanceof java.rmi.RemoteException) { throw (java.rmi.RemoteException)_resp; } else { extractAttachments(_call); try { return (com.stchome.mpi.MPIQueryReply) _resp; } catch (java.lang.Exception _exception) { return (com.stchome.mpi.MPIQueryReply) org.apache.axis.utils.JavaUtils.convert(_resp, com.stchome.mpi.MPIQueryReply.class); } } } catch (org.apache.axis.AxisFault axisFaultException) { throw axisFaultException; } }* ClientTest.java Query Record** public void QueryMPI() throws Exception { java.lang.String in0String = new String(system); //mpi user long in1Long = 17831; try{ MPIServiceLocator temp = new MPIServiceLocator(); MPI mpi = temp.getMPI(); com.stchome.mpi.MPIQueryReply x = mpi.queryRecord(in0String,in1Long); System.out.println((x.getRecord()).getFirstName()); System.out.println(Status : + x.getStatus ()); System.out.println(Status String : + x.getStatusString()); } *AxisFaultfaultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.ClassCastException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.ClassCastException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129) at org.apache.axis.encoding.DeserializationContext.endElement (DeserializationContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch (Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse (Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java :696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java :206) 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) at mpi.MPISoapBindingStub.queryRecord(MPISoapBindingStub.java:310) at dhh.oph.latb.mpi.QueryMpi.searchMpi(QueryMpi.java :92) at dhh.oph.latb.mpi.QueryMpi.main(QueryMpi.java:286)
How to pass an Array object- Please read - this is bothering me a lot.
Hello All, I think this question was asked several times before but somehow I could understand it by looking at the previous threads. I have an object of type'User' that is being returned by webservice. Here is my wsdl mapping beanMapping languageSpecificType=java:myEntities.User qname=ns1:User xmlns:ns1=urn:MyServiceService/ Here is my client code that registers the class QName qnUser = new QName(urn:ProjectManagerService, User); call.registerTypeMapping(User.class, qnUser,new org.apache.axis.encoding.ser.BeanSerializerFactory(User.class, qnUser),new org.apache.axis.encoding.ser.BeanDeserializerFactory(User.class , qnUser)); This works fine , but how do I register a type mappin for an Array of 'User ' objects and what should be the beanmapping tag look like ? Thanks a lot in advacne.
Re: How to pass an Array object- Please read - this is bothering me a lot.
On the same note- how can i return /pass a java vector object to a webservice. On 11/18/05, Developer Developer [EMAIL PROTECTED] wrote: Hello All, I think this question was asked several times before but somehow I could understand it by looking at the previous threads. I have an object of type'User' that is being returned by webservice. Here is my wsdl mapping beanMapping languageSpecificType=java:myEntities.User qname=ns1:User xmlns:ns1=urn:MyServiceService/ Here is my client code that registers the class QName qnUser = new QName(urn:ProjectManagerService, User); call.registerTypeMapping(User.class, qnUser,new org.apache.axis.encoding.ser.BeanSerializerFactory(User.class, qnUser),new org.apache.axis.encoding.ser.BeanDeserializerFactory(User.class , qnUser)); This works fine , but how do I register a type mappin for an Array of 'User ' objects and what should be the beanmapping tag look like ? Thanks a lot in advacne.
Sample wsdd for vector mapping- PLEASE HELP
I have a beanmapping defined in wsdd. Eg:. beanMapping languageSpecificType=java:myEntities.User qname=ns1:User xmlns:ns1=urn:MyServiceService/ I want to define a vectory mapping element becuase i want to pass a vector using vector serialization. Can somebody send me a sample of vectorymapping element in wsdd ? Thanks a lot
Re: Sample wsdd for vector mapping- PLEASE HELP - Any help ? i would really appreciate if somebody replies to this message
On 11/18/05, Developer Developer [EMAIL PROTECTED] wrote: I have a beanmapping defined in wsdd. Eg:. beanMapping languageSpecificType=java:myEntities.User qname=ns1:User xmlns:ns1=urn:MyServiceService/ I want to define a vectory mapping element becuase i want to pass a vector using vector serialization. Can somebody send me a sample of vectorymapping element in wsdd ? Thanks a lot
Re: Test JWS endpoint error
This is how it works on my machine - ( Windows XP) Go to apache tomcat configure window ( Start-All Programs-apacheTomcat-ConfigureTomcat) . Click on java tab . 1.make sure the java virtual machine points to correct jvm.dll ( on my machine :C:\Java\jre1.5.0_04\bin\client\jvm.dll)) 2. makesure all the necessary java jar files are listed in javaclasspath ( on my machine -C:\Tomcat5_5\bin\bootstrap.jar;C:\Java\jdk1.5.0_04\bin;C:\Java\jdk1.5.0_04\lib\tools.jar) On 11/18/05, Miller, Michael P [EMAIL PROTECTED] wrote: Installed Axis on Tomcat 5.5 with java 1.5. I've been deploying/ running webapps on this Tomcat for some time with no problems. Followed directions in the Install guide by dropping webapps/axis etc. All the install tests like happyaxis, looking for services and Test a SOAP endpoint work fine. When I test a JWS endpoint it fails with: faultcodesoapenv:Server.userException/faultcode faultstringjava.lang.RuntimeException: No compiler found in your classpath! (you may need to add 'tools.jar')/faultstring Someone told me to set JAVA_HOME and I did that (windows XP). It didn't work. If I put tools.jar from my jdk into the common/lib of Tomcat it does work but I'm told that is a hack and can cause security issues. Tomcat runs as a service. any help would be greatly appreciated. Thanks, Mike
Developing webservices using eclipse, axis and tomcat. Best practice ( Any help is highly appreciated)
Hello All, I want to know what are the best development practices for developing java web services using axis, tomcat and eclipse ide. 1. Should we use the eclipse web services creation/testing framework at all ? I found out that if we use it then eclipse creates lot of code that is hard to understand and very difficult to debug. 2. I already have a java bean class and a deployment descriptor which works fine when deployed in axis and tomcat. I want to integrate that with an existing dynamic web project ( client of web service) already created in eclipse, so that I can do a seam less development and testing of web services and client code. Do you know what is the best way for doing that ? Thanks a lot in advance.
Re: Developing webservices using eclipse, axis and tomcat. Best practice ( Any help is highly appreciated)
jus following up on my request. It would also help me if you can describe how you have setup your development environment if you are using eclipse, axis and tomcat. Ty! On 11/15/05, Developer Developer [EMAIL PROTECTED] wrote: Hello All, I want to know what are the best development practices for developing java web services using axis, tomcat and eclipse ide. 1. Should we use the eclipse web services creation/testing framework at all ? I found out that if we use it then eclipse creates lot of code that is hard to understand and very difficult to debug. 2. I already have a java bean class and a deployment descriptor which works fine when deployed in axis and tomcat. I want to integrate that with an existing dynamic web project ( client of web service) already created in eclipse, so that I can do a seam less development and testing of web services and client code. Do you know what is the best way for doing that ? Thanks a lot in advance.
Question on passing parameter to webservice usinng AXIS
Hello All, I have a webservice method that needs to take a java class as input. I am using AXIS for SOAP and tomcat for my container. Here is the signature of my webservice method public Integer createProject(Object o). I want to later cast the object o into some other object that the service is expecting as input from the client. Question : What is the XML Parameter type corresponding to java object in the method addParameter. Eg:. for integer we will use XSD_INTEGER ( see below) call.addParameter(op1, XMLType.XSD_INTEGER, ParameterMode.IN);. What should it be for java object ? Thanks !
Re: Question on passing parameter to webservice usinng AXIS
jus a follow up on the this error. I when I try to invoke the webservice i get the following error nested exception is: java.io.IOException: No serializer found for class cmu.edu.webservice.ProjectObject in registry [EMAIL PROTECTED] Got something from Simple1 Does anybody know the fix for this problem ? Thanks a lot. On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: Hello All, I have a webservice method that needs to take a java class as input. I am using AXIS for SOAP and tomcat for my container. Here is the signature of my webservice method public Integer createProject(Object o). I want to later cast the object o into some other object that the service is expecting as input from the client. Question : What is the XML Parameter type corresponding to java object in the method addParameter. Eg:. for integer we will use XSD_INTEGER ( see below) call.addParameter(op1, XMLType.XSD_INTEGER, ParameterMode.IN);. What should it be for java object ? Thanks !
Re: Question on passing parameter to webservice usinng AXIS ( Problem with registration) - Somebody please review my code. - Already spent a lot of time on this one.
I think I am not doing the registration and type mapping correctly. I would really appreciate if somebody can review my code and deployment descriptor. Here is the type mapping beanMapping qname=myNS:ProjectObject xmlns:myNS=urn:ProjectManager languageSpecificType= cmu.edu.webservice.ProjectObject/beanMapping Here is my clinet code Service service = new Service(); Call call = (Call) service.createCall(); QName qn = new QName( urn:ProjectManager, ProjectObject ); call.registerTypeMapping(ProjectObject.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ProjectObject.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory (ProjectObject.class, qn)); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(new QName(http://soapinterop.org/, method)); call.addParameter(op1,qn, ParameterMode.IN); Integer ret = (Integer) call.invoke( new Object[] { obj1} ); Here isthe error I am getting org.xml.sax.SAXException: Deserializing parameter 'op1': could not find deserializer for type {urn:ProjectManager}ProjectObject Got something from Simple1 On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: jus a follow up on the this error. I when I try to invoke the webservice i get the following error nested exception is: java.io.IOException: No serializer found for class cmu.edu.webservice.ProjectObject in registry [EMAIL PROTECTED] Got something from Simple1 Does anybody know the fix for this problem ? Thanks a lot. On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: Hello All, I have a webservice method that needs to take a java class as input. I am using AXIS for SOAP and tomcat for my container. Here is the signature of my webservice method public Integer createProject(Object o). I want to later cast the object o into some other object that the service is expecting as input from the client. Question : What is the XML Parameter type corresponding to java object in the method addParameter. Eg:. for integer we will use XSD_INTEGER ( see below) call.addParameter(op1, XMLType.XSD_INTEGER, ParameterMode.IN);. What should it be for java object ? Thanks !
Re: Question on passing parameter to webservice usinng AXIS ( Problem with registration) - Somebody please review my code. - don't worry I solved the problem.
It was a stupid typo. I could solve the problem when replaced the mapping element in wsdd beanMapping qname=myNS:ProjectObject xmlns:myNS =urn:ProjectManager languageSpecificType= cmu.edu.webservice.ProjectObject/ beanMapping with beanMapping qname=myNS:ProjectObject xmlns:myNS=urn:ProjectManager languageSpecificType= java:cmu.edu.webservice.ProjectObject /beanMapping notice the java: was missing in the languageSpecificType attribute. Thanks for reading the mails . On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: I think I am not doing the registration and type mapping correctly. I would really appreciate if somebody can review my code and deployment descriptor. Here is the type mapping beanMapping qname=myNS:ProjectObject xmlns:myNS=urn:ProjectManager languageSpecificType= cmu.edu.webservice.ProjectObject/beanMapping Here is my clinet code Service service = new Service(); Call call = (Call) service.createCall(); QName qn = new QName( urn:ProjectManager, ProjectObject ); call.registerTypeMapping(ProjectObject.class, qn, new org.apache.axis.encoding.ser.BeanSerializerFactory(ProjectObject.class, qn), new org.apache.axis.encoding.ser.BeanDeserializerFactory (ProjectObject.class, qn)); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(new QName( http://soapinterop.org/, method)); call.addParameter(op1,qn, ParameterMode.IN); Integer ret = (Integer) call.invoke( new Object[] { obj1} ); Here isthe error I am getting org.xml.sax.SAXException: Deserializing parameter 'op1': could not find deserializer for type {urn:ProjectManager}ProjectObject Got something from Simple1 On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: jus a follow up on the this error. I when I try to invoke the webservice i get the following error nested exception is: java.io.IOException: No serializer found for class cmu.edu.webservice.ProjectObject in registry [EMAIL PROTECTED] Got something from Simple1 Does anybody know the fix for this problem ? Thanks a lot. On 11/13/05, Developer Developer [EMAIL PROTECTED] wrote: Hello All, I have a webservice method that needs to take a java class as input. I am using AXIS for SOAP and tomcat for my container. Here is the signature of my webservice method public Integer createProject(Object o). I want to later cast the object o into some other object that the service is expecting as input from the client. Question : What is the XML Parameter type corresponding to java object in the method addParameter. Eg:. for integer we will use XSD_INTEGER ( see below) call.addParameter(op1, XMLType.XSD_INTEGER, ParameterMode.IN);. What should it be for java object ? Thanks !
Having trouble with invoking AXIS Admin client
Has anybody seen this error before, if so what is the fix. I am running Win XP. Here is my output of AXISCLASSPATH- . C:\Tomcat 5.5\webapps\axisecho %AXISCLASSPATH%C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\commons-discovery.jar; C:\Tomcat 5.5\webapps\axis\WEB-INF\lib \commons-logging.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\saaj.jar; C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar ;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\xml-apis.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\xercesImpl.jar Here is the output of running the Admin client- not sure why it is not working. C:\Tomcat 5.5\webapps\axisjava -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient -l ttp://localhost:8080/axis/Simple Simple.wsddException in thread main java.lang.NoClassDefFoundError: C:\Tomcat 5/5\webapps\axis\WEB-INF\lib\commons-logging/jar;C:\Tomcat 5/5\webapps\axis\WEB-INF\lib\jaxrpc/jar;C:\Tomcat 5/5\webapps\axis\WEB-INF\lib\saaj/jar;
Bad envelope tag: html
Ron, Thanks ! It did solve the problem. Now I am facing some other problem. ( Bad envelop tag problem). Do you know about this ? C:\Tomcat 5.5\webapps\axis\Simplejava -cp %AXISCLASSPATH% org.apache.axis.ct.AdminClient -lhttp://localhost:8080/axis/Simple Simple.wsddlog4j:WARN No appenders could be found for logger ( org.apache.axis.i18n.ProjesourceBundle).log4j:WARN Please initialize the log4j system properly.Processing file Simple.wsddException: AxisFaultfaultCode: { http://schemas.xmlsoap.org/soap/envelope/}Server.userExceptionfaultSubcode:faultString: org.xml.sax.SAXException: Bad envelope tag: htmlfaultActor:faultNode:faultDetail: { http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Bavelope tag: html at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuiljava:70) at org.apache.axis.encoding.DeserializationContext.startElement (DeseizationContext.java:1048) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknownce) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(own Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatchcanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentConDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocumenknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse (Unknownce) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializaContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope (SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSendava:796) at org.apache.axis.transport.http.HTTPSender.invoke (HTTPSender.java: at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSendava:727) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java: at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStry.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:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:1784) at org.apache.axis.client.AdminClient.process(AdminClient.java:439) at org.apache.axis.client.AdminClient.process(AdminClient.java:404) at org.apache.axis.client.AdminClient.process(AdminClient.java:410) at org.apache.axis.client.AdminClient.process(AdminClient.java:320) at org.apache.axis.client.AdminClient.main(AdminClient.java:463) {http://xml.apache.org/axis/}hostname:IBM-900DE7D8334 On 10/5/05, Ron Reynolds [EMAIL PROTECTED] wrote: there's a whitespace (space, CR, tab) in your classpath that's being interpretted by the java exe as a delimiter between CP and the main class name.you might try quoting the whole CP( java -classpath %AXISCLASSPATH% ...) tho all those extra quotes might throw it off,or use the DOSified version of your directory name (TOMCAT~1.5) instead to avoid spaces. or move your jars into a simple \dev\lib directory and use a classpath like this:set AXIS_CP=.set AXIS_CP=%AXIS_CP%;/dev/lib/axis-1.2.1.jarset AXIS_CP=%AXIS_CP%;/dev/lib/jaxrpc-1.1.jarset AXIS_CP=%AXIS_CP%;/dev/lib/commons- logging-1.0.4.jarset AXIS_CP=%AXIS_CP%;/dev/lib/commons-discovery-0.2.jarset AXIS_CP=%AXIS_CP%;/dev/lib/wsdl4j-1.5.1.jarset AXIS_CP=%AXIS_CP%;/dev/lib/saaj-1.2.jarset AXIS_CP=%AXIS_CP%;/dev/lib/xmlsec-1.2.1.jar set AXIS_CP=%AXIS_CP%;/dev/lib/junit-3.8.1.jar(jar names may vary - i add version numbers to all jars if they're missing)hth..ron. Has anybody seen this error before, if so what is the fix. I am running Win XP.Here is my output of AXISCLASSPATH- . C:\Tomcat 5.5\webapps\axisecho %AXISCLASSPATH% C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\axis.jar;C:\Tomcat 5.5\webapps\axis\WE B-INF\lib\commons-discovery.jar; C:\Tomcat 5.5\webapps\axis\WEB-INF\lib \comm ons-logging.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\jaxrpc.jar;C:\Tomcat 5 .5\webapps\axis\WEB-INF\lib\saaj.jar; C:\Tomcat 5.5\webapps\axis\WEB-INF\lib \log4j-1.2.8.jar;C:\Tomcat 5.5\webapps\axis\WEB-INF\lib\xml-apis.jar ;C:\Tomca t 5.5\webapps\axis\WEB-INF\lib\xercesImpl.jar Here is the output of running the Admin client- not sure why it is not working. C:\Tomcat 5.5\webapps\axisjava -cp %AXISCLASSPATH% org.apache.axis.client.Admin Client -l ttp://localhost:8080/axis/Simple Simple.wsdd Exception in thread main java.lang.NoClassDefFoundError : C:\Tomcat 5/5\webapps
Has anybody seen this error if so do you know what is the problem ? Thanks !
javax.servlet.ServletException: Servlet execution threw an exception root cause java.lang.NoClassDefFoundError: javax/wsdl/OperationType org.apache.axis.description.OperationDesc.clinit(OperationDesc.java:59) org.apache.axis.client.Call.addParameter(Call.java:960) org.apache.axis.client.Call.addParameter(Call.java:995) test.HelloWorld.callAdd12(HelloWorld.java:95) test.HelloWorld.doGet(HelloWorld.java:52) javax.servlet.http.HttpServlet.service(HttpServlet.java:689) javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
newbiew question on WSDD and WSDL
What is the different between WSDD and WSDL. My understanding is WSDD - is used to deploy a webservice on the webserver WSDL- Is used to publish the web service in the UDDI. Is that right ? What is the best way to create a WSDD for a webservice defined in the java ( have access to the source code). Where can I find more information on WSDD- a tutorial on how to create WSDD. Are there any open source tools that help create WSDD. Thanks a lot in advance. !
Having trouble with AXIS and Tomcat
Hello, I am new to Web services development. I installed Tomcat, AXIS JAX and all other prereqs, and I think my installations were correct. I am trying my first web service deployment Here is the sample. I created a file called Calculator.jws in C:\Tomcat 5.5\webapps\axis public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; }} When I try to access it using http://localhost:8080/axis/Calculator.jws?method=add I get the following error ?xml version=1.0 encoding=UTF-8 ? - soapenv:Envelope xmlns:soapenv =http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance - soapenv:Body - soapenv:Fault faultcode soapenv:Server.userException/ faultcode faultstring java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) /faultstring - detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/ IBM-900DE7D8334/ ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope
Re: Having trouble with AXIS and Tomcat
Hi soactive, Thank you very much for the reply. All the files under tomcat are readable, and have full access. The file Calculator.jws does exist @ C:\Tomcat 5.5\webapps\axis. I wrote a simple java client and got similar error. --- - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Exception in thread main AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:IBM-900DE7D8334 java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at CalcClient.main(CalcClient.java:50) -- On 10/1/05, Soactive Inc [EMAIL PROTECTED] wrote: seems like an access privilege issue. Make sure that your .jws file exists and is readable. On 10/1/05, Developer Developer [EMAIL PROTECTED] wrote: Hello, I am new to Web services development. I installed Tomcat, AXIS JAX and all other prereqs, and I think my installations were correct. I am trying my first web service deployment Here is the sample. I created a file called Calculator.jws in C:\Tomcat 5.5\webapps\axis public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; }} When I try to access it using http://localhost:8080/axis/Calculator.jws?method=add I get the following error ?xml version=1.0 encoding=UTF-8 ? - soapenv:Envelope xmlns:soapenv = http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd= http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance - soapenv:Body - soapenv:Fault faultcode soapenv:Server.userException/ faultcode faultstring java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) /faultstring - detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/ IBM-900DE7D8334/ ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope
faultString: java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied)
Any other suggestions out there !! On 10/1/05, Developer Developer [EMAIL PROTECTED] wrote: Hi soactive, Thank you very much for the reply. All the files under tomcat are readable, and have full access. The file Calculator.jws does exist @ C:\Tomcat 5.5\webapps\axis. I wrote a simple java client and got similar error. --- - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Exception in thread main AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:IBM-900DE7D8334 java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at CalcClient.main(CalcClient.java:50) -- On 10/1/05, Soactive Inc [EMAIL PROTECTED] wrote: seems like an access privilege issue. Make sure that your .jws file exists and is readable. On 10/1/05, Developer Developer [EMAIL PROTECTED] wrote: Hello, I am new to Web services development. I installed Tomcat, AXIS JAX and all other prereqs, and I think my installations were correct. I am trying my first web service deployment Here is the sample. I created a file called Calculator.jws in C:\Tomcat 5.5\webapps\axis public class Calculator { public int add(int i1, int i2) { return i1 + i2; } public int subtract(int i1, int i2) { return i1 - i2; }} When I try to access it using http://localhost:8080/axis/Calculator.jws?method=add I get the following error ?xml version=1.0 encoding=UTF-8 ? - soapenv:Envelope xmlns:soapenv = http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsd= http://www.w3.org/2001/XMLSchema xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance - soapenv:Body - soapenv:Fault faultcode soapenv:Server.userException/ faultcode faultstring java.io.FileNotFoundException: C:\Tomcat 5.5\webapps\axis\Calculator.jws (Access is denied) /faultstring - detail ns1:hostname xmlns:ns1=http://xml.apache.org/axis/ IBM-900DE7D8334/ ns1:hostname /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope