Re: Problems using Java2WSDL
Hello Bill, Your problem seems to be simple, Just run the command with -p option from the parent directory of the path in the -p option Meaning, if the path is something like -p samples.userguide.example.example6 run the command from the parent directory of the samples directory.. This should solve the problem.. --- Bill Price <[EMAIL PROTECTED]> wrote: > > I am having trouble running the Java2WSDL example > (example6) in the axis > user guide. First, I had problems with the first > option of the -p command. I > changed the -p to --PkgtoNS and got past that. > > Now I am getting a ClassNotFoundException on the > filename parameter (class > of port-type). I have copied the command line as it > appears in the user > guide. I am using ant to invoke the Java2WSDL. The > basedir is one level > above the package root. I get the same error > regardless of whether I use > full path name to the file, the relative path name, > or the package name. > > The file exists at the full path name that appears > in the error message. > > This is a snippet of the ant build file with the > Java2WSDL arguments: > http://localhost:8080/axis/services/WidgetPrice -n > urn:Example6 --PkgtoNS samples.userguide.example6 > urn:Example6 > ${src}/samples.userguide.example6.WidgetPrice"/> > > Has anyone else encountered this problem or have any > suggestions? TIA. > > > Yahoo! India Matrimony: Find your life partner online Go to: http://yahoo.shaadi.com/india-matrimony
Re: wrapped and inout parameters
A wrapped service is a document/literal service, therefore it may have at most one body part. If you want to send the tns:warnings element in the body, then you need to define it within the tns:getTransactions element. You can also include the same element within your return element. See http://atmanes.blogspot.com/2005/03/wrapped-documentliteral-convention.html for a description of the wrapped convention. Anne On 5/11/05, Patrick Cogan <[EMAIL PROTECTED]> wrote: > Hi, > > Here is some furthur information: > > The message I use is: > > > > > > > If I remove the warning part then I get wrapped, but I want wrapped and the > warning inout parameter. > > Regards, > > Patrick. > > > On 5/11/05, Patrick Cogan <[EMAIL PROTECTED]> wrote: > > Hi > > > > Is it possible to have a wrapped service with inout parameters? If so how, > as I haven't been able to do this. > > > > Regards, > > > > Patrick. > > > >
Re: no Deserilizer found for anySimpaleType
We also need to see the WSDL. I assume your problem is caused by the use of a type called xsd:anySimpleType -- but there is no such type defined in the XML Schema type system. Perhaps you have specified an invalid targetNamespace, or perhaps you've just specified an invalid type. But we can't tell without seeing the WSDL. Anne On 5/11/05, YIXING MA <[EMAIL PROTECTED]> wrote: > Thanks, > > Please help me with that. I really struggling right now. > > The exception was: > > java.rmi.RemoteException: org.xml.sax.SAXException: Deserializing parameter > 'anySimpleType': could not find deserializer for type > {http://www.w3.org/2001/XMLSchema}anySimpleType > at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:505) > at > net.interfacemgmt.eTranscript.client.action.UserMainAction.execute(UserMainAction.java:193) > at > org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) > at > org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) > at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) > at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) > 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:237) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) > at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) > at > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) > at java.lang.Thread.run(Thread.java:595) > > > Client side code was: > > > String epAddr = > "http://66.14.138.***:8081/eTranscriptService/services/ETranscriptService";; > String wsdlAddr = epAddr + "?wsdl"; > String svcName = "ETranscriptServiceService"; > String portName = "ETranscriptService"; > String nameSpaceUri = > "http://66.14.138.***:8081/eTranscriptService/services/ETranscriptService";; > String URI_ENCODING = > "http://schemas.xmlsoap.org/soap/encoding/";; > String ENCODING_STYLE_PROPERTY = > "javax.xml.rpc.encodingstyle.namespace.uri"; > java.net.URL wsdlUrl = new java.net.URL(wsdlAddr); > ServiceFactory svcFactory = ServiceFactory.newInstance(); > QName svcQName = new QName(nameSpaceUri, svcName); > Service svc = svcFactory.createService(wsdlUrl, svcQName); > > HashMap cfg = new HashMap(); > cfg.put("trustStoreFile", > "C:\\Documents and Settings\\Cheney\\.keystore"); > > //cfg.put("trustStoreFile","D:\\ThirdParty\\jstk-1.0.1\\bin\\rootca\\ca.ks"); > cfg.put("trustStoreType", "JCEKS"); > cfg.put("trustStorePassword", "changeit"); > cfg.put("keyStoreFile", > "D:\\ThirdParty\\jstk-1.0.1\\bin\\rootca\\MyTestCertificate"); > cfg.put("keyStoreType", "JCEKS"); > cfg.put("keyStorePassword", "myKeyStorePass"); > cf
Download Attachments...
Can anyone point me to docs, or provide an example of how to download a file? The Autodesk service I'm calling, results in an AttachmentPart that appears to be a org.apache.axis.attachments.ManagedMemoryDataSource$Instream Thanks.. -J
Re: no Deserilizer found for anySimpaleType
Thanks, Please help me with that. I really struggling right now. The exception was: java.rmi.RemoteException: org.xml.sax.SAXException: Deserializing parameter 'anySimpleType': could not find deserializer for type {http://www.w3.org/2001/XMLSchema}anySimpleType at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:505) at net.interfacemgmt.eTranscript.client.action.UserMainAction.execute(UserMainAction.java:193) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) 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:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595) Client side code was: String epAddr = "http://66.14.138.***:8081/eTranscriptService/services/ETranscriptService";; String wsdlAddr = epAddr + "?wsdl"; String svcName = "ETranscriptServiceService"; String portName = "ETranscriptService"; String nameSpaceUri = "http://66.14.138.***:8081/eTranscriptService/services/ETranscriptService";; String URI_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";; String ENCODING_STYLE_PROPERTY = "javax.xml.rpc.encodingstyle.namespace.uri"; java.net.URL wsdlUrl = new java.net.URL(wsdlAddr); ServiceFactory svcFactory = ServiceFactory.newInstance(); QName svcQName = new QName(nameSpaceUri, svcName); Service svc = svcFactory.createService(wsdlUrl, svcQName); HashMap cfg = new HashMap(); cfg.put("trustStoreFile", "C:\\Documents and Settings\\Cheney\\.keystore"); //cfg.put("trustStoreFile","D:\\ThirdParty\\jstk-1.0.1\\bin\\rootca\\ca.ks"); cfg.put("trustStoreType", "JCEKS"); cfg.put("trustStorePassword", "changeit"); cfg.put("keyStoreFile", "D:\\ThirdParty\\jstk-1.0.1\\bin\\rootca\\MyTestCertificate"); cfg.put("keyStoreType", "JCEKS"); cfg.put("keyStorePassword", "myKeyStorePass"); cfg.put("keyEntryAlias", "myTestCertificate"); cfg.put("keyEntryPassword", "myKeyPass"); Class handlerClass = net.interfacemgmt.eTranscript.AxisClient.WSSClientHandler.class; java.util.List list = svc.getHandlerRegistry().getHandlerChain( new QName(nameSpaceUri, portName)); list .add(new javax.xml.rpc.handler.HandlerInfo(handlerClass, cfg, null)); Call call = (Call) svc.createCall(); call.setProperty(ENCODING_STYLE_PROPERTY, URI_ENCODING); call.setProperty(Call.OPERATION_STYLE_PROPERTY,"rpc"); call.setTargetEndpointAddress(epAddr); call.setOperationName(new QNam
Re: no Deserilizer found for anySimpaleType
Yixing, Following might help you get a quick reply from someone. Please post the code from: 1. Server side code. 2. part of server-conf.wsdd 3. WSDL 4. Client side code. BTW, please stick to your subject as the mail server will put the replies in the same thread and it's easy to search/find. -Sri At 10:42 AM 5/11/2005, you wrote: Good morning all, I ran the Axis program and got an error. The error was No Deserilizer found for anySimpaleType Sorry for the misunderstanding for the last email. Yixing
RE: returning arrays of custom java objects
Ben, I thank you with my whole heart. It works! You should think of writing an article. If you are ok with it I will post this email in the forum for someone like me. I had to make a small modification though. It didn't like doing the TypeMapping for array saying Bad Types. So I took off the TypeMapping from the client for Array and just left the Single/Bean part. Here is my final client code: String endpoint = "http://localhost:" + options.getPort() + "/bserv/services/EmployeeDataService"; String method = args[0]; String arg1 = args[1];; String arg2 = args[2];; Service service = new Service(); qname = new QName("EmployeeLateTSArray", "EmployeeLateTSBean"); TypeMappingRegistry tmr = service.getTypeMappingRegistry(); TypeMapping tmlts = tmr.createTypeMapping(); tmlts.register( Class.forName("com.bbn.ws.EmployeeLateTSBean"), qname, new org.apache.axis.encoding.ser.BeanSerializerFactory(EmployeeLateTSBean.class,qname), new org.apache.axis.encoding.ser.BeanDeserializerFactory(EmployeeLateTSBean.class,qname)); tmr.register("http://schemas.xmlsoap.org/soap/encoding/", tmlts); qname = new QName("EmployeeLateTSArray", "EmployeeLateTSBeanArray"); call = (Call) service.createCall(); call.setReturnType (qname); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(method); call.addParameter("admnum", XMLType.XSD_INTEGER, ParameterMode.IN); call.addParameter("mgrnum", XMLType.XSD_INTEGER, ParameterMode.IN); call.setReturnType(qname); EmployeeLateTSBean e[] = (EmployeeLateTSBean[])call.invoke(new Object[] { new Integer(arg1), new Integer(arg2) }); //arg1, arg2 }); My WDSL: qname="ns1:EmployeeLateTSBean" xmlns:ns1="EmployeeLateTSArray" deserializer="org.apache.axis.encoding.ser.BeanDeserializerFactory" serializer="org.apache.axis.encoding.ser.BeanSerializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> xmlns:ns1="EmployeeLateTSArray" type="java:com.bbn.ws.EmployeeLateTSBean[]" deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> Thank you, Sri. At 03:13 PM 5/10/2005, [EMAIL PROTECTED] wrote: Sri, I'm using the version of the Service constructor which takes an URL of a WSDL file which describes the service (e.g. http://yourserver.com:8080/axis/services/MyService?wsdl), and the qualified name (QName) which is the name of your service as specified in that WSDl file. For example, When I made a test service using a class named Calculator, I got a WSDL like this: http://d2:8080/axis/services/Calculator"> - - - - - - - - - - - - - - - http://schemas.xmlsoap.org/soap/http"/> - - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - http://schemas.xmlsoap.org/soap/encoding/" namespace="http://d2:8080/axis/services/Calculator" use="encoded"/> - - http://d2:8080/axis/services/Calculator"/> Now, notice at the top of this WSDL, the target namespace is "http://d2:8080/axis/services/Calculator", and at the bottom of this WSDL that the service name is "CalculatorService". So to instantiate the service, I do this: QName qn = new QName("http://d2:8080/axis/services/Calculator", "CalculatorService"); Service service = new Service(wsdlUrl, qn); This populates my service with everything I need. I can then just do service.call() on the thing and pass it the names of the methods I know to be there. The WSDL file contains everything axis needs except the type mapping, which you provide yourself with the calls to register(). Hope this helps! Ben -Original Message- From: Srinadh Karumuri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 10, 2005 2:25 PM To: [EMAIL PROTECTED] Subject: RE: returning arrays of custom java objects Ben, Thanks for sharing the code. I am trying your way, with the TypeMapping.
RE: returning arrays of custom java objects
Ben, Thanks for sharing the code. I am trying your way, with the TypeMapping. Could you tell me how you initiated the service = new Service(.,...); wsdlUrl - is the location of the file. qn - qname I am doing qname = new QName("EmployeeDataService"); which I am unable to set and keep getting the error: javax.xml.rpc.ServiceException: Cannot find service: EmployeeDataService -Sri At 01:07 PM 5/10/2005, [EMAIL PROTECTED] wrote: Sri, Here's what my code looks like: = service=new Service(wsdlUrl, qn); TypeMappingRegistry tmr = service.getTypeMappingRegistry(); TypeMapping tmcfg = tmr.createTypeMapping(); tmcfg.register(Class.forName("com.vzw.sane5.util.configuration.Configuration"), new QName("http://com.vzw.sane5.util.configuration", "Configuration"), new ConfigurationSerFactory(), new ConfigurationDeserFactory()); TypeMapping tmcfgar = tmr.createTypeMapping(); tmcfgar.register(Class.forName("com.vzw.sane5.util.configuration.Configuration"), new QName("http://com.vzw.sane5.util.configuration", "ConfigurationArray"), new org.apache.axis.encoding.ser.ArraySerializerFactory(), new org.apache.axis.encoding.ser.ArrayDeserializerFactory()); tmr.register("http://schemas.xmlsoap.org/soap/encoding/", tmcfg); tmr.register("http://schemas.xmlsoap.org/soap/encoding/", tmcfgar); = So I get the WSDL for my service from axis, then register my two types in the client side using the values I gave in my typeMapping section, but with a caveat: In your typeMapping section you say : deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" type="java:your.special.class.package.Type[]" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns1:TypeArray" xmlns:ns1="http://your.special.class.package"/> BUT, in the registration, you don't say Type[], as the classname, you say just Type. See my register() calls above - even though one is registering the ser/deser for the array and the other is for the class itself, they both register with classname "com.vzw.sane5.util.configuration.Configuration", which is the type in question. So it's slightly different on the server side than it is on the client side. It took me FOREVER to figure that one out! Hope this helps! Ben ___ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this 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 notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you.
RE: returning arrays of custom java objects
Ben, Thanks for your reply. You gave me a ray of hope. I am still getting the SAXException. I am not sure if I am calling it right in the client code. I gave my details below. PART of SaxException: 12:06:46,484 ERROR Call:2274 - Exception: org.xml.sax.SAXException: No deserializer defined for array type {EmployeeLateTSSingle}EmployeeLateTSBean at org.apache.axis.encoding.ser.ArrayDeserializer.onStartElement(ArrayDeserializer.java:304) at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:428) at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:976) at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198) at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722) at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233) at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347) at org.apache.axis.client.Call.invoke(Call.java:2272) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at com.bbn.ws.EmployeeDataClient.main(EmployeeDataClient.java:84) AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException : : PART of server-config.wsdd: qname="ns1:EmployeeLateTSBean" xmlns:ns1="EmployeeLateTSSingle"/> xmlns:ns1="EmployeeLateTSArray" type="java:com.bbn.ws.EmployeeLateTSBean[]" deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> WSDL: CLIENT Code: String method = args[0]; String arg1; String arg2; Service service = new Service(); Call call = (Call) service.createCall(); QName qname = null; Class cls = null; qname = new QName("EmployeeLateTSDataArray", "EmployeeLateTSBeanArray"); arg1 = args[1]; arg2 = args[2]; cls = EmployeeLateTSBean[].class; call.registerTypeMapping (cls, qname, ArraySerializerFactory.class, ArrayDeserializerFactory.class); call.setReturnType (qname); //call.setReturnClass(cls); call.setTargetEndpointAddress(new java.net.URL(endpoint)); call.setOperationName(method); call.addParameter("admnum", XMLType.XSD_INTEGER, ParameterMode.IN); call.addParameter("mgrnum", XMLType.XSD_INTEGER, ParameterMode.IN); call.setReturnType(qname); EmployeeLateTSBean e[] = (EmployeeLateTSBean[]) call.invoke(new Object[] { new Integer(22624), new Integer(8524) }); //arg1, arg2 }); System.out.println("Got result : " + e[0].getEmployeeNumber() + " " + e[0].toCSVString()); Thanks for any help, -Sri At 10:28 AM 5/10/2005, [EMAIL PROTECTED] wrote: Sri, I battled this same malady only a few days ago. What worked for me was finally figuring out the magic incantation required in the section. What I am doing is to put in my server-config.wsdd file a line which looks like this, for the single-value return: deserializer="your.special.class.package.TypeDeserFactory" serializer="your.special.class.package.TypeSerFactory" type="java:your.special.class.package.Type" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns1:Type" xmlns:ns1="http://com.vzw.sane5.util.configuration"/> deserializer="org.apache.axis.encoding.ser.ArrayDeserializerFactory" serializer="org.apache.axis.encoding.ser.ArraySerializerFactory" type="java:your.special.class.package.Type[]" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" qname="ns1:TypeArray" xmlns:ns1="http://your.special.class.package"/> If you want this to work for all services then put it under the tag *not* in any service. If you want it only to work for a specific service, put it in that service's tag, which means you can put it in the service's WSDD file for when you deploy it. Hope this helps! Best, Ben -Original Message- From: Srinadh Karumuri [mailto:[EMAIL PROTECTED]] Sent: Monday, May 09, 2005 6:44 PM To: axis-user@ws.apache.org Subject: returning arrays of custom java objects I am a newbie to Axis1.1. I was able to return a custom object but couldn't figure out sending arrays of custom object across using the ArraySerializer. ___ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notifie
Re: wrapped and inout parameters
Hi, Here is some furthur information: The message I use is: If I remove the warning part then I get wrapped, but I want wrapped and the warning inout parameter. Regards, Patrick.On 5/11/05, Patrick Cogan <[EMAIL PROTECTED]> wrote: Hi Is it possible to have a wrapped service with inout parameters? If so how, as I haven't been able to do this. Regards, Patrick.
wrapped and inout parameters
Hi Is it possible to have a wrapped service with inout parameters? If so how, as I haven't been able to do this. Regards, Patrick.
no Deserilizer found for anySimpaleType
Good morning all, I ran the Axis program and got an error. The error was No Deserilizer found for anySimpaleType Sorry for the misunderstanding for the last email. Yixing
Re: calling web service method errors on call.invoke
Post the full error trace, we can help Bye Jaya On 5/11/05, Plorks mail <[EMAIL PROTECTED]> wrote: > > > Dear All > > I'm tring to call a method from a web service that doesn't accept parameters > > So i have this, but it errors on this line String result = > (String)call.invoke(new Object[]{}); > > Please can someone tell me where i'm going wrong > > Many Thanks > > try > { > URL endpoint = new URL("http://localhost:6822/Test/services/extService";); > Service service = new Service(); > Call call = (Call)service.createCall(); > call.setTargetEndpointAddress(endpoint); > call.setOperationName("myMethod"); > > SOAPHeaderElement element = new SOAPHeaderElement("", "HeaderName"); > element.setObjectValue(value); > call.addHeader(element); > String result = (String)call.invoke(new Object[]{}); > //call.invoke(); > > System.out.println("result is " +result); > } > > _ > Want to block unwanted pop-ups? Download the free MSN Toolbar now! > http://toolbar.msn.co.uk/ > > -- -- Jaya
Axis Fault : java.lang.reflect.InvocationTargetException - very very urgent
hi I have a set of webservices which are running fine on Tomcat 5.0.28 on WIndows XP[Test Environment]. THe service is to do some fetching from the progress 9.1D database. It is working perfectly. Now i have to move my code to the production environment which is tomcat 4.1.29 on HP-UNIX[installed tomcat for hp-ux] i just copied my webapps folder to the tomcat environment..first i had probs in accessing to the database...but i have resolved it..but now i get the following error...i have set the classpath for all the jars inside the webapps/My Folder/WEB-INF/lib...as far as i have read it is the problem of the jars or the classpath...does axis run on tomcat 4.1.29pls resolve but still it is not workingpls help me to solve this error ASAPit is very very urgent the error::: log4j:WARN No appenders could be found for logger (org.apache.axis.i18n.ProjectResourceBundle). log4j:WARN Please initialize the log4j system properly. AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:AMIRD java.lang.reflect.InvocationTargetException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:2 21) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:12 8) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationCo nte xt.java:1087) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.content(Unknown Source) at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source) at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source) at org.apache.crimson.parser.Parser2.parse(Unknown Source) at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext .ja va: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(HTTPSender.java:745 ) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:141) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.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:2754) at org.apache.axis.client.Call.invoke(Call.java:2737) at org.apache.axis.client.Call.invoke(Call.java:2413) at org.apache.axis.client.Call.invoke(Call.java:2336) at org.apache.axis.client.Call.invoke(Call.java:1793) at _26._0._0._65.AMIWebServices.services.NewClaimService.NewClaimServiceSoapBin din gStub.newClaimsCheck(NewClaimServiceSoapBindingStub.java:160) at client.ClaimClient.main(ClaimClient.java:35) thanks in advance harish
RE: calling web service method errors on call.invoke
Hi, it works fine for me. My setup is tomcat 5 axis 1.2RC3 windows 2000 java version "1.5.0_01" 0. I copied the axis directory into my tomcat webapps directory. 1. It contains an already deployed webservice Version with getVersion that has no input but returns a string. It's an rpc/encoded webservice. 2. I have attachmented my client. --- On Wed 05/11, Plorks mail < [EMAIL PROTECTED] > wrote: From: Plorks mail [mailto: [EMAIL PROTECTED] To: axis-user@ws.apache.org Date: Wed, 11 May 2005 10:42:14 + Subject: calling web service method errors on call.invoke Dear AllI'm tring to call a method from a web service that doesn't accept parametersSo i have this, but it errors on this line String result = (String)call.invoke(new Object[]{});Please can someone tell me where i'm going wrongMany Thankstry{URL endpoint = new URL("http://localhost:6822/Test/services/extService";);Service service = new Service();Call call = (Call)service.createCall();call.setTargetEndpointAddress(endpoint);call.setOperationName("myMethod");SOAPHeaderElement element = new SOAPHeaderElement("", "HeaderName");element.setObjectValue(value);call.addHeader(element);String result = (String)call.invoke(new Object[]{});//call.invoke();System.out.println("result is " +result);}_Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/ ___ Client.java Description: java/
web service call on JAAS
Hi there! Anyone already tried to call a webservice (with a axis stub) on a JAAS module? It seems that when the webservice is invoked I get a ClassCastException. Anyone had the same problem? I'm using Tomcat 5.0.28, with JAAS for authentication and Axis 1.2 RC3. Thanks.. --- Bruno Vg
calling web service method errors on call.invoke
Dear All I'm tring to call a method from a web service that doesn't accept parameters So i have this, but it errors on this line String result = (String)call.invoke(new Object[]{}); Please can someone tell me where i'm going wrong Many Thanks try { URL endpoint = new URL("http://localhost:6822/Test/services/extService";); Service service = new Service(); Call call = (Call)service.createCall(); call.setTargetEndpointAddress(endpoint); call.setOperationName("myMethod"); SOAPHeaderElement element = new SOAPHeaderElement("", "HeaderName"); element.setObjectValue(value); call.addHeader(element); String result = (String)call.invoke(new Object[]{}); //call.invoke(); System.out.println("result is " +result); } _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/
WSS: encrypt SOAPMsg by SessionKey of a KerberosServiceTicket problem ???
Hi all, According to Web Service Security Specification (OASIS), i'm building a package that use Kerberos Ticket to secure web service. WSS Spec indicates that we can use KerberosTicket embbed in SOAP Header to sign/encrypt SOAPMessage. Now i'm doing some works with encrypting a SOAMessage by KerberosTicket. I found that a SecretKey exchanged between client and kerberzied service is only 8 bytes length. But i wanna encrypt my SOAPmessage use tripleDes that need a SecretKey of 24bytes. I use XMLSecurity from Apache to sign/encrypt soapMsg and it supports tripleDes not DES. So any idea to solve my problem ? Creating a Secretkey for tripleDES derived from just 8byte sessionkey ? Any idea ? Best Regards and many thanks. Hoai Van <>
Re: XML Catalogs and Axis WSDL2Java
Hi, Ok, I've filed an enhancement request, and am working on a patch... Ellis. Davanum Srinivas wrote: Ellis, we don't support catalogs yet...please log an enhancement request. A patch would work even better. thanks, dims On 5/9/05, Ellis Pritchard <[EMAIL PROTECTED]> wrote: Hi, Is Axis XML Catalog aware? Specifically, can WSDL2Java use catalogs to resolve schema URIs? I'm developing a document/literal web-service and I need to have the xs:import/xs:include elements use a Catalog to resolve their URIs. (actually I've looked at the code for SymbolTable.java, and the answer would seem to be no, but am I missing something?) Ellis.
Using Call
Hello all Using the Call method is normally used client-side Is there a Call alternative to be used server-side ? Sorry for the thicko question Many thanks _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/
Re: Axis and JAX-RPC
I hadn't realized there were so many independent implementations of JAX-RPC. I'd thought that most of the app servers were using Axis-based implementations (certainly true of JBoss, and at least earlier versions of WAS). Thanks for clarifying. - Dennis Anne Thomas Manes wrote: There are lots of other JAX-RPC implementations. Every J2EE V1.4 compliant app service includes an implementation of JAX-RPC (WAS 6, WebLogic 8, Oracle 10g, JBoss, etc). In addition, Systinet and Cape Clear support JAX-RPC. Anne