Re: How to limit results in yahoo sample?
Hello Samisa, Yes you are right - the sample works as intended. Now, I have been trying to find why the following lines trigger a break point in the VC++ debugger: if (svc_client) { axis2_svc_client_free(svc_client, env); svc_client = NULL; } I get an exception and have to terminate the debug run. Regards, Yuva On 8/17/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Yuvaraj Athur Raghuvir wrote: Hello, I did the following based on documentation at [1] http://developer.yahoo.com/search/web/V1/webSearch.html results_node = axiom_node_create (env); results_element = axiom_element_create (env, root_node, results, NULL, results_node); axiom_element_set_text (results_element, env, 2, results_node); What you have done is correct. I tested with your changes to the yahoo sample and it works fine. I get an error : Builder done with pulling. Cannot pull any more. 1) What does this mean? This means that the XML builder is trying to pull more data but the stream has ended. 2) How should I limit the results? As I said what you have done is correct. What is the search string that you are using? Also what is the version of Axis2/C that you are using? Thanks, Samisa... Regards, Yuva [1] http://developer.yahoo.com/search/web/V1/webSearch.html -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Regarding use of Proxy and error thereof
Hello, When I use the axis2C as dlls from another process, and use proxy, I get the following error: Input stream is NULL in msg_ctx The log reveals a potential socket error: [Mon Aug 20 18:36:54 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\axis2c-src-1.0.0\src\core\engine\phase.c(195) Invoke the handler AddressingOutHandler within the phase MessageOut [Mon Aug 20 18:37:09 2007] [debug] ..\..\src\core\transport\http\sender\http_client.c(389) [axis2c] client data stream null or socket error [Mon Aug 20 18:37:09 2007] [error] ..\..\src\core\transport\http\sender\http_sender.c(528) status_code 0 [Mon Aug 20 18:37:09 2007] [debug] ..\..\src\core\transport\http\sender\http_transport_sender.c(566) OP name axutil_qname_get_localpart = http://www.w3.org/2004/08/wsdl/out-in [Mon Aug 20 18:37:27 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\axis2c-src-1.0.0\src\core\engine\engine.c(180) Axis2 engine send successful Is there something I need to do? Note that the same code (yahoo_client.c) works absolutely fine as a C program!! Regards, Yuva
Re: Regarding use of Proxy and error thereof
When I use the axis2C as dlls from another process, It's not clear to me what you mean by as dlls. and use proxy, I get the following error: Input stream is NULL in msg_ctx This is most likely due to the proxy setting in your axis2.xml being incorrect. Have you added the proxy parameter under the transportSender element in axis2.xml? If not, please refer to the axis2 manual [1]. HTH -Dumindu. [1] http://ws.apache.org/axis2/c/docs/axis2c_manual.html#proxy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Is AXIS2/C what I need?
Hi All, I am trying to build a web service application in c++, and now investigate to see if AXIS2/c can satisfy my needs. Specifically, I have the following requirements: (1) The library supports common web services standards like SOAP/HTTP/WSDL et cetera. I will use it to build a web service client application (web service consumer). (2) It should provides a rich set of APIs for me to traverse through a WSDL and make SOAP/HTTP calls. In particular, I need a WSDL parser so that I can parse a WSDL (given the WSDL file or the URL)to get the definitions. I DO NOT NEED TO CONVERT THE WSDL TO C++ code, just need to parse a WSDL to get the definitions, later on I will traverse the parsed objects to get the services, operations, messages and types (XML schemas) et cetera to build my only datastore for a given WSDL. This way I can dynamically handle different WSDLs in my application without generating the c++ code stubs every time. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? Thanks very much. Frank Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to limit results in yahoo sample?
Hello, 1) I discovered that for results parameter, the expectation is an integer. 2) There is no axiom_element_set_integer call available. 3) When I pass the value as a string from the scripting environment, I get an error that indicates that parameter is not right. 4) If I try to pass an integer, there is no matching signature. Any clues? Regards, Yuva On 8/20/07, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello Samisa, Yes you are right - the sample works as intended. Now, I have been trying to find why the following lines trigger a break point in the VC++ debugger: if (svc_client) { axis2_svc_client_free(svc_client, env); svc_client = NULL; } I get an exception and have to terminate the debug run. Regards, Yuva On 8/17/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Yuvaraj Athur Raghuvir wrote: Hello, I did the following based on documentation at [1] http://developer.yahoo.com/search/web/V1/webSearch.html results_node = axiom_node_create (env); results_element = axiom_element_create (env, root_node, results, NULL, results_node); axiom_element_set_text (results_element, env, 2, results_node); What you have done is correct. I tested with your changes to the yahoo sample and it works fine. I get an error : Builder done with pulling. Cannot pull any more. 1) What does this mean? This means that the XML builder is trying to pull more data but the stream has ended. 2) How should I limit the results? As I said what you have done is correct. What is the search string that you are using? Also what is the version of Axis2/C that you are using? Thanks, Samisa... Regards, Yuva [1] http://developer.yahoo.com/search/web/V1/webSearch.html -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services http://wso2.org/projects/wsf/c?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework/C%C2%A0-%C2%A0Open%C2%A0source%C2%A0C%C2%A0library%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP fault builder
Hey Nandika, Did you get a chance to look at my questions? I would really appreciate ur input on these. Thanks so much! Subra On 8/17/07, Subra A Narayanan [EMAIL PROTECTED] wrote: Hey Nandika, So I tried your suggestion but I have a doubt. I am just modifying the 'math' webservice from the samples folder. The 'add' operation returns a axiom_node_t * on success, which is nothing but the soap message. But I want to return a soap fault from the 'add'operation if lets say one of the parameters was missing from the request or it was a decimal number. If I follow what you asked me to do, what do I return from the add function? I have to return a axiom_node_t *? But from your email I thought you meant that if I set the soap fault to the message context, the soap fault will automatically be returned to the client. I dont understand how do I stop further processing and return a soap fault to the client. So I did some further digging in to the axis code and found this function in axiom_soap_envelope.h: AXIS2_EXTERN axiom_node_t* AXIS2_CALL axiom_soap_envelope_get_base_node(axiom_soap_envelope_t *envelope, constaxutil_env_t *env); so this gives me access to the soap fault message as a axiom_node_t*. And upon error in the 'add' operation, I just return it to the client. Is this the right way to do it? I am missing something here. Now one more important thing. When I call axiom_soap_envelope_get_base_node, it seems to returning a soap1.2 fault message rather than a soap1.1 message even though I set * *soapVersion = AXIOM_SOAP11; Why is that? Is there a way to get soap1.1 fault message? I hope my questions are clear. Thanks so much for your help! Subra On 8/17/07, Subra A Narayanan [EMAIL PROTECTED] wrote: Thanks Nandika. I will give it a shot. Have a good weekend! On 8/17/07, Nandika Jayawardana [EMAIL PROTECTED] wrote: Hi Subra, You can create a soap11 fault using following lines. int soap_version = AXIOM_SOAP11; soap_envelope = axiom_soap_envelope_create_default_soap_envelope (env, soap_version); soap_body = axiom_soap_envelope_get_body(soap_envelope, env); soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, fault code , fault reason , soap_version); axis2_msg_ctx_set_fault_soap_envelope(msg_ctx, env, soap_envelope); You can set the fault to the msg_ctx and it will be returned to the client. Regards Nandika On 8/17/07, Subra A Narayanan [EMAIL PROTECTED] wrote: Hello folks, I am trying ti build a SOAP1.1 fault and return to the ws client. I am having some difficulty understanding how to go about this. I have tryng to dig through the source code but was wondering if you guys have some sample code. If you have it that would be very helpful in understanding the usage. In the meantime I will continue to dig through the source code to try to understand. Thanks as usual! Subra -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: [AXIS2C] - problem in coding special signs in server answer
Dr. Florian Steinborn wrote: The problem still persists :-) I wanted to open a Jira but I did not know which topic to place it under. Please place under xml/om Thanks, Samisa... Regards, Flori On Thu, 09 Aug 2007 12:04:22 +0200, Dr. Florian Steinborn [EMAIL PROTECTED] wrote: Hi friends, I am sorry but we hit another error. When the server generates a webservice answer that contains special signs like this character is not converted to amp; as expected. Just imagine a company's name like Tools Co. - it would be transferred to the client exactly like this, as you can see in the tcpmon snippet: ns1:mndnameAK Co KG/ns1:mndname The parser on the client side fails as it interpretes as starter of a something; construct and does not expect the as next char after . The WS requests from the client to the server are formatted correctly , ns1:param1amp;amp;amp;/ns1:param1 Thanks for listening and greetings, Flori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] F. Steinborn [EMAIL PROTECTED] Dr. Brunthaler Industrielle Informationstechnik GmbH Motzstr. 5, D-10777 Berlin Fon: +49.30.215081-0, Fax: +49.30.215081-88 http://www.brunthaler.de Geschäftsführer: Prof. Dr.-Ing. Stefan Brunthaler Sitz der Gesellschaft: Berlin Handelsregister: HRB 27 337 Amtsgericht Charlottenburg -- Wir sind Mitglied des inilog Netzwerks - www.inilog.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 installation
Guys, is there an absolute guide to installing Axis 1.6? or is it better to install Axis 2? I've tried following the installation guide on many workstations of the same kind (WinXP Pro 32-bit/Intel P4 platform) and always get trouble with the parser :\ I even tried on Win2K platforms without success Any help would be really appreciated.. Thanks Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to limit results in yahoo sample?
Yuvaraj Athur Raghuvir wrote: Hello, 1) I discovered that for results parameter, the expectation is an integer. Yes, but when that is serialized to XML, the integer value would be sent as a string anyway. So when using OM, it is OK to use axiom_element_set_string with the value you want. 2) There is no axiom_element_set_integer call available. If you want to use data typing, then you have to use ADB (Axis2 Data Binding). To use ADB, you have to code generate with a WSDL using the ADB mode using the WSDL2C tool that comes with Axis2/Java. 3) When I pass the value as a string from the scripting environment, I get an error that indicates that parameter is not right. What you need to do here is to use an integer to string converter function and pass the resulting string to the AXIOM level. 4) If I try to pass an integer, there is no matching signature. OM model is based on text, because XML is text based. That is why we do not have a matching integer signature. If you want that, the proper way to do it is to use ADB mode, for which you need the WSDL and to code generate as well. For your requirement, I think it would be much easier to use the solution that I proposed in 3) above. Thanks, Samisa... Any clues? Regards, Yuva On 8/20/07, *Yuvaraj Athur Raghuvir* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello Samisa, Yes you are right - the sample works as intended. Now, I have been trying to find why the following lines trigger a break point in the VC++ debugger: if (svc_client) { axis2_svc_client_free(svc_client, env); svc_client = NULL; } I get an exception and have to terminate the debug run. Regards, Yuva On 8/17/07, *Samisa Abeysinghe * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Yuvaraj Athur Raghuvir wrote: Hello, I did the following based on documentation at [1] http://developer.yahoo.com/search/web/V1/webSearch.html results_node = axiom_node_create (env); results_element = axiom_element_create (env, root_node, results, NULL, results_node); axiom_element_set_text (results_element, env, 2, results_node); What you have done is correct. I tested with your changes to the yahoo sample and it works fine. I get an error : Builder done with pulling. Cannot pull any more. 1) What does this mean? This means that the XML builder is trying to pull more data but the stream has ended. 2) How should I limit the results? As I said what you have done is correct. What is the search string that you are using? Also what is the version of Axis2/C that you are using? Thanks, Samisa... Regards, Yuva [1] http://developer.yahoo.com/search/web/V1/webSearch.html -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services http://wso2.org/projects/wsf/c?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework/C%C2%A0-%C2%A0Open%C2%A0source%C2%A0C%C2%A0library%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP fault builder
You may find some information on generating Faults in this thread: http://www.nabble.com/-AXIS2C--throwing-an-exception-from-the-server-to-the-Java-client-tf3967397.html#a11299262 Thanks, Samisa... Subra A Narayanan wrote: Hey Nandika, Did you get a chance to look at my questions? I would really appreciate ur input on these. Thanks so much! Subra On 8/17/07, * Subra A Narayanan* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hey Nandika, So I tried your suggestion but I have a doubt. I am just modifying the 'math' webservice from the samples folder. The 'add' operation returns a axiom_node_t * on success, which is nothing but the soap message. But I want to return a soap fault from the 'add' operation if lets say one of the parameters was missing from the request or it was a decimal number. If I follow what you asked me to do, what do I return from the add function? I have to return a axiom_node_t *? But from your email I thought you meant that if I set the soap fault to the message context, the soap fault will automatically be returned to the client. I dont understand how do I stop further processing and return a soap fault to the client. So I did some further digging in to the axis code and found this function in axiom_soap_envelope.h: AXIS2_EXTERN axiom_node_t* AXIS2_CALL axiom_soap_envelope_get_base_node(axiom_soap_envelope_t *envelope, const axutil_env_t *env); so this gives me access to the soap fault message as a axiom_node_t*. And upon error in the 'add' operation, I just return it to the client. Is this the right way to do it? I am missing something here. Now one more important thing. When I call axiom_soap_envelope_get_base_node, it seems to returning a soap1.2 fault message rather than a soap1.1 message even though I set * *soapVersion = AXIOM_SOAP11; Why is that? Is there a way to get soap1.1 fault message? I hope my questions are clear. Thanks so much for your help! Subra On 8/17/07, * Subra A Narayanan* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks Nandika. I will give it a shot. Have a good weekend! On 8/17/07, *Nandika Jayawardana* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Subra, You can create a soap11 fault using following lines. int soap_version = AXIOM_SOAP11; soap_envelope = axiom_soap_envelope_create_default_soap_envelope (env, soap_version); soap_body = axiom_soap_envelope_get_body(soap_envelope, env); soap_fault = axiom_soap_fault_create_default_fault (env, soap_body, fault code , fault reason , soap_version); axis2_msg_ctx_set_fault_soap_envelope(msg_ctx, env, soap_envelope); You can set the fault to the msg_ctx and it will be returned to the client. Regards Nandika On 8/17/07, *Subra A Narayanan* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello folks, I am trying ti build a SOAP1.1 fault and return to the ws client. I am having some difficulty understanding how to go about this. I have tryng to dig through the source code but was wondering if you guys have some sample code. If you have it that would be very helpful in understanding the usage. In the meantime I will continue to dig through the source code to try to understand. Thanks as usual! Subra -- [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com -- Samisa Abeysinghe : WSO2 WSF/C http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't store information in configuration context
Jorge Fernandez wrote: Hi all, I'm trying to store some information in properties element in configuration context so I can access it from any service instance but each time a client opens a session, this information dissapears. Well its depend on the way you create the ServiceClient , if you create a ServiceClient with its default constructor then for each invocation new ConfigurationContext (CC) will be created. If you want to share the same CC then you have to create ServiceClient with one CC. Why is this happening? Is Configuration Context restored every time a client opens a session? In the Server side the answer is no , it uses only one CC throughout the lifetime of the system. In startUp method, I'm doing this: confContext.setProperty(serviceLogger,serviceLogger); confContext.setProperty(validatedSystems,new HashMap()); confContext.setProperty(validatedUsers,new HashMap()); ((HashMap)confContext.getProperty(validatedSystems)).put(hola, adios); So when a user validates I store an entry for him in validatedUsers and another entry in validatedSystem for the corresponding system but when a new client logins, those entries are cleaned, validatedUsers is empty and validatedSystems has the element I stored in startUp method as a test. Please, can anybody help me with this? Thanks, Jorge Fernández Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
too many connections openned...
Hi guru When using the axis2 stub generated by wsdl2java, do I need to remember to close the connection after calling the stub function? Example: Stub function: searchResponse = oneStub.searchForNumber(...) // try to call close here? -- generated stub --- in searchForNumber() { _operationClient.execute(true); // process response ... } While I run 6 copy of the clients, I found there are so many connection hanging in the client as well as server: Server 1 CLOSING 1 LISTEN 23 ESTABLISHED 24 TIME_WAIT 41 SYN_RCVD 100 FIN_WAIT_2 482 FIN_WAIT_1 Client (15080 is the server port) $netstat |awk '/15080/ {print $4}' |sort |uniq -c |sort -n 4 FIN_WAIT_2 6 SYN_SENT 397 CLOSE_WAIT 928 TIME_WAIT 1372 ESTABLISHED All client time out at the end: org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com monsHTTPTransportSender.java:221) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO peration.java:330) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx isOperation.java:294) ... Thank in advanced! Regards Rex Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search. Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz
Re: When is 'public void destroy(ServiceContext serviceContext) {...}' called?
Hi Jochen Hello again, I got a little question concerning the method public void destroy(ServiceContext serviceContext) inside a service-class. - When I have my service scope set to request - Is it right that this Method will never be called? I expected it to be called whatever scope is set.. Is it advisable to let my service implementation call this method on their own? Well , Axis2 does not call destroy method when you deploy a service in request scope by design. In the meantime , when we deploy a service in request scope , we really do not need to do any session management stuff. So I think it is ok not to call the method. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Graphics2D in Axis2 Handler
Hi all, Currently I try to modify the standard Axis2 Handlers to resize the image automatically. However, when I using the Graphics2D inside the Axis2 Handler, they cannot link the library or something like that. This is the stack trace from the Tomcat server: Exception in thread Image Fetcher 0 java.lang.UnsatisfiedLinkError: no jpeg in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.image.JPEGImageDecoder.clinit(JPEGImageDecoder.java:39) at sun.awt.image.InputStreamImageSource.getDecoder(InputStreamImageSource.java:214) at sun.awt.image.ByteArrayImageSource.getDecoder(ByteArrayImageSource.java:41) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1173) at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:146) at sun.awt.FontConfiguration.init(FontConfiguration.java:71) at sun.awt.windows.WFontConfiguration.init(WFontConfiguration.java:23) at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Win32GraphicsEnvironment.java:256) at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:105) at sun.awt.Win32GraphicsEnvironment.init(Win32GraphicsEnvironment.java:70) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135) at org.apache.axis2.handler.module.imageProcessor.ImageProcessorHandler.invoke(ImageProcessorHandler.java:93) at org.apache.axis2.engine.Phase.invoke(Phase.java:382) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:48) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:619) And this is the code that I use to call the Axis2 services: log.info(1); BufferedImage thumbImage = new BufferedImage(thumbWidth, thumbHeight,
Re: BeanUtil Potentials
Periklis Tsirakidis wrote: Hi, i am trying to figure out how powerful the BeanUtil is and read couple of articles on the net, as well as the article on wso2.org. The BeanUtil class is as far as i understood the api from the java-docs able to create an OMElement from a bean and also deserialize an OMElement to Bean. Unfortunately i found only examples where the beans are quite simple with properties of the set of primitives datatypes. Is BeanUtil then also able to handle a nested object structure like this: Sheet (Sheet.java) --- name --- date --- List of Sections (Section.java) - Section 1 List of Positions (Position.java) . . . - Section n If not, what i assume, what is the best practice with axis to expose such a bean in a service? yes , it does support that . Why don't you write a sample application and see what happen ? Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Originating IP Address
Swavek Skret wrote: Hello, I have a multiple IP addresses on my deployment computer and bind Tomcat to one of the virtual IP addresses (server.xml file address attribute for Http Connector). This setting defines the inbound routing: only the virtual IP address destined traffic gets to Tomcat. However any traffic originating from my axis2 application deployed on Tomcat has the originating IP address of physical IP address of my deployment computer and not the virtual IP address. Does anyone know how to configure the originating IP address of the outbound traffic to be that of the virtual Add the following parameter into axis2.xml with the value you want , then it will generate the correct address. parameter name=hostname locked=truemyhost.com/parameter Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Graphics2D in Axis2 Handler
Is that something to do with missing library file ? If so please try to put th .jar file into TOMCAT_HOME/webapps/axis2/WEB-INF/lib Thanks Deepal Hi all, Currently I try to modify the standard Axis2 Handlers to resize the image automatically. However, when I using the Graphics2D inside the Axis2 Handler, they cannot link the library or something like that. This is the stack trace from the Tomcat server: Exception in thread Image Fetcher 0 java.lang.UnsatisfiedLinkError: no jpeg in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.image.JPEGImageDecoder.clinit(JPEGImageDecoder.java:39) at sun.awt.image.InputStreamImageSource.getDecoder(InputStreamImageSource.java:214) at sun.awt.image.ByteArrayImageSource.getDecoder(ByteArrayImageSource.java:41) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1173) at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:146) at sun.awt.FontConfiguration.init(FontConfiguration.java:71) at sun.awt.windows.WFontConfiguration.init(WFontConfiguration.java:23) at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Win32GraphicsEnvironment.java:256) at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:105) at sun.awt.Win32GraphicsEnvironment.init(Win32GraphicsEnvironment.java:70) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135) at org.apache.axis2.handler.module.imageProcessor.ImageProcessorHandler.invoke(ImageProcessorHandler.java:93) at org.apache.axis2.engine.Phase.invoke(Phase.java:382) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:48) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:619) And this is the code that I use to call the Axis2 services:
Re: too many connections openned...
hi Zoe, Please create a JIRA, in the meantime try to do the following stub._getServiceClient().cleanupTransport(); Thanks Deepal Hi guru When using the axis2 stub generated by wsdl2java, do I need to remember to close the connection after calling the stub function? Example: Stub function: searchResponse = oneStub.searchForNumber(...) // try to call close here? -- generated stub --- in searchForNumber() { _operationClient.execute(true); // process response ... } While I run 6 copy of the clients, I found there are so many connection hanging in the client as well as server: Server 1 CLOSING 1 LISTEN 23 ESTABLISHED 24 TIME_WAIT 41 SYN_RCVD 100 FIN_WAIT_2 482 FIN_WAIT_1 Client (15080 is the server port) $netstat |awk '/15080/ {print $4}' |sort |uniq -c |sort -n 4 FIN_WAIT_2 6 SYN_SENT 397 CLOSE_WAIT 928 TIME_WAIT 1372 ESTABLISHED All client time out at the end: org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com monsHTTPTransportSender.java:221) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO peration.java:330) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx isOperation.java:294) ... Thank in advanced! Regards Rex Luggage? GPS? Comic books? Check out fitting gifts for grads http://us.rd.yahoo.com/evt=48249/*http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz at Yahoo! Search. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems using XMLBeans (xsi:type missing)
Hello, I created a webservice (from wsdl) using XMLBeans binding. Short before finishing the project I run into a problem with the XML binding. The wsdl describes some abstract complex_types and specific elements in a different namespace. When using XMLBeans the xsi:type is suppressed. E.g. when creating a query like this QueryDocument query = QueryDocument.Factory.newInstance(); QueryParameter par = query.addNewQuery(); ExplicitItemQuery start = ExplicitItemQuery.Factory.newInstance(); start.setName( test ); par.setQuery( start ); the resulting xml is query xmlns=urn:space.eads.net/ssrm/services/parameter xmlns:spec=urn:space.eads.net/ssrm/services/specificQuery query spec:nametest/spec:name /query /query Using the equivalent ADB code results in ns4:query xmlns:ns4=urn:space.eads.net/ssrm/services/parameter ns4:query xmlns:ns6=urn:space.eads.net/ssrm/services/specificQuery xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:type=ns6:Explicit_item_query ns6:nametest/ns6:name /ns4:query /ns4:query where the xsi:type contains the right type. Is there a way to persuade XMLBeans to use the xsi:type ? A change from XMLBeans to ADB would take some time ... Bye, Carsten ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2: Configure Axis dynamicly (SpringAware)
Hi, I would like hear if it some how is possible to configure Axis2 dynamic as the following in my service descriptor. serviceGroup service name=MyService parameter name=ServiceObjectSupplier org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier /parameter parameter name=SpringBeanNamemyService/parameter operation name=getJob messageReceiver class= org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation operation name=setStatus messageReceiver class= org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver / /operation /service /serviceGroup I now it is possible configure Axis2 dynamic with ordinary services using AxisService.createService(...), but how do I do it with Spring enabled services? //Configure Axis2 dynamic without spring support. MapString, MessageReceiver mep = new HashMapString, MessageReceiver(); mep.put(http://www.w3.org/2004/08/wsdl/in-only;, RPCInOnlyMessageReceiver. class.newInstance()); mep.put(http://www.w3.org/2004/08/wsdl/in-out;, RPCMessageReceiver.class .newInstance()); ConfigurationContext config = ConfigurationContextFactory. createConfigurationContextFromFileSystem(null,null); AxisService service = AxisService.createService(MyService.class, config.getAxisConfiguration(), mep, null, null, BufferFactory.class .getClassLoader()); config.getAxisConfiguration().addService(service); Regards Multi-Support A/S Torben Riis Phone +45 96 600 600, Fax +45 96 600 601 E-mail: [EMAIL PROTECTED] http://www.multi-support.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 client minimum jar set
Hello. Can any one please tell me if there is a document indicating what is the minimum jar set required to run axis2 (1.2 or 1.3) as a client. I must deploy a very simple web service client, but if I add all jar files in the distribution lib it will take up to 13MB with axis2 1.2 and 18MB with axis2 1.3 which seems too much for such a small web service. Thanks in advance. Cheers Felipe This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using Graphics2D in Axis2 Handler
I think it's not the missing library because the java.awt is a standard library. I try to copy the standard jar file to the axis2 library but the problem is still there. Could any help me with this? Thanks for your help anyway. Deepal Deepal Jayasinghe wrote: Is that something to do with missing library file ? If so please try to put th .jar file into TOMCAT_HOME/webapps/axis2/WEB-INF/lib Thanks Deepal Hi all, Currently I try to modify the standard Axis2 Handlers to resize the image automatically. However, when I using the Graphics2D inside the Axis2 Handler, they cannot link the library or something like that. This is the stack trace from the Tomcat server: Exception in thread Image Fetcher 0 java.lang.UnsatisfiedLinkError: no jpeg in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.image.JPEGImageDecoder.clinit(JPEGImageDecoder.java:39) at sun.awt.image.InputStreamImageSource.getDecoder(InputStreamImageSource.java:214) at sun.awt.image.ByteArrayImageSource.getDecoder(ByteArrayImageSource.java:41) at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:240) at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172) at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136) java.lang.NullPointerException at sun.awt.FontConfiguration.getVersion(FontConfiguration.java:1173) at sun.awt.FontConfiguration.readFontConfigFile(FontConfiguration.java:146) at sun.awt.FontConfiguration.init(FontConfiguration.java:71) at sun.awt.windows.WFontConfiguration.init(WFontConfiguration.java:23) at sun.awt.Win32GraphicsEnvironment.createFontConfiguration(Win32GraphicsEnvironment.java:256) at sun.java2d.SunGraphicsEnvironment$1.run(SunGraphicsEnvironment.java:197) at java.security.AccessController.doPrivileged(Native Method) at sun.java2d.SunGraphicsEnvironment.init(SunGraphicsEnvironment.java:105) at sun.awt.Win32GraphicsEnvironment.init(Win32GraphicsEnvironment.java:70) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at java.lang.Class.newInstance0(Class.java:355) at java.lang.Class.newInstance(Class.java:308) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at java.awt.image.BufferedImage.createGraphics(BufferedImage.java:1135) at org.apache.axis2.handler.module.imageProcessor.ImageProcessorHandler.invoke(ImageProcessorHandler.java:93) at org.apache.axis2.engine.Phase.invoke(Phase.java:382) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:655) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:48) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
AW: Using Graphics2D in Axis2 Handler
Hello, perhaps your problem is completly different. If you run java.awt.* things with a headless server context, you need to tell awt that there is no display to attach to. Try setting the java system environment java.awt.headless to true on the server side, e.g. by modifiying the start script to contain java -cp ... -Djava.awt.headless=true Bye, Carsten PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: can't store information in configuration context
Hi Deepal, My problem was on server side. Each time a client opened a session, properties were cleaned and the only information I could see was the one I stored in startUp. At this moment is working ok. Don't know why yesterday it didn't work because I haven't changed anything. If instead of storing that information in configurationContext, I do it in serviceContext or serviceGroupContext, do all the clients of the service have access to the same serviceContext (or serviceGroupContext) ? I though it was like this but I didn't get the results I expected. Thanks, Jorge Fernández Deepal jayasinghe [EMAIL PROTECTED] escribió: Jorge Fernandez wrote: Hi all, I'm trying to store some information in properties element in configuration context so I can access it from any service instance but each time a client opens a session, this information dissapears. Well its depend on the way you create the ServiceClient , if you create a ServiceClient with its default constructor then for each invocation new ConfigurationContext (CC) will be created. If you want to share the same CC then you have to create ServiceClient with one CC. Why is this happening? Is Configuration Context restored every time a client opens a session? In the Server side the answer is no , it uses only one CC throughout the lifetime of the system. In startUp method, I'm doing this: confContext.setProperty(serviceLogger,serviceLogger); confContext.setProperty(validatedSystems,new HashMap()); confContext.setProperty(validatedUsers,new HashMap()); ((HashMap)confContext.getProperty(validatedSystems)).put(hola, adios); So when a user validates I store an entry for him in validatedUsers and another entry in validatedSystem for the corresponding system but when a new client logins, those entries are cleaned, validatedUsers is empty and validatedSystems has the element I stored in startUp method as a test. Please, can anybody help me with this? Thanks, Jorge Fernández Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Sé un Mejor Viajero ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! .
Eclipse WTP
Hi, I'm trying to create a web service from my Java Class, but I get this error: The method init on the service class ws.impl.ZoneServiceImpl uses a data type, java.lang.Object, that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. * import* org.springframework.remoting.jaxrpc.ServletEndpointSupport; public class ws.impl.ZoneServiceImpl extends ServletEndpointSupport implements ZoneService{ . } Can I generate a web service from a java class that extends ServletEndpointSupport ? Regards, Steve
classpath error
Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, buti have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanksGot a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Transfer-Encoding: chunked in axis 1.3
Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve
Re: Transfer-Encoding: chunked in axis 1.3
http://wso2.org/library/952 Hope this helps. Upul On 8/20/07, sjtirtha [EMAIL PROTECTED] wrote: Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve
Re: classpath error
Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. Upul On 8/20/07, shams jawaid [EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks -- Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transfer-Encoding: chunked in axis 1.3
Thanks for the links. But I use Axis 1.3. Can I also disable http chunking in Axis 1.3 ? Steve On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: http://wso2.org/library/952 Hope this helps. Upul On 8/20/07, sjtirtha [EMAIL PROTECTED] wrote: Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve
Re: classpath error
i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2;import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From:"Upul Godage" [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:Re: classpath errorDate:Mon, 20 Aug 2007 16:56:06 +0530 Hi,You could send something about what you tried to do and most importantly errors, exception stack trace you got.Upul On 8/20/07, shams jawaid [EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, buti have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Loading webservis initialization data
I wonder if there is a way to provide for webservice a similar to servlet init() method. I would like to load a file allong with the initialization of webservis. Now i do that by using an external servlet and register it in servlet context but i am affraid that this solution will not be efficient for fast object reference. I must point that I need acces to the object as fast as possible, and most of all the referenced object will be synchronized. I have also thought of ensuring the heap memory size for the large resource inside the Axis2 message context? Is there any known restriction. Regards, Mariusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with MTOM
Hi All, I am new to AXIS 2 and trying to implement a small web service application which uses MTOM attachment. In my simple web service application, I have an operation called 'echoText()' which expects a text file as MTOM attachment as request parameter to this operation. In return this method simply echo the text contained in the attached file. public interface ServiceInreface { String echoText(String name); } My question is: how can I inform the Java2wsld ant task that the string request parameter to my web service operation expects a MTOM attachment inside it. Thus the WSDL generated should have an entry like this wsdl:types xs:schema attributeFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema .. xs:import namespace=http://www.w3.org/2005/05/xmlmime; schemaLocation=xsd0.xsd/ !-This I have taken from MTOM sample folder-- xs:element name=echoText xs:complexType xs:sequence xs:element name=param0 nillable=true type=xs:string/ xs:element minOccurs=0 name=binaryData type=xmime:base64Binary/ /xs:sequence Instead of wsdl:types xs:schema attributeFormDefault=qualified xmlns:xs=http://www.w3.org/2001/XMLSchema . ... ... ... ... ... ... .. xs:import namespace=http://www.w3.org/2005/05/xmlmime; schemaLocation=xsd0.xsd/ xs:element name=echoText xs:complexType xs:sequence xs:element name=param0 nillable=true type=xs:string/ /xs:sequence Please help me to understand this. Thanks and Regards, Ashish
Re: classpath error
You need axis2-kernel-1.1.1.jar (or maybe the name 1.1.1 part will be a little different if you're using a different version). How are you compiling? Are you using Eclipse or some IDE, or are you running javac from the command line? Andrew shams jawaid wrote: i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2; import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From: /Upul Godage [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 16:56:06 +0530/ Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. Upul On 8/20/07, *shams jawaid * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail http://g.msn.com/8HMAENUK/2749??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Martin Computer Programmer Regenstrief Institute, Inc. 410 West 10th Street, Suite 2000 Indianapolis, IN 46202-3012 Phone: (317) 423-5542 Fax: (317) 423-5695 [EMAIL PROTECTED] Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath error
iv put the axis2 kernel jar into the classpath, im using bluej at the moment. should that make a difference? From:Andrew Martin [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:Re: classpath errorDate:Mon, 20 Aug 2007 07:53:48 -0400You need axis2-kernel-1.1.1.jar (or maybe the name "1.1.1" part will bea little different if you're using a different version).How are you compiling?Are you using Eclipse or some IDE, or are yourunning javac from the command line?Andrewshams jawaid wrote: i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2; import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From:/"Upul Godage" [EMAIL PROTECTED]/ Reply-To:/axis-user@ws.apache.org/ To:/axis-user@ws.apache.org/ Subject:/Re: classpath error/ Date:/Mon, 20 Aug 2007 16:56:06 +0530/ Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. UpulOn 8/20/07, *shams jawaid * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail http://g.msn.com/8HMAENUK/2749??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--Andrew MartinComputer ProgrammerRegenstrief Institute, Inc.410 West 10th Street, Suite 2000Indianapolis, IN 46202-3012Phone: (317) 423-5542Fax: (317) 423-5695[EMAIL PROTECTED]Confidentiality Notice: The contents of this message and any filestransmitted with it may contain confidential and/or privilegedinformation and are intended solely for the use of the namedaddressee(s). Additionally, the information contained herein may havebeen disclosed to you from medical records with confidentialityprotected by federal and state laws. Federal regulations and State lawsprohibit you from making further disclosure of such information withoutthe specific written consent of the person to whom the informationpertains or as otherwise permitted by such regulations. A generalauthorization for the release of medical or other information is notsufficient for this purpose.If you have received this message in error, please notify the sender byreturn e-mail and delete the original message. Any retention,disclosure, copying, distribution or use of this information by anyoneother than the intended recipient is strictly prohibited.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: classpath error
It shouldn't matter what you're using. If you were using software that I use, I'd be able to tell if you were setting up the classpath correctly. I don't know anything about BlueJ, though. I didn't even know that it was an IDE the first time that you mentioned it. If you can't even compile, it might be more of a BlueJ issue than Axis2. Maybe you should see if they have a mailing list or some kind of support. The kernel jar definitely has those packages. Andrew shams jawaid wrote: iv put the axis2 kernel jar into the classpath, im using bluej at the moment. should that make a difference? From: /Andrew Martin [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 07:53:48 -0400/ You need axis2-kernel-1.1.1.jar (or maybe the name 1.1.1 part will be a little different if you're using a different version). How are you compiling? Are you using Eclipse or some IDE, or are you running javac from the command line? Andrew shams jawaid wrote: i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2; import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From: /Upul Godage [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 16:56:06 +0530/ Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. Upul On 8/20/07, *shams jawaid * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail http://g.msn.com/8HMAENUK/2749??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Martin Computer Programmer Regenstrief Institute, Inc. 410 West 10th Street, Suite 2000 Indianapolis, IN 46202-3012 Phone: (317) 423-5542 Fax: (317) 423-5695 [EMAIL PROTECTED] Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying,
Re: classpath error
so what software do you recommend in which you can check the classpath ? From:Andrew Martin [EMAIL PROTECTED]Reply-To:axis-user@ws.apache.orgTo:axis-user@ws.apache.orgSubject:Re: classpath errorDate:Mon, 20 Aug 2007 08:09:53 -0400It shouldn't matter what you're using.If you were using software thatI use, I'd be able to tell if you were setting up the classpathcorrectly.I don't know anything about BlueJ, though.I didn't evenknow that it was an IDE the first time that you mentioned it.If you can't even compile, it might be more of a BlueJ issue than Axis2.Maybe you should see if they have a mailing list or some kind ofsupport.The kernel jar definitely has those packages.Andrewshams jawaid wrote: iv put the axis2 kernel jar into the classpath, im using bluej at the moment. should that make a difference? From:/Andrew Martin [EMAIL PROTECTED]/ Reply-To:/axis-user@ws.apache.org/ To:/axis-user@ws.apache.org/ Subject:/Re: classpath error/ Date:/Mon, 20 Aug 2007 07:53:48 -0400/ You need axis2-kernel-1.1.1.jar (or maybe the name "1.1.1" part will be a little different if you're using a different version). How are you compiling?Are you using Eclipse or some IDE, or are you running javac from the command line? Andrew shams jawaid wrote: i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2; import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From:/"Upul Godage" [EMAIL PROTECTED]/ Reply-To:/axis-user@ws.apache.org/ To:/axis-user@ws.apache.org/ Subject:/Re: classpath error/ Date:/Mon, 20 Aug 2007 16:56:06 +0530/ Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. Upul On 8/20/07, *shams jawaid * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575- To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail http://g.msn.com/8HMAENUK/2749??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Martin Computer Programmer Regenstrief Institute, Inc. 410 West 10th Street, Suite 2000 Indianapolis, IN 46202-3012 Phone: (317) 423-5542 Fax: (317) 423-5695 [EMAIL PROTECTED] Confidentiality Notice: The contents of this message and any files transmitted with it may contain confidential and/or privileged information and are intended solely for the use of the named addressee(s). Additionally, the information contained herein may have been disclosed to you from medical records with confidentiality protected by federal and state laws. Federal regulations and State laws prohibit you from making further disclosure of such information without the specific written consent of the person to whom the information pertains or as otherwise permitted by such regulations. A general authorization for the release of medical or other information is not sufficient for this purpose. If you have received this message in error, please notify the sender by return e-mail and delete the original message. Any retention, disclosure, copying, distribution or use of this information by anyone other than the intended recipient is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMBENUK/2734??PS=47575 - To unsubscribe, e-mail:
Re: classpath error
I use Eclipse 3.2.2 for Java development. Here's how I add jars: Right-click on my project name. Click Properties. Click Java Build Path. Click the Libraries tab. Click Add External JARs Find the jar. Click Open. Click OK. Andrew shams jawaid wrote: so what software do you recommend in which you can check the classpath ? From: /Andrew Martin [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 08:09:53 -0400/ It shouldn't matter what you're using. If you were using software that I use, I'd be able to tell if you were setting up the classpath correctly. I don't know anything about BlueJ, though. I didn't even know that it was an IDE the first time that you mentioned it. If you can't even compile, it might be more of a BlueJ issue than Axis2. Maybe you should see if they have a mailing list or some kind of support. The kernel jar definitely has those packages. Andrew shams jawaid wrote: iv put the axis2 kernel jar into the classpath, im using bluej at the moment. should that make a difference? From: /Andrew Martin [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 07:53:48 -0400/ You need axis2-kernel-1.1.1.jar (or maybe the name 1.1.1 part will be a little different if you're using a different version). How are you compiling? Are you using Eclipse or some IDE, or are you running javac from the command line? Andrew shams jawaid wrote: i am trying to connnect two web services by calling a stub. i have a java file of one web service, in which i try to call a stub of another web service. i am using bluej, and i import packages : import org.apache.axis2; import org.apache.axis2.client; but when i try to compile, it says packages org.apache does not exist From: /Upul Godage [EMAIL PROTECTED]/ Reply-To: /axis-user@ws.apache.org/ To: /axis-user@ws.apache.org/ Subject: /Re: classpath error/ Date: /Mon, 20 Aug 2007 16:56:06 +0530/ Hi, You could send something about what you tried to do and most importantly errors, exception stack trace you got. Upul On 8/20/07, *shams jawaid * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi , does any one know how to solve a 'org.apache' package not found error, i was told it was a classpath error and needed to put some jar files into the classpath, but i have done that and still no result. maybe there are specific jar files that need to be added to the classpath, does anyone know what they could be ? thanks Got a favourite clothes shop, bar or restaurant? Share your local knowledge with BackOfMyHand.com http://g.msn.com/8HMAENUK/2734??PS=47575 - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] The next generation of Hotmail is here - Windows Live Hotmail http://g.msn.com/8HMAENUK/2749??PS=47575
RE: Transfer-Encoding: chunked in axis 1.3
try with this code. cheers Felipe Options options = new Options(); options.setProperty(HTTPConstants.CHUNKED,false); serviceClient.setOptions(options); From: sjtirtha [mailto:[EMAIL PROTECTED] Sent: Monday 20 August 2007 13:27 To: axis-user@ws.apache.org Subject: Re: Transfer-Encoding: chunked in axis 1.3 Thanks for the links. But I use Axis 1.3. Can I also disable http chunking in Axis 1.3 ? Steve On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: http://wso2.org/library/952 Hope this helps. Upul On 8/20/07, sjtirtha [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender.
Re: Transfer-Encoding: chunked in axis 1.3
You mean by this code. That I write this in the client program. but I don't have any access to the client source code. Can I just deactivate this function in axis ? I found this mail: http://marc.info/?l=axis-userm=118658006608827w=2 It seems to be the solution for my problem. But I don't find, how to set my Servlet Container to use only HTTP 1.0 Steve On 8/20/07, DOMINGUEZ Felipe [EMAIL PROTECTED] wrote: try with this code. cheers Felipe Options options = new Options(); options.setProperty(HTTPConstants.CHUNKED,false); serviceClient.setOptions(options); -- *From:* sjtirtha [mailto:[EMAIL PROTECTED] *Sent:* Monday 20 August 2007 13:27 *To:* axis-user@ws.apache.org *Subject:* Re: Transfer-Encoding: chunked in axis 1.3 Thanks for the links. But I use Axis 1.3. Can I also disable http chunking in Axis 1.3 ? Steve On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: http://wso2.org/library/952 Hope this helps. Upul On 8/20/07, sjtirtha [EMAIL PROTECTED] wrote: Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender.
Re: Axis2: Configure Axis dynamicly (SpringAware)
Using SpringAppContextAwareObjectSupplier, you have the option of using the the same ApplicationContextHolder class that axis2 uses. Also, take a look at the AbstractMessageReceiver, ie, looking at the source in this part of axis2 should point you in the right direction. HTH, Robert On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I would like hear if it some how is possible to configure Axis2 dynamic as the following in my service descriptor. serviceGroup service name=MyService parameter name=ServiceObjectSupplier org.apache.axis2.extensions.spring.receivers.SpringAppContextAwareObjectSupplier /parameter parameter name=SpringBeanNamemyService/parameter operation name=getJob messageReceiver class= org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation operation name=setStatus messageReceiver class= org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver / /operation /service /serviceGroup I now it is possible configure Axis2 dynamic with ordinary services using AxisService.createService(...), but how do I do it with Spring enabled services? //Configure Axis2 dynamic without spring support. MapString, MessageReceiver mep = new HashMapString, MessageReceiver(); mep.put(http://www.w3.org/2004/08/wsdl/in-only;, RPCInOnlyMessageReceiver. class.newInstance()); mep.put(http://www.w3.org/2004/08/wsdl/in-out;, RPCMessageReceiver.class .newInstance()); ConfigurationContext config = ConfigurationContextFactory. createConfigurationContextFromFileSystem(null,null); AxisService service = AxisService.createService(MyService.class, config.getAxisConfiguration(), mep, null, null, BufferFactory.class .getClassLoader()); config.getAxisConfiguration().addService(service); Regards Multi-Support A/S Torben Riis Phone +45 96 600 600, Fax +45 96 600 601 E-mail: [EMAIL PROTECTED] http://www.multi-support.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Transfer-Encoding: chunked in axis 1.3
Hi, Do you create some stub to consume the webservice? The code which Felipe gave, or : Operation client.getOptions().setProperty(org.apache.axis2.transport.http.HTTPConstants.CHUNKED, Boolean.FALSE); in the stub does help setting the Transfer Encoding to be false and solves the problem between HTTP 1.1 and 1.0. Thanks Pushkar sjtirtha wrote: You mean by this code. That I write this in the client program. but I don't have any access to the client source code. Can I just deactivate this function in axis ? I found this mail: http://marc.info/?l=axis-userm=118658006608827w=2 It seems to be the solution for my problem. But I don't find, how to set my Servlet Container to use only HTTP 1.0 Steve On 8/20/07, DOMINGUEZ Felipe [EMAIL PROTECTED] wrote: try with this code. cheers Felipe Options options = new Options(); options.setProperty(HTTPConstants.CHUNKED,false); serviceClient.setOptions(options); -- *From:* sjtirtha [mailto:[EMAIL PROTECTED] *Sent:* Monday 20 August 2007 13:27 *To:* axis-user@ws.apache.org *Subject:* Re: Transfer-Encoding: chunked in axis 1.3 Thanks for the links. But I use Axis 1.3. Can I also disable http chunking in Axis 1.3 ? Steve On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: http://wso2.org/library/952 Hope this helps. Upul On 8/20/07, sjtirtha [EMAIL PROTECTED] wrote: Hi, how can I deactivate Transfer-Encoding: chunked in Axis 1.3 ? I get always response message with Transfer-Encoding: chunked in header. And my ws client can not parse this response message. Steve This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy. Any views expressed in this message are those of the sender. -- View this message in context: http://www.nabble.com/Transfer-Encoding%3A-chunked-in-axis-1.3-tf4298234.html#a12235531 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Access my server url with skeleton
Hello, how on earth ( especially within Axis2) could I access the url of the server within the skeleton code ? Thanks, Carsten ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using object lists for interop between axis2 and .NET
Hi, I am trying to send a list of user defined objects across .NET and Axis2 web services and cleints(Java client for .NET service and C# client for Axis2 service). I havent done much ground work on this, but I tried passing ArrayLists and that doesnt work. I think using HashMaps may work, but C# apparently doesnt have HashMaps. Does using HashTables work. If someone has tried it out, can you please tell me if it works? Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12235665 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.3: Classloading Issue with WEB-INF/lib jars in aar
Hi Ants, thank you for your help, but our classloading problems don't think to be so similar, because the classes i am trying to load are for sure not in WEB-INF/lib. This classes are part of an third party sofware. This Third-Party software is using their own old version of xerces and cocoon, so i am loading them into the aar, so that the Axis2-Xerces is not getting mixed with the old one of the Third-Party libraries. The mysterious thing now is that i put all the third party jars in my service's lib directory (without nested jars) and every workaround of loading one of the classes of this jar through one of the possible Classloader isn't working. But instantiation of this classes directly in my Service implementation class is possible, just not classloading. As far as my small know-how about Axis2 goes, the service has his own classloader and in the deployment phase it loads with this exactly classloader the service's libraries under the service's lib directory. *frustating* Periklis On Sunday 19 August 2007, Anthony Bull wrote: Hi Periklis, I had a lot of similar classpath issues with Axis 2 1.2 recently and managed to sort them out. I tried all the tricks like exploding the .aar file, but in the end none of it was necessary. My .aar file is the same structure as yours - and I'm using the following to load my log4j.properties using the service classloader: ServiceSkeleton.class.getClassLoader().getResourceAsStream( log4j.properties); This picks up the class file from the root of my .aar file, fine. The main thing that was causing me problems was that some of the classes I was trying to load (e.g. Log4j.jar in particular) were also in jars or the classes area of the main axis2/WEB-INF area as well as being in the .aar files. Axis 2 was picking them up before looking in my .aar files and then loading them with a different classloader - hence my service wouldn't load them, but it would still get Class Def Not Found errors. Simply clearing these jars out of the axis2/WEB-INF/lib folder fixed this all up for me. cheers, Ants. Periklis Tsirakidis wrote: I noticed that my topic is referring to Axis 1.3, but i meant Axis2 1.3. Periklis Periklis Tsirakidis wrote: Hi again, after couple of different packaging experiments and still not working solution, i stepped in a weird situation. My Service now has the following structure: myservice.aar -- META-INF service.xml -- lib lib1.jar lib2.jar lib3.jar lib4.jar -- com my classes here incl. the service impl class The weird situation now is, that if try to load a class included in com inside my service implementation class, with following code, i get still a ClassNotFoundException. ClassLoader loader = getClass().getClassLoader(); Class myclass = Class.forName('classname', true, loader); or even with MessageContext msgCtx = MessageContext.getCurrentMessageContext(); AxisService serviceHandler = msgCtx.getAxisService(); ClassLoader serviceLoader = serviceHandler.getClassLoader(); //Class serviceClass = serviceLoader.loadClass(service); Class serviceClass = Class.forName(service, true, serviceLoader); MyClass srv = (MyClass) serviceClass.newInstance(); still ClassNotFoundException. If i import the class and instatiate it, then everything works fine. The Class i am trying to load with the Classloader doesn't use any class from the jars included in the lib directory. I tried also all the workarounds above with an unpacked aar. Anybody an idea? Periklis Periklis Tsirakidis wrote: Hi, i am currently working on a service, that is deployed in a service archive, as described in the documentation. This service needs access on a library which is located under WEB-INF/lib, due to further usage of this library out of my service. I am using axis 1.3 deployed as a war on a Tomcat 5.5.12. The jar structure of mylib.jar is: mylib.jar -- META-INF MANIFEST.MF -- lib --- ...couple of libs here -- com ...classes in package hierarchy My service archive myservice.aar is located in the WEB-INF/services and i have hotupdate in my axis2.xml configuration enabled. The code i am trying to access classes from the jar file in my service implementation class is following: MessageContext msgCtx = MessageContext.getCurrentMessageContext(); AxisService serviceHandler = msgCtx.getAxisService(); ClassLoader serviceLoader = serviceHandler.getClassLoader(); //Class serviceClass = serviceLoader.loadClass(service); Class serviceClass = Class.forName(service, true, serviceLoader); MyClass srv = (MyClass) serviceClass.newInstance(); The deployment of the service is working fine, but when i call some function of my service implementation class that itselfs needs an instance of the mylib.jar i get a ClassNotFoundException. I
Multiple methods throwing same fault causes RemoteException
I am using Axis2 to consume a web service (client application). The web service has multiple methods that throw the same exception. For example: Method1() throws MyCustomException1 Method2() throws MyCustomException1 When MyCustomException1 is thrown from Method2 it gets returned from the generated client stubs as a RemoteException instead of MyCustomException1. This was working on a nightly build of Axis2 1.2, but is now broken on Axis2 1.3. I am not an expert at the implementation of Axis2, but here is what I can see. It looks like the generated client stubs are ok. The generated client stubs are interrogating the exception looking for Method2.MyCustomException1. However, the exception it is comparing against is actually Method1.MyCustomException1. This seems like the cause of the problem - somehow the exception was mapped wrong because two method are throwing this same exception. Has anyone else seen this? Thanks, Scott
Re: Using object lists for interop between axis2 and .NET
Try basic arrays -- avoid Java-specific collection classes. Anne On 8/20/07, Pushkar Bodas [EMAIL PROTECTED] wrote: Hi, I am trying to send a list of user defined objects across .NET and Axis2 web services and cleints(Java client for .NET service and C# client for Axis2 service). I havent done much ground work on this, but I tried passing ArrayLists and that doesnt work. I think using HashMaps may work, but C# apparently doesnt have HashMaps. Does using HashTables work. If someone has tried it out, can you please tell me if it works? Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12235665 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using object lists for interop between axis2 and .NET
Hi, Yeah, Im on to it right now and it may work, atleast its working for the C# client for nowIv yet to test it on the java client. As soon as im done, ill post a reply here Thanks anyways AnneIll keep you posted here Thanks and regards Pushkar Anne Thomas Manes wrote: Try basic arrays -- avoid Java-specific collection classes. Anne On 8/20/07, Pushkar Bodas [EMAIL PROTECTED] wrote: Hi, I am trying to send a list of user defined objects across .NET and Axis2 web services and cleints(Java client for .NET service and C# client for Axis2 service). I havent done much ground work on this, but I tried passing ArrayLists and that doesnt work. I think using HashMaps may work, but C# apparently doesnt have HashMaps. Does using HashTables work. If someone has tried it out, can you please tell me if it works? Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12235665 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12237548 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
axis1.2 and REST
Hello all, I would like to sent a POST message to a service RESTfully. I reviewed the Axis1.2 docs and understand how the message is automatically placed in the body element of a SOAP message on the way in. On the way out to the client, should my in/out message receiver class attempt to place the response into the body of a soap message?
ANT Axis-wsdl2java Task question
Hi When i am creating java source using wsdl2java - have option -w which wrap arrays The definitaion says -w, --wrapArrays Prefers building beans to straight arrays for wrapped XML ar ray types (defaults to off). I dont see this option in axis-wsdl2java ... ant task is there any alternative? i have an XSD with array elements in it and this option to generate correct java source Ashish
The service cannot be found for the endpoint reference
Hi folks. I'm attempted to convert my code from Axis2 1.1 to Axis2 1.3, and I receive the error below when I request the WSDL. I've seen similar postings, but haven't seen a solution. Is this a bug, or am I doing something wrong? Thanks! org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) request URL deleted at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:62) at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:799) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 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.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481) 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:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) 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:619) -- View this message in context: http://www.nabble.com/The-service-cannot-be-found-for-the-endpoint-reference-tf4299570.html#a12238147 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Using object lists for interop between axis2 and .NET
Hi, Using normal object arrays does work both ways. Thanks a lot anyway. Thanks and regards, Pushkar Pushkar Bodas wrote: Hi, Yeah, Im on to it right now and it may work, atleast its working for the C# client for nowIv yet to test it on the java client. As soon as im done, ill post a reply here Thanks anyways AnneIll keep you posted here Thanks and regards Pushkar Anne Thomas Manes wrote: Try basic arrays -- avoid Java-specific collection classes. Anne On 8/20/07, Pushkar Bodas [EMAIL PROTECTED] wrote: Hi, I am trying to send a list of user defined objects across .NET and Axis2 web services and cleints(Java client for .NET service and C# client for Axis2 service). I havent done much ground work on this, but I tried passing ArrayLists and that doesnt work. I think using HashMaps may work, but C# apparently doesnt have HashMaps. Does using HashTables work. If someone has tried it out, can you please tell me if it works? Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12235665 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Using-object-lists-for-interop-between-axis2-and-.NET-tf4298807.html#a12238313 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis client sending multiRef
Hello, I'm currently working on the update from Axis1 1.2 to Axis2 1.3 of my web services. I need to keep the compatibility of the older clients, which work with Axis1 1.2. One of the client is sending SOAP message with multiRef tags in the body. The corresponding webservice decodes the message fine under Axis1 but fails in NullPointerException under Axis2. The client is under Axis1 1.2. Is there a parameter to set (programmatically of using client-config.wsdd) to disable multiRef on client side? Is there something to do to have Axis2 understanding multiRef requests? Thanks in advance for the help, Pierre
[axis2].1.3 ADB exception
I am getting Missing class: org.apache.axis2.databinding.ADBException whiling using axis2 from Eclipse and OC4J environment. I have included all .jars from C:\axis2-1.3\lib in my classpath but still I could not find any org.apache.axis2.databinding.ADBException from Eclipse search window. do I need to setup ADB separately? I was able to test C:\axis2-1.3\samples\databinding locally. Earlier I generated web-service client using C:\axis2-1.3\binwsdl2java -t -uri my.wsdl successfully using my XSD(s). Please let me know how to get and use axis2 databinding package. Regards, Ajay
[axis2].1.3 ADB exception
I am getting Missing class: org.apache.axis2.databinding.ADBException whiling using axis2 from Eclipse and OC4J environment. I have included all .jars from C:\axis2-1.3\lib in my classpath but still I could not find any org.apache.axis2.databinding.ADBException from Eclipse search window. do I need to setup ADB separately? I was able to test C:\axis2-1.3\samples\databinding locally. Earlier I generated web-service client using C:\axis2-1.3\binwsdl2java -t -uri my.wsdl successfully using my XSD(s). Please let me know how to get and use axis2 databinding package. Regards, Ajay
Re: The service cannot be found for the endpoint reference
I ran into perhaps the same issue myself moving to 1.3 , using an EPR . Could be a behavioral change, rather than a bug. private static EndpointReference targetEPR = new EndpointReference( // http://localhost:9080/axis2/services/tissSolicitacaoDemonstrativoRetorno;); http://localhost:9080/axis2/services/tissSolicitacaoDemonstrativoRetorno/tissSolicitacaoDemonstrativoRetorno_Operation;); See the uncommented line and the uncommented line - the latter lists the operation name. Try that in the client - does that help? If not, maybe else might have some ideas. Robert On 8/20/07, feh [EMAIL PROTECTED] wrote: Hi folks. I'm attempted to convert my code from Axis2 1.1 to Axis2 1.3, and I receive the error below when I request the WSDL. I've seen similar postings, but haven't seen a solution. Is this a bug, or am I doing something wrong? Thanks! org.apache.axis2.AxisFault: The service cannot be found for the endpoint reference (EPR) request URL deleted at org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:62) at org.apache.axis2.engine.Phase.invoke(Phase.java:308) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:125) at org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:119) at org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:799) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) 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.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407) at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481) 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:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:731) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) 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:619) -- View this message in context: http://www.nabble.com/The-service-cannot-be-found-for-the-endpoint-reference-tf4299570.html#a12238147 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Contents of .aar file
I have a group of services to be deployed in Axis2.0 . What should be the contents of the .aar file apart from the services.xml file?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424
urgent help on interop with SOAP over TCP on .Net
I have a .Net program sending SOAP message over TCP and I am trying to find something that running on a Java platform can receive it. I heard about Axis's RC2 before, but I am not able to find it anymore. Can anybody tell me about it or point me to the right product ? Thanks John
Re: ANT Axis-wsdl2java Task question
Hi, For Axis wsdl2java Ant task, wrapArrays=true attribute is available. Upul On 8/20/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi When i am creating java source using wsdl2java - have option -w which wrap arrays The definitaion says -w, --wrapArrays Prefers building beans to straight arrays for wrapped XML ar ray types (defaults to off). I dont see this option in axis-wsdl2java ... ant task is there any alternative? i have an XSD with array elements in it and this option to generate correct java source Ashish
Re: Contents of .aar file
Hi, Following article has some details about the aar structure. http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/index.html This one gives some details about the services.xml file. http://wso2.org/library/2060 Upul On 8/20/07, Kandalam, Anjana [EMAIL PROTECTED] wrote: I have a group of services to be deployed in Axis2.0 . What should be the contents of the .aar file apart from the services.xml file?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424
RE: [axis2].1.3 ADB exception
Hi Ajay, axis2-adb-1.3.jar contains the org.apache.axis2.databinding.ADBException class. Please verify your classpath in eclipse and check whether this jar is available or not. Thanks Raghu From: Ajay Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 8:50 AM To: axis-user@ws.apache.org Subject: [axis2].1.3 ADB exception I am getting Missing class: org.apache.axis2.databinding.ADBException whiling using axis2 from Eclipse and OC4J environment. I have included all .jars from C:\axis2-1.3\lib in my classpath but still I could not find any org.apache.axis2.databinding.ADBException from Eclipse search window. do I need to setup ADB separately? I was able to test C:\axis2-1.3\samples\databinding locally. Earlier I generated web-service client using C:\axis2-1.3\binwsdl2java -t -uri my.wsdl successfully using my XSD(s). Please let me know how to get and use axis2 databinding package. Regards, Ajay
Re: ANT Axis-wsdl2java Task question
Hi I am using axis 1.4, and this document i referred does not mentiong wrapArrays attribute http://ws.apache.org/axis/java/ant/axis-wsdl2java.html Ashish On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: Hi, For Axis wsdl2java Ant task, wrapArrays=true attribute is available. Upul On 8/20/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi When i am creating java source using wsdl2java - have option -w which wrap arrays The definitaion says -w, --wrapArrays Prefers building beans to straight arrays for wrapped XML ar ray types (defaults to off). I dont see this option in axis-wsdl2java ... ant task is there any alternative? i have an XSD with array elements in it and this option to generate correct java source Ashish
Implementing ws-trust
Hi All, I have to implement a WS-Trust STS that issues SAML2.0 tokens. It is not possible using rampart and rahas, so I decided to code it on my own. I try to get the WSDL from oasis with errors: [EMAIL PROTECTED] ~ $ wsdl2java.sh -uri http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl -pn SecurityTokenService Using AXIS2_HOME: /Users/max/Documents/axis2/ Using JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home Retrieving schema at 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'. Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.AxisFault: No service was not found in the WSDL at http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl with targetnamespace http://docs.oasis-open.org/ws-sx/ws-trust/200512/ at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:106) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:131) ... 2 more Have you any idea??? How can I find docs on how to customize services.xml in order to generate a WSDL compatible with the OASIS one? Thank you, -- Massimiliano Masi http://www.comunidelchianti.it/~max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [AXIS2] wsdl2java for xmlbeans needs axiom jars?
No - it is the same wsdl that I used in Axis1 with minor changes to work with axsi2. So I have no policies in it. From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 15, 2007 9:19 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars? do you have polices in your wsdl? On 8/16/07, Pantvaidya, Vishwajit [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: I don't get any stack trace - just the message Exception in thread main java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode From: Amila Suriarachchi [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 14, 2007 7:59 PM To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org Subject: Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars? On 8/15/07, Pantvaidya, Vishwajit [EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote: I was running axis2 wsdl2java task with the xmlbeans binding option - and got the error Exception in thread main java.lang.NoClassDefFoundError: org/apache/axiom/om/OMNode. My impression is that I do not need axiom jars since I am using xmlbeans binding. Can someone clarify? can you send the full stacktrace? you got this when running wsdl2java tool right? Secondly - the wsdl2java task has a binding option to specify xmlbeans. But I cannot find any such option on the Axis2 Codegen ant task (codegen ...) - which I desire to use. How can I specify xmlbeans there? xmlbeans produces java classess (i.e it is a java binding). but there is no xmlbeans C version. if you use C the only option is to use the ADB. ADB has a C version. if you interested more on C codegen please ask this question in Axis2 C list. - Vish. -- Amila Suriarachchi, WSO2 Inc. -- Amila Suriarachchi, WSO2 Inc.
Re: ANT Axis-wsdl2java Task question
Hi, http://mail-archives.apache.org/mod_mbox/ws-axis-user/200601.mbox/[EMAIL PROTECTED] You can try it anyway. Upul On 8/20/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi I am using axis 1.4, and this document i referred does not mentiong wrapArrays attribute http://ws.apache.org/axis/java/ant/axis-wsdl2java.html Ashish On 8/20/07, Upul Godage [EMAIL PROTECTED] wrote: Hi, For Axis wsdl2java Ant task, wrapArrays=true attribute is available. Upul On 8/20/07, Ashish Kulkarni [EMAIL PROTECTED] wrote: Hi When i am creating java source using wsdl2java - have option -w which wrap arrays The definitaion says -w, --wrapArrays Prefers building beans to straight arrays for wrapped XML ar ray types (defaults to off). I dont see this option in axis-wsdl2java ... ant task is there any alternative? i have an XSD with array elements in it and this option to generate correct java source Ashish
Re: urgent help on interop with SOAP over TCP on .Net
Hi, Do you want to monitor the SOAP messages?if so, try and use TCPmon [http://ws.apache.org/commons/tcpmon/].if I got you wrong, please specify what you want to do by receiving it. Thanks and regards, Pushkar Chen, John (N-Avatar Inc.) wrote: I have a .Net program sending SOAP message over TCP and I am trying to find something that running on a Java platform can receive it. I heard about Axis's RC2 before, but I am not able to find it anymore. Can anybody tell me about it or point me to the right product ? Thanks John -- View this message in context: http://www.nabble.com/urgent-help-on-interop-with-SOAP-over-TCP-on-.Net-tf4299957.html#a12240551 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: urgent help on interop with SOAP over TCP on .Net
I need to know how to get the message sent from .NET through SOAP over TCP. I have not much idea about it. I have been using Axis for Web services, which is basically SOAP over HTTP Any help will be appreciated. Thanks John -Original Message- From: Pushkar Bodas [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 1:42 PM To: axis-user@ws.apache.org Subject: Re: urgent help on interop with SOAP over TCP on .Net Hi, Do you want to monitor the SOAP messages?if so, try and use TCPmon [http://ws.apache.org/commons/tcpmon/].if I got you wrong, please specify what you want to do by receiving it. Thanks and regards, Pushkar Chen, John (N-Avatar Inc.) wrote: I have a .Net program sending SOAP message over TCP and I am trying to find something that running on a Java platform can receive it. I heard about Axis's RC2 before, but I am not able to find it anymore. Can anybody tell me about it or point me to the right product ? Thanks John -- View this message in context: http://www.nabble.com/urgent-help-on-interop-with-SOAP-over-TCP-on-.Net- tf4299957.html#a12240551 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [axis2] [IMPORTANT] JDK 1.4 compatibility - feedback requested
Hi Glen, As as committer on another open source project that uses axis2 as a dependency, I second the vote to keep 1.4 compatibility. A lot of older, bigger organizations keep older JVMs for the reasons already stated by others. If you switch axis2 1.4 and above to JVM 1.5, you will loose a lot of adopters, especially in the bigger enterprises which will be forced to stick to older releases for JVM compatibility issues. Give it another year and ask the same question again :-) Best Regards, George -Original Message- From: Glen Daniels [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 14, 2007 10:26 PM To: Axis-Dev; axis-user@ws.apache.org Subject: [axis2] [IMPORTANT] JDK 1.4 compatibility - feedback requested Importance: High Hi Axis2 developers and users! There has been a bunch of discussion lately revolving around the question of JDK1.4 compatibility. It has been suggested that Axis2 move to JDK 1.5, in order to gain the benefits of things like generics, built-in concurrency (no backport lib), and annotations. Some folks feel that there are enough people out there still in a 1.4 environment that we should hold off, and others think we should bite the bullet and move to 1.5. HERE'S YOUR CHANCE TO PROVIDE VALUABLE INPUT! Are you using, or planning to use, Axis2 in an environment that is locked to JDK 1.4? If so, please let us know by responding to this thread and telling us (if you can) about the particulars of what's tying you to 1.4 - is it your app server? Company policy? Something else? We'd really like to take good care of our users, and doing that involves figuring out whether we can jump into 1.5-land or if we need to keep things working with 1.4. Thanks, --Glen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. ** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Contents of .aar file
What should the name of the .aar file be? I have seen examples where in there is only 1 service and the aar file is the same service. I have multiple services in different packages as different java projects. How should the structure be? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 _ From: Upul Godage [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 12:51 PM To: axis-user@ws.apache.org Subject: Re: Contents of .aar file Hi, Following article has some details about the aar structure. http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/index.htm l http://www.ibm.com/developerworks/webservices/library/ws-axis2soap/index.ht ml This one gives some details about the services.xml file. http://wso2.org/library/2060 http://wso2.org/library/2060 Upul On 8/20/07, Kandalam, Anjana [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have a group of services to be deployed in Axis2.0 . What should be the contents of the .aar file apart from the services.xml file?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424
RE: [axis2].1.3 ADB exception
Thanks Raghu, I found that jar in axis2 download.. going to use it in classoapth.. Regards Ajay From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 1:21 PM To: axis-user@ws.apache.org Subject: RE: [axis2].1.3 ADB exception Hi Ajay, axis2-adb-1.3.jar contains the org.apache.axis2.databinding.ADBException class. Please verify your classpath in eclipse and check whether this jar is available or not. Thanks Raghu From: Ajay Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 8:50 AM To: axis-user@ws.apache.org Subject: [axis2].1.3 ADB exception I am getting Missing class: org.apache.axis2.databinding.ADBException whiling using axis2 from Eclipse and OC4J environment. I have included all .jars from C:\axis2-1.3\lib in my classpath but still I could not find any org.apache.axis2.databinding.ADBException from Eclipse search window. do I need to setup ADB separately? I was able to test C:\axis2-1.3\samples\databinding locally. Earlier I generated web-service client using C:\axis2-1.3\binwsdl2java -t -uri my.wsdl successfully using my XSD(s). Please let me know how to get and use axis2 databinding package. Regards, Ajay
Access to classes outside .aar file
Is there anyway to access classes outside the .aar file?
Passing parameters
What is the best practice for passing parameters (such as DB login, location, etc.) using Axis2?
Re: Implementing ws-trust
No service was found. You must add a service definition to the WSDL. On 8/20/07, Massimiliano Masi [EMAIL PROTECTED] wrote: Hi All, I have to implement a WS-Trust STS that issues SAML2.0 tokens. It is not possible using rampart and rahas, so I decided to code it on my own. I try to get the WSDL from oasis with errors: [EMAIL PROTECTED] ~ $ wsdl2java.sh -uri http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl -pn SecurityTokenService Using AXIS2_HOME: /Users/max/Documents/axis2/ Using JAVA_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home Retrieving schema at 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', relative to 'http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd'. Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd', relative to 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'. Retrieving schema at 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Retrieving schema at 'http://www.w3.org/2006/03/addressing/ws-addr.xsd', relative to 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd'. Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:137) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: org.apache.axis2.AxisFault: No service was not found in the WSDL at http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.wsdl with targetnamespace http://docs.oasis-open.org/ws-sx/ws-trust/200512/ at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:106) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:131) ... 2 more Have you any idea??? How can I find docs on how to customize services.xml in order to generate a WSDL compatible with the OASIS one? Thank you, -- Massimiliano Masi http://www.comunidelchianti.it/~max - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis client sending multiRef
My guess is that your Axis 1.2 client apps are using RPC/encoded, but Axis2 does not support RPC/encoded. You can't maintain compatibility. Anne On 8/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'm currently working on the update from Axis1 1.2 to Axis2 1.3 of my web services. I need to keep the compatibility of the older clients, which work with Axis1 1.2. One of the client is sending SOAP message with multiRef tags in the body. The corresponding webservice decodes the message fine under Axis1 but fails in NullPointerException under Axis2. The client is under Axis1 1.2. Is there a parameter to set (programmatically of using client-config.wsdd) to disable multiRef on client side? Is there something to do to have Axis2 understanding multiRef requests? Thanks in advance for the help, Pierre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem maintaining the session
I want to use AXIS2 to connect to a service that needs to maintain session. I am able to maintain session if I use AXIS 1.4, but when I try using AXIS2 1.1.1, the session is not maintained. Here's the code that is not working with AXIS2: MyServicesWSServiceStub stub = new MyServicesWSServiceStub( https://service.address/webservices/MyServicesWS;); Options options = stub._getServiceClient().getOptions(); HttpTransportProperties.ProxyProperties proxyProperties = new HttpTransportProperties.ProxyProperties(); proxyProperties.setProxyName(firewall.location.com); proxyProperties.setProxyPort(80); options.setProperty(org.apache.axis2.transport.http.HTTPConstants.PROXY, proxyProperties); options.setProperty(HTTPConstants.HEADER_CONNECTION, HTTPConstants.HEADER_CONNECTION_KEEPALIVE); options.setManageSession(true); LoginDocument loginDocument = LoginDocument.Factory.newInstance (); Login login = loginDocument.addNewLogin(); login.setPassword(mypassword); login.setUsername(myuser); LoginResponseDocument loginResponse = stub.login(loginDocument); LogoutDocument logoutDocument = LogoutDocument.Factory. newInstance(); logoutDocument.addNewLogout(); LogoutResponseDocument response2 = stub.logout(logoutDocument); When I get to executing stub.logout(), I get AxisFault, indicating that the I am not logged in. As I said before, corresponding code in AXIS 1.4 is working properly. Vadim *** This communication may contain privileged and/or confidential information. It is intended solely for the use of the addressee. If you are not the intended recipient, you are strictly prohibited from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. This communication may contain nonpublic personal information about consumers subject to the restrictions of the Gramm-Leach-Bliley Act. You may not directly or indirectly reuse or redisclose such information for any purpose other than to provide the services for which you are receiving the information. 127 Public Square, Cleveland, OH 44114 *** If you prefer not to receive future e-mail offers for products or services from Key send an e-mail to [EMAIL PROTECTED] with 'No Promotional E-mails' in the SUBJECT line.
Re: Access to classes outside .aar file
The whole idea is to not allow that since classloader isolation is a big reason for the aar in the first place, IIRC. Can you just put all your classes in WEB-INF/lib and WEB-INF/classes ? Its not mandatory in anyway to put your classes in an aar - I rarely do myself. All you really need is a dir in WEB-INF/services with your META-INF/services.xml . HTH, Robert On 8/20/07, Glenn Williams [EMAIL PROTECTED] wrote: Is there anyway to access classes outside the .aar file? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Importing external schema in WSDL
I know this has been a topic several times before, but I don't see as it's fixed. I am using axis2 1.2 in Tomcat 5.5.23 on MacOSX 10.4.10. I have a WSDL schema, which imports a schema, which imports a schema, which imports many schemas After the first import, the schemas use relative URLs. These are public external schemas and are not under my control. So it is not possible to use absolute urls. I get the error: 2007-08-20 15:46:44,376 ERROR WSDL11ToAxisServiceBuilder.populateService.294 - javax.wsdl.WSDLException: WSDLException (at /wsdl:definitions/wsdl:types/schema/xs:schema/xsd:schema): faultCode=OTHER_ERROR: Unable to locate with a locator the schema referenced at '../../gml/3.1.1/base/geometryAggregates.xsd' relative to document base 'http://schemas.opengis.net/filter/1.1.0/filter.xsd' I just tried upgrading to 1.3, and I don't see the error, but I think that is more likely because my logging is broken. In both cases, trying to get the wsdl using the ?wsdl command returns the error that axis cannot generate the wsdl, even though I have useOriginalwsdl set to true. attached is the WSDL. How do I proceed here? thanks, Linus ?xml version=1.0 encoding=UTF-8? wsdl:definitions targetNamespace=http://www.iris.edu/phasepick/xsd; xmlns:phase=http://www.iris.edu/phasepick/xsd; xmlns:ws=http://www.iris.edu/ws/xsd; xmlns:esdp=http://portal.earthscope.org; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; wsdl:types schema elementFormDefault=qualified targetNamespace=http://www.iris.edu/phasepick/xsd; xmlns=http://www.w3.org/2001/XMLSchema; import namespace=http://portal.earthscope.org; schemaLocation=http://www.iris.edu/schema/esdp/esdp.xsd/ include schemaLocation=http://www.iris.edu/schema/common/xml/coreDataTypes.xsd; / annotation documentationQuery Types/documentation /annotation complexType name=EventQueryType sequence element name=dateRange type=phase:DateRangeType/ element name=areaBox type=phase:AreaBoxType/ element name=magQuery type=phase:MagnitudeQuery minOccurs=0/ element name=depthRange type=phase:DepthRangeType/ element name=author type=string minOccurs=0 / element name=contributor type=string minOccurs=0/ /sequence /complexType complexType name=DateRangeType sequence element name=startDate type=dateTime/ element name=stopDate type=dateTime/ /sequence /complexType complexType name=AreaBoxType sequence element name=minLat type=double/ element name=maxLat type=double/ element name=minLon type=double/ element name=maxLon type=double/ /sequence /complexType complexType name=MagnitudeQuery sequence element name=magType type=string/ element name=minMag type=double/ element name=maxMag type=double/ element name=includeUnknowns type=boolean/ /sequence /complexType complexType name=DepthRangeType sequence element name=units type=string/ element name=minDepth type=double/ element name=maxDepth type=double/ /sequence /complexType complexType name=IteratorInfoType sequence element name=key type=long/ element name=startPosition type=int/ element name=batchSize type=int/ element name=totalCount type=int / /sequence /complexType complexType name=PhaseQueryReturnType sequence element name=Iterator type=phase:IteratorInfoType minOccurs=0 nillable=true/ element name=Event type=ws:EventType minOccurs=0 maxOccurs=unbounded/ /sequence /complexType simpleType name=DownloadFormatType restriction base=string enumeration value=CSV/ enumeration value=ISF/ enumeration value=XML/ /restriction /simpleType
Re: Eclipse WTP
Hi sjtirtha, Are you using Axis support or Axis2 support on WTP to generate the Web Service? And also posting the WTP version also will be helpful to give more information to you regarding the issue that you have. Thanks Lahiru On 8/20/07, sjtirtha [EMAIL PROTECTED] wrote: Hi, I'm trying to create a web service from my Java Class, but I get this error: The method init on the service class ws.impl.ZoneServiceImpl uses a data type, java.lang.Object, that is not supported by the JAX-RPC specification. Instances of the type may not serialize or deserialize correctly. Loss of data or complete failure of the Web service may result. * import * org.springframework.remoting.jaxrpc.ServletEndpointSupport; public class ws.impl.ZoneServiceImpl extends ServletEndpointSupport implements ZoneService{ . } Can I generate a web service from a java class that extends ServletEndpointSupport ? Regards, Steve -- Thanks Lahiru Sandakith http://sandakith.wordpress.com/ GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F
Generating Custom Schemas with Axis2 rmi.
hi, There is no control to the user about the generated schema with the basic Axis2 -rmi functionalities. but with the custom schema support users have a lot of controll over the generated schema. Specifiying java Bean properties as attributes and setting xml names. (Please see the advanced-rmi sample which has a working sample) Lets take this java bean. public class TestClass { private int param1; private String param2; private int param3; } the generated complex type for this bean would be xsd:complexType name=TestClass xsd:sequence xsd:element name=param1 type=xsd:int/ xsd:element name=param2 type=xsd:string/ xsd:element name=param3 type=xsd:int/ /xsd:sequence /xsd:complexType but what if some one needs to generate the sechma so that pama1 and param2 as attributes, and generate xml at runtime as it is. Further what if you want to use as the xmlParam1 instead of java param name param1. The only thing you have to do is to add declare the CustomClassInfo in config.xml at the server side and load this data to configurator at client side. (please see the advanced-rmi sample) eg. customClassInfo classInfo className=TestClass1 fieldInfo isElement=false javaName=param1 xmlName=xmlParam1/ fieldInfo isElement=false javaName=param3 xmlName=xmlParam3/ /classInfo /customClassInfo this would generate the xmlschema with attributes and parse and serialize the xml stream as it is. at client user has to load these details to configurator ClassInfo classInfo = new ClassInfo(TestClass1.class); classInfo.addFieldInfo(new FieldInfo(param1, xmlParam1, false)); classInfo.addFieldInfo(new FieldInfo(param3, xmlParam3, false)); this.configurator.addClassInfo(classInfo); On the other hand this feature can be used to map an existing java object structure to an xml stream. The only requrement is to have a same structure on both xml document and java objects. thanks, Amila. -- Amila Suriarachchi, WSO2 Inc.
Re: Problems using XMLBeans (xsi:type missing)
On 8/20/07, Zerbst, Carsten [EMAIL PROTECTED] wrote: Hello, I created a webservice (from wsdl) using XMLBeans binding. Short before finishing the project I run into a problem with the XML binding. The wsdl describes some abstract complex_types and specific elements in a different namespace. When using XMLBeans the xsi:type is suppressed. E.g. when creating a query like this QueryDocument query = QueryDocument.Factory.newInstance(); QueryParameter par = query.addNewQuery(); ExplicitItemQuery start = ExplicitItemQuery.Factory.newInstance(); start.setName( test ); par.setQuery( start ); the resulting xml is query xmlns=urn:space.eads.net/ssrm/services/parameter xmlns:spec=urn: space.eads.net/ssrm/services/specificQuery query spec:nametest/spec:name /query /query Using the equivalent ADB code results in ns4:query xmlns:ns4=urn:space.eads.net/ssrm/services/parameter ns4:query xmlns:ns6=urn: space.eads.net/ssrm/services/specificQuery xmlns:xsi= http://www.w3.org/2001/XMLSchema-instance; xsi:type=ns6:Explicit_item_query ns6:nametest/ns6:name /ns4:query /ns4:query where the xsi:type contains the right type. Is there a way to persuade XMLBeans to use the xsi:type ? A change from XMLBeans to ADB would take some time ... Can you replace the Axis2 generated Xmlbeans code with the xmlbeans code directly generated from the xmlbeans scomp command. what is the Axis2 version you use? Amila. Bye, Carsten ___ Dr.-Ing. Carsten Zerbst PROSTEP ITS GmbH Hein-Saß-Weg 19, D-21129 Hamburg Tel: +49 40 209 1608 12 Mobil: +49 178 950 9468 E-Mail: [EMAIL PROTECTED] http://www.prostep.com PROSTEP ITS GmbH, Dolivostr.11, D-64293 Darmstadt HR: Amtsgericht Darmstadt, HRB 8805 Geschäftsführung: Dr. Markus Sachers, Reinhard Betz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation
On 8/17/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Hi Amila, I'm currently using Axis2 1.3 version, is this bug fixed in that or do I need to get nightly build for the fix. it is only available in trunk. you can try this, get a nighly build and replace adb-codgen.jar and adb.jar with the nightly build jars. Then it should work. And what is the fix? If I define a parameter type as xsd:anyType in my WSDL, does WSDL2Java convert it as java.lang.Object in the generated sources yes, if you use nighly build jars. or does it convert to org.apache.axiom.om.OMElement? Thanks Raghu -- *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] *Sent:* Thursday, August 16, 2007 9:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3Vs Axis 2 code generation this is a bug in Axis2. It has fixed in the trunk. please have a look at with a nightly build. On 8/11/07, *Raghu Upadhyayula* [EMAIL PROTECTED] wrote: Hi, In my webservices, I have a method which has a parameter defined as type=xsd:anyType in the WSDL. In Axis 1.3, when I did WSDL2Java for my WSDL that parameter got converted to java.lang.Object. But in Axis2 1.2, when I did WSDL2Java for the same WSDL, that parameter got converted to org.apache.axiom.om.OMElement. My question is, if I need to pass a Java Object to my webservice method, how do I convert it to OMElement and pass it to the method from the client code how do I convert OMElement back to java.lang.Object in my server code? Thanks Raghu -- Amila Suriarachchi, WSO2 Inc. -- Amila Suriarachchi, WSO2 Inc.
Re: urgent help on interop with SOAP over TCP on .Net
Hi Chen, , I think you are talking about Axis2 TCP support ? First you can download Axis2 1.3 release from [1] , then you can use Axis2's TCP transport support for invoking the service using TCP transport. To use TCP in the client side you have to set the correct EPR like : tcp://127.0.0.1:8080/ , then Axis2 will send the request using TCP transport. [1] : http://ws.apache.org/axis2/download/1_3/download.cgi Thanks Deepal I have a .Net program sending SOAP message over TCP and I am trying to find something that running on a Java platform can receive it. I heard about Axis’s RC2 before, but I am not able to find it anymore. Can anybody tell me about it or point me to the right product ? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Loading webservis initialization data
Hi mchmiel , You can easily do that with Axis2 by implementing the interface called ServiceLifeCycle and you can specify that as describe in [1] [1] : http://wso2.org/library/2060 Thanks Deepal I wonder if there is a way to provide for webservice a similar to servlet init() method. I would like to load a file allong with the initialization of webservis. Now i do that by using an external servlet and register it in servlet context but i am affraid that this solution will not be efficient for fast object reference. I must point that I need acces to the object as fast as possible, and most of all the referenced object will be synchronized. I have also thought of ensuring the heap memory size for the large resource inside the Axis2 message context? Is there any known restriction. Regards, Mariusz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal The highest tower is built one brick at a time - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]