Re: axis2c client can't call axis2 java web service twice continuous if MTOM is disabled in axis2 java web service server side
Hi Shankar, Thank you very much for your reply. Currently I use axis2/c 1.4 for windows. I found that axis2c 1.5 can solve that problem, but axis2c 1.5 has memory leak. best wishes yong On Mon, Dec 22, 2008 at 3:59 AM, Uthaiyashankar shan...@wso2.com wrote: Hi Yong, Can you send the code and stack trace? Then we can run and see. Which version of Axis2/C you are using and whether you are using Linux or Windows? Regards, Shankar On Fri, Dec 19, 2008 at 4:41 PM, donald yang donal...@googlemail.comwrote: Hi All, Currently I have a problem to call a axis2 java based web service twice continuous from my axis2c web service client when I disabled MTOM in the web service server side. The first call to web service is successful. The second one is failed and caused the web service client application crashed. An exception is thrown, *The exception unknown software exception occured in the application at location. Click on OK to terminiate the program*. When I used TCP monitor to look at SOAP request and reply. I found that axis2c client has NOT sent SOAP request in the second call. But if I enable MTOM in the web service server side, both call will be successful. If someone knows how to solve the problem, could you please share your solution? Many thanks in advance. And my configurations are as follows: web service client: axis2c 1.4 web service: axis2 java 1.4.1 OS: windows xp sp3 best wishes yong [1] soap request for the first call POST /axis2/services/simple_char.simple_charHttpSoap11Endpoint/ HTTP/1.1 User-Agent: Axis2C/1.4.0 SOAPAction: urn:char_input_output Content-Length: 265 Content-Type: text/xml;charset=UTF-8 Host: brad.querix.co.uk:1 soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header/ soapenv:Body ns1:char_input_output xmlns:ns1=http://querix.com; ns1:param0hello/ns1:param0 /ns1:char_input_output /soapenv:Body/soapenv:Envelope [2] soap reply for the first call when MTOM is disable HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 19 Dec 2008 10:56:35 GMT 11d ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body ns:char_input_outputResponse xmlns:ns=http://querix.com; ns:returnhello/ns:return /ns:char_input_outputResponse /soapenv:Body /soapenv:Envelope 0 -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company
memory leak in axis2c 1.5
Hello, We found that there is about 2k memory leak in axis2c web service client after each web service call . We traced down and found that the following statement to free memory has been commented out in * guththila_xml_reader_wrapper_xml_free* function of * axiom\src\parser\guththila\guththila_xml_reader_wrapper.c*: * if (data) AXIS2_FREE(env-allocator, data);* When we uncomment out this statement, memory leak is decreased from 2k to 76 bytes. Due to time constraint, we didn't further trace down where is the cause for the rest of memory leak. (see report [1]). If you have special reason to do that, could you please let us know how to fix the memory leak. If not, could you please patch this into axis2c source tree? best wishes yong [1] 76 bytes memory leak report FNH: files[i] deallocated ..\..\util\src\dir_handler.c: 316 FNH: files[i] deallocated ..\..\util\src\dir_handler.c: 316 FNH: files deallocated ..\..\util\src\dir_handler.c: 318 FNH: str_header deallocated ..\..\src\core\transport\http\sender\http_client.c: 282 FNH: output_stream deallocated ..\..\src\core\transport\http\sender\http_sender.c: 1339 Final Report MLK: 00C81048 16 bytes allocated ..\..\util\src\error.c: 561 MLK: 00C81180 16 bytes allocated ..\..\util\src\string.c: 54 MLK: 00C811C8 24 bytes allocated ..\..\util\src\string.c: 81 MLK: 00CBDA58 20 bytes allocated ..\..\util\src\http_chunked_stream.c: 48 Total allocations: 4119 Max memory allocation: 1149486 (1122K) Total leak : 76
Re: axis2c client can't call axis2 java web service twice continuous if MTOM is disabled in axis2 java web service server side
Hi Yong, Hi Shankar, Thank you very much for your reply. Currently I use axis2/c 1.4 for windows. I found that axis2c 1.5 can solve that problem, It seems the bug is already fixed. but axis2c 1.5 has memory leak. Can you create a jira pointing to the memory leaks of Axis2/C 1.5? Did you check whether current svn works for you? Regards, Shankar best wishes yong On Mon, Dec 22, 2008 at 3:59 AM, Uthaiyashankar shan...@wso2.com wrote: Hi Yong, Can you send the code and stack trace? Then we can run and see. Which version of Axis2/C you are using and whether you are using Linux or Windows? Regards, Shankar On Fri, Dec 19, 2008 at 4:41 PM, donald yang donal...@googlemail.comwrote: Hi All, Currently I have a problem to call a axis2 java based web service twice continuous from my axis2c web service client when I disabled MTOM in the web service server side. The first call to web service is successful. The second one is failed and caused the web service client application crashed. An exception is thrown, *The exception unknown software exception occured in the application at location. Click on OK to terminiate the program*. When I used TCP monitor to look at SOAP request and reply. I found that axis2c client has NOT sent SOAP request in the second call. But if I enable MTOM in the web service server side, both call will be successful. If someone knows how to solve the problem, could you please share your solution? Many thanks in advance. And my configurations are as follows: web service client: axis2c 1.4 web service: axis2 java 1.4.1 OS: windows xp sp3 best wishes yong [1] soap request for the first call POST /axis2/services/simple_char.simple_charHttpSoap11Endpoint/ HTTP/1.1 User-Agent: Axis2C/1.4.0 SOAPAction: urn:char_input_output Content-Length: 265 Content-Type: text/xml;charset=UTF-8 Host: brad.querix.co.uk:1 soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header/ soapenv:Body ns1:char_input_output xmlns:ns1=http://querix.com; ns1:param0hello/ns1:param0 /ns1:char_input_output /soapenv:Body/soapenv:Envelope [2] soap reply for the first call when MTOM is disable HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/xml;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 19 Dec 2008 10:56:35 GMT 11d ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv= http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body ns:char_input_outputResponse xmlns:ns=http://querix.com; ns:returnhello/ns:return /ns:char_input_outputResponse /soapenv:Body /soapenv:Envelope 0 -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company
Re: memory leak in axis2c 1.5
Hi Yong, Can you please create a jira in [1]. Then it is a lot easier to manage and track Regards, Shankar [1] https://issues.apache.org/jira/browse/axis2c On Mon, Dec 22, 2008 at 10:42 PM, donald yang donal...@googlemail.comwrote: Hello, We found that there is about 2k memory leak in axis2c web service client after each web service call . We traced down and found that the following statement to free memory has been commented out in * guththila_xml_reader_wrapper_xml_free* function of * axiom\src\parser\guththila\guththila_xml_reader_wrapper.c*: * if (data) AXIS2_FREE(env-allocator, data);* When we uncomment out this statement, memory leak is decreased from 2k to 76 bytes. Due to time constraint, we didn't further trace down where is the cause for the rest of memory leak. (see report [1]). If you have special reason to do that, could you please let us know how to fix the memory leak. If not, could you please patch this into axis2c source tree? best wishes yong [1] 76 bytes memory leak report FNH: files[i] deallocated ..\..\util\src\dir_handler.c: 316 FNH: files[i] deallocated ..\..\util\src\dir_handler.c: 316 FNH: files deallocated ..\..\util\src\dir_handler.c: 318 FNH: str_header deallocated ..\..\src\core\transport\http\sender\http_client.c: 282 FNH: output_stream deallocated ..\..\src\core\transport\http\sender\http_sender.c: 1339 Final Report MLK: 00C81048 16 bytes allocated ..\..\util\src\error.c: 561 MLK: 00C81180 16 bytes allocated ..\..\util\src\string.c: 54 MLK: 00C811C8 24 bytes allocated ..\..\util\src\string.c: 81 MLK: 00CBDA58 20 bytes allocated ..\..\util\src\http_chunked_stream.c: 48 Total allocations: 4119 Max memory allocation: 1149486 (1122K) Total leak : 76 -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company
Re: freeing up memory after sending response
Hi Subra, Hello, I have a webservice in which I allocate memory for a variable and then use that variable in creating a soap response like this objType_om_ele = axiom_element_create(env, response_node, OBJECT_TYPE, ns, objType_om_node); axiom_element_set_text(objType_om_ele, env, objectType, objType_om_node); here the variable objectType was malloc'd using AXIS2_MALLOC function. in the end i return response_node and the client receives the soap response. my question is, when should i free the memory that i allocated. Are you talking about freeing objectType? If that's the case, you can free it just after setting axiom_element_set_text (before returning response_node). Regards, Shankar -- S.Uthaiyashankar Software Architect WSO2 Inc. http://wso2.com/ - The Open Source SOA Company
AW: JAX-WS support in axis2
Hi, I would like to know how far Axis2 supports JAX-WS. That's a good question. How far Axis2 1.5 supports this standard (JAX-WS and JAXB) ??? Thanks, Markus -Ursprüngliche Nachricht- Von: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen ssi...@itree.com.au wrote: Hi, I would like to know how far Axis2 supports JAX-WS. Metro fully uses JAX-WS. If I want to use jax-ws, is there any reason that I should select axis2 instead of Metro? The reason to use Jax-ws is that I can use jaxb separately in other projects to validate the xml files. And then feed those xml files to the web service directly, then for sure I know that there won't be any mismatch between the xml syntax. If I use ADB instead of JAXB, can I guarantee that I can pass an xml document to the web service, which is validated against JAXB? One option here is to use the jaxbri data binding with the wsdl2java tool. (-d jaxbri) then you have the jaxbri code for data binding. Or is there a way that I can validate an xml document against ADB separate from web service? It is also a viable option for me. (to select axis2 instead of Metro) Please axis2 gurus, reply me. Thanks. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ winmail.dat
Developers need to confirm -- SOAPMessage with attachment from InputStream does not implemented
Hi All, I am having an problem while trying to create SOAPMessage with attachment from InputStream. My content-type is, contentType = multipart/related; boundary=MIMEBoundaryurn_uuid_1BA988C6ECD59BA27B1229936876924; type=text/xml; start=0.urn:uuid:1ba988c6ecd59ba27b1229936876...@apache.org0.urn%3auuid%3a1ba988c6ecd59ba27b1229936876...@apache.org It creates the SOAP but without attachments. Is this implemented so far? How can I make it work? Please reply.. Chinmoy
Re: Permission Denied - Attachments
It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
RE: Axis 1.4 getResponseHeaders() sometimes returning empty array
Bump. From: McCullough, Ryan [mailto:rmccullo...@rightnow.com] Sent: Wednesday, December 17, 2008 3:03 PM To: axis-user@ws.apache.org Subject: Axis 1.4 getResponseHeaders() sometimes returning empty array I am using Axis (not Axis2) 1.4. After submitting a request to the server and receiving a response, I am calling SoapBindingStub.getResponseHeaders() (extends org.apache.axis.client.Stub). Sometimes (rarely), getResponseHeaders() returns an empty SOAPHeaderElement[] array. The length of the array is 0. The response from the server has what looks like a valid header: soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema;soap:HeaderResponseHeader xmlns=urn:obj.api.rightnow.comVersion8.4.0.95/Version/ResponseHeader/soap:Headersoap:Bodyexec_rv xmlns=urn:obj.api.rightnow.com transaction_rv !-- SNIP -- /transaction_rv /exec_rv/soap:Body/soap:Envelope Here is the function from org/apache/axis/client/Stub.java: /** * Get the array of response header elements */ public SOAPHeaderElement[] getResponseHeaders() { SOAPHeaderElement[] array = new SOAPHeaderElement[0]; try { if (_call == null) return array; Vector h = _call.getResponseMessage().getSOAPEnvelope().getHeaders(); array = new SOAPHeaderElement[h.size()]; h.copyInto(array); return array; } catch (Exception e) { return array; } } It looks like an exception is being thrown in the try block somewhere before the array is resized. Any ideas what may be causing this? I have enabled log4j logging and set the root category to be DEBUG and am waiting for the issue to be reproduced. -Ryan Ryan McCullough | RightNow Technologies | Integration Tools Engineer 406-556-3162 office | Bozeman, MT | rmccullo...@rightnow.commailto:rmccullo...@rightnow.com | http://www.rightnow.comhttp://www.rightnow.com/
RE: Permission Denied - Attachments
John, Which version of Axis are you using? Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 10:57 AM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
RE: Permission Denied - Attachments
John, From the name of the property (attachments.Directory) it looks like you are using Axis 1.x (either 1.3 or 1.4). In that case this property will be in the server-config.wsdd file. Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 10:57 AM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
Re: Axis2 Proxy Configuration problem
valery ngah wrote: Hi all, I have a web service application that has to use a proxy. I am using the latest version of axis2 1.4 The properties of the proxy is set programmatically as shown below. code /pre HttpTransportProperties.ProxyProperties pp =new HttpTransportProperties.ProxyProperties(); pp.setProxyName(proxy.proxyName); pp.setProxyPort(proxy.port); pp.setUserName(proxy.userName); pp.setPassWord(proxy.password); _serviceClient.getOptions().setProperty(HTTPConstants.PROXY,pp); HttpTransportProperties.Authenticator auth =new HttpTransportProperties.Authenticator(); auth.setUsername(proxy.userName); auth.setPassword(proxy.password); auth.setPreemptiveAuthentication(true); auth.setRealm(HttpTransportProperties.Authenticator.BASIC); // List authPrefs = new VectorString(1); //authPrefs.add(AuthPolicy.BASIC); _serviceClient.getOptions().setProperty(HTTPConstants.AUTHENTICATE,auth); // _serviceClient.getOptions().setProperty(AuthPolicy.AUTH_SCHEME_PRIORITY,authPrefs); /pre /code I have been having this error message always code pre org.apache.axis2.AxisFault: Transport error: 407 Error: Proxy Auth Required at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:296) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:190) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:364) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:208) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:448) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:401) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at com.coremedia.applications.drm.opt.axis.OPSStub.getUid(OPSStub.java:2458) ... /pre /code Watching the header properties in Fiddler (HTTP Debuging Proxy) I realized that the authorization and proxy-authorization are different Authorization: Basic MTox Proxy-Authorization: Basic Og== I expect both to have MTox (64 based encoded password and username which is 1:1). Instead am getting just (:). am I forgetting something? hi valery, you are authorizatio and proxy authorization are different, you encounter 407 error when the proxy.Username and proxy.password credentials supplied in proxy properties doesn't have permissions to cross the proxy. Please ensure your proxy credentials are correct. -- View this message in context: http://www.nabble.com/Axis2-Proxy-Configuration-problem-tp18508857p21132017.html Sent from the Axis - User mailing list archive at Nabble.com.
RE: Permission Denied - Attachments
grant TC access to all files in that folder so for example in $TOMCAT_HOME/conf/catalina.policy // These permissions apply to all files in ${tomcat.home}/ temp/- folder grant codeBase file:${tomcat.home}/temp/- { permission java.security.AllPermission; }; HTH Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 22 Dec 2008 08:57:19 -0800 From: j...@esonicspider.com To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John.. _ It’s the same Hotmail®. If by “same” you mean up to 70% faster. http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad1_122008
how to set style in axis2
In Axis1, I could do call.setOperationStyle(document); or call.setOperationStyle(literal); to set the style. How to set style in Axis2? Best Regards, Shah
Re: generateWSDL method in Axis2
Hi Keith, Thanks for your suggestions. On Thu, Dec 18, 2008 at 9:43 PM, keith chapman keithgchap...@gmail.com wrote: Hi, With Axis2 you do not have such a callback method. But here is a workaround that you could use. Extend the AxisServlet and override the doGet method. In there check whether its a request for a WSDL and invoke your code for generating the WSDL. Thanks, Keith. On Thu, Dec 18, 2008 at 10:52 PM, Shah Asrani shahasr...@gmail.com wrote: In Axis1, I had implemented a call back method generateWSDL in my provider that extended the BasicProvider. In moving to Axis2, I have MessageReceiver that extends RawXMLInOutMessageReceiver. Which callback method is equivalent to generateWSDL method in Axis1. I need to generate WSDL with my custom code. Shah Asrani. -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Re: Permission Denied - Attachments
Raghu Upadhyayula wrote: John, From the name of the property (attachments.Directory) it looks like you are using Axis 1.x (either 1.3 or 1.4). In that case this property will be in the server-config.wsdd file. Ah, thanks, found it... Next question.. The property is: parameter name=attachments.Directory value=./attachments/ So what does Axis see as its root directory so that I can create that folder, OR is it best just to put a hard coded path like /usr/local/tomcat/temp ?? (Remember this is Tomcat 5.5.x on CentOS 4.7) Thanks.. John.. Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 10:57 AM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
Re: Enable preemptive authorization in Axis-2.3
Raj I am using Axis2.3 to connect to a webservice host. I use adbbean client mapping, i have enable preemptive authorization in my client so that i can reduce total number SSL handshakes. Currently the cleint attempts to webservice and connection fails with 401 error and then the proxy authorization parameters are passed in header. Can anyone pls let me know how i can enable preemptive proxy authorization in my client code. Follow this thread: http://markmail.org/message/cwudbsfliz5a7q3n cheers asankha -- Asankha C. Perera http://adroitlogic.org http://esbmagic.blogspot.com
RE: Permission Denied - Attachments
Hi John, I'm not sure what path axis sees as its root directory, in my previous project I've given a full path like /usr/local/temp/attachments and I suggest to do the same thing ... Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 1:20 PM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments Raghu Upadhyayula wrote: John, From the name of the property (attachments.Directory) it looks like you are using Axis 1.x (either 1.3 or 1.4). In that case this property will be in the server-config.wsdd file. Ah, thanks, found it... Next question.. The property is: parameter name=attachments.Directory value=./attachments/ So what does Axis see as its root directory so that I can create that folder, OR is it best just to put a hard coded path like /usr/local/tomcat/temp ?? (Remember this is Tomcat 5.5.x on CentOS 4.7) Thanks.. John.. Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 10:57 AM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
Re: Need advice on authentication
No one knows? Is security a second class in Axis that it's overlooked? Or it's just so simple no one care to answer? For the holiday spirit, would someone mind toss a brain cell to this? :-) On Thu, Dec 18, 2008 at 11:33 AM, Nan Null null@gmail.com wrote: I need to implement both the client and the server of a webservice. It needs to be secured. The server end is implemented in Java Axis2 and runs under Unix. However, I have to create it in a way that if the server is re-implemented with .Net and running under Windows, then the client will still work. Please tell me what is authentication method to use for this. I rather avoid the basic scheme. I am looking at NTLM, but the document for Axis2 on the server side is very little. Would NTLM authentication on the server side of a webservice works in a Unix box? Is there any issue with it (since NTLM is Windows based authentication).
Re: Permission Denied - Attachments
Raghu Upadhyayula wrote: Hi John, I'm not sure what path axis sees as its root directory, in my previous project I've given a full path like /usr/local/temp/attachments and I suggest to do the same thing ... Perfect, that is what I needed to know.. Thank you! John... Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 1:20 PM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments Raghu Upadhyayula wrote: John, From the name of the property (attachments.Directory) it looks like you are using Axis 1.x (either 1.3 or 1.4). In that case this property will be in the server-config.wsdd file. Ah, thanks, found it... Next question.. The property is: parameter name=attachments.Directory value=./attachments/ So what does Axis see as its root directory so that I can create that folder, OR is it best just to put a hard coded path like /usr/local/tomcat/temp ?? (Remember this is Tomcat 5.5.x on CentOS 4.7) Thanks.. John.. Thanks Raghu -Original Message- From: John B. Moore [mailto:j...@esonicspider.com] Sent: Monday, December 22, 2008 10:57 AM To: axis-user@ws.apache.org Subject: Re: Permission Denied - Attachments It seems to boil down to where the property attachments.Directory ..is set.. So far I can't find that place or any documentation of where that might be set/defined/etc.. Any pointers will be very much appreciated.. John..
RE: JAX-WS support in axis2
Hi Amila, Can you explain your answer further more? It is not much helpful. Regards, Shehan -Original Message- From: Grimm, Markus [mailto:gr...@juris.de] Sent: 2008-12-22 19:27 To: axis-user@ws.apache.org Subject: AW: JAX-WS support in axis2 Hi, I would like to know how far Axis2 supports JAX-WS. That's a good question. How far Axis2 1.5 supports this standard (JAX-WS and JAXB) ??? Thanks, Markus -Ursprüngliche Nachricht- Von: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen ssi...@itree.com.au wrote: Hi, I would like to know how far Axis2 supports JAX-WS. Metro fully uses JAX-WS. If I want to use jax-ws, is there any reason that I should select axis2 instead of Metro? The reason to use Jax-ws is that I can use jaxb separately in other projects to validate the xml files. And then feed those xml files to the web service directly, then for sure I know that there won't be any mismatch between the xml syntax. If I use ADB instead of JAXB, can I guarantee that I can pass an xml document to the web service, which is validated against JAXB? One option here is to use the jaxbri data binding with the wsdl2java tool. (-d jaxbri) then you have the jaxbri code for data binding. Or is there a way that I can validate an xml document against ADB separate from web service? It is also a viable option for me. (to select axis2 instead of Metro) Please axis2 gurus, reply me. Thanks. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
multithreading with axis stub
I am trying to call Axis2 Stub implementation inside a java thread and run the same. The run method of the java thread is not executed at all. Help me to find where I am going wrong. Here is my program public class TestThread implements Runnable { STPServiceProviderStub stub = null; STPServiceProviderStub.ProcessMessage processMsg = null; STPServiceProviderStub.ProcessMessageResponse resp = null; public void init(){ try { stub = new STPServiceProviderStub(http://localhost:7001/axis2/services/MyService;); System.out.println(aa); processMsg = new STPServiceProviderStub.ProcessMessage(); System.out.println(); } catch (AxisFault e) { // TODO Auto-generated catch block e.printStackTrace(); } } public void run() { System.out.println(1); execute(); } public void execute() { System.out.println(2); try { String msg = message; processMsg.setParam0(msg); resp = stub.processMessage(processMsg); String output = resp.get_return(); System.out.println(Webservices return : + output); } catch (AxisFault e) { e.printStackTrace(); } catch (RemoteException e) { e.printStackTrace(); } catch (RemoteExceptionException0 e) { e.printStackTrace(); } } } My Test class -- public Class TestClass{ public static void main(String args[]){ TestThread obj = new TestThread(); obj.init(); Thread thr = new Thread(obj); thr.start(); } } My output is: - aa The code execution does not enter the run() method even and no exception or error is thrown. Is my approach rte??? Thanks in advance -- View this message in context: http://www.nabble.com/multithreading-with-axis-stub-tp21138848p21138848.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: JAX-WS support in axis2
On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen ssi...@itree.com.au wrote: Hi Amila, Can you explain your answer further more? It is not much helpful. this is not about jaxws. you can generate axis2 dependent code using wsdl2java tool for a wsdl file. wsdl2java tool uses a databinidng framework to generate the databinding code. i.e to compile the xsd part of the wsdl. By default it uses ADB as the databinding tool. But you can specify one of the following databinding frameworks as well. so you can give jaxbri as an alternative. thanks, Amila. Regards, Shehan -Original Message- From: Grimm, Markus [mailto:gr...@juris.de] Sent: 2008-12-22 19:27 To: axis-user@ws.apache.org Subject: AW: JAX-WS support in axis2 Hi, I would like to know how far Axis2 supports JAX-WS. That's a good question. How far Axis2 1.5 supports this standard (JAX-WS and JAXB) ??? Thanks, Markus -Ursprüngliche Nachricht- Von: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen ssi...@itree.com.au wrote: Hi, I would like to know how far Axis2 supports JAX-WS. Metro fully uses JAX-WS. If I want to use jax-ws, is there any reason that I should select axis2 instead of Metro? The reason to use Jax-ws is that I can use jaxb separately in other projects to validate the xml files. And then feed those xml files to the web service directly, then for sure I know that there won't be any mismatch between the xml syntax. If I use ADB instead of JAXB, can I guarantee that I can pass an xml document to the web service, which is validated against JAXB? One option here is to use the jaxbri data binding with the wsdl2java tool. (-d jaxbri) then you have the jaxbri code for data binding. Or is there a way that I can validate an xml document against ADB separate from web service? It is also a viable option for me. (to select axis2 instead of Metro) Please axis2 gurus, reply me. Thanks. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
RE: JAX-WS support in axis2
Hi Amila, Thank you for the reply. Please answer my questions separately. I saw jaxbri is still in experimental level. How far ADB and JAXB compatible? If I validate an xml document against JAXB, does it mean that xml is compatible with ADB as well? Are there any conflicts between them? Basically I have xml documents which are validated against a schema using JAXB. I have use the same schema to generate the wsdl2java code using ADB. Do you think those xml documents(validated against JAXB) are compatible with the ADB generated classes? I want to pass those xml documents via the axis2 ADB web service. Is there a way that I can use ADB separately to validate an xml document against a schema? (without using any web service stuff. We can use JAXB like that) Thank you. Regards, Shehan From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] Sent: 2008-12-23 17:24 To: axis-user@ws.apache.org Subject: Re: JAX-WS support in axis2 On Tue, Dec 23, 2008 at 5:02 AM, Shehan Simen ssi...@itree.com.aumailto:ssi...@itree.com.au wrote: Hi Amila, Can you explain your answer further more? It is not much helpful. this is not about jaxws. you can generate axis2 dependent code using wsdl2java tool for a wsdl file. wsdl2java tool uses a databinidng framework to generate the databinding code. i.e to compile the xsd part of the wsdl. By default it uses ADB as the databinding tool. But you can specify one of the following databinding frameworks as well. so you can give jaxbri as an alternative. thanks, Amila. Regards, Shehan -Original Message- From: Grimm, Markus [mailto:gr...@juris.demailto:gr...@juris.de] Sent: 2008-12-22 19:27 To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org Subject: AW: JAX-WS support in axis2 Hi, I would like to know how far Axis2 supports JAX-WS. That's a good question. How far Axis2 1.5 supports this standard (JAX-WS and JAXB) ??? Thanks, Markus -Ursprüngliche Nachricht- Von: Amila Suriarachchi [mailto:amilasuriarach...@gmail.commailto:amilasuriarach...@gmail.com] Gesendet: Mo 22.12.2008 08:54 An: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org Betreff: Re: JAX-WS support in axis2 On Mon, Dec 22, 2008 at 12:54 PM, Shehan Simen ssi...@itree.com.aumailto:ssi...@itree.com.au wrote: Hi, I would like to know how far Axis2 supports JAX-WS. Metro fully uses JAX-WS. If I want to use jax-ws, is there any reason that I should select axis2 instead of Metro? The reason to use Jax-ws is that I can use jaxb separately in other projects to validate the xml files. And then feed those xml files to the web service directly, then for sure I know that there won't be any mismatch between the xml syntax. If I use ADB instead of JAXB, can I guarantee that I can pass an xml document to the web service, which is validated against JAXB? One option here is to use the jaxbri data binding with the wsdl2java tool. (-d jaxbri) then you have the jaxbri code for data binding. Or is there a way that I can validate an xml document against ADB separate from web service? It is also a viable option for me. (to select axis2 instead of Metro) Please axis2 gurus, reply me. Thanks. -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: multithreading with axis stub
I was able to find the problem. The parent thread dies before the child thread completion. I then used sleep in the main thread to overcome the issue. Sorry for bothering guys Thanks -- View this message in context: http://www.nabble.com/multithreading-with-axis-stub-tp21138848p21140782.html Sent from the Axis - User mailing list archive at Nabble.com.