Re: Error in axiom_document_build_all
Hi Yuvaraj, It seems to me that the axis2.xml file has an xml error and and as a result the parser has failed. Recheck your axis2.xml file. Regards Nandika On 8/21/07, Yuvaraj Athur Raghuvir [EMAIL PROTECTED] wrote: Hello, [Context]: Invoking axis2 as dlls from a scripting language called J ( www.jsoftware.com) [Environment]: Using proxy [Based on]: Yahoo sample that works perfectly fine with the same set of dlls. Code translated into scripting language. During the building of the xml file to be sent, I get the following errors: [Tue Aug 21 10:53:03 2007] [debug] c:\08.utils\axis2\axis2c- src-1.0.0\axis2c-src-1.0.0\src\core\engine\phase.c(113) axis2_handler_t *request_uri_based_dispatcher added to the index 0 of the phase Transport [Tue Aug 21 11:01:51 2007] [error] ..\..\axiom\src\parser\libxml2\libxml2_reader_wrapper.c(886) attributes construct error -- SEVERITY_ERROR [Tue Aug 21 11:01:51 2007] [error] ..\..\axiom\src\parser\libxml2\libxml2_reader_wrapper.c(886) Couldn't find end of Start Tag parameter -- SEVERITY_ERROR [Tue Aug 21 11:01:51 2007] [error] ..\..\axiom\src\parser\libxml2\libxml2_reader_wrapper.c(886) Opening and ending tag mismatch: parameter line 0 and transportSender -- SEVERITY_ERROR [Tue Aug 21 11:01:51 2007] [error] ..\..\axiom\src\parser\libxml2\libxml2_reader_wrapper.c(427) error occured in reading xml stream I believe that this later leads to error in send and so the receive fails. Any suggestions? Regards, Yuva -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: SOAP fault builder
Hi Subra, To send a fault from the service you can do the following. In the invoke function of the service skeleton set an the error status to AXIS2_FALSE and return NULL. You can use the AXIS2_ERROR_SET macro to set the error status. Then implement the on_fault function in the skeleton to return the error message you want to return. This will be added to the fault detail section. When axis2 calls invoke function and finds that it returned null, it will check the error status. If the error status if AXIS2_FALSE , then a fault is returned. You do not have to be concerned about the soap version of the fault. Depending on the received message's soap version an appropriate soap fault will be returned. You can have a look at axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync function in raw_xml_in_out_msg_recv.c file to understand how the fault is processed. Regards, Nandika On 8/21/07, Subra A Narayanan [EMAIL PROTECTED] 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] 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 -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
SOAP Fault Segmentation Fault
I am just to run this snippet of code that I have designed: if (axiom_soap_body_has_fault((axiom_soap_body_t*)create_resp, env)) { axiom_soap_fault_t* fault = axiom_soap_body_get_fault( (axiom_soap_body_t*)create_resp, env); axiom_soap_fault_code_t* code = axiom_soap_fault_get_code(fault, env); axiom_soap_fault_value_t* value = axiom_soap_fault_code_get_value(code, env); axis2_char_t* text = axiom_soap_fault_value_get_text(value, env); printf(\n%s\n, text); axiom_soap_fault_reason_t* reason = axiom_soap_fault_get_reason(fault, env); axiom_soap_fault_text_t* reason_text = axiom_soap_fault_reason_get_first_soap_fault_text( reason, env); axis2_char_t* value_text = axiom_soap_fault_text_get_text(reason_text, env); printf(\n%s\n, value_text); } create_resp is type-casted since it is originally an object of type axiom_node_t*. I am trying to test how to process a SOAP fault that the client receives from the server. If I comment out the second portion of the if section (the part starting with the code object), I see (null) printed out for value_text, which is not what I expected. When I keep in the second portion, I get a segmentation fault on the line: axis2_char_t* text = axiom_soap_fault_value_get_text(value, env); Here is the exact part that the error occurs: Program received signal SIGSEGV, Segmentation fault. axiom_node_get_node_type (om_node=0x772e772f2f3a, env=0x508340) at om_node.c:811 811 return om_node-node_type; Is this an error on my end or bug in the Axis2/C library? Also, seeing (null) for value_text is not correct, as I can see the returning SOAP fault payload, and the Value is not null is the payload. The server is supposed to return a SOAP 1.1 message, but the payload is in SOAP 1.2. Could that be the issue for the null problem? Thanks for the help on my two issues! Edward - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Mac OS X build problems - Axis 1.0.0
Hi - I'm trying to build the axis2c-src-1.0.0 source distribution on a MacBook Pro. The Mac OS X release is: Darwin Simons-MacBook-Pro.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386 Having run ./configure successfully I get the following error when doing a make: ld: multiple definitions of symbol _axutil_error_messages .libs/hash.o definition of _axutil_error_messages in section (__DATA,__common) .libs/allocator.o definition of _axutil_error_messages in section (__DATA,__common) .libs/env.o definition of _axutil_error_messages in section (__DATA,__common) .libs/error.o definition of _axutil_error_messages in section (__DATA,__common) . . .etc Has anyone managed to resolve this issue as yet? thanks in advance Simon
Re: SOAP fault builder
Hey Nandika, Thanks for your reply. Looking at the axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync function in raw_xml_in_out_msg_recv.c was very helpful. So I modified my code accordingly and I think I might have found a bug in the framework. This is what I did 1. Set error status to AXIS2_FAILURE using AXIS2_ERROR_SET 2. Return NULL from my service 3. Implement myservice_on_fault function and create an axiom node which gets added to the soap fault details node. No when I try return a soap fault, the server sends a 500 Internal Server error to the client. Chris Darroch created a JIRA issue late last year about this bug here = https://issues.apache.org/jira/browse/AXIS2C-328 but I dont think the bug has been fixed (pls correct me if I am wrong). I used TcpMon to capture the response and this is what the client sees: HTTP/1.1 500 Internal Server Error Date: Tue, 21 Aug 2007 17:39:55 GMT Server: Apache/2.0.59 (rPath) Content-Length: 613 Connection: close Content-Type: text/html; charset=iso-8859-1 !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title500 Internal Server Error/title /headbody h1Internal Server Error/h1 pThe server encountered an internal error or misconfiguration and was unable to complete your request./p pPlease contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error./p pMore information about this error may be available in the server error log./p hr addressApache/2.0.59 (rPath) Server at 168.159.116.42 Port 80/address /body/html I modified the axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync function to log the soap fault message to axis2.log file just before it returns and see the correct soap fault message. So something happens after this point which makes the apache http server send a 500 Internal server error to the client. My second question was, is there a way to return custom error numbers and error message to the myservice_on_fault function so that the error number/msg can be included in the soap fault. Right now only predefined AXIS2 error message can be set using AXIS2_ERROR_SET. I understand that I can modify axutil_error.h file but it says that the error codes are reserved for modules. Is there any other better way of doing this? Thank you folks! Subra On 8/21/07, Nandika Jayawardana [EMAIL PROTECTED] wrote: Hi Subra, To send a fault from the service you can do the following. In the invoke function of the service skeleton set an the error status to AXIS2_FALSE and return NULL. You can use the AXIS2_ERROR_SET macro to set the error status. Then implement the on_fault function in the skeleton to return the error message you want to return. This will be added to the fault detail section. When axis2 calls invoke function and finds that it returned null, it will check the error status. If the error status if AXIS2_FALSE , then a fault is returned. You do not have to be concerned about the soap version of the fault. Depending on the received message's soap version an appropriate soap fault will be returned. You can have a look at axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync function in raw_xml_in_out_msg_recv.c file to understand how the fault is processed. Regards, Nandika On 8/21/07, Subra A Narayanan [EMAIL PROTECTED] 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] 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.2fault message rather
Re: Is AXIS2/C what I need?
Frank, Hi again. Just to cover our reasons for using gsoap: 1. It is older software ... fewer bugs. Lower risk for a production project. 2. We used it for an rpc wsdl, so nothing too fancy as far as wsdls go. 3. Our legacy C++ software developers and integration team knows almost nothing about building C++ code with ant (they dislike all things java). 4. Axis2 for java was not ready for production so (at the time) we did not consider Axis2/c. On 8/20/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Frank Zhou wrote: 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). Axis2/C can handle SOAP over HTTP. But there are some TODOs pending in WSDL space. (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. As mentioned earlier, there is a piece of code written in Axis2/C called woden, that can deal with the WSDL functionality that you are looking for. Unfortunately that is not in the main source tree, because we could not maintain it - due to lack of contributors in that space. At some point, however, someone will again start looking into that, at which point you would have WSDL handling features. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Axis2/C is a C library, that works on Windows, Solaris, MacOS and Linux. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? I am not in a position to do a formal comparison on Axis2/C vs. gSOAP. However, here is an overview: - Axis2/C comes with Apache license, and gSOAP comes with GNU license - Axis2/C is just two years old, gSOAP has been around for much longer - Axis2/C is based on Axis2 architecture, an architecture designed to cope with extensions and addition of new WS-* spec implementations. You would have to refer to gSOAP site on their architecture - Axis2/C already have full WS-Security and WS-RM implementations, to my knowledge, gSOAP do not have those specs implemented fully. (http://www.bloglines.com/blog/samisa?id=57) - Axis2/C has a comparatively simple deployment model. You get Apache2 and IIS modules with Axis2/C. If you are using apache module to deploy, it is one off configuration. But if gSOAP, you have to configure Apache server for each and every service that you cant to deploy. - Axis2/C has the ability to support many other transports. It already support HTTP and TCP. WSO2 WSF/C has implemented an XMPP transport and one of the GSOC students is implementing and SMTP transport. To my knowledge, gSOAP only support HTTP transport HTH Regards, Samisa... 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] -- 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: Is AXIS2/C what I need?
Hi Cara, Thanks much for your replies. I had quite a bit of experience with AXIS-J but not gSOAP or AXIS-c. Does gSOAP come with a WSDL parser with APIs to allow me traverse the various parts of a WSDL? In my application, I do not intend to deploy just one web services (so no code generation), I need to be able to parse any standard WSDLs. Thanks much. Frank --- cara [EMAIL PROTECTED] wrote: Frank, Hi again. Just to cover our reasons for using gsoap: 1. It is older software ... fewer bugs. Lower risk for a production project. 2. We used it for an rpc wsdl, so nothing too fancy as far as wsdls go. 3. Our legacy C++ software developers and integration team knows almost nothing about building C++ code with ant (they dislike all things java). 4. Axis2 for java was not ready for production so (at the time) we did not consider Axis2/c. On 8/20/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Frank Zhou wrote: 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). Axis2/C can handle SOAP over HTTP. But there are some TODOs pending in WSDL space. (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. As mentioned earlier, there is a piece of code written in Axis2/C called woden, that can deal with the WSDL functionality that you are looking for. Unfortunately that is not in the main source tree, because we could not maintain it - due to lack of contributors in that space. At some point, however, someone will again start looking into that, at which point you would have WSDL handling features. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Axis2/C is a C library, that works on Windows, Solaris, MacOS and Linux. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? I am not in a position to do a formal comparison on Axis2/C vs. gSOAP. However, here is an overview: - Axis2/C comes with Apache license, and gSOAP comes with GNU license - Axis2/C is just two years old, gSOAP has been around for much longer - Axis2/C is based on Axis2 architecture, an architecture designed to cope with extensions and addition of new WS-* spec implementations. You would have to refer to gSOAP site on their architecture - Axis2/C already have full WS-Security and WS-RM implementations, to my knowledge, gSOAP do not have those specs implemented fully. (http://www.bloglines.com/blog/samisa?id=57) - Axis2/C has a comparatively simple deployment model. You get Apache2 and IIS modules with Axis2/C. If you are using apache module to deploy, it is one off configuration. But if gSOAP, you have to configure Apache server for each and every service that you cant to deploy. - Axis2/C has the ability to support many other transports. It already support HTTP and TCP. WSO2 WSF/C has implemented an XMPP transport and one of the GSOC students is implementing and SMTP transport. To my knowledge, gSOAP only support HTTP transport HTH Regards, Samisa... 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] -- 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] Fussy? Opinionated?
Re: Is AXIS2/C what I need?
Hi Frank, It has to.. at our company we ceased researching axis due to it's development status, but have been using gSOAP for most of our C/C++ webservices, and of course, they all pack a wsdl with them ;) now where that parser is being used I don't know, but I can tell for sure it does parse them. We had success communicating a webservice written in a z/OS server with a Windows XP C++ client which was built using gSOAP. Hope that helps Carlos Frank Zhou escribió: Thanks much for your replies. I had quite a bit of experience with AXIS-J but not gSOAP or AXIS-c. Does gSOAP come with a WSDL parser with APIs to allow me traverse the various parts of a WSDL? In my application, I do not intend to deploy just one web services (so no code generation), I need to be able to parse any standard WSDLs. Thanks much. Frank --- cara [EMAIL PROTECTED] wrote: Frank, Hi again. Just to cover our reasons for using gsoap: 1. It is older software ... fewer bugs. Lower risk for a production project. 2. We used it for an rpc wsdl, so nothing too fancy as far as wsdls go. 3. Our legacy C++ software developers and integration team knows almost nothing about building C++ code with ant (they dislike all things java). 4. Axis2 for java was not ready for production so (at the time) we did not consider Axis2/c. On 8/20/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Frank Zhou wrote: 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). Axis2/C can handle SOAP over HTTP. But there are some TODOs pending in WSDL space. (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. As mentioned earlier, there is a piece of code written in Axis2/C called woden, that can deal with the WSDL functionality that you are looking for. Unfortunately that is not in the main source tree, because we could not maintain it - due to lack of contributors in that space. At some point, however, someone will again start looking into that, at which point you would have WSDL handling features. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Axis2/C is a C library, that works on Windows, Solaris, MacOS and Linux. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? I am not in a position to do a formal comparison on Axis2/C vs. gSOAP. However, here is an overview: - Axis2/C comes with Apache license, and gSOAP comes with GNU license - Axis2/C is just two years old, gSOAP has been around for much longer - Axis2/C is based on Axis2 architecture, an architecture designed to cope with extensions and addition of new WS-* spec implementations. You would have to refer to gSOAP site on their architecture - Axis2/C already have full WS-Security and WS-RM implementations, to my knowledge, gSOAP do not have those specs implemented fully. (http://www.bloglines.com/blog/samisa?id=57) - Axis2/C has a comparatively simple deployment model. You get Apache2 and IIS modules with Axis2/C. If you are using apache module to deploy, it is one off configuration. But if gSOAP, you have to configure Apache server for each and every service that you cant to deploy. - Axis2/C has the ability to support many other transports. It already support HTTP and TCP. WSO2 WSF/C has implemented an XMPP transport and one of the GSOC students is implementing and SMTP transport. To my knowledge, gSOAP only support HTTP transport HTH Regards, Samisa... Thanks very much. Frank
Re: Is AXIS2/C what I need?
cara wrote: Frank, Hi again. Just to cover our reasons for using gsoap: 1. It is older software ... fewer bugs. Lower risk for a production project. But it does not have that many WS-* coverage that Axis2/C has 2. We used it for an rpc wsdl, so nothing too fancy as far as wsdls go. Axis2/C focus on doclit model 3. Our legacy C++ software developers and integration team knows almost nothing about building C++ code with ant (they dislike all things java). Ant was used by Axis C++ project. Axis2/C uses GNU make. 4. Axis2 for java was not ready for production so (at the time) we did not consider Axis2/c. Axis2/Java is being used in production, so is Axis2/C. Samisa... On 8/20/07, *Samisa Abeysinghe* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Frank Zhou wrote: 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). Axis2/C can handle SOAP over HTTP. But there are some TODOs pending in WSDL space. (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. As mentioned earlier, there is a piece of code written in Axis2/C called woden, that can deal with the WSDL functionality that you are looking for. Unfortunately that is not in the main source tree, because we could not maintain it - due to lack of contributors in that space. At some point, however, someone will again start looking into that, at which point you would have WSDL handling features. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Axis2/C is a C library, that works on Windows, Solaris, MacOS and Linux. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? I am not in a position to do a formal comparison on Axis2/C vs. gSOAP. However, here is an overview: - Axis2/C comes with Apache license, and gSOAP comes with GNU license - Axis2/C is just two years old, gSOAP has been around for much longer - Axis2/C is based on Axis2 architecture, an architecture designed to cope with extensions and addition of new WS-* spec implementations. You would have to refer to gSOAP site on their architecture - Axis2/C already have full WS-Security and WS-RM implementations, to my knowledge, gSOAP do not have those specs implemented fully. (http://www.bloglines.com/blog/samisa?id=57) - Axis2/C has a comparatively simple deployment model. You get Apache2 and IIS modules with Axis2/C. If you are using apache module to deploy, it is one off configuration. But if gSOAP, you have to configure Apache server for each and every service that you cant to deploy. - Axis2/C has the ability to support many other transports. It already support HTTP and TCP. WSO2 WSF/C has implemented an XMPP transport and one of the GSOC students is implementing and SMTP transport. To my knowledge, gSOAP only support HTTP transport HTH Regards, Samisa... 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] 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 http://wso2.org/projects/wsf/c?WSO2nbsp;Webnbsp;Servicesnbsp;Framework/Cnbsp;-nbsp;Opennbsp;sourcenbsp;Cnbsp;librarynbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;services
Re: Is AXIS2/C what I need?
Carlos Escobar Zarzar wrote: Hi Frank, It has to.. at our company we ceased researching axis due to it's development status, but have been using gSOAP for most of our C/C++ webservices, and of course, they all pack a wsdl with them ;) now where that parser is being used I don't know, but I can tell for sure it does parse them. Axis2/C also have the contract first model of development. We had success communicating a webservice written in a z/OS server with a Windows XP C++ client which was built using gSOAP. Axis2/C has proved to interop with .NET and J2EE with basic SOAP as well as WS-* level. Samisa... Hope that helps Carlos Frank Zhou escribió: Thanks much for your replies. I had quite a bit of experience with AXIS-J but not gSOAP or AXIS-c. Does gSOAP come with a WSDL parser with APIs to allow me traverse the various parts of a WSDL? In my application, I do not intend to deploy just one web services (so no code generation), I need to be able to parse any standard WSDLs. Thanks much. Frank --- cara [EMAIL PROTECTED] wrote: Frank, Hi again. Just to cover our reasons for using gsoap: 1. It is older software ... fewer bugs. Lower risk for a production project. 2. We used it for an rpc wsdl, so nothing too fancy as far as wsdls go. 3. Our legacy C++ software developers and integration team knows almost nothing about building C++ code with ant (they dislike all things java). 4. Axis2 for java was not ready for production so (at the time) we did not consider Axis2/c. On 8/20/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Frank Zhou wrote: 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). Axis2/C can handle SOAP over HTTP. But there are some TODOs pending in WSDL space. (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. As mentioned earlier, there is a piece of code written in Axis2/C called woden, that can deal with the WSDL functionality that you are looking for. Unfortunately that is not in the main source tree, because we could not maintain it - due to lack of contributors in that space. At some point, however, someone will again start looking into that, at which point you would have WSDL handling features. (3) The library is in c++ and available for multi-platforms, like windows, linux and unix et cetera. Axis2/C is a C library, that works on Windows, Solaris, MacOS and Linux. Please let me know if AXIS2/c is a good choice to me. and how it is compared to gSOAP? I am not in a position to do a formal comparison on Axis2/C vs. gSOAP. However, here is an overview: - Axis2/C comes with Apache license, and gSOAP comes with GNU license - Axis2/C is just two years old, gSOAP has been around for much longer - Axis2/C is based on Axis2 architecture, an architecture designed to cope with extensions and addition of new WS-* spec implementations. You would have to refer to gSOAP site on their architecture - Axis2/C already have full WS-Security and WS-RM implementations, to my knowledge, gSOAP do not have those specs implemented fully. (http://www.bloglines.com/blog/samisa?id=57) - Axis2/C has a comparatively simple deployment model. You get Apache2 and IIS modules with Axis2/C. If you are using apache module to deploy, it is one off configuration. But if gSOAP, you have to configure Apache server for each and every service that you cant to deploy. - Axis2/C has the ability to support many other transports. It already support HTTP and TCP. WSO2 WSF/C has implemented an XMPP transport and one of the GSOC students is implementing and SMTP
Re: Mac OS X build problems - Axis 1.0.0
Hopefully, this issue is resolved by now in the latest svn. This was done after 1.0.0 release. Please try the source of 1.1.0 RC1 hosted here: http://people.apache.org/~samisa/1.1.0-RC1/ Thanks, Samisa... Simon Parker wrote: Hi - I'm trying to build the axis2c-src-1.0.0 source distribution on a MacBook Pro. The Mac OS X release is: *Darwin Simons-MacBook-Pro.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386* Having run ./configure successfully I get the following error when doing a make: *ld: multiple definitions of symbol _axutil_error_messages * *.libs/hash.o definition of _axutil_error_messages in section (__DATA,__common)* *.libs/allocator.o definition of _axutil_error_messages in section (__DATA,__common)* *.libs/env.o definition of _axutil_error_messages in section (__DATA,__common)* *.libs/error.o definition of _axutil_error_messages in section (__DATA,__common)* . . .etc Has anyone managed to resolve this issue as yet? thanks in advance Simon -- 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]
[ANN] WSO2 Web Services Framework (WSF)/C v1.0.1 Released
WSO2 Web Services Framework (WSF)/C v1.0.1 Released === WSO2 WSF/C team is pleased to announce the release of WSO2 WSF/C v1.0.1. WSO2 Web Services Framework/C (WSO2 WSF/C) is a standards compliant, enterprise grade, open source, C library for providing and consuming Web services in C. WSO2 WSF/C is based on a family of Apache open source projects, including Apache Axis2/C, Apache Rampart/C, Apache Sandesha2/C and Apache Savan/C. It is released under the Apache License V2.0 as well. You can download this release from: http://dist.wso2.org/products/wsf/c/1.0.1 For more information, please visit our project home page: http://wso2.org/projects/wsf/c - Key Features = 1. Attachments with MTOM * Binary optimized * Non-optimized (Base64 binary) 2. WS-Addressing * Version 1.0 * Submission 3. WS-Policy 4. WS-Security * UsernameToken * Signing * Encryption 5. WS-ReliableMessaging 6. WS-Eventing 7. SSL enabled Transport layer 8. XMPPtransport layer 9. TCP transport layer 10. wsclient command line tool to consume Web services -- Known Issues == 1. There can be memory leaks when using WS-ReliableMessaging. Please refer to the Apache Sandesha2/C README file located in the sandesha2 folder. 2. WS-ReliableMessaging and WS-Security does not work with the Guththila parser. --- Reporting Problems === Issues can be reported using the public JIRA available at: https://wso2.org/jira/browse/WSFC Contact Us Please subscribe to our user or developer mailing lists. For details on how to subscribe please visit: http://wso2.org/projects/wsf/c#mail We welcome your feedback on this implementation. Thank you for your interest in WSO2 WSF/C. -- WSO2 WSF/C Team -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP fault builder
Hi Subra, Subra A Narayanan [EMAIL PROTECTED] writes: I modified the axis2_raw_xml_in_out_msg_recv_invoke_business_logic_sync function to log the soap fault message to axis2.log file just before it returns and see the correct soap fault message. So something happens after this point which makes the apache http server send a 500 Internal server error to the client. were you able to log those fault to axis2.log? My feeling is, there might be some misconfiguration in apache server. Did you try with axis2_http_server? My second question was, is there a way to return custom error numbers and error message to the myservice_on_fault function so that the error number/msg can be included in the soap fault. Right now only predefined AXIS2 error message can be set using AXIS2_ERROR_SET. I understand that I can modify axutil_error.h file but it says that the error codes are reserved for modules. Is there any other better way of doing this? AFAIK, there is no such a mechanism. However I think we should provide custom error mechanism to user. May be an extension for current axis2 error mechanism will be helpful. Thoughts ??? thanks, Dinesh -- Dinesh Premalal http://xydinesh.wordpress.com/ GPG ID : A255955C GPG Key Finger Print : C481 E5D4 C27E DC34 9257 0229 4F44 266E A255 955C - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SOAP Fault Segmentation Fault
Hi Edward, It is not possible to cast axiom_node_t* pointer to axiom_soap_body_t type. One thing you could do in order to process the fault is following. Use axis2_svc_client_get_last_response_has_fault check whether the received message is a fault at client side. Then you can use axis2_svc_client_get_last_response_soap_envelope function to obtain the received soap envelope and then obtain the soap body and soap fault etc from the soap envelope. Regards Nandika On 8/21/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am just to run this snippet of code that I have designed: if (axiom_soap_body_has_fault((axiom_soap_body_t*)create_resp, env)) { axiom_soap_fault_t* fault = axiom_soap_body_get_fault( (axiom_soap_body_t*)create_resp, env); axiom_soap_fault_code_t* code = axiom_soap_fault_get_code(fault, env); axiom_soap_fault_value_t* value = axiom_soap_fault_code_get_value(code, env); axis2_char_t* text = axiom_soap_fault_value_get_text(value, env); printf(\n%s\n, text); axiom_soap_fault_reason_t* reason = axiom_soap_fault_get_reason(fault, env); axiom_soap_fault_text_t* reason_text = axiom_soap_fault_reason_get_first_soap_fault_text( reason, env); axis2_char_t* value_text = axiom_soap_fault_text_get_text(reason_text, env); printf(\n%s\n, value_text); } create_resp is type-casted since it is originally an object of type axiom_node_t*. I am trying to test how to process a SOAP fault that the client receives from the server. If I comment out the second portion of the if section (the part starting with the code object), I see (null) printed out for value_text, which is not what I expected. When I keep in the second portion, I get a segmentation fault on the line: axis2_char_t* text = axiom_soap_fault_value_get_text(value, env); Here is the exact part that the error occurs: Program received signal SIGSEGV, Segmentation fault. axiom_node_get_node_type (om_node=0x772e772f2f3a, env=0x508340) at om_node.c:811 811 return om_node-node_type; Is this an error on my end or bug in the Axis2/C library? Also, seeing (null) for value_text is not correct, as I can see the returning SOAP fault payload, and the Value is not null is the payload. The server is supposed to return a SOAP 1.1 message, but the payload is in SOAP 1.2. Could that be the issue for the null problem? Thanks for the help on my two issues! Edward - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- [EMAIL PROTECTED] WSO2 Inc: http://www.wso2.com
Re: Axis client sending multiRef
The client is rpc/literal, but I didn't follow this article to update my web service : http://ws.apache.org/axis2/1_3/Axis2-rpc-support.html I'll rebuild my wsdl accordingly and see what happens. Pierre Anne Thomas Manes [EMAIL PROTECTED] 20/08/2007 21:39 Veuillez répondre à axis-user@ws.apache.org A axis-user@ws.apache.org cc Objet 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]
Re: Problem with MTOM
public interface ServiceInreface { String echoText(String name); Change the above as follows.. String echoText(String name, DataHandler fileData thanks, Thilina } 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 -- Thilina Gunarathne - http://www.wso2.com - http://thilinag.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Eclipse WTP
Hi, I'm using WTP 1.5.4 and Axis 1.3 is integrated in WTP 1.5.4 Regards, Steve On 8/21/07, Lahiru Sandakith [EMAIL PROTECTED] wrote: 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
RE: Problem with MTOM
Hi All, Let me re-phrase my question to make it simpler. Can we use java2wsdl ant task to generate the WSDL file especially when MTOM attachments are expected in Request or Response? I noticed that inside the axis2/samples/mtom folder, the build file doesn't contain task to generate WSDL file from a java file. How should we automate the process of generation of WSDL for MTOM attachments? Thanks and 1Regards, Ashish Arya, Sungard Offshore Services (India) http://www.sungard.com/sos From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 5:13 PM To: axis-user@ws.apache.org Subject: 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: Problem with MTOM
you can use the the syntax import org.apache.axiom.om.OMElement; public interface ServiceInreface { String echoText(OMElement element); } I have done the same using eclipse plug in so it should be possible with java2wsdl also Binoy K Philip _ From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 2:01 PM To: axis-user@ws.apache.org Subject: RE: Problem with MTOM Hi All, Let me re-phrase my question to make it simpler. Can we use java2wsdl ant task to generate the WSDL file especially when MTOM attachments are expected in Request or Response? I noticed that inside the axis2/samples/mtom folder, the build file doesn't contain task to generate WSDL file from a java file. How should we automate the process of generation of WSDL for MTOM attachments? Thanks and 1Regards, Ashish Arya, Sungard Offshore Services (India) http://www.sungard.com/sos _ From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 5:13 PM To: axis-user@ws.apache.org Subject: 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: Problem with MTOM
Hi Binoy, Thanks for your help. I noticed that after using OMElement as method parameter the generated WSDL file has following lines for the request complex type: xs:element name=echoText xs:complexType xs:sequence xs:element name=param0 nillable=true type=xs:anyType / Which means client can send any type of data as parameter to this method. But I wanted to restrict user from only sending binaries as MTOM attachment. As per suggested by Thilina, I tried to use 'DataHandler' as method parameter and this time it generates following lines in WSDL xs:element name=param0 nillable=true type=xs:base64Binary / which is matching my requirement. Anyway, Thanks to you and Thilina for your help. Regards, Ashish From: Binoy K Philip [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 3:16 PM To: axis-user@ws.apache.org Cc: Ashish Arya Subject: RE: Problem with MTOM you can use the the syntax import org.apache.axiom.om.OMElement; public interface ServiceInreface { String echoText(OMElement element); } I have done the same using eclipse plug in so it should be possible with java2wsdl also Binoy K Philip From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 2:01 PM To: axis-user@ws.apache.org Subject: RE: Problem with MTOM Hi All, Let me re-phrase my question to make it simpler. Can we use java2wsdl ant task to generate the WSDL file especially when MTOM attachments are expected in Request or Response? I noticed that inside the axis2/samples/mtom folder, the build file doesn't contain task to generate WSDL file from a java file. How should we automate the process of generation of WSDL for MTOM attachments? Thanks and 1Regards, Ashish Arya, Sungard Offshore Services (India) http://www.sungard.com/sos From: Ashish Arya [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 5:13 PM To: axis-user@ws.apache.org Subject: 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
Axis2 Common Invocation Framework
Ok, I think I got the patch to work. I compiled the code provided in https://issues.apache.org/jira/browse/AXIS2-2137 and incorporated it to Ode's Axis2 Kernel. I started Ode and it doesn't throw any errors. I tried the .aar service included in the .zip file from JIRA with Eclipse Web Service Explorer and it ran perfectly, but I tried the service with the soap binding how do I try it as a local java call? -- View this message in context: http://www.nabble.com/Axis2-Common-Invocation-Framework-tf4304756.html#a12253310 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can't generate C++ Client code from WSDL2WS for my WSDL file.
Hi All, I want to generate C++ code from my WSDL file, to use it in my Client Application. But I am getting following error while generating the code == java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -sclient -lc++ OssPortalAPIService.wsdl org.apache.axis.wsdl.wsdl2ws.WrapperFault: unregistered type {http://xml.apache.org/xml-soap}Map referred at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createParameterInfo(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addRPCStyleInputMessageToMethodInfo(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown Source) at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source) Code generation failed. Please see errors above. === Can any body help me in this regard -Thanks -Maitreyi -- View this message in context: http://www.nabble.com/Can%27t-generate-C%2B%2B-Client-code-from-WSDL2WS-for-my-WSDL-file.-tf4304992.html#a12254043 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: [Axis2]https server problem
In case it makes a difference, my Java version is 1.4.2_03 and my OS is Windows XP Professional. Is there any other information that might help diagnose my problem? Andrew Andrew Martin wrote: I just noticed that an error is being written to a log file that I didn't know about whenever this error happens. I don't know what it means, though. Here it is: ErrorDispatcherValve[localhost]: Exception Processing ErrorPage[errorCode=500, location=/axis2-web/Error/error500.jsp] java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:340) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:628) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:824) at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:413) at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherValve.java:327) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:181) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Unknown Source) Andrew Andrew Martin wrote: I've tried disabling my initialization service, but I still have the same problem. So I think it must be a problem with my configuration. Does anyone know of something I could be doing in my configuration files that would cause this? Andrew Andrew Martin wrote: Does it seem reasonable to believe that my certificate is installed correctly since no error occurs before reaching AxisServlet? If there was a certificate problem, I'd get an error related to that sooner, wouldn't I? Is there anything that Axis2 does differently between http and https? Andrew Andrew Martin wrote: When I invoke my service via https, a NullPointerException occurs in org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContext before my own service code is invoked. The line is: TransportListener listener = msgContext.getTransportIn().getReceiver(); getTransportIn() seems to be returning null. It works via http, though. I'm using Tomcat 4.1.30 and Axis2 1.2. Could this be caused by a mistake in one of my configuration files? Or is there something that I might be doing my initialization service that runs at startup which would cause problems for later service calls? Here's the complete stack trace: Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at
RE: [Axis2]https server problem
Looks like a Tomcat error. Try sending the problem to the Tomcat users list: [EMAIL PROTECTED] I think you need to subscribe first, go here: http://tomcat.apache.org/lists.html#tomcat-users -jeff -Original Message- From: Andrew Martin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 8:56 AM To: axis-user@ws.apache.org Subject: Re: [Axis2]https server problem In case it makes a difference, my Java version is 1.4.2_03 and my OS is Windows XP Professional. Is there any other information that might help diagnose my problem? Andrew Andrew Martin wrote: I just noticed that an error is being written to a log file that I didn't know about whenever this error happens. I don't know what it means, though. Here it is: ErrorDispatcherValve[localhost]: Exception Processing ErrorPage[errorCode=500, location=/axis2-web/Error/error500.jsp] java.lang.IllegalStateException at org.apache.coyote.Response.reset(Response.java:340) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:628) at org.apache.coyote.tomcat4.CoyoteResponse.reset(CoyoteResponse.java:824) at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherVa lve.java:413) at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatcherVa lve.java:327) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa lve.java:181) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :163) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve. java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:82 8) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC onnection(Http11Protocol.java:700) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:58 4) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:683) at java.lang.Thread.run(Unknown Source) Andrew Andrew Martin wrote: I've tried disabling my initialization service, but I still have the same problem. So I think it must be a problem with my configuration. Does anyone know of something I could be doing in my configuration files that would cause this? Andrew Andrew Martin wrote: Does it seem reasonable to believe that my certificate is installed correctly since no error occurs before reaching AxisServlet? If there was a certificate problem, I'd get an error related to that sooner, wouldn't I? Is there anything that Axis2 does differently between http and https? Andrew Andrew Martin wrote: When I invoke my service via https, a NullPointerException occurs in org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContex t before my own service code is invoked. The line is: TransportListener listener = msgContext.getTransportIn().getReceiver(); getTransportIn() seems to be returning null. It works via http, though. I'm using Tomcat 4.1.30 and Axis2 1.2. Could this be caused by a mistake in one of my configuration files? Or is there something that I might be doing my initialization service that runs at startup which would cause problems for later service calls? Here's the complete stack trace: Exception: org.apache.axis2.AxisFault: java.lang.NullPointerException at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv e.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i nvokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4 80) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Axis2 1.3 - Classloading problem the second Try
Hi folks, i have been trying couple of days right now with loading classes placed in my service archive from the service implementation class, but with no result. The funny thing is that i can instantiate this classes without any problem. My service's archive structure: servicer.aar -- com -- META-INF service.xml -- lib lib1.jar lib2.jar Because i have tried different workarounds, i will just list them all here and hopefully someone can help me with this issue. As i wrote on my first e-mail the classes i am trying to load with the classloader are in the lib/ and for sure don't exist in the WEB-INF/lib directory. Also my archive file needs to be unpacked My system configuration: IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 Apache Tomcat 5.5.12 Axis2 1.3 WAR-Distribution (Default axis2.xml + Hotupdate) So now the workarounds i have been trying: Code 1: ClassLoader loader = getClass().getClassLoader(); Class myClass = loader.loadClass('TestClassName'); or Class myClass = Class.forName('TestClassName', true, loader); Code 2: ClassLoader loader = ServiceClassImpl.class.getClassLoader(); Class myClass = loader.loadClass('TestClassName'); or Class myClass = Class.forName('TestClassName', true, loader); Code 3: MessageContext messageCtx = MessageContext.getCurrentMessageContext(); AxisService serviceHandler = messageCtx.getAxisService(); ClassLoader loader = serviceHandler.getClassLoader(); Class myClass = loader.loadClass('TestClassName'); or Class myClass = Class.forName('TestClassName', true, loader); Code 4 (Probably obsolete): MessageContext messageCtx = MessageContext.getCurrentMessageContext(); AxisService serviceHandler = messageCtx.getAxisService(); ClassLoader loader = serviceHandler.getClassLoader().getParent(); Class myClass = loader.loadClass('TestClassName'); or Class myClass = Class.forName('TestClassName', true, loader); Code 5 (Probably dirty but still not working): ClassLoader loader = Thread.currentThread().getContextClassLoader(); Class myClass = loader.loadClass('TestClassName'); or Class myClass = Class.forName('TestClassName', true, loader); I have tried also different environments: Environment 1 and 2: Apache Axis 1.3 Standalone Server Sun JDK 1.6.0-b105 / Sun JDK 1.5.0 Environment 3 and 4: Apache Tomcat 5.5.23 Apache Axis2 1.3 WAR-Distribution (Default axis2.xml + Hotupdate) Sun JDK 1.6.0-b105 / Sun JDK 1.5.0 So long listing, but hopefully anybody can help me out or give me a little bit guidance on Axis2 and classloading issues. My sources for all the above code snippets are wso2.org, ws.apache.org/axis2 and old mailing list archives on ws.apache.org/axis2. Greetings Periklis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Undeclared namespace prefix SOAP-ENV
Hello list, I have a problem by accessing a AXISCPP service from an AXIS(2) Java client. I have a very simple WSDL, having only one method adding two numbers. I must access this service over a Java client, if it is possible over a AXIS2 Java client. The wsdl is generated from a Java Class with java org.apache.axis.wsdl.Java2WSDL -lhttp://localhost:9090/axis/TestService; -uLITERAL -yDOCUMENT -nauger org.fzk.auger.MathAdd When I generate the client stubs and access the service I always get an Exception: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix SOAP-ENV at [row,col {unknown-source}]: [2,19] at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:81) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:356) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) at org.fzk.auger.MathAddServiceStub.add(MathAddServiceStub.java:151) at org.fzk.auger.Client.main(Client.java:14) Does anybody know how I can solve the exception? Or it is not possible to access a c++ service generated with -uLITERAL -yDOCUMENT - where I think the problem is from. You can find the WSDL below - but I dont't think that it is wrong. Kind regards Michael ?xml version=1.0 encoding=UTF-8? wsdl:definitions targetNamespace=http://auger.fzk.org; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=http://auger.fzk.org; xmlns:intf=http://auger.fzk.org; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; !--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)-- wsdl:types schema elementFormDefault=qualified targetNamespace=http://auger.fzk.org; xmlns=http://www.w3.org/2001/XMLSchema; element name=add complexType sequence element name=a type=xsd:int/ element name=b type=xsd:int/ /sequence /complexType /element element name=addResponse complexType sequence element name=addReturn type=xsd:int/ /sequence /complexType /element /schema /wsdl:types wsdl:message name=addResponse wsdl:part element=impl:addResponse name=parameters/ /wsdl:message wsdl:message name=addRequest wsdl:part element=impl:add name=parameters/ /wsdl:message wsdl:portType name=MathAdd wsdl:operation name=add wsdl:input message=impl:addRequest name=addRequest/ wsdl:output message=impl:addResponse name=addResponse/ /wsdl:operation /wsdl:portType wsdl:binding name=TestServiceSoapBinding type=impl:MathAdd wsdlsoap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=add wsdlsoap:operation soapAction=/ wsdl:input name=addRequest wsdlsoap:body use=literal/ /wsdl:input wsdl:output name=addResponse wsdlsoap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=MathAddService wsdl:port binding=impl:TestServiceSoapBinding name=TestService wsdlsoap:address location=http://localhost:9090/axis/TestService/ /wsdl:port /wsdl:service /wsdl:definitions -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Java Option for choosing Transport Chunking as FALSE
Hi All, I use Axis2's WSDL2Java utility to generate ADB stubs from a .NET webservice. This works fine if I change the option for Transport Chunking to False in the service client or the operation client in the stub. But if I want that while generating the stubs itself, they are generated with the Transport chunking as false, it would be better. So does anyone know if WSDL2Java supports such an option, because I have tried to search it on the net and I havent found anything of this sort. Hence, wanted to take a last opinion from here before I decide that I have to set the transport chunking property to false in the stub everytime I create the stub again. Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/WSDL2Java-Option-for-choosing-Transport-Chunking-as-FALSE-tf4306023.html#a12257337 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 know .NET is using WSE with DIME, do you know if Axis2 support DIME? Thanks John -Original Message- From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 1:28 AM To: axis-user@ws.apache.org Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Order of headers on Axis response packet
All, I've developed some web services that will be in use by both Java and .NET users. Java clients have no problem with the results, but the first .NET developer has reported a problem with the WCF text encoder for .NET that is preventing them from correctly parsing the response. Has anyone encountered this problem and if so, is there a way that I can fix it on my server side so that we can proceed? If I could change the order of the headers, that would likely be sufficient. Is there a way to do that through configuration changes? Thanks, Jennifer For reference, here's the email from my client: After a bit of research, I have found that the WCF text encoder has a bug in it right now. It does an awkward series of string parsing to determine the content type and character set in the http header. The current logic assumes that the character set will always immediately follow the content type. However, Axis inserts the optional action parameter between content type and character set. On a side note, let me be clear that I am not saying this is a problem with Axis. WCF just doesn't properly implement the W3C RFC in this situation. For example, the following content type header would be successfully parsed: application/soap+xml; charset=utf-8; action=http://myaction; However, if you swap the order of action and charset, WCF currently can't handle it: application/soap+xml; action=http://myaction;; charset=utf-8 This is apparently a known issue that will be addressed in the next release of WCF. Unfortunately, I obviously need a solution right now. :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xs:redefine problem with axis2-1.3
I am having a problem running wsdl2java in axis2-1.3 against a schema that uses the xs:redefine element. The error is: error: src-resolve: type '[EMAIL PROTECTED]' not found. [EMAIL PROTECTED] (real names changed to protect the innocent) is the type that is being redefined. Interestingly enough, the following will generate the code without error: java -Xmx256m -classpath $AXIS_LIB/xbean-2.2.0.jar: $AXIS_LIB/stax-api-1.0.1.jar:$JAVA_HOME/lib/tools.jar org.apache.xmlbeans.impl.tool.SchemaCompiler -out /tmp/xmltypes.jar My.wsdl What is axis wsdl2java doing above and beyond what xmlbeans SchemaCompiler does? Thanks Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: urgent help on interop with SOAP over TCP on .Net
Does anybody know how I can download addressing.jar for Axis1.2 or later? Thanks John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2]Can't use SSL with scope=transportsession
When I try to invoke my service via https, Axis2 1.2 throws a NullPointerException: Caused by: java.lang.NullPointerException at org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContext(InstanceDispatcher.java:123) at org.apache.axis2.engine.InstanceDispatcher.invoke(InstanceDispatcher.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:383) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116) ... 33 more I think I found what's causing it. My service is defined like this in services.xml: service name=... scope=transportsession.../service If I remove 'scope=transportsession', Axis2 no longer throws this Exception, and my own code is invoked (though it causes my code to fail, since mc.getSessionContext() returns null). Is there any reason why 'scope=transportsession' would work via http but not https? -- 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: Order of headers on Axis response packet
Please get the Axis2 1.3's source zip and look at: org.apache.axis2.transport.http.ApplicationXMLFormatter.java You can write your own class that overrides the getContentType method of that class and specify your class in the axis2.xml thanks, dims On 8/21/07, Ford, Jennifer M. [EMAIL PROTECTED] wrote: All, I've developed some web services that will be in use by both Java and .NET users. Java clients have no problem with the results, but the first .NET developer has reported a problem with the WCF text encoder for .NET that is preventing them from correctly parsing the response. Has anyone encountered this problem and if so, is there a way that I can fix it on my server side so that we can proceed? If I could change the order of the headers, that would likely be sufficient. Is there a way to do that through configuration changes? Thanks, Jennifer For reference, here's the email from my client: After a bit of research, I have found that the WCF text encoder has a bug in it right now. It does an awkward series of string parsing to determine the content type and character set in the http header. The current logic assumes that the character set will always immediately follow the content type. However, Axis inserts the optional action parameter between content type and character set. On a side note, let me be clear that I am not saying this is a problem with Axis. WCF just doesn't properly implement the W3C RFC in this situation. For example, the following content type header would be successfully parsed: application/soap+xml; charset=utf-8; action=http://myaction; However, if you swap the order of action and charset, WCF currently can't handle it: application/soap+xml; action=http://myaction;; charset=utf-8 This is apparently a known issue that will be addressed in the next release of WCF. Unfortunately, I obviously need a solution right now. :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Java2WSDL generating jms url
Does anyone know how to Java2WSDL to generate a wsdl which has a JMS url as the endpoint?
jar file within the aar file
Hi, I have my service classes inside a jar file placed within the aar. I am getting a class not found exception when the server is started. The structure of my aar file is as follows Myservice.jar META-INF services.xml I have my service class within a package in Myservice.jar which is defined in the services.xml file. How do I access the service class within the jar?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424
Re: jar file within the aar file
Try making a lib directory and putting the jar in there: lib Myservice.jar META-INF services.xml Andrew Kandalam, Anjana wrote: Hi, I have my service classes inside a jar file placed within the aar. I am getting a class not found exception when the server is started. The structure of my aar file is as follows Myservice.jar META-INF services.xml I have my service class within a package in Myservice.jar which is defined in the services.xml file. How do I access the service class within the jar?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 -- 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: too many connections openned...
Deepal, We are also having the same issue - it looks like we already have a bug - https://issues.apache.org/jira/browse/AXIS2-2593 - that is still not fixed for blocking calls. Any comments on this as to when we will have a fix? Also, we are using Axis2 1.2 and did not see any cleanupTransport method in ServiceClient. Was this added post 1.2? I just see a cleanup method in ServiceClient and no cleanupTransport method. Thanks, Shantanu - Original Message From: Deepal Jayasinghe [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, August 20, 2007 12:00:17 AM Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: too many connections openned...
Hi Deepal, I was using Axis2 1.2 and there, in the client, using stub._getServiceClient().getOptions().setProperty() did not work the same way as adding a _serviceClient.getOptions().setProperty(...) to the stub. Should it work or there is a problem in whatever I am trying to write? Have you tried using it?Please tell me a correct way of writing it in the client. Thanks and regards, Pushkar Deepal Jayasinghe wrote: 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] -- View this message in context: http://www.nabble.com/too-many-connections-openned...-tf4296829.html#a12262262 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: jar file within the aar file
I tried that. Now I am getting this error org.apache.axis2.deployment.ServiceDeployer deploy The Myservice.aar service, which is not valid, caused java.lang.VerifyError: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class Not found : org.apache.axis.AxisFault What is invalid in the Myservice.aar? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 -Original Message- From: Andrew Martin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 3:26 PM To: axis-user@ws.apache.org Subject: Re: jar file within the aar file Try making a lib directory and putting the jar in there: lib Myservice.jar META-INF services.xml Andrew Kandalam, Anjana wrote: Hi, I have my service classes inside a jar file placed within the aar. I am getting a class not found exception when the server is started. The structure of my aar file is as follows Myservice.jar META-INF services.xml I have my service class within a package in Myservice.jar which is defined in the services.xml file. How do I access the service class within the jar?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Injecting Handlers into Axis 1.X at Runtime
Hello, I would like to inject a handler into Axis 1.4 at runtime through java instead of configuring it in *.wsdd. I am trying to find out if it's possible. If yes, how can I do that? I would appreciate any response on this. Thanks Sumit
Returning Hibernate detached objects in Axis2
Has anyone tried to return a Hibernate detached object in an Axis2 web service? I have an object with lazy-loaded collections of objects. When I try to call the web service, I get a LazyInitializationException because the serializer (Axiom? StAX?) is trying to iterate over the collection. What I need is a way to skip the attribute if it is a PersistentSet that hasn't been initialized. I suspect that the actual coding is pretty simple, the trick is figuring out where to put it, and how to get Axis to use it. Does anyone have any ideas? Thanks, Steve
White spaces are required between publicId and systemId.
Hello all, We have an app that pulls messages from a message queue SOAP server and then we parse the messages. Our app has been running fine for a week or so and all the sudden started giving the following error: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: org.xml.sax.SAXParseException: White spaces are required between publicId and systemId. faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: White spaces are required between publicId and systemId. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) snip long stack trace We didn't change any code on the app, and it still functions properly in our testing environment. Has anyone else seen this error before? I googled for the error and it says that the problem is that there are no spaces between the publicId and the systemId, just like the error says. But, no code changed and no new jars were added. This is the odd part. Any help would be appreciated. Thanks. -- ++ Troy Davidson - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Returning Hibernate detached objects in Axis2
I typically just use the getters to populate xml via databinding, though you may have luck with JiBX - look at those docs on its main site as they talk a bit about hibernate. HTH, Robert On 8/21/07, Steve S [EMAIL PROTECTED] wrote: Has anyone tried to return a Hibernate detached object in an Axis2 web service? I have an object with lazy-loaded collections of objects. When I try to call the web service, I get a LazyInitializationException because the serializer (Axiom? StAX?) is trying to iterate over the collection. What I need is a way to skip the attribute if it is a PersistentSet that hasn't been initialized. I suspect that the actual coding is pretty simple, the trick is figuring out where to put it, and how to get Axis to use it. Does anyone have any ideas? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: too many connections openned...
Deepal, Another thing I noticed in the cleanupTransport method in the current codebase - it does not seem to do anything if the getLastOperationContext() returns null. For a one-way invocation this always returns null. So, this means that the connection is not closed for one-way operations. Looks like a bug to me. Shantanu - Original Message From: Shantanu Sen [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, August 21, 2007 12:37:55 PM Subject: Re: too many connections openned... Deepal, We are also having the same issue - it looks like we already have a bug - https://issues.apache.org/jira/browse/AXIS2-2593 - that is still not fixed for blocking calls. Any comments on this as to when we will have a fix? Also, we are using Axis2 1.2 and did not see any cleanupTransport method in ServiceClient. Was this added post 1.2? I just see a cleanup method in ServiceClient and no cleanupTransport method. Thanks, Shantanu - Original Message From: Deepal Jayasinghe [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, August 20, 2007 12:00:17 AM Subject: 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] - 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: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation
Hi Amila, It worked with the nightly build jars (adb.jar adb-codegen.jar). When will this change be moved to the main release (I mean which Axis2 version)? Thanks Raghu From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 9:36 PM To: axis-user@ws.apache.org Subject: 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.3 Vs 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] mailto:[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: AW: Using Graphics2D in Axis2 Handler
Hi Carsten, I have set the java.awt.headless = true in Java Option but it's still not work. Could you please give me some other options? Thank you. Harry. Zerbst, Carsten wrote: 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] -- View this message in context: http://www.nabble.com/Using-Graphics2D-in-Axis2-Handler-tf4296934.html#a12266697 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Detailed logging for axis2 codegen error parsing wsdl
When I run codegen through ant in eclipse using the task codegen wsdlfilename=websvc.wsdl output=${javacore} databindingName=xmlbeans serverside=true generateservicexml=true serverSideInterface=true/ I get the following errors: [codegen] log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder). [codegen] log4j:WARN Please initialize the log4j system properly. org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL For more detailed logging, how do I get codegen to use my log4j.xml in which I have added a logger setting for org.apache.axis2 ?
Re: [Axis2] Wich library for axis2-client-deployment
Hi Oliver, No you don't need all 51 jars. It depends on how you wrote the client (codegeratared with wsdl2java? databainging (ADB, xmlBeans, ... ) used if any). Also do you use things such as security, RM on the client side? Thanks, Keith. On 8/21/07, Oliver Hirschi [EMAIL PROTECTED] wrote: Hi I developed a Axis2-Webservice and a java-client-application, using this service. Now my question is about the deployment - I dont like to have all 51(!) single jars of the axis distributon on each of my client. - Do I have to pack all 51 axis-2 libraries to the deployment of the client, or which jars are needed? - Or another way: Is there one packing containing all axis2-client libraries, or is there a way to pack the 51 jars to one axis2.jar, so there would be only one file for the clients? I tried to pack al the jars to one jar with jar cvf axis2.jar *.jar, but the classes are not found. Great Thanks, -- Oliver Hirschi http://www.FamilyHirschi.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: Undeclared namespace prefix SOAP-ENV
Whats the Axis2 version you used? also what are the arguments you used when generating the clent?. Axis2 Java does support doc lit type stuff. Thanks, Keith. On 8/21/07, Michael Sutter [EMAIL PROTECTED] wrote: Hello list, I have a problem by accessing a AXISCPP service from an AXIS(2) Java client. I have a very simple WSDL, having only one method adding two numbers. I must access this service over a Java client, if it is possible over a AXIS2 Java client. The wsdl is generated from a Java Class with java org.apache.axis.wsdl.Java2WSDL -lhttp://localhost:9090/axis/TestService; -uLITERAL -yDOCUMENT -nauger org.fzk.auger.MathAdd When I generate the client stubs and access the service I always get an Exception: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Undeclared namespace prefix SOAP-ENV at [row,col {unknown-source}]: [2,19] at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:81) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:356) at org.apache.axis2.description.OutInAxisOperationClient.execute( OutInAxisOperation.java:294) at org.fzk.auger.MathAddServiceStub.add(MathAddServiceStub.java :151) at org.fzk.auger.Client.main(Client.java:14) Does anybody know how I can solve the exception? Or it is not possible to access a c++ service generated with -uLITERAL -yDOCUMENT - where I think the problem is from. You can find the WSDL below - but I dont't think that it is wrong. Kind regards Michael ?xml version=1.0 encoding=UTF-8? wsdl:definitions targetNamespace=http://auger.fzk.org; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl= http://auger.fzk.org; xmlns:intf=http://auger.fzk.org; xmlns:wsdl= http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap= http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd= http://www.w3.org/2001/XMLSchema; !--WSDL created by Apache Axis version: 1.4 Built on Apr 22, 2006 (06:55:48 PDT)-- wsdl:types schema elementFormDefault=qualified targetNamespace= http://auger.fzk.org; xmlns=http://www.w3.org/2001/XMLSchema; element name=add complexType sequence element name=a type=xsd:int/ element name=b type=xsd:int/ /sequence /complexType /element element name=addResponse complexType sequence element name=addReturn type=xsd:int/ /sequence /complexType /element /schema /wsdl:types wsdl:message name=addResponse wsdl:part element=impl:addResponse name=parameters/ /wsdl:message wsdl:message name=addRequest wsdl:part element=impl:add name=parameters/ /wsdl:message wsdl:portType name=MathAdd wsdl:operation name=add wsdl:input message=impl:addRequest name=addRequest/ wsdl:output message=impl:addResponse name=addResponse/ /wsdl:operation /wsdl:portType wsdl:binding name=TestServiceSoapBinding type=impl:MathAdd wsdlsoap:binding style=document transport= http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=add wsdlsoap:operation soapAction=/ wsdl:input name=addRequest wsdlsoap:body use=literal/ /wsdl:input wsdl:output name=addResponse wsdlsoap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=MathAddService wsdl:port binding=impl:TestServiceSoapBinding name=TestService wsdlsoap:address location= http://localhost:9090/axis/TestService/ /wsdl:port /wsdl:service /wsdl:definitions -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: WSDL2Java Option for choosing Transport Chunking as FALSE
Not that I know of. But you can try this as a workaround (Asuming your stub is ABCStub) ABCStub stub = new ABCStub(); stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED ,false); Thanks, Keith. On 8/21/07, Pushkar Bodas [EMAIL PROTECTED] wrote: Hi All, I use Axis2's WSDL2Java utility to generate ADB stubs from a .NET webservice. This works fine if I change the option for Transport Chunking to False in the service client or the operation client in the stub. But if I want that while generating the stubs itself, they are generated with the Transport chunking as false, it would be better. So does anyone know if WSDL2Java supports such an option, because I have tried to search it on the net and I havent found anything of this sort. Hence, wanted to take a last opinion from here before I decide that I have to set the transport chunking property to false in the stub everytime I create the stub again. Thanks and regards, Pushkar -- View this message in context: http://www.nabble.com/WSDL2Java-Option-for-choosing-Transport-Chunking-as-FALSE-tf4306023.html#a12257337 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: urgent help on interop with SOAP over TCP on .Net
AFAIK Axis2 does not support DIME. Thanks, Keith. On 8/21/07, Chen, John (N-Avatar Inc.) [EMAIL PROTECTED] wrote: I know .NET is using WSE with DIME, do you know if Axis2 support DIME? Thanks John -Original Message- From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 1:28 AM To: axis-user@ws.apache.org Subject: 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
Re: jar file within the aar file
Hi, You can use this tool hosted by WSO2 in order to validate your aar. http://tools.wso2.org:19762/wservices/AarValidatorXSL/ Thanks, Keith. On 8/22/07, Kandalam, Anjana [EMAIL PROTECTED] wrote: I tried that. Now I am getting this error org.apache.axis2.deployment.ServiceDeployer deploy The Myservice.aar service, which is not valid, caused java.lang.VerifyError: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class Not found : org.apache.axis.AxisFault What is invalid in the Myservice.aar? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 -Original Message- From: Andrew Martin [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 3:26 PM To: axis-user@ws.apache.org Subject: Re: jar file within the aar file Try making a lib directory and putting the jar in there: lib Myservice.jar META-INF services.xml Andrew Kandalam, Anjana wrote: Hi, I have my service classes inside a jar file placed within the aar. I am getting a class not found exception when the server is started. The structure of my aar file is as follows Myservice.jar META-INF services.xml I have my service class within a package in Myservice.jar which is defined in the services.xml file. How do I access the service class within the jar?? Anjana Kandalam Private Client Group - AIG Work: 908-679-2608 Cell: 908-596-0424 -- 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/
RE: [AXIS2] wsdl2java for xmlbeans needs axiom jars?
Upon adding axiom-api-1.2.5.jar and other jars as required, wsdl2java completed successfully. I see that it has generated a class that extends org.apache.axis2.receivers.AbstractInMessageReceiver and uses org.apache.axiom.soap.SOAPEnvelope - so now I am getting compile errors. So is axiom-api-1.2.5.jar needed even though I am using xmlbeans binding? From: Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] Sent: Monday, August 20, 2007 10:38 AM To: axis-user@ws.apache.org Subject: 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: [Axis2]Can't use SSL with scope=transportsession
Hi Andrew , Please create a JIRA , I think this is an issue in Axis2, Thanks Deepal When I try to invoke my service via https, Axis2 1.2 throws a NullPointerException: Caused by: java.lang.NullPointerException at org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContext(InstanceDispatcher.java:123) at org.apache.axis2.engine.InstanceDispatcher.invoke(InstanceDispatcher.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:383) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:279) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116) ... 33 more I think I found what's causing it. My service is defined like this in services.xml: service name=... scope=transportsession.../service If I remove 'scope=transportsession', Axis2 no longer throws this Exception, and my own code is invoked (though it causes my code to fail, since mc.getSessionContext() returns null). Is there any reason why 'scope=transportsession' would work via http but not https? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: Using Graphics2D in Axis2 Handler
My code is not on the Axis2 Web Service. In fact, it is the adaptive code that modify the standard handler to resize the attached image (i.e. the image is attached to SOAP using SwA). And I try to use the Jimi also to resize image without graphics2D, but even when I import Jimi library to AXIS2 library, TomCat share lib, I still cannot call Jimi function (JimiImageRaster). Have anyone encountered this problem before? Please help me a bit. Thank you so much. Gia Hieu Dinh wrote: Hi Carsten, I have set the java.awt.headless = true in Java Option but it's still not work. Could you please give me some other options? Thank you. Harry. Zerbst, Carsten wrote: 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] -- View this message in context: http://www.nabble.com/Using-Graphics2D-in-Axis2-Handler-tf4296934.html#a12268026 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 1.2 SSL and basic auth -- Strange behavior
Hi, I have the following strange behavior with Axis2 client. Can some one explain me what is happening? My webservice is written in Axis2. Assume the operations in the webservice are Op1 and Op2. With Axis2 Client via https + basic auth 1)Initialize stub with https url 2)Do preemptive basic auth 3)Call Op1() 4)Call Op2() -- Doesn't work . Getting 401 not authorized With Axis2 Client via https + client cert 1)Initialize stub with https url 3)Call Op1() 4)Call Op2() -- Doesn't work . Getting 401 not authorized Looks like there is something wrong with HTTPS session. With Axis2 Client via http + basic auth 1)Initialize stub with http url 2)Do preemptive basic auth 3)Call Op1() 4)Call Op2() 5)Everything works well With Axis1 1.4 Client via https + basic auth 1)Initialize stub with https url 2)Do preemptive basic auth 3)Call Op1() 4)Call Op2() 5)Everything works well Is Axis2 client doing anything with the SSL session? I don't think this is a problem with HTTPClient, since both Axis1.4 and Axis2 use the same HTTPClient. BTW I'm using Axis2 1.2 with default settings. My server uses HTTP 1.1 Thanks, Haneef -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 21, 2007 9:30 PM To: axis-user@ws.apache.org Subject: Re: [Axis2]Can't use SSL with scope=transportsession Hi Andrew , Please create a JIRA , I think this is an issue in Axis2, Thanks Deepal When I try to invoke my service via https, Axis2 1.2 throws a NullPointerException: Caused by: java.lang.NullPointerException at org.apache.axis2.engine.InstanceDispatcher.fillContextsFromSessionContex t(InstanceDispatcher.java:123) at org.apache.axis2.engine.InstanceDispatcher.invoke(InstanceDispatcher.jav a:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:383) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:203) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:131) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:279) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:116) ... 33 more I think I found what's causing it. My service is defined like this in services.xml: service name=... scope=transportsession.../service If I remove 'scope=transportsession', Axis2 no longer throws this Exception, and my own code is invoked (though it causes my code to fail, since mc.getSessionContext() returns null). Is there any reason why 'scope=transportsession' would work via http but not https? - 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] Wich library for axis2-client-deployment
Hi Keith, My client-code looks like: -- ... import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.rpc.client.RPCServiceClient; ... try { RPCServiceClient sender = new RPCServiceClient(); Options options = sender.getOptions(); // Set the Server-Reference EndpointReference targetEPR = new EndpointReference(sCPSServerURL + /CPSServer); options.setTo(targetEPR); // The operation test should be called QName op_test = new QName(http://cpsserver.pmm.ch/xsd;, test); // Set the parameters Object[] opArgs = new Object[] { This is CBPlanner! }; Class[] returnTypes = new Class[] { String.class }; // Call WebService Object[] response = sender.invokeBlocking(op_test, opArgs, returnTypes); // Read Return data if(response[0] != null) { String sReturn = response[0].toString(); if(!sReturn.startsWith(CPS-Error:)) { JOptionPane.showMessageDialog(oParentDialog, Successfully connected to CPSServer!\n\n + sReturn, Success, JOptionPane.INFORMATION_MESSAGE); } else { JOptionPane.showMessageDialog(oParentDialog, Error connecting to CPSServer!\n\n + sReturn, Error, JOptionPane.ERROR_MESSAGE); } } } catch(AxisFault e) { JOptionPane.showMessageDialog(oParentDialog, Error connecting to CPSServer!\n\n +e.toString(), Error, JOptionPane.ERROR_MESSAGE); System.err.println(e.getMessage()); e.printStackTrace(); } ... -- Thanks in advanced, Oliver Hirschi keith chapman [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi Oliver, No you don't need all 51 jars. It depends on how you wrote the client (codegeratared with wsdl2java? databainging (ADB, xmlBeans, ... ) used if any). Also do you use things such as security, RM on the client side? Thanks, Keith. On 8/21/07, Oliver Hirschi [EMAIL PROTECTED] wrote: Hi I developed a Axis2-Webservice and a java-client-application, using this service. Now my question is about the deployment - I dont like to have all 51(!) single jars of the axis distributon on each of my client. - Do I have to pack all 51 axis-2 libraries to the deployment of the client, or which jars are needed? - Or another way: Is there one packing containing all axis2-client libraries, or is there a way to pack the 51 jars to one axis2.jar, so there would be only one file for the clients? I tried to pack al the jars to one jar with jar cvf axis2.jar *.jar, but the classes are not found. Great Thanks, -- Oliver Hirschi http://www.FamilyHirschi.ch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Keith Chapman WSO2 Inc. Oxygen for Web Services Developers. http://wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars?
At runtime you need axiom jars anyway. (irrespective of the binding you use) Axis2 heavily use axiom. you need all axiom jars to compile the MessageReceiver class. It seems even axiom jars needed in codegeneration as well. but I can not really figureout the place. Amila. On 8/22/07, Pantvaidya, Vishwajit [EMAIL PROTECTED] wrote: Upon adding axiom-api-1.2.5.jar and other jars as required, wsdl2java completed successfully. I see that it has generated a class that extends org.apache.axis2.receivers.AbstractInMessageReceiver and uses org.apache.axiom.soap.SOAPEnvelope - so now I am getting compile errors. So is axiom-api-1.2.5.jar needed even though I am using xmlbeans binding? -- *From:* Pantvaidya, Vishwajit [mailto:[EMAIL PROTECTED] *Sent:* Monday, August 20, 2007 10:38 AM *To:* axis-user@ws.apache.org *Subject:* 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] 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] *Sent:* Tuesday, August 14, 2007 7:59 PM *To:* axis-user@ws.apache.org *Subject:* Re: [AXIS2] wsdl2java for xmlbeans needs axiom jars? On 8/15/07, *Pantvaidya, Vishwajit* [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. -- Amila Suriarachchi, WSO2 Inc.
Re: OMElement Vs java.lang.Object for (xsd:anyType) - Axis 1.3 Vs Axis 2 code generation
basically you are asking when is the Axis2 1.4. we have just release Axis2 1.3 so it would be from another 3 or 4 months time. Amila. On 8/22/07, Raghu Upadhyayula [EMAIL PROTECTED] wrote: Hi Amila, It worked with the nightly build jars (adb.jar adb-codegen.jar). When will this change be moved to the main release (I mean which Axis2 version)? Thanks Raghu -- *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] *Sent:* Monday, August 20, 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 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. -- Amila Suriarachchi, WSO2 Inc.