RE: FW: Problem with Service deployed
Hello Dimuthu, I was using the implementation from http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/serv er/calculator/axis2_skel_Calculator.c?revision=599392view=markup. Whenever the execution reaches any of these functions: -adb_add_get_in0 -adb_add_get_in1 -adb_addResponse_create -adb_addResponse_set_addReturn . It generates error Failed in creating DLL. If I remove all the code and simple return NULL the service executes fine... I have placed libCalculator.so, service.xml, Calculator.wsdl in my services/Calculator fodler. Please tell me where am I going wrong.. I cannot find any implemetation of these functions, how are these executing... Thanks Regards, Rahil Ali -Original Message- From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2008 11:33 AM To: Apache AXIS C User List; [EMAIL PROTECTED] Subject: Re: FW: Problem with Service deployed Infact there is a sample for the Calculator with codegen support inside the samples/codegen directory, Hope that set of samples are usefull for you Thanks Dimuthu On Fri, Mar 14, 2008 at 9:20 PM, Senaka Fernando [EMAIL PROTECTED] wrote: Hi Rahil, You should be able to find samples in the samples folder, that is found inside the distribution. If you are referring to a demo application that utilizes the code generated for the Calculator WSDL, I'm sorry that it is not available on Axis2/C at the moment. Regards, Senaka On Fri, 2008-03-14 at 16:00 +0500, Rahil Ali wrote: Hi Senaka, Please provide me some sample web services.. Thanks, -Original Message- From: Rahil Ali [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 4:19 PM To: 'Apache AXIS C User List'; '[EMAIL PROTECTED]' Subject: RE: FW: Problem with Service deployed Hello Senaka, Thanks very much for your support, It worked and I can now add the reference in .Net. But when I tried to access its method add it gave an exception: Data element of the OM Node is NULL I think this is because I havent implemented anything in the functions: Can you please send me a sample source code so that I can get an idea like what are the uses of const axutil_env_t *env or how to use parameteres/returning values adb_add_t* add , adb_addResponse_t* Thanks regards, Rahil Ali -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 9:50 PM To: Apache AXIS C User List Subject: RE: FW: Problem with Service deployed Hi Rahil, This works fine for me. The WSDL discovery will work only if you use the Axis2/C source found in the svn head. I was under the impression that you were using that. However, if you are using the 1.3.0 distribution, I think the other alternate to how a static WSDL can be deployed was available. This works as this. add this to your services.xml after the ServiceClass parameter parameter name=wsdl_path[path]/parameter In here specify the absolute path to your wsdl, in the place of [path]. You might be able to specify a relative path, but, the absolute path is guaranteed to work. (ex:- /home/user/axis2/c/deploy/services/Calculator/Calculator.wsdl) The libSERVICE_NAME.so is rather a Linux convention. And, when trying to locate your service, the engine will try to find the dll by that name. Regards, Senaka Hello Senaka, I have service.xml, Calculator.wsdl and libCalculator.so in my $AXIS2C_HOME/services/Calculator folder, still I cannot access wsdl using this.. http://192.168.4.163/axis2/services/Calculator?wsdl; Whats going wrong here... Besides this one other thing to ask: how is libCalculator comes in action, does AXIS2C always use libSERVICE_NAME.so file? Thanks, Rahil -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 6:50 PM To: axis-c-user@ws.apache.org Subject: RE: FW: Problem with Service deployed Hi Rahil, Well the static WSDL deployment feature was fully supported after we released 1.3.0. So it will be reflected in the online documentation with the next release. However, if you use the subversion source (for developers) of Axis2/C; the manual found there has the necessary updates. Thus, in addition to copying the service.xml and the .so, you will also have to copy the wsdl and save it by the name, service_name.wsdl (ex:- Calculator.wsdl). The META-INF folder is something related to Axis2/Java. It doesn't apply to you. Regards, Senaka Hello Senaka, A couple of things to clearup, I am standing on $AXIS2C_HOME/services/Calculator folder, I ran WSDL2C on Calculator.wsdl, it generated - src/ + *.h + *.c + Build.sh - resources/ service.xml I
Re: FW: Problem with Service deployed
Hi Rahil, The example shown in the samples/codegen are generated from the following wsdl. ( as mentioned in the Readme) http://svn.apache.org/viewvc/webservices/axis2/trunk/c/test/resources/wsdl/Calculator.wsdl?view=markup Looks like you are using a different Calculator.wsdl (that is taken from samples/servers/Caclculator), You hve to change those mentioned functions to suit to your generated code, for an example, adb_add_get_param_1 adb_add_get_param_2 adb_addResponse_create adb_addResponse_get_result Calculator.wsdl in samples/server is added recently and is little bit differnet from the Calculator.wsdl in the test/resources/wsdl, As senaka said we should make both WSDL the same, otherwise user like you can easily confused with different WSDL with same name. Thanks Dimuthu On Tue, Mar 18, 2008 at 12:50 PM, Rahil Ali [EMAIL PROTECTED] wrote: Hello Dimuthu, I was using the implementation from http://svn.apache.org/viewvc/webservices/axis2/trunk/c/samples/codegen/serv er/calculator/axis2_skel_Calculator.c?revision=599392view=markup. Whenever the execution reaches any of these functions: -adb_add_get_in0 -adb_add_get_in1 -adb_addResponse_create -adb_addResponse_set_addReturn . It generates error Failed in creating DLL. If I remove all the code and simple return NULL the service executes fine... I have placed libCalculator.so, service.xml, Calculator.wsdl in my services/Calculator fodler. Please tell me where am I going wrong.. I cannot find any implemetation of these functions, how are these executing... Thanks Regards, Rahil Ali -Original Message- From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2008 11:33 AM To: Apache AXIS C User List; [EMAIL PROTECTED] Subject: Re: FW: Problem with Service deployed Infact there is a sample for the Calculator with codegen support inside the samples/codegen directory, Hope that set of samples are usefull for you Thanks Dimuthu On Fri, Mar 14, 2008 at 9:20 PM, Senaka Fernando [EMAIL PROTECTED] wrote: Hi Rahil, You should be able to find samples in the samples folder, that is found inside the distribution. If you are referring to a demo application that utilizes the code generated for the Calculator WSDL, I'm sorry that it is not available on Axis2/C at the moment. Regards, Senaka On Fri, 2008-03-14 at 16:00 +0500, Rahil Ali wrote: Hi Senaka, Please provide me some sample web services.. Thanks, -Original Message- From: Rahil Ali [mailto:[EMAIL PROTECTED] Sent: Thursday, March 13, 2008 4:19 PM To: 'Apache AXIS C User List'; '[EMAIL PROTECTED]' Subject: RE: FW: Problem with Service deployed Hello Senaka, Thanks very much for your support, It worked and I can now add the reference in .Net. But when I tried to access its method add it gave an exception: Data element of the OM Node is NULL I think this is because I havent implemented anything in the functions: Can you please send me a sample source code so that I can get an idea like what are the uses of const axutil_env_t *env or how to use parameteres/returning values adb_add_t* add , adb_addResponse_t* Thanks regards, Rahil Ali -Original Message- From: Senaka Fernando [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 9:50 PM To: Apache AXIS C User List Subject: RE: FW: Problem with Service deployed Hi Rahil, This works fine for me. The WSDL discovery will work only if you use the Axis2/C source found in the svn head. I was under the impression that you were using that. However, if you are using the 1.3.0 distribution, I think the other alternate to how a static WSDL can be deployed was available. This works as this. add this to your services.xml after the ServiceClass parameter parameter name=wsdl_path[path]/parameter In here specify the absolute path to your wsdl, in the place of [path]. You might be able to specify a relative path, but, the absolute path is guaranteed to work. (ex:- /home/user/axis2/c/deploy/services/Calculator/Calculator.wsdl) The libSERVICE_NAME.so is rather a Linux convention. And, when trying to locate your service, the engine will try to find the dll by that name. Regards, Senaka Hello Senaka, I have service.xml, Calculator.wsdl and libCalculator.so in my $AXIS2C_HOME/services/Calculator folder, still I cannot access wsdl using this.. http://192.168.4.163/axis2/services/Calculator?wsdl; Whats going wrong here... Besides this one other thing to ask: how is libCalculator comes in action, does AXIS2C always use libSERVICE_NAME.so file? Thanks, Rahil
Re: FW: Problem with Service deployed
Hi rahil, The problem in your wsdl is missing namespace declaration, may be it happened when you are copying the wsdl from a browser (normally firefox hides the namespace declrations) Try replacing wsdl:definitions targetNamespace=http://tempuri.org/; with this, wsdl:definitions targetNamespace=http://tempuri.org/; xmlns:tns=http://tempuri.org/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:s=http://www.w3.org/2001/XMLSchema; And I 've not much familiar with C#, so I don't know exactly how to generate different WSDLs from them, but since you alreadfy have axis2/java, you can use java2wsdl.sh in (axis2snapshot/bin) to create wsdls, for an example the same wsdl can be generated from following java code, public interface Test { public ResponseData FundTransferRequest(String a, String b, String c); } abstract class ResponseData { public String a; public String b; public String x; } And you can use public String a[]; syntax in order to generate array types. I think simmilar thing should be able to do with your C# service as well. Thanks DImuthu On Tue, Mar 18, 2008 at 5:00 PM, Rahil Ali [EMAIL PROTECTED] wrote: Hello Dimuthu, Thanks a lot.. I figured that out just a while aga :| My calculator webservice is now working fine :) I am trying to return a class from Webservice, so what I did: I created a class and a webservice using C# //CLASS public class ResponseData { string a; string b; string x; } WS [WebMethod] public ResponseData FundTransferRequest(string a, string b, string c) { ResponseData RspD = new ResponseData(); return RspD; } Now I am using the WSDL generated by .Net to generate C code using WSDL2C.sh wsdl:definitions targetNamespace=http://tempuri.org/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://tempuri.org/; s:element name=FundTransferRequest s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=a type=s:string/ s:element minOccurs=0 maxOccurs=1 name=b type=s:string/ s:element minOccurs=0 maxOccurs=1 name=c type=s:string/ /s:sequence /s:complexType /s:element s:element name=FundTransferRequestResponse s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=FundTransferRequestResult type=tns:ResponseData/ /s:sequence /s:complexType /s:element s:complexType name=ResponseData/ /s:schema /wsdl:types wsdl:message name=FundTransferRequestSoapIn wsdl:part name=parameters element=tns:FundTransferRequest/ /wsdl:message wsdl:message name=FundTransferRequestSoapOut wsdl:part name=parameters element=tns:FundTransferRequestResponse/ /wsdl:message wsdl:portType name=ServiceSoap wsdl:operation name=FundTransferRequest wsdl:input message=tns:FundTransferRequestSoapIn/ wsdl:output message=tns:FundTransferRequestSoapOut/ /wsdl:operation /wsdl:portType wsdl:binding name=ServiceSoap type=tns:ServiceSoap soap:binding transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=FundTransferRequest soap:operation soapAction=http://tempuri.org/FundTransferRequest; style=document/ wsdl:input soap:body use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:binding name=ServiceSoap12 type=tns:ServiceSoap soap12:binding transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=FundTransferRequest soap12:operation soapAction=http://tempuri.org/FundTransferRequest; style=document/ wsdl:input soap12:body use=literal/ /wsdl:input wsdl:output soap12:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=Service wsdl:port name=ServiceSoap binding=tns:ServiceSoap soap:address location=http://localhost:2140/FundTransferRequest/Service.asmx/ /wsdl:port wsdl:port name=ServiceSoap12 binding=tns:ServiceSoap12 soap12:address location=http://localhost:2140/FundTransferRequest/Service.asmx/ /wsdl:port /wsdl:service /wsdl:definitions WSD2C generates this error: WSDL2C.sh -uri FundTransferRequest.wsdl -ss -sd -d adb -u Retrieving document at 'FundTransferRequest.wsdl'. [Fatal Error] FundTransferRequest.wsdl:1:57: The prefix wsdl for element wsdl:definitions is not bound. Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:163) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:31) Caused by:
RE: Regarding Axis2C architecture
Hi Kau, Thanks, the links are really useful. We plan to develop some custom handlers / modules to meet our requirement within the legacy system. Do we have any document or link which provides a detailed description of each phase (for example, pre-dispatch, postdispatch, and so on). Apart this it would be helpful if we get details about the format in which information is passed between phases. This information will be really helpful in deciding design for the handlers / modules we plan to develop. Thanking you in advance. Regards, Rinil Baxi -Original Message- From: Kaushalye Kapuruge [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2008 5:34 PM To: Apache AXIS C User List Subject: Re: Regarding Axis2C architecture Hi, This might be useful... http://wso2.org/library/777 And this too... http://wso2.org/library/2406 Cheers, Kau Baxi, Rinilkumar (TCS) wrote: Hi All, Currently I am working on the Axis2c 1.2 to make it communicate with a legacy system. I have gone through the architecture given in the manual on the website. But from that I am not able to get the exact idea of the flow of the request. Kindly let me know the architecture of the Axis2 C and how the request flows from the client to the server and the response coming beck from the server to the client. Thanks in advance. Regards, Rinil Baxi -- http://blog.kaushalye.org/ http://wso2.org/ - 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: FW: Problem with Service deployed
Hello All, Thanks a lot for your help Senaka, Saimsa, Senaka One more thing: can I configure an IP at axis/apache, like only listed ip can access my webservice. Warm Regards, Rahil Ali -Original Message- From: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 4:54 PM To: Apache AXIS C User List Subject: Re: FW: Problem with Service deployed Hi rahil, The problem in your wsdl is missing namespace declaration, may be it happened when you are copying the wsdl from a browser (normally firefox hides the namespace declrations) Try replacing wsdl:definitions targetNamespace=http://tempuri.org/; with this, wsdl:definitions targetNamespace=http://tempuri.org/; xmlns:tns=http://tempuri.org/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:s=http://www.w3.org/2001/XMLSchema; And I 've not much familiar with C#, so I don't know exactly how to generate different WSDLs from them, but since you alreadfy have axis2/java, you can use java2wsdl.sh in (axis2snapshot/bin) to create wsdls, for an example the same wsdl can be generated from following java code, public interface Test { public ResponseData FundTransferRequest(String a, String b, String c); } abstract class ResponseData { public String a; public String b; public String x; } And you can use public String a[]; syntax in order to generate array types. I think simmilar thing should be able to do with your C# service as well. Thanks DImuthu On Tue, Mar 18, 2008 at 5:00 PM, Rahil Ali [EMAIL PROTECTED] wrote: Hello Dimuthu, Thanks a lot.. I figured that out just a while aga :| My calculator webservice is now working fine :) I am trying to return a class from Webservice, so what I did: I created a class and a webservice using C# //CLASS public class ResponseData { string a; string b; string x; } WS [WebMethod] public ResponseData FundTransferRequest(string a, string b, string c) { ResponseData RspD = new ResponseData(); return RspD; } Now I am using the WSDL generated by .Net to generate C code using WSDL2C.sh wsdl:definitions targetNamespace=http://tempuri.org/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://tempuri.org/; s:element name=FundTransferRequest s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=a type=s:string/ s:element minOccurs=0 maxOccurs=1 name=b type=s:string/ s:element minOccurs=0 maxOccurs=1 name=c type=s:string/ /s:sequence /s:complexType /s:element s:element name=FundTransferRequestResponse s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=FundTransferRequestResult type=tns:ResponseData/ /s:sequence /s:complexType /s:element s:complexType name=ResponseData/ /s:schema /wsdl:types wsdl:message name=FundTransferRequestSoapIn wsdl:part name=parameters element=tns:FundTransferRequest/ /wsdl:message wsdl:message name=FundTransferRequestSoapOut wsdl:part name=parameters element=tns:FundTransferRequestResponse/ /wsdl:message wsdl:portType name=ServiceSoap wsdl:operation name=FundTransferRequest wsdl:input message=tns:FundTransferRequestSoapIn/ wsdl:output message=tns:FundTransferRequestSoapOut/ /wsdl:operation /wsdl:portType wsdl:binding name=ServiceSoap type=tns:ServiceSoap soap:binding transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=FundTransferRequest soap:operation soapAction=http://tempuri.org/FundTransferRequest; style=document/ wsdl:input soap:body use=literal/ /wsdl:input wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:binding name=ServiceSoap12 type=tns:ServiceSoap soap12:binding transport=http://schemas.xmlsoap.org/soap/http/ wsdl:operation name=FundTransferRequest soap12:operation soapAction=http://tempuri.org/FundTransferRequest; style=document/ wsdl:input soap12:body use=literal/ /wsdl:input wsdl:output soap12:body use=literal/ /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=Service wsdl:port name=ServiceSoap binding=tns:ServiceSoap soap:address location=http://localhost:2140/FundTransferRequest/Service.asmx/ /wsdl:port wsdl:port name=ServiceSoap12 binding=tns:ServiceSoap12 soap12:address location=http://localhost:2140/FundTransferRequest/Service.asmx/ /wsdl:port /wsdl:service /wsdl:definitions WSD2C generates this error: WSDL2C.sh -uri FundTransferRequest.wsdl -ss -sd -d adb -u Retrieving document at 'FundTransferRequest.wsdl'. [Fatal Error] FundTransferRequest.wsdl:1:57: The prefix wsdl for element wsdl:definitions is
RE: Regarding Axis2C architecture
Hi Rinil, Apache Axis2/C comes with two built in modules. 1. WS-Addressing 2. Logging These may help you in achieving what you want. Also, we have three other modules that are separate apache projects which are written to be used with apache Axis2/C. They are 1. Rampart/C (http://ws.apache.org/rampart/c) 2. Sandesha2/C (http://ws.apache.org/sandesha/sandesha2/c/) 3. Savan/C (http://ws.apache.org/savan/c/) I think they are good examples to get started with. They do have associated documentation, discussion lists, etc. Regards, Senaka Hi Kau, Thanks, the links are really useful. We plan to develop some custom handlers / modules to meet our requirement within the legacy system. Do we have any document or link which provides a detailed description of each phase (for example, pre-dispatch, postdispatch, and so on). Apart this it would be helpful if we get details about the format in which information is passed between phases. This information will be really helpful in deciding design for the handlers / modules we plan to develop. Thanking you in advance. Regards, Rinil Baxi -Original Message- From: Kaushalye Kapuruge [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2008 5:34 PM To: Apache AXIS C User List Subject: Re: Regarding Axis2C architecture Hi, This might be useful... http://wso2.org/library/777 And this too... http://wso2.org/library/2406 Cheers, Kau Baxi, Rinilkumar (TCS) wrote: Hi All, Currently I am working on the Axis2c 1.2 to make it communicate with a legacy system. I have gone through the architecture given in the manual on the website. But from that I am not able to get the exact idea of the flow of the request. Kindly let me know the architecture of the Axis2 C and how the request flows from the client to the server and the response coming beck from the server to the client. Thanks in advance. Regards, Rinil Baxi -- http://blog.kaushalye.org/ http://wso2.org/ - 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: Regarding Axis2C architecture
Baxi, Rinilkumar (TCS) wrote: Hi Kau, Thanks, the links are really useful. We plan to develop some custom handlers / modules to meet our requirement within the legacy system. Do we have any document or link which provides a detailed description of each phase (for example, pre-dispatch, postdispatch, and so on). These are not documented in formal documents. But you can find loads of information if you refer to both Axis2/Java and Axis2/C mail archives. Apart this it would be helpful if we get details about the format in which information is passed between phases. All information goes into message context. You can set parameters in message context and also capture SOAP message in AXIOM format. This information will be really helpful in deciding design for the handlers / modules we plan to develop. The best is to start with the logging module to understand the basics, then look at the addressing module and later look into something like the security modules in Rampart/C. Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: FW: Problem with Service deployed
Rahil Ali wrote: Hello All, Thanks a lot for your help Senaka, Saimsa, Senaka One more thing: can I configure an IP at axis/apache, like only listed ip can access my webservice. You can do that with httpd configuration. This has nothing to do with the Axis2/C httpd module. In other words you can handle this at the Web server level. Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2/C, C++ and 'undefined symbol: __gxx_personality_v0'
Hi, I'm trying to write a SOAP service using Axis2/C framework. I need the service to be written in a C++ language, so as a first step I took an 'echo service' example from the Axis distribution, renamed it to .cpp file and compiled/linked it with 'g++' compiler. No compile errors reported, the resulting .so library I copied to the services directory, together with the corresponding services.xml file. I compiled a sample client that tries to send something to my new service. Than I strarted an 'axis2_http_server' application and run the client, which failed with a SOAP error message about failure to load a dll. I found in the Axis2/C source code the place where it loads the .so file (axutil_class_loader_load_lib() in file 'class_loader.c'), and added debug log message that reports into the log the exact text of an error as it is returned by dlerror() function, not just a message that if failed to load a library, like this (after line 156 of the file 'class_loader.c'): if (!dl_handler) { AXIS2_LOG_DEBUG(env-log, AXIS2_LOG_SI, AXIS2_PLATFORM_LOADLIB error: [%s], AXIS2_PLATFORM_LOADLIB_ERROR); ... ... ... after recompiling the Axis and running the test again, I see in the log following message: class_loader.c(159) AXIS2_PLATFORM_LOADLIB error: [/home/alexb/wsfcpp-repo/services/my_service/libmy_service.so: undefined symbol: __gxx_personality_v0] I understand that the real problem is that the axis2_http_server application is not compiled/linked with the g++ support libraries. Several years ago I had similar problem when writing a C++ module for Apache's httpd server, but there the solution was to use an httpd's directive 'LoadFile' to load the g++ runtime library into the httpd environment before loading my C++ module with the LoadModule directive. So the question is, does anyone knows how to make the axis2_http_server to load the g++ runtime library before it loads a C++ .so service library? For the record, I'm doing all this on the Ubuntu 7.10, and here is a result of running 'g++ --version: $ g++ --version g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Auditing support for Apache Rampart
Hi I am a 3rd year Computer Science undergraduate of University of Colombo School of Computing (UCSC) . I am hoping to participate in this year's Google Summer of Code. I went through the Apache Project Idea's List and found this project interesting. Apache Rampart is the security module of Axis2. It secures SOAP messages according to specifications in the WS-Security stack. Rampart currently doesn't store the auditing details about SOAP messages. As it is said systematic audit record generation is considered a mission-critical function in any software development environment. Most COTS (Commercial Off The Shelf) Web servers include an audit or security event logging service that provides the application with the mechanism it needs to log security events to multiple logs. Configurable property- driven parameters allow the administrator to modify the semantics of the application's log data capture without needing to rewrite the application code. Currently there is no standards/specifications regarding this and it is an implementation specific thing. So I would like to start an open discussion on the main features and the additional features that should be implemented under this project and I need Axis2/Rampart users to give feedback so I can refine the requirements and features. Thanx in advance Heshan Suriyaarachchi
Excepetion in AddressingInFaultHandler
Hi, Can anyone please tell me what might be the reason for the following exception in AddressingInFaultHandler.java Thanks Appu java.lang.NullPointerException at org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(Add ressingInFaultHandler.java:92) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out InAxisOperation.java:336) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper ation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA xisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163 ) at Stub.java:207 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client Code Generation 1.4 RC1
I found the following piece of code in my generated client stub: *private* *void* populateAxisService() *throws* org.apache.axis2.AxisFault { //creating the Service with a unique name _service = *new* org.apache.axis2.description.AxisService( ObjectModelQueryService + *getUniqueSuffix*()); addAnonymousOperations(); //creating the operations org.apache.axis2.description.AxisOperation __operation; _operations = *new* org.apache.axis2.description.AxisOperation[1]; __operation = *new* org.apache.axis2.description.OutInAxisOperation(); __operation.setName(*new* javax.xml.namespace.QName( http://ic.com/IMSware/WebServices/ObjectModel/Query/;, queryObjectsAttributes)); _service.addOperation(__operation); _operations[0]=__operation; } But there was no method addAnonymousOperations generated. Regards Walter
after code generation - local cannot resolved
Hallo, after i generated java code with the Axis2 Code Generator Wizard i got two classes ending with _type0 and _type1 who needs a variable named local. local will be used in the methods getPullParser() and serialize(), but i seems that it is never decleared, so that i got the error local cannot resolved. Has anybody a solution or a hint? Regards, Andreas /** * databinding method to get an XML representation of this object * */ public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException{ //We can safely assume an element has only one type associated with it return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(MY_QNAM E, new java.lang.Object[]{ org.apache.axis2.databinding.utils.reader.ADBXMLStreamReader.ELEMENT_TEX T, org.apache.axis2.databinding.utils.ConverterUtil.convertToString(local) },null); } public void serialize(final javax.xml.namespace.QName parentQName,final org.apache.axiom.om.OMFactory factory, org.apache.axis2.databinding.utils.writer.MTOMAwareXMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException, org.apache.axis2.databinding.ADBException{ //We can safely assume an element has only one type associated with it java.lang.String namespace = ; java.lang.String localName = ; if (! namespace.equals()) { java.lang.String prefix = xmlWriter.getPrefix(namespace); if (prefix == null) { prefix = generatePrefix(namespace); xmlWriter.writeStartElement(prefix, localName, namespace); xmlWriter.writeNamespace(prefix, namespace); xmlWriter.setPrefix(prefix, namespace); } else { xmlWriter.writeStartElement(namespace, localName); } } else { xmlWriter.writeStartElement(localName); } if (local==null){ throw new org.apache.axis2.databinding.ADBException(Value cannot be null !!); }else{ xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUt il.convertToString(local)); } xmlWriter.writeEndElement(); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set timeout for web service
The problem is, I call this service from a Bpel process.I increased the timeout value in my web service too.! Maybe this error reflected some information for you 1) The process :CisErFavBpelProcess 2) The operation: dmsRetrieveProcess 2) The web service: cisER2FavService ERROR - GeronimoLog.error(108) | Error sending message (mex={PartnerRoleMex#hqej bhcnphr34i38qexkc2 [PID {http://com.ibm.de.cis/bpel/CisER2Fav}CisErFavBpelProcess-20] calling [EMAIL PROTECTED](...)}): Read timed out org.apache.axis2.AxisFault: Read timed out at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:195) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessa geWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at org.apache.ode.axis2.ExternalService$1$1.call(ExternalService.java:148) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:907) at java.lang.Thread.run(Thread.java:619) Caused by: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) It seems the AxisEngine pup ups the error indeed in dmsRetrieveProcess operation.? --- Arlindo Luis Marcon Junior [EMAIL PROTECTED] schrieb: Hi... in the client side... maybe,,, you tried use the method setTimeOutInMilliSeconds(); in client code,,, further increase the timeout in the axis2.xml file sample: Options options = new Options(); options.setTimeOutInMilliSeconds(); [/jr] henry human escreveu: Hi I have a web service created using WSDL2Java. Because the clients’ requests sometime need more than 30 seconds to be done, it is required to increase the timeout in the web service. Increasing the timeout in the axis2.xml did not help and the service still breaks after 30 seconds with an error: read timeout! How could I set the timeout in the web service? Thanks Henry E-Mails jetzt auf Ihrem Handy. www.yahoo.de/go - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Arlindo Luis Marcon Junior E-mail: [EMAIL PROTECTED] Internet Web Page: http://lattes.cnpq.br/6483462042489662 ICQ: 138864173 Curitiba - Paraná - Brasil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Excepetion in AddressingInFaultHandler
Hi Appu, Please create a JIRA to cover this issue. Also, can you gather the request-reponse flow in TCPMon so that we can see what the fault looks like that is coming back to the client. Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? Appasamy Thirugnana [EMAIL PROTECTED] wrote on 18/03/2008 07:41:19: Hi, Can anyone please tell me what might be the reason for the following exception in AddressingInFaultHandler.java Thanks Appu java.lang.NullPointerException at org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(Add ressingInFaultHandler.java:92) at org.apache.axis2.engine.Phase.invoke(Phase.java:292) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(Out InAxisOperation.java:336) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOper ation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInA xisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163 ) at Stub.java:207 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Deploying Axis Artifacts to Maven Repo
Hi Can anyone provide any pointers for how they are handling axis2 artifacts with maven2. How are you deploying aar and mar projects to repositories and then adding those artifacts to dependant projects (for example when running axis2 engine embedded in webapp)? Do modules and services have to use the mar and aar extensions or could they just be jars? Thanks in advance. Ric
Re: Deploying Axis Artifacts to Maven Repo
Hi Can anyone provide any pointers for how they are handling axis2 artifacts with maven2. How are you deploying aar and mar projects to repositories and then adding those artifacts to dependant projects (for example when running axis2 engine embedded in webapp)? Do modules and services have to use the mar and aar extensions or could they just be jars? You have to use aar files and mar files. -Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Configure HttpClient used with Axis with custom socket factory to check for almost-expired SSL certs?
I want to determine whether it's possible to configure the HttpClient used with Axis with a custom socket factory that can log an event if the SSL cert sent from a server will be expiring in N days. I understand most of the details of the socket factory, but I don't know if Axis provides the hooks I need to set the socket factory on the HttpClient instance. Can someone comment on this? This is relevant to both the old and new Axis. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client Code Generation 1.4 RC1
Walter Weinmann wrote: I found the following piece of code in my generated client stub: *private* *void* populateAxisService() *throws* org.apache.axis2.AxisFault { //creating the Service with a unique name _service = *new* org.apache.axis2.description.AxisService(ObjectModelQueryService + /getUniqueSuffix/()); addAnonymousOperations(); //creating the operations org.apache.axis2.description.AxisOperation __operation; _operations = *new* org.apache.axis2.description.AxisOperation[1]; __operation = *new* org.apache.axis2.description.OutInAxisOperation(); __operation.setName( *new* javax.xml.namespace.QName(http://ic.com/IMSware/WebServices/ObjectModel/Query/;, queryObjectsAttributes)); _service.addOperation(__operation); _operations[0]=__operation; } But there was no method addAnonymousOperations generated. Which is in the parent class (Stub) Thank you! Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Configure HttpClient used with Axis with custom socket factory to check for almost-expired SSL certs?
http://hc.apache.org/httpclient-3.x/sslguide.html http://cephas.net/blog/2007/10/02/using-a-custom-socket-factory-with-httpclient/ http://wso2.org/library/1646 It might be worth reusing the same ServiceClient across different calls. To do so set it to the ConfigurationContext -- see AsyncService2Test.java HTH, Michele On Tue, 2008-03-18 at 08:54 -0700, Karr, David wrote: I want to determine whether it's possible to configure the HttpClient used with Axis with a custom socket factory that can log an event if the SSL cert sent from a server will be expiring in N days. I understand most of the details of the socket factory, but I don't know if Axis provides the hooks I need to set the socket factory on the HttpClient instance. Can someone comment on this? This is relevant to both the old and new Axis. - 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]
codegen generating void methods in skeleton interface
I am using Axis2 1.3 - wrapped/wsdl first.. for some reason the method in skeleton interface for PresentCheques is being generated with a void return.. I have another operation that returns an array and it is working fineso it has to be something else.. xsd:element name=PresentChequesResponse xsd:complexType xsd:sequence xsd:element maxOccurs=1 minOccurs=1 name=Ack type=xsd:boolean/xsd:element xsd:element maxOccurs=500 minOccurs=0 name=RejectedCheques type=ecp:RejectedChequeType/xsd:element /xsd:sequence /xsd:complexType /xsd:element I set the minoccurs to 1 just in case it didn't like the 0, but the problem persisted...This is the schema for RejectedChequeType: complexType name=RejectedChequeType sequence element name=Reason type=string minOccurs=1 maxOccurs=1/element element name=MICR type=tns:MICRType minOccurs=1 maxOccurs=1/element /sequence /complexType When i remove RejectedChequeType from the PresentChequesResponse..the interface is generated correctly.. Whats strange is that PresentChequesResponse RejectedChequeType are being generated correctly.. Is there something wrong with my WSDL/XSD? or is it a known bug in axis2? Thanks, Mikle -- View this message in context: http://www.nabble.com/codegen-generating-void-methods-in-skeleton-interface-tp16124913p16124913.html 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] WSDL2Java with -xsdconfig option -- xb:extension or xb:suffix are ignored
Hi Folks, I'm using WSDL2Java with the -xsdconfig option to control my xmlbean generation. The namespace - package mapping works fine, proving that the xsdconfig file is being picked up, but suffix and extension (interface with handler) are both ignored. When I use the xmlbean's scomp, that comes with Axis2, to generate beans all is OK. Is this a bug with WSDL2Java or have I missed something? Is there a work around or a fix? Any comments/help appreciated. Thanks in advance, Peter. xb:config xmlns:xb=http://xml.apache.org/xmlbeans/2004/02/xbean/config; xb:namespace uri=##any xb:suffixXmlBean/xb:suffix /xb:namespace xb:namespace uri=http://www.bedsearcher.co.uk/Bs/2007/01; xb:packageorg.bs.service.hello/xb:package /xb:namespace xb:extension for=* xb:interface name=org.bs.other.BsExtension xb:staticHandlerorg.bs.other.BsHandler/xb:staticHandler /xb:interface /xb:extension /xb:config - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs?
Is this possible to do in Axis (not Axis2)? The only interface I can see for this that's like settings properties in the Axis2 message context is the CommonsHTTPClientProperties interface, which only has a limited defined set of properties it can set. -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 9:13 AM To: axis-user@ws.apache.org Subject: Re: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs? http://hc.apache.org/httpclient-3.x/sslguide.html http://cephas.net/blog/2007/10/02/using-a-custom-socket-factor y-with-httpclient/ http://wso2.org/library/1646 It might be worth reusing the same ServiceClient across different calls. To do so set it to the ConfigurationContext -- see AsyncService2Test.java HTH, Michele On Tue, 2008-03-18 at 08:54 -0700, Karr, David wrote: I want to determine whether it's possible to configure the HttpClient used with Axis with a custom socket factory that can log an event if the SSL cert sent from a server will be expiring in N days. I understand most of the details of the socket factory, but I don't know if Axis provides the hooks I need to set the socket factory on the HttpClient instance. Can someone comment on this? This is relevant to both the old and new Axis. - 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: codegen generating void methods in skeleton interface
If I remove the Ack element, the method is generated correctly... seems like the codegen isn't happy with multiple elements within the wrapper.. Must be coz i'm using unwrap.. would be cool if the codegen would revert back to wrapped in such cases... -- View this message in context: http://www.nabble.com/codegen-generating-void-methods-in-skeleton-interface-tp16124913p16125733.html 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] Managing Sessions (using JSESSIONID) between 2 webservices deployed within in the same application (war file)
Hi, I have 2 webservices deployed within the same application (same war file). I want to manage sessions between these 2 webservices (using the setManageSession method). I want the JSESSIONID to be used in all the requests. It works fine if I have 1 service. Here is my scenario. 1. FirstService has a login method (takes username password as parameters). I authenticate the user create a session, store this session in ConfigurationContext 2. SecondService has other methods which are executed for the user who has logged into our system using the login method in the FirstService. Problem: If I use just one service, my first response is having a JSESSIONID and all the subsequent requests will have the same JSESSIONID. But, if I use 2 services (in one war file), I'm not getting a JSESSIONID. Does anyone have seen such a case before has a solution it? Thanks Raghu
WSDL2C errors
Hi I am using Eclipse C++ development environment to generate a client. Was able to create a client code using wsdl2c utility ( Just renamed wsdl2Java and changed the class to org.apache.axis2.wsdl.WSDL2C) . Here is the command that I used to create the client. C:\Development\axis2-1.3\bin\wsdl2c -uri MaintenanceControlWebService.wsdl-d adb -u I am getting a compilation error while in rest_of_handle_final, at toplev.c:2067 any help in this regard would be helpful. Thanks, Pk
Re: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs?
David, I don't know about Axis1, you were saying that it is relevant to both the old and new Axis. Michele On 18 Mar 2008, at 16:48, Karr, David wrote: Is this possible to do in Axis (not Axis2)? The only interface I can see for this that's like settings properties in the Axis2 message context is the CommonsHTTPClientProperties interface, which only has a limited defined set of properties it can set. -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 9:13 AM To: axis-user@ws.apache.org Subject: Re: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs? http://hc.apache.org/httpclient-3.x/sslguide.html http://cephas.net/blog/2007/10/02/using-a-custom-socket-factor y-with-httpclient/ http://wso2.org/library/1646 It might be worth reusing the same ServiceClient across different calls. To do so set it to the ConfigurationContext -- see AsyncService2Test.java HTH, Michele On Tue, 2008-03-18 at 08:54 -0700, Karr, David wrote: I want to determine whether it's possible to configure the HttpClient used with Axis with a custom socket factory that can log an event if the SSL cert sent from a server will be expiring in N days. I understand most of the details of the socket factory, but I don't know if Axis provides the hooks I need to set the socket factory on the HttpClient instance. Can someone comment on this? This is relevant to both the old and new Axis. - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs?
Yes, I did say and, not or. I still need to know whether this is possible in Axis1. Thanks. -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 10:15 AM To: axis-user@ws.apache.org Subject: Re: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs? David, I don't know about Axis1, you were saying that it is relevant to both the old and new Axis. Michele On 18 Mar 2008, at 16:48, Karr, David wrote: Is this possible to do in Axis (not Axis2)? The only interface I can see for this that's like settings properties in the Axis2 message context is the CommonsHTTPClientProperties interface, which only has a limited defined set of properties it can set. -Original Message- From: Michele Mazzucco [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 18, 2008 9:13 AM To: axis-user@ws.apache.org Subject: Re: Configure HttpClient used with Axis with custom socket factoryto check for almost-expired SSL certs? http://hc.apache.org/httpclient-3.x/sslguide.html http://cephas.net/blog/2007/10/02/using-a-custom-socket-factor y-with-httpclient/ http://wso2.org/library/1646 It might be worth reusing the same ServiceClient across different calls. To do so set it to the ConfigurationContext -- see AsyncService2Test.java HTH, Michele On Tue, 2008-03-18 at 08:54 -0700, Karr, David wrote: I want to determine whether it's possible to configure the HttpClient used with Axis with a custom socket factory that can log an event if the SSL cert sent from a server will be expiring in N days. I understand most of the details of the socket factory, but I don't know if Axis provides the hooks I need to set the socket factory on the HttpClient instance. Can someone comment on this? This is relevant to both the old and new Axis. - 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] - 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]
.wsdl to soap template generator
Axi2 crew, Is there a script that will read .wsdl file and output a soap message template much like wsdl2java reads .wsdl and outputs a java template. The reason I am hoping to find this is: I have some slightly complex data structures in in my .wsdl that do not lend themselves to a generic routine. I will need to write a routine for each message. If I had a script that will output a soap message template, then I could run the script and cut and paste it into my code. By code, I mean some javascript that will be invoking the webservice. -- Michael Potter. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deploying Axis Artifacts to Maven Repo
Ric, I'm not sure if this answers your question (if not please provide more details about what you are trying to achieve), but I can give you a few hints: * There are dedicated Maven plugins to build aar and mar projects: axis2-aar-maven-plugin and axis2-mar-maven-plugin. In the Axis2 sources, you should find some examples of how to use them. * If you want to bundle aar or mar files into your Web application, I think the easiest way is to use the copy goal of the maven- dependency-plugin. Here is an example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phaseinitialize/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdorg.apache.synapse/groupId artifactIdsynapse/artifactId version${synapse.version}/version typemar/type destFileNamesynapse.mar/destFileName /artifactItem artifactItem groupIdorg.apache.axis2/groupId artifactIdsoapmonitor/artifactId version${axis2.version}/version typemar/type destFileNamesoapmonitor.mar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/webResources/WEB- INF/repository/modules/outputDirectory /configuration /execution /executions /plugin Andreas On 18 Mar 2008, at 14:59, RICHARD FEATHERSTONE wrote: Hi Can anyone provide any pointers for how they are handling axis2 artifacts with maven2. How are you deploying aar and mar projects to repositories and then adding those artifacts to dependant projects (for example when running axis2 engine embedded in webapp)? Do modules and services have to use the mar and aar extensions or could they just be jars? Thanks in advance. Ric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating client for Jira webservice
Hi, I'm trying to generate an Axis2 client for the Jira webservices. The WSDL I'm using can be found here: http://jira.atlassian.com/rpc/soap/jirasoapservice-v2?wsdl;. First error message: Encoded use is not supported. Solved by using 'use=literal' instead of 'use=encoded'. Second error message: Part 'fault' of fault message '{...}RemoteException' must be defined with 'element=QName' and not 'type=QName'. Solved by removing fault elements, but I have no clue on why these elements are causing problems. This time the generation of the client works, but it is rather slow. I'm using Axis2 v1.3 and the following Ant target to generate the client: java classname=org.apache.axis2.wsdl.WSDL2Java fork=true classpathref=axis2.classpatharg line=-d xmlbeans -p ${package.name} -o ${client.dir} -u -uri ${wsdl.name}//java. I have no idea if this is a problem with the Jira WSDL or with certain limitations of Axis2. Any help with this issue is highly appreciated :o). Regards, Stefan Lecho. -- View this message in context: http://www.nabble.com/Generating-client-for-Jira-webservice-tp16121946p16121946.html 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]Use of wsdl4j jar
Ashok, What is the reason why you have to use an older version of wsdl4j.jar? Andreas On 13 Mar 2008, at 07:37, Ashok Kumar Rajendran wrote: Hi , Does any one tell whats the use of wsdl4j.jar in Axis2 1.3 version? I am using Axis2 in client side for invoking web services . Does changing wsdl4j.jar 1.6 to version wsdl4j.jar 1.4 (currently Axis2 distribution includes wsdl4j 1.6 version ) will make any impact? Since I am struct with wsdl4j.jar 1.4 version . Whats the difference between the two version of the jars ? Any implementation differs? Can any one help? Thanks, Ashok - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating client for Jira webservice
On 18 Mar 2008, at 21:58, stlecho wrote: Second error message: Part 'fault' of fault message '{...}RemoteException' must be defined with 'element=QName' and not 'type=QName'. Solved by removing fault elements, but I have no clue on why these elements are causing problems. A similar issue has been discussed some time ago: http://www.nabble.com/BP2113-warning-on-WS-Interoperability-test-to15135587.html#a15143012 Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating client for Jira webservice
Andreas, When reading through the referenced post, I conclude that the WSDL provided by Jira should be modified when using Axis2. Personally I find this quite annoying :o(. It would be interesting to verify (but unfortunately I'm not a WSDL expert) if the Jira WSDL violates certain aspects of the WSDL standard. If this is the case, Atlassian could be asked to change it so that it conforms with the WSLD standard. Any help from a WSDL expert to have a look at this issue? Regards, Stefan. Andreas Veithen wrote: On 18 Mar 2008, at 21:58, stlecho wrote: Second error message: Part 'fault' of fault message '{...}RemoteException' must be defined with 'element=QName' and not 'type=QName'. Solved by removing fault elements, but I have no clue on why these elements are causing problems. A similar issue has been discussed some time ago: http://www.nabble.com/BP2113-warning-on-WS-Interoperability-test-to15135587.html#a15143012 Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Generating-client-for-Jira-webservice-tp16121946p16131937.html 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: Deploying Axis Artifacts to Maven Repo
Hi Andreas, Thanks for your help. I actually figured some of this out by trial and error. With a project creating an aar archive just set packaging to aar when using the aar plugin and the aar file gets deployed to the repo. Then reference this in the embedded axis webapp and the aar file is placed in WEB-INF/services as required. I'm having some trouble with adding mar files though. I tried to add a dependency to the org.apache.rampart mar but it couldn't be resolved. So I manually installed it but although the war now builds it doesn't add the mar to the WEB-INF/modules directory. I keep hacking away but if anyone wants to put me out of my misery I'd really appreciate it. Thanks, Ric - Original Message From: Andreas Veithen [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Tuesday, 18 March, 2008 7:33:33 PM Subject: Re: Deploying Axis Artifacts to Maven Repo Ric, I'm not sure if this answers your question (if not please provide more details about what you are trying to achieve), but I can give you a few hints: * There are dedicated Maven plugins to build aar and mar projects: axis2-aar-maven-plugin and axis2-mar-maven-plugin. In the Axis2 sources, you should find some examples of how to use them. * If you want to bundle aar or mar files into your Web application, I think the easiest way is to use the copy goal of the maven- dependency-plugin. Here is an example: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId executions execution idcopy/id phaseinitialize/phase goals goalcopy/goal /goals configuration artifactItems artifactItem groupIdorg.apache.synapse/groupId artifactIdsynapse/artifactId version${synapse.version}/version typemar/type destFileNamesynapse.mar/destFileName /artifactItem artifactItem groupIdorg.apache.axis2/groupId artifactIdsoapmonitor/artifactId version${axis2.version}/version typemar/type destFileNamesoapmonitor.mar/destFileName /artifactItem /artifactItems outputDirectory${project.build.directory}/webResources/WEB- INF/repository/modules/outputDirectory /configuration /execution /executions /plugin Andreas On 18 Mar 2008, at 14:59, RICHARD FEATHERSTONE wrote: Hi Can anyone provide any pointers for how they are handling axis2 artifacts with maven2. How are you deploying aar and mar projects to repositories and then adding those artifacts to dependant projects (for example when running axis2 engine embedded in webapp)? Do modules and services have to use the mar and aar extensions or could they just be jars? Thanks in advance. Ric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Interop problems with .Net and Axis 2 using MTOM
Hi, I'm a little bit confused.. Can you clarify a bit more.. Please have a look at the inlined questions.. I used Axis 2 to create an MTOM enabled client and a service that sends a PDF as a byte[]. Did you use an already existing WSDL or did you deploy your service as a POJO? I then took the clients C# WSDL and generated the necessary files using WSDL2Java and created a client just like i did in Java. Did you mean you took the wsdl of the Axis2 service you wrote?.. But looking at the stack trace you seems have used a Axis2 client... I keep getting the following error. In what combinations you get the error?.. Axis2 client .net service?? The client code has been added after the error. Can someone point out what im doing wrong here or guide me as to what i have to do ? It will be easier to help you if you tell what you are trying to do... thanks, Thilina Thanks, ___ Exception in thread main org.apache.axis2.AxisFault at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:89) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse( OutInAxisOperation.java:326) at org.apache.axis2.description.OutInAxisOperationClient.send( OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl( OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at com.myceridianprototype.StorePDFforArchivingStub.UploadDocument( StorePDFforArchivingStub.java:196) at com.myceridianprototype.LocalClient.main(LocalClient.java:47) Caused by: java.lang.NullPointerException at org.apache.axis2.transport.TransportUtils.createDocumentElement( TransportUtils.java:156) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:111) at org.apache.axis2.transport.TransportUtils.createSOAPMessage( TransportUtils.java:87) ... 6 more import javax.activation.FileDataSource; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; import org.apache.axiom.om.OMText; import org.apache.axis2.Constants; import com.amo.service.TestServiceStub; import com.amo.service.TestServiceStub.WritetoFileSystem; public class ExihibitAClient { private static final String EPR = http://localhost/services/TestService/Test.asmx;; private static final String INPUT_FILE = C:\\HOLD\\small.pdf; public static void main(String[] args) throws Exception { System.out.println(In the TestClient Main Method); System.out.println(EPR: +EPR); System.out.println(Input File Name: +INPUT_FILE); TestServiceStub stub = new TestServiceStub(EPR); stub._getServiceClient().getOptions().setProperty( Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); stub._getServiceClient().getOptions().setTimeOutInMilliSeconds(1); javax.activation.DataHandler dataHandler = new javax.activation.DataHandler(new FileDataSource(INPUT_FILE)); WritetoFileSystem write = new WritetoFileSystem(); write.setFilename(outputfile.pdf); write.setArray(dataHandler); stub.writetoFileSystem(write); System.out.println(done calling service...); } } ___ -- View this message in context: http://www.nabble.com/Interop-problems-with-.Net-and-Axis-2-using-MTOM-tp16097043p16097043.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thilina Gunarathne - http://thilinag.blogspot.com
Re: Interop WCF Service/Axis2 Client and Stream
Hi, Looks like a data binding issue.. If possible please post a message stack trace of the response. Also what's the Axis2 version you are using.. Axis2 1.3 has the following known bug, which is fixed in the head.. https://issues.apache.org/jira/browse/AXIS2-3196 Axis2 supports MTOM and it has proven interoperability with .net except for the above mentioned bug which appeared in Axis2 1.3 as a result of a optimization.. But I also suspect about the Data Binding capability of the simple type restriction of Base64Binary given in the xsd4.. xs:simpleType name=StreamBody xs:restriction base=xs:base64Binary / /xs:simpleType thanks, Thilina On Mon, Mar 17, 2008 at 5:14 AM, Andreas Necker [EMAIL PROTECTED] wrote: Hi, 2008/3/14, Thilina Gunarathne [EMAIL PROTECTED]: Yes.. Please post the other WSDL and specially the schema part (may be it's a separate .xsd file).. here are the the WSDLs and XSDs. What exactly did you mean by streaming.. Is it MTOM??.. Are you trying to send back a binary file data to the client.. Yes, the CheckOutDocument Methods sends back a (File)Stream. The message encoding is MTOM (- Service configuration in my first Mail). I think the interesting parts are the CheckOutDocumentResult @xsd0 and the StreamBody definition @xsd4. Thanks Andreas FileTransfer.WSDL ?xml version=1.0 encoding=utf-8? wsdl:definitions name=FileTransfer targetNamespace=http://tempuri.org/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:wsam=http://www.w3.org/2007/05/addressing/metadata; xmlns:tns=http://tempuri.org/; xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; xmlns:i0=http://www.dummy.de/DmsService; xmlns:wsap=http://schemas.xmlsoap.org/ws/2004/08/addressing/policy; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:msc=http://schemas.microsoft.com/ws/2005/12/wsdl/contract; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:wsa10=http://www.w3.org/2005/08/addressing; xmlns:wsx=http://schemas.xmlsoap.org/ws/2004/09/mex; wsp:Policy wsu:Id=BasicHttpFileTransfer_policy wsp:ExactlyOne wsp:All wsoma:OptimizedMimeSerialization xmlns:wsoma= http://schemas.xmlsoap.org/ws/2004/09/policy/optimizedmimeserialization; / /wsp:All /wsp:ExactlyOne /wsp:Policy wsdl:import namespace=http://www.dummy.de/DmsService; location=http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0; / wsdl:types / wsdl:binding name=BasicHttpFileTransfer type=i0:IFileTransfer wsp:PolicyReference URI=#BasicHttpFileTransfer_policy / soap:binding transport=http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=CheckOutDocument soap:operation soapAction=http://www.dummy.de/DmsService/IFileTransfer/CheckOutDocument; style=document / wsdl:input soap:body use=literal / /wsdl:input wsdl:output soap:body use=literal / /wsdl:output wsdl:fault name=ServiceOperationFailedExceptionFault soap:fault name=ServiceOperationFailedExceptionFault use=literal / /wsdl:fault wsdl:fault name=ServiceOperationFailedRetryExceptionFault soap:fault name=ServiceOperationFailedRetryExceptionFault use=literal / /wsdl:fault wsdl:fault name=AuthenticationExceptionFault soap:fault name=AuthenticationExceptionFault use=literal / /wsdl:fault /wsdl:operation /wsdl:binding wsdl:service name=FileTransfer wsdl:port name=BasicHttpFileTransfer binding=tns:BasicHttpFileTransfer soap:address location=http://ntfe:8013/DmsBatch/FileTransfer/; / /wsdl:port /wsdl:service /wsdl:definitions http://ntfe:8013/DmsBatch/FileTransfer/?wsdl=wsdl0 ?xml version=1.0 encoding=utf-8? wsdl:definitions targetNamespace=http://www.dummy.de/DmsService; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsu= http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:wsam=http://www.w3.org/2007/05/addressing/metadata; xmlns:tns=http://www.dummy.de/DmsService; xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; xmlns:wsap=http://schemas.xmlsoap.org/ws/2004/08/addressing/policy; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:msc=http://schemas.microsoft.com/ws/2005/12/wsdl/contract; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:wsa10=http://www.w3.org/2005/08/addressing;
Re: .wsdl to soap template generator
Hi Micheal, SOAPUI can easily be used to generate a template for request soap envelope Have a look http://www.soapui.org/ regards Charitha Michael Potter wrote: Axi2 crew, Is there a script that will read .wsdl file and output a soap message template much like wsdl2java reads .wsdl and outputs a java template. The reason I am hoping to find this is: I have some slightly complex data structures in in my .wsdl that do not lend themselves to a generic routine. I will need to write a routine for each message. If I had a script that will output a soap message template, then I could run the script and cut and paste it into my code. By code, I mean some javascript that will be invoking the webservice. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Selectnodes not working
Hello, OMElement result = stub.getDeviceData(omelement); String xpathString = /result/data; AXIOMXPath xpathExpression = new AXIOMXPath (xpathString); // Step 3 List listOfNodes = xpathExpression.selectNodes(result); // Let's see what we have got for (int i = 0; i listOfNodes.size(); i++) { OMElement omElement = (OMElement) listOfNodes.get(i); System.out.println(omElement = + omElement); } In my client i have written this code.. but the selectnodes is not working . When i directly read teh xml on the client side it is working...the result object contains all the data. am able to print it to console. can anyone help? Regards lakshmi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]