AW: AW: AW: [Axis2C] how to return a MsgBox
Thank you all, and I will comment ++ below -Ursprüngliche Nachricht- Von: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 30. Januar 2008 03:49 An: Apache AXIS C User List Betreff: Re: AW: AW: [Axis2C] how to return a MsgBox Adding my thoughts.. As Mark mentioned there is no direct support for out-in message exchange pattern directly just using Axis2/C. ++ that is what I would like to see. But AFAIK you can use Savan/C[1] (eventing module for axis2) to do that. There what you will do is subscribe set of clients with a server, and then server can notify clients when required. But in your case that is not required, because it will be a big overhead if you setup savan just for the user confirmation. It is supposed to used for some more complicated eventing. ++ SAVAN/C good to know for other things. But PC clients demanding to send just YES or NO to a requesting server (call it an agent, as it can not finish its method until he got the users response. YES/NO. So I agree, SAVAN/C is a bit of overhead. From Mark's thoughts I prefer the 3rd one. That is to use async request with some big value in timeout.. There, Client request asynchronously -- Server start do work | | | | | | --sends the confirmation. The callback pop up(the response) the message box (i.e. that operation ends) | The callback send a 'in only' message to - Server receive the server (in a new service operation) Hope this will format ok in your mail client ++ This has formatted nicely, and it is what we do! However the client request is only synchronous. The reason is that we have a synchronous working server. Matters of facts, which we have to respect. So we have a clear client server synchronous request/response paradigm. And that is why we need today a detached CORBA-YES-NO-Server-Process running on the clients PC If somebody out-there needs to know YES/NO from a user, it can send a request to this PC's-CORBA-YES-NO-Server. A msgbox will then pop up and the user can press the button. As we have a CORBA-Server fo each PC-Client, we pass the IOR (Ref) of the PC's CORBA-YES-NO-Server to the CORBA-Server on the OpenVMS Host. And then any Method in the OpenVMS CORBA Server can ask back. So right now it looks as we need to run a Axis2/C or Axis2/J Server on the PC, with the ability to pop up a MsgBox satisfying the incoming request for YES/NO with either a YES or a NO. I thougth there would be some kind of a call-back-feature in Axis2/C for that. ++ more below [1] http://ws.apache.org/savan/c/ Thanks Dimuthu On Jan 30, 2008 12:34 AM, Ben Wyckoff [EMAIL PROTECTED] wrote: Hi, I'm far from a windows (or web services) expert, so I can only offer some comments about the paradigm in general. I read this and thought of the http basic authentication paradigm: the client makes a request to the server, the server responds with a 401 Unauthorized response, which causes the browser to automatically pop up a dialog box asking for credentials. When they are supplied, the browser resubmits the request with the proper credentials, and the server processes it. I don't know what your client application is or at what point the web service needs to get feedback, but the challenge/response paradigm might work for you. You would have to return something to the client (e.g., javascript, an active-x reference) that triggers the MsgBox. The point is that the requests are not nested in the authorization example, whereas the situation you described does have the server-client request nested. ++ correct Lots of web sites use confirmation pages before completing some significant transaction. ++ I have no clue how confirmation pages work. Is this something a web-server can pop-up on the client's PC? It migth what I am looking for. Just a kind which does not enforce me to have a web service server running on each PC Client just as an AXIS2/C-YES-NO-Server tomorrow, today an CORBA-YES-NO-Server. -Ben From: Mark Nüßler [EMAIL PROTECTED] Reply-To: Apache AXIS C User List axis-c-user@ws.apache.org Date: Tue, 29 Jan 2008 19:31:49 +0100 To: Apache AXIS C User List axis-c-user@ws.apache.org Subject: Re: AW: AW: [Axis2C] how to return a MsgBox Hello Josef, i've read your first post, opened a reply - starting to write my thoughts down - deleted it, cause im not an expert ;-) ++ I agree the design and code of such a YES-NO-Server is not so easy. first, i think you have to write your server side callback method outside the service, cause the service is only active when triggerd. you can use axis2 api to create payload - clear. ++ I was more
Re: Axis C server support for dotnet client
Hi Dimuthu, I agree totallly, I have been working on that today, basically the dotnet client formats the soap message so you cannot change that side. Which is understandable as a client should not have to know knowlede of how the service is stored on the server. So I tried to configure Axis2 to locate the / directory and locate the TestData folder under it. I could not find a way to do that. Do you know of a way to do that? In summary: The axis server should not force the path to have /axis2/services prefix... how do remove that ? Thanks Gavan Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi Gavan, If you recieve service not found error from axis2/c server, it can be mostly due to the wrong endpoint. If your service directory is TestData ( i.e. inside the axis2 services directory) your service endpoint should be http://your_host_name:port/axis2/services/TestData;. I can see in your fault you have set the endpoint to http://127.0.0.1:8080/TestData;. Can you try with http://127.0.0.1:8080/axis2/services/TestData; as the service endpoint? Thanks, Dimuthu On Jan 30, 2008 4:06 AM, Gavan Hood wrote: I renamed my previous post as the problem in my opinion is in the Axis2 C http server capabilities, which may be a design flaw. The server responds with a service not found error as it is unable to identify the correct The original post is below the tcpmon trace that follows. I am about to see what I can do to identify how the http server handles the http header and locates the service... the microsoft namespace QName looks different to what I see in the echo test which I appended to end of the message after the original text POST /TestData HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2 .0.50727.1366) VsDebuggerCausalityData: uIDPo7iwHfJnmU1MsR+ixSBkQ/wAIcBQpWIKEkiCDjuzhhBtsBm dJpxYAh9KiKHDv3dFhhcACQAA Content-Type: text/xml; charset=utf-8 SOAPAction: http://software.mytest.com/GetData; Host: localhost:9090 Content-Length: 428 Expect: 100-continue Connection: Keep-Alive 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; xmlns=http:/ /software.mytest.com/localhostsampl esAerationfalse â RETRIEVING DATA.. /* retrieving time = 17:36:27*/ /* time throughput = 0 sec(s)*/ - HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=UTF-8 Connection: Keep-Alive Content-Length: 404 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; penv:Header/soapenv:Server faultstringService Not FoundService Not Found, Endpoint referance address is http://127.0.0.1:8080/TestData and wsa acti ons is (null) ope Gavan Hood wrote: I suspected a problem with MS support for WS basic profile as opposed to WS* indicated in Axis2C. I hoped there would be a solution but have not found anything. I am at a point where I need to tweak on of the two worlds... or drop Axis2. I still hope there is something I am missing that will let the following process work for me... Let me know your thoughts please. I have to generate a service that is equivalent to a asmx service that has dotnet clients, once I get that I can then extend... I know the MS and non MS worlds like to live in isolation, unfortunately I am in world that demands they work together. I started with a dotnet asmx web service generated its WSDL this was to be the base for the service environemnt. I then processed the WSDL with WSDL2C from Axis2 to give the C skeleton. I then compiled the skeleton (by modifying the echo sample makefile ...) With the dll etc in the Services folder, I can see it in the default 9090 connection of listed services (which I think is just a dump of the xml folder contents). I autogenerated a C# client with MS visual studio from the WSDL. It worked fine with the .asmx file as you would expect. I then pointed it at the Axis2 server and watched the SOAP packets with tcpmon, I can see a significant difference in the format as expected. I now need to identify if there are: A settting for Microsoft tools to connect to the Axis2C server. A configuration setting to Axis2C server to handle dotnet clients as above If there is no simple change, is there a code change for the Axis2C server to trap these connections and translater them. I am guessing I either have to make a custom http handler or maybe there is a WS basic profile to WS* conversion utility that works like tcpmon Any help much appreciated... Never miss a thing. Make Yahoo your homepage. POST /axis2/services/echo HTTP/1.1 User-Agent: Axis2/C Content-Length: 512 Content-Type: application/soap+xml;charset=UTF-8 Host: localhost:9090 xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; nv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing;http://localh
Re: Axis C server support for dotnet client
I managed to get the path to the Service to be /axis2/services/TestData in the client. Even though this is not a usable solution for production it did enable the server to locate the service, it then generated another set of errors which I am looking at now... I still need to work out how to get the server to not require the prefix... but at least I can find the service.. even if it wont run yet... Gavan Hood [EMAIL PROTECTED] wrote: Hi Dimuthu, I agree totallly, I have been working on that today, basically the dotnet client formats the soap message so you cannot change that side. Which is understandable as a client should not have to know knowlede of how the service is stored on the server. So I tried to configure Axis2 to locate the / directory and locate the TestData folder under it. I could not find a way to do that. Do you know of a way to do that? In summary: The axis server should not force the path to have /axis2/services prefix... how do remove that ? Thanks Gavan Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi Gavan, If you recieve service not found error from axis2/c server, it can be mostly due to the wrong endpoint. If your service directory is TestData ( i.e. inside the axis2 services directory) your service endpoint should be http://your_host_name:port/axis2/services/TestData;. I can see in your fault you have set the endpoint to http://127.0.0.1:8080/TestData;. Can you try with http://127.0.0.1:8080/axis2/services/TestData; as the service endpoint? Thanks, Dimuthu On Jan 30, 2008 4:06 AM, Gavan Hood wrote: I renamed my previous post as the problem in my opinion is in the Axis2 C http server capabilities, which may be a design flaw. The server responds with a service not found error as it is unable to identify the correct The original post is below the tcpmon trace that follows. I am about to see what I can do to identify how the http server handles the http header and locates the service... the microsoft namespace QName looks different to what I see in the echo test which I appended to end of the message after the original text POST /TestData HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2 .0.50727.1366) VsDebuggerCausalityData: uIDPo7iwHfJnmU1MsR+ixSBkQ/wAIcBQpWIKEkiCDjuzhhBtsBm dJpxYAh9KiKHDv3dFhhcACQAA Content-Type: text/xml; charset=utf-8 SOAPAction: http://software.mytest.com/GetData; Host: localhost:9090 Content-Length: 428 Expect: 100-continue Connection: Keep-Alive 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; xmlns=http:/ /software.mytest.com/localhostsampl esAerationfalse â RETRIEVING DATA.. /* retrieving time = 17:36:27*/ /* time throughput = 0 sec(s)*/ - HTTP/1.1 500 Internal Server Error Content-Type: text/xml;charset=UTF-8 Connection: Keep-Alive Content-Length: 404 xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; penv:Header/soapenv:Server faultstringService Not FoundService Not Found, Endpoint referance address is http://127.0.0.1:8080/TestData and wsa acti ons is (null) ope Gavan Hood wrote: I suspected a problem with MS support for WS basic profile as opposed to WS* indicated in Axis2C. I hoped there would be a solution but have not found anything. I am at a point where I need to tweak on of the two worlds... or drop Axis2. I still hope there is something I am missing that will let the following process work for me... Let me know your thoughts please. I have to generate a service that is equivalent to a asmx service that has dotnet clients, once I get that I can then extend... I know the MS and non MS worlds like to live in isolation, unfortunately I am in world that demands they work together. I started with a dotnet asmx web service generated its WSDL this was to be the base for the service environemnt. I then processed the WSDL with WSDL2C from Axis2 to give the C skeleton. I then compiled the skeleton (by modifying the echo sample makefile ...) With the dll etc in the Services folder, I can see it in the default 9090 connection of listed services (which I think is just a dump of the xml folder contents). I autogenerated a C# client with MS visual studio from the WSDL. It worked fine with the .asmx file as you would expect. I then pointed it at the Axis2 server and watched the SOAP packets with tcpmon, I can see a significant difference in the format as expected. I now need to identify if there are: A settting for Microsoft tools to connect to the Axis2C server. A configuration setting to Axis2C server to handle dotnet clients as above If there is no simple change, is there a code change for the Axis2C server to trap these connections and translater them. I am guessing I either have to make a custom http handler or maybe there is a WS basic profile
Re: Axis C server support for dotnet client
Gavan Hood wrote: I managed to get the path to the Service to be /axis2/services/TestData in the client. Even though this is not a usable solution for production it did enable the server to locate the service, it then generated another set of errors which I am looking at now... I still need to work out how to get the server to not require the prefix... but at least I can find the service.. even if it wont run yet... http://wso2.org/library/2663 Thanks, Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Questions/suggestions on WSDL2C
Please see my inline comment. On Jan 31, 2008 8:07 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Hi Zhang, Thanks for your suggestions. 1). In fact generating a demo client is a good idea. I will look in to that. For the time being, I'm using a ruby script to generate simple demonstrations for stub and skels (it automatically generates simple logic with adb), if you find useful you can check it from http://people.apache.org/~dimuthu/leisure/23_oct/generate_demos.rb. When there are so many operations, with complex params, how are we supposed to generate a demo client? I think what we can provide is empty functions (with empty logic) as in server side. The adb object manipulation should be anyway done by the user. so we don't need to worry about complex types in the demo client.. That indeed should be done by the user. BTW the ruby script I mentioned there, recursively fills the object matching pattern in the generated code.. That works only for in-out MEP. Anyway what we are planning to generate with WSDL2C tool is not much complicated as that. Thanks Dimuthu 2). If we are generating makefiles we may need to think about both linux and windows users. And we have to decide whether to use automake build system or just a simple Makefile which sometime not OS independent. May be some build system expert can help on this. Sanjaya,, Any Ideas? IMHO, automake makes things too complicated here. We can just generate a simple Makefile tat could be used directly. Thanks, Samisa... Thanks Dimuthu On Jan 31, 2008 12:18 AM, Zhang, Wayne (IT) [EMAIL PROTECTED] wrote: Hi, I just started looking at Axis2/C two days ago and it looks pretty promising. However I hit a snag using WSDL2C, and I couldn't find any solutions in the mail archive, so apologies if this has already been answered before. I am using WSDL2C to generate a simple calculator client and server. I followed the directions in your user manual (http://ws.apache.org/axis2/c/docs/axis2c_manual.html#wsdl2c) and was able to generate my client stubs and server skeletons successfully. Implementing the server skeleton is pretty straight forward -- I just added my business logic in the /* TODO ... */ field. However implementing the client isn't as easy. The user manual simply states To do this, go through the header files generated and understand the API in line with the WSDL file that you used to generate the code. It will be great if you can provide a step-by-step example showing which functions to implement in what files. My other suggestions are: * Can WSDL2C generate a main() for the client that sets up the default env/options and make required axis calls such as axis2_endpoint_ref_create(), axis2_svc_client_send_receive(), etc. and put /* TODO */ hints to prompt users to add his business logic? * It will be great if WSDL2C can also generate makefiles to assist compiling the server and client, as well as install the server in $AXIS_HOME/services. This will ease a user's development effort quite a bit. Many thanks in advance, Wayne Zhang Morgan Stanley | Technology 750 Seventh Avenue, 12th Floor | New York, NY 10019 Phone: +1 212 762-1943 [EMAIL PROTECTED] NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. - 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: Questions/suggestions on WSDL2C
On Jan 31, 2008 9:19 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Please see my inline comment. On Jan 31, 2008 8:07 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Hi Zhang, Thanks for your suggestions. 1). In fact generating a demo client is a good idea. I will look in to that. For the time being, I'm using a ruby script to generate simple demonstrations for stub and skels (it automatically generates simple logic with adb), if you find useful you can check it from http://people.apache.org/~dimuthu/leisure/23_oct/generate_demos.rb. When there are so many operations, with complex params, how are we supposed to generate a demo client? I think what we can provide is empty functions (with empty logic) as in server side. The adb object manipulation should be anyway done by the user. so we don't need to worry about complex types in the demo client.. That indeed should be done by the user. BTW the ruby script I mentioned there, recursively fills the object matching pattern in the generated code.. That works only for in-out MEP. Anyway what we are planning to generate with WSDL2C tool is not much complicated as that. I wish we could have used the Ruby script, the only problem with that is we have to assume users would have Ruby. This would specially be problematic with Windows users :( Hi, I don't think we should use the Ruby Script as a kind of recommended way to generate demos.. As Zhang suggested what we are lacking is a demo client that has /*Todo */ spaces to write clients logic. That kind of thing can be easily generated from the WSDL2C tool itself. And we can use the ruby script as an optional thing. Thanks Dimuthu Samisa... - 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: Questions/suggestions on WSDL2C
hello users, just to let you know - i have java classes, that generates visual studio project files 4 vs2003 and vs2005 - so that you just generate your code. deployment und running simple_http_sever is done by compiling - just press play button ;-) i think its better to have these kind of tools in java, so there is no need to have a third language like ruby - i know that ruby is much more intuitve to build this kind of skripts. mfg derMark Dimuthu Gamage schrieb: On Jan 31, 2008 9:19 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Please see my inline comment. On Jan 31, 2008 8:07 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Hi Zhang, Thanks for your suggestions. 1). In fact generating a demo client is a good idea. I will look in to that. For the time being, I'm using a ruby script to generate simple demonstrations for stub and skels (it automatically generates simple logic with adb), if you find useful you can check it from http://people.apache.org/~dimuthu/leisure/23_oct/generate_demos.rb. When there are so many operations, with complex params, how are we supposed to generate a demo client? I think what we can provide is empty functions (with empty logic) as in server side. The adb object manipulation should be anyway done by the user. so we don't need to worry about complex types in the demo client.. That indeed should be done by the user. BTW the ruby script I mentioned there, recursively fills the object matching pattern in the generated code.. That works only for in-out MEP. Anyway what we are planning to generate with WSDL2C tool is not much complicated as that. I wish we could have used the Ruby script, the only problem with that is we have to assume users would have Ruby. This would specially be problematic with Windows users :( Hi, I don't think we should use the Ruby Script as a kind of recommended way to generate demos.. As Zhang suggested what we are lacking is a demo client that has /*Todo */ spaces to write clients logic. That kind of thing can be easily generated from the WSDL2C tool itself. And we can use the ruby script as an optional thing. Thanks Dimuthu Samisa... - 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: Questions/suggestions on WSDL2C
On Jan 31, 2008 12:10 PM, Mark Nüßler [EMAIL PROTECTED] wrote: hello users, just to let you know - i have java classes, that generates visual studio project files 4 vs2003 and vs2005 - so that you just generate your code. deployment und running simple_http_sever is done by compiling - just press play button ;-) Wow, is that something you like to share with us:). i think its better to have these kind of tools in java, so there is no need to have a third language like ruby - i know that ruby is much more intuitve to build this kind of skripts. Yea sure, It is better if we can limit users to use only (at most) two languages. Thanks Dimuthu mfg derMark Dimuthu Gamage schrieb: On Jan 31, 2008 9:19 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Please see my inline comment. On Jan 31, 2008 8:07 AM, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Dimuthu Gamage wrote: Hi Zhang, Thanks for your suggestions. 1). In fact generating a demo client is a good idea. I will look in to that. For the time being, I'm using a ruby script to generate simple demonstrations for stub and skels (it automatically generates simple logic with adb), if you find useful you can check it from http://people.apache.org/~dimuthu/leisure/23_oct/generate_demos.rb. When there are so many operations, with complex params, how are we supposed to generate a demo client? I think what we can provide is empty functions (with empty logic) as in server side. The adb object manipulation should be anyway done by the user. so we don't need to worry about complex types in the demo client.. That indeed should be done by the user. BTW the ruby script I mentioned there, recursively fills the object matching pattern in the generated code.. That works only for in-out MEP. Anyway what we are planning to generate with WSDL2C tool is not much complicated as that. I wish we could have used the Ruby script, the only problem with that is we have to assume users would have Ruby. This would specially be problematic with Windows users :( Hi, I don't think we should use the Ruby Script as a kind of recommended way to generate demos.. As Zhang suggested what we are lacking is a demo client that has /*Todo */ spaces to write clients logic. That kind of thing can be easily generated from the WSDL2C tool itself. And we can use the ruby script as an optional thing. Thanks Dimuthu Samisa... - 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: Policy driven code generation problem Axis v1.3
Hi Pete, I think the namespace declaration in your WSDL should change from xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy/; to xmlns:wsp=http://schemas.xmlsoap.org/ws/2004/09/policy; Cheers, --Sanka Pete wrote: Anyone have any ideas? Attached are the wsdl and related policy documents as requested. Thx again! -P Hello, Can someone say if the Axis2 v1.3 code generator (eclipse plugin) supports WS-Policy 1.2? Or just 1.5? Or ? I can't get Axis 2 to generate the stubs with any policy code, this was for policy v1.2... I did try to change the name space definition for policy in the WSDL to v1.5 to see if that would cause it to do anything different, but that didn't do anything. I also removed a non standard policy element, that did not change the behavior either. No errors/warnings, etc... (Using eclipse plugin v1.3) Thanks for any assistance! -P Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.4/1227 - Release Date: 1/16/2008 1:40 AM -- Sanka Samaranayake WSO2 Inc. http://sankas.blogspot.com/ http://www.wso2.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: externalMapping to reuse types
Hai Alistair, I also posted a question about external mapping some time ago but never got an anwser. For what I could understand by my own, that file is aumatically compiled when there are globally defined types in schemas. Maybe you can also edit it by hand, but I can't say what it could be really useful for... From my own personal experience, I try to share schema files in this way: - shared types are defined in their own namespace, so that WSDL2Java generates classes in the own (shared) packages - every time I do a WSDL2Java for a WSDL that uses shared schemas, I throw away the newly generated classes for the shared types and I use the previously generated ones, which actually are the same classes If I could understand your situation well, I think that the key to solve your problem is to carefully choose namespaces (i.e.: Java packages!) for both WSDLs inline schemas and shared XSD schemas. I hope this helps a bit... -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JRun and Axis2
Hi, I am trying to use Axis2 1.3 version with JRun 4 Updater6 for JDK1.5 . However the axis2 ,seems, not getting properly deployed. I understand that almost every one using above combination is having trouble. Has any one used Axis2 1.3 successfully with JRun4? If so can you please advise how you fixed it? Many Thanks
Re: get current ConfigurationContext with embedded tomcat
This totally depends on the way you decide to implement it. You may maintain the configuration context as a static attribute or a property in a ServletContext etc. MessageContext.getCurrentMessageContext will return the correct message context only if a relevant flow was initiated through a Web service request. e.g. Like in WSAS (which uses embedded Tomcat), you can have an Admin service which can be invoked to do something like this. Here is a service implementation class. public class ServiceAdderAdmin { public void deployService(){ MessageContext msgCtx = MessageContext.getCurrentMessageContext (); AxisConfigruation axisConfig = msgCtx.getRootContext ().getAxisConfiguration(); AxisService service = new AxisService(); ... axisConfig.addService(axisService); } } HTH Azeez On Tue, Jan 29, 2008 at 7:10 PM, Martin Philippi [EMAIL PROTECTED] wrote: Hi! I'm developing an application with an embedded tomcat. I want to deploy a Axis2-Webservice at runtime. My problem is: How do i get the current ConfigurationContext to add the service to it? I can create a new ConfigurationContext and add the service, but that does not have any effect. ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem (c:/axis2-1.3/conf/axis2.xml); InputStream in = new FileInputStream(c:/workspace/mywebservice/services.xml); AxisService service = DeploymentEngine.buildService(in, configContext); configContext.getAxisConfiguration().addService(service); configContext.getAxisConfiguration().startService(SMARTService); Regards, Martin -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Afkham Azeez http://azeez78.blogspot.com http://www.wso2.org GPG Fingerprint: 643F C2AF EB78 F886 40C9 B2A2 4AE2 C887 665E 0760
Re: get current ConfigurationContext with embedded tomcat
I'm not really sure how i start axis. I'm doing something like this in embedded tomcat. Context context_axis2 = embedded.createContext(/axis2, getPath() + /webapps/axis2); host.addChild(context); But this does not seem to be the right way (although axis is working). How do i start it by using AxisServlet? Thanks Martin Original-Nachricht Datum: Wed, 30 Jan 2008 10:08:45 +0530 Von: Deepal jayasinghe [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: get current ConfigurationContext with embedded tomcat Hi! I'm developing an application with an embedded tomcat. I want to deploy a Axis2-Webservice at runtime. My problem is: How do i get the current ConfigurationContext to add the service to it? I can create a new ConfigurationContext and add the service, but that does not have any effect. ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(c:/axis2-1.3/conf/axis2.xml); InputStream in = new FileInputStream(c:/workspace/mywebservice/services.xml);AxisService service = DeploymentEngine.buildService(in, configContext); configContext.getAxisConfiguration().addService(service); configContext.getAxisConfiguration().startService(SMARTService); You can do the following (But this depend on how you start Axis2 , if you use AxisServlet then the following works) ListenerManager.defaultConfigurationContext Thanks Deepal Regards, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
overloaded methods/constructors in Axis2?
Hi, I have a class at the server side containing 2 overloaded constructors one with no arguments and the other accepting a String argument. eg : public TestOverloaded(){} public TestOverloaded(String argname){} The problem is that when i am trying to invoke the constructor with the argument from my RPCCLIENT it is invoking the default constructor. Can some one please suggest me on this. Thanks Regards, Aruna Sydu
Re: Axis 1.2.1 and Weblogic 10
hi, i am having a similar situation, if you can see me you solution. thanks. On Jan 21, 2008 11:27 AM, Scott [EMAIL PROTECTED] wrote: I figured out what my problem is. In weblogic, there is a userid and password that has to be provided to access anything within a domain. The userid and password I am using was specific to my own authentication system. In Tomcat, I was able to get through to my web service implementation and never failed any authentication to get there, but in weblogic, the call was not getting through, and rightfully so I think. I just got lucky up until now. My solution involves providing the userid and password for the weblogic domain, and another userid and password in my call that is specific to my authentication system. Scott - Original Message From: Scott [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Sunday, January 20, 2008 9:54:45 AM Subject: Re: Axis 1.2.1 and Weblogic 10 Thanks Azeez, I should point out that I am referring to version Axis 1.2.1, not Axis2. And I have Axis installed, and can query Axis for a list of services via HTTP in my browser. I believe I am all set. And like I said, when this same installation is used with Tomcat, it works. But I am getting the 401 error when used in conjunction with Weblogic. I have even traced into the code, but it is pretty low-level when I get the exception, during a socket read. I never get to the actual service call that I have implemented. So I'm asking this group if there is something I need to do in order to be authorized correctly. It has to be just a small adjustment. Scott - Original Message From: Afkham Azeez [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Saturday, January 19, 2008 10:50:07 AM Subject: Re: Axis 1.2.1 and Weblogic 10 You could get some tips on how to install Axis2 on WL from this article https://wso2.org/library/880 Azeez On Jan 19, 2008 2:13 AM, Scott [EMAIL PROTECTED] wrote: I have a web services application that uses Axis (I) with Tomcat 5.5.25. It works perfectly. I've recently installed the application on WebLogic 10, but I am no longer able to connect. When I attempt my first call, I get a remote exception that says this: *javax.xml.rpc.ServiceException: (401)Unauthorized* Also note that Axis appears to be installed correctly and is functioning, as I can invoke a service via http that returns me a list of deployed services. What authorization do I need to connect to the Axis servlet? I'm sure I'm using the correct syntax when connecting to the AxisServlet. Am I running into some kind of windows authentication issue that I see in some of the threads? I am using Windows XP. Here is some of my wsdd: globalConfiguration parameter name=sendMultiRefs value=false/ parameter name=disablePrettyXML value=true/ parameter name=adminPassword value=admin/ parameter name=attachments.Directory value=C:\ProServer45\exploded\WEB-INF\attachments/ parameter name=dotNetSoapEncFix value=true/ parameter name=enableNamespacePrefixOptimization value=true/ parameter name=sendXMLDeclaration value=true/ parameter name=sendXsiTypes value=true/ parameter name=attachments.implementation value= org.apache.axis.attachments.AttachmentsImpl/ requestFlow handler type=java:org.apache.axis.handlers.JWSHandler parameter name=scope value=session/ /handler handler type=java:org.apache.axis.handlers.JWSHandler parameter name=scope value=request/ parameter name=extension value=.jwr/ /handler /requestFlow /globalConfiguration handler name=LocalResponder type=java: org.apache.axis.transport.local.LocalResponder/ handler name=URLMapper type=java: org.apache.axis.handlers.http.URLMapper/ handler name=Authenticate type=java: org.apache.axis.handlers.SimpleAuthenticationHandler/ service name=AdminService provider=java:MSG parameter name=allowedMethods value=AdminService/ parameter name=enableRemoteAdmin value=false/ parameter name=className value=org.apache.axis.utils.Admin/ namespacehttp://xml.apache.org/axis/wsdd//namespace /service service name=Version provider=java:RPC parameter name=allowedMethods value=getVersion/ parameter name=className value=org.apache.axis.Version/ /service Here is the last part: transport name=http requestFlow handler type=URLMapper/ handler type=java:org.apache.axis.handlers.http.HTTPAuthHandler/ /requestFlow parameter name=qs:list value= org.apache.axis.transport.http.QSListHandler/ parameter name=qs:wsdl value= org.apache.axis.transport.http.QSWSDLHandler/ parameter name=qs.list value= org.apache.axis.transport.http.QSListHandler/ parameter name=qs.method value= org.apache.axis.transport.http.QSMethodHandler/ parameter name=qs:method value= org.apache.axis.transport.http.QSMethodHandler/ parameter name=qs.wsdl value= org.apache.axis.transport.http.QSWSDLHandler/
Can't use AppletViewer with Axis.
I'm using Axis from within an applet. When the applet is run in the browser everything works. When I run/debug the applet using Sun's AppletViewer, Axis stops working. I get the following exception: Jan 30, 2008 9:36:21 AM org.apache.axis2.transport.http.HTTPSender sendViaPost INFO: Unable to sendViaPost to url[http://d16489:8080/SASScorecard/services/SpmWS2] org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(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.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:101) When I run the same code as a little java application (same classpath), it also works. But, again, when run using AppletViewer I get the 404 transport.The server (jboss) has no log entry for any request. Any ideas? Thanks Ross Ask not what your country can do for you. Ask what's for lunch. -Orson Welles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can't use AppletViewer with Axis.
Well, it turns out to have been a java security issue. When I added a policy file to the vm args, the appletviewer Axis test works. _ From: Ross Allard Sent: Wednesday, January 30, 2008 9:48 AM To: 'axis-user@ws.apache.org' Subject: Can't use AppletViewer with Axis. I'm using Axis from within an applet. When the applet is run in the browser everything works. When I run/debug the applet using Sun's AppletViewer, Axis stops working. I get the following exception: Jan 30, 2008 9:36:21 AM org.apache.axis2.transport.http.HTTPSender sendViaPost INFO: Unable to sendViaPost to url[http://d16489:8080/SASScorecard/services/SpmWS2] org.apache.axis2.AxisFault: Transport error: 404 Error: Not Found at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(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.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:101) When I run the same code as a little java application (same classpath), it also works. But, again, when run using AppletViewer I get the 404 transport.The server (jboss) has no log entry for any request. Any ideas? Thanks Ross Ask not what your country can do for you. Ask what's for lunch. -Orson Welles - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] xsi:type support with JAXB databinding?
Hello axis users, I have a web service client (which I can't modify) which sends requests using xsi:type attributes: EQUIPEMENT xmlns=http://www.almerys.com/schemas/requeteOPTOAMC/2.6.0; xsi:type=LUNETTETYPE [] /EQUIPEMENT After generating sources from the wsdl using jaxb2 databinding, I got the following classes: EQUIPEMENTTYPE.java and LUNETTETYPE.java During Axis2 request treatmeent I receive an InstantiationException (the detail is the the linked file) : Unable to create an instance of com.almerys.schemas.requeteoptoamc._2_6.EQUIPEMENTTYPE If I send a request without xsi:type : LUNETTETYPE xmlns=http://www.almerys.com/schemas/requeteOPTOAMC/2.6.0; [] /LUNETTETYPE It works perfectly. So my question: Does Axis2 support xsi:type attribute? On the website , I saw this article, about adb : http://ws.apache.org/axis2/1_0/adb/adb-howto.html telling that it is not supported. Does anybody knows what to do? Thanks in advance, Pierre instantiationException.log Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Deploy JMS enabled services in app server
Hi -- Does it make sense to deploy JMS enabled services inside the axis2.war in an app server? If not, how are people deploying JMS-enabled services? I ask because I get the following error when running the Axis2 1.3 war inside JBoss 4.0.5: 14:30:46,083 INFO [JMSConnectionFactory] Mapping JNDI name : queue/testQueue and JMS Destination name : testQueue against service : StockQuoteService 14:30:46,083 INFO [JMSListener] JMS Transport Receiver (Listener) initialized... 14:30:46,505 ERROR [JMSListener] Error starting connection factory : myTopicConnectionFactory javax.jms.IllegalStateException: This method is not applicable inside the application server. See the J2EE spec, e.g. J2EE1.4 Section 6.6 at org.jboss.resource.adapter.jms.JmsSession.checkStrict(JmsSession.java:54 2) at org.jboss.resource.adapter.jms.JmsMessageConsumer.setMessageListener(Jms MessageConsumer.java:136) at org.apache.axis2.transport.jms.JMSConnectionFactory.listenOnDestination( JMSConnectionFactory.java:450) at org.apache.axis2.transport.jms.JMSConnectionFactory.listen(JMSConnection Factory.java:413) at org.apache.axis2.transport.jms.JMSListener.start(JMSListener.java:307) at org.apache.axis2.engine.ListenerManager.start(ListenerManager.java:125) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.jav a:1105) (BTW see https://issues.apache.org/jira/browse/AXIS2-3485 for a problem that needs to be worked round before you can get to this stage.) Sure enough, section 6.6 of the spec says The following methods may only be used by application components executing in the application client container: and includes setMessageListener in the list of methods. It seems this is because of the clash of threading models in J2EE and JMS, hence the preferred method of receiving JMS messages is via a MessageDrivenBean. So perhaps the approach outlined in https://issues.apache.org/jira/browse/AXIS2-1069 (thanks Ali!) is more appropriate. Is anyone using that? Incidentally, the problem can be worked round for JBoss by adding config-property name=Strict type=java.lang.Booleanfalse/config-property to server\default\deploy\jms\jms-ds.xml (see http://forum.java.sun.com/thread.jspa?threadID=741011tstart=345), but such switches are unlikely to be available on the other, stricter app servers that I also need to support (eg WebSphere). Thanks very much for any help. -- George - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Accessing properties in an aar archive.
Hello, I've find a similar post that suggests: The correct way is get the ServiceDescription from , MessageContxt and then you can get the correct classloader for that service (which has all you lib files) from serviceDescription ClassLoader cl = sd.getClassLoader(); However, I'm not sure how to even get at the ServiceDescription or Message Context objects. For example, how would I get the ServiceDescription object in the getProvIdentityDD Function: public class LocationLookupService{ public OMElement getProvIdentityDD(OMElement objLatLongitude) {} } the .properties file is in ca/gc/agr/locationlookup/connection.properties file inside the aar file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting read time out in AxisFault
Hi there, I am trying to generate test clients. So I deployed a simple service at Axis2 (which is working if I test it from a browser), bur I tried a lot of manners to build a client, from scratch using AXIOM to simple adb stubs, but I getting read time out every time. I am using Tomcat 5.5, Axis2 1.3, Eclipse IDE at Windows XP. Anyone has any idea of what it shoud be? Thanks. -- Wesley Mesquita LIS/IC - UNICAMP [skype: wesley.mesquita]
Re: JRun and Axis2
is there any specific error ? something in the logs may be ? On Jan 30, 2008 3:46 AM, lucky gupta [EMAIL PROTECTED] wrote: Hi, I am trying to use Axis2 1.3 version with JRun 4 Updater6 for JDK1.5 . However the axis2 ,seems, not getting properly deployed. I understand that almost every one using above combination is having trouble. Has any one used Axis2 1.3 successfully with JRun4? If so can you please advise how you fixed it? Many Thanks -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange Error after invoking a service the second time
Hello, I have some big trouble implementing some Axis2 Services. I am relative new in this, and i don't quite get it what i do wrong. Please take some time to read this Mail and help me if you can. This is very important and i didn't get help somewhere else. Thank you! I am using Axis2 1.3 with Tomcat 6.0.14 and Eclipse 3.3 with the Axis Plugin. I developed a Service which works very well. I can acess it and it does fine. The second thing i wanted to do is write another service which acesses the first one. Very well, i generated with the Axis Code Generator a stub inside the second service to invoke the first one. Everything works fine, and the service is doing well. Then i wrote some Test classes to test the second service. I only want to acess my second service, which inside it acesses the first one. My biggest Problem, is that the first time i invoke the second service it works well. If i run the Test class the second time, i get an error: [INFO] Unable to sendViaPost to url[http://localhost:8080/axis2/services/QueryHandler] org.apache.axis2.AxisFault: Transport error: 503 Error: Service Unavailable I didn't find nowhere help. What do i do wrong? How changes my service the server? After i run the test class even the Version service isn't working fine. I get the folowing error: There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working. Sometimes a strange service (like QueryHandler21349256) appears in the service list of Apache Tomcat after i run the test class the first time. That is not my service, and it disappears after restart Tomcat. Anybody have an idea? What do i do wrong? Many thanks to all who can help me. Here the whole Error Stack from Tomcat: INFO: Server startup in 41169 ms [INFO] Unable to sendViaPost to url[http://localhost:8080/axis2/services/QueryHandler] org.apache.axis2.AxisFault: Transport error: 503 Error: Service Unavailable at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(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 de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerStub.sendQuery(QueryHandlerStub.java:163) at de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerCaller.call(QueryHandlerCaller.java:50) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeletonMethods.GetInformation(MappingComponentSkeletonMethods.java:77) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeleton.GetInformation(MappingComponentSkeleton.java:25) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentMessageReceiverInOut.invokeBusinessLogic(MappingComponentMessageReceiverInOut.java:51) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at
Defining minOccur and maxOccur
Hi, *i am using the following definition in my service.xml* operation name=createInitial messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation *pointing to:* public Status createInitial(String wsml) throws AxisFault; *in the WSDL i noticed:* xs:element name=createInitial xs:complexType xs:sequence xs:element minOccurs=0 name=wsml nillable=true type=xs:string/ /xs:sequence /xs:complexType /xs:element *so - how can i set minOccurs =1 form my class or the service.xml ?? It should not be nillable.* Regards, Tobias
Axis1 posting request as attachment?
Why would Axis1 post a request as an attachment? My service returns documents as attachments. The first request goes out as a normally-formatted soap request. Subsequent requests, however, put the soap message in to an attachment, as follows. Also, it appears to be attaching the prior response attachment on to the request. (Unless that is a tcpmon artifact.) POST /axis/services/SPADE_QueryService HTTP/1.0 Content-Type: multipart/related; type=text/xml; start=BC12686C70134DE6BB8177E11F2132B3; boundary==_Part_0_7501974.1201725644209 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: usra2:8082 Cache-Control: no-cache Pragma: no-cache SOAPAction: Content-Length: 307178 --=_Part_0_7501974.1201725644209 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: BC12686C70134DE6BB8177E11F2132B3 ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getProduct xmlns=http://www.iris.edu/spade; productId ProductType name=RecordSection uri=http://www.iris.edu/xml/recordsection/ ProductId20080106_051417.2.spyder._US-ALL.TELE_LONG/ProductId SourceIdIRIS_DMC/SourceId /productId includeAttachmentstrue/includeAttachments /getProduct /soapenv:Body /soapenv:Envelope--=_Part_0_7501974.1201725644209Content-Type: application/xmlContent-Transfer-Encoding: binaryContent-Id: 8B569B94D4D794855F8B2DED839383D9 ?xml version=1.0 encoding=UTF-8? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis1 posting request as attachment? - SOLVED
In case anyone cares, I solved this (and my earlier post about client blocking in socketWrite() ) by getting a new reference to the service through the ServiceLocator. Maybe that's the way you're supposed to do it and I missed that part... Linus Kamb wrote: Why would Axis1 post a request as an attachment? My service returns documents as attachments. The first request goes out as a normally-formatted soap request. Subsequent requests, however, put the soap message in to an attachment, as follows. Also, it appears to be attaching the prior response attachment on to the request. (Unless that is a tcpmon artifact.) POST /axis/services/SPADE_QueryService HTTP/1.0 Content-Type: multipart/related; type=text/xml; start=BC12686C70134DE6BB8177E11F2132B3; boundary==_Part_0_7501974.1201725644209 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.4 Host: usra2:8082 Cache-Control: no-cache Pragma: no-cache SOAPAction: Content-Length: 307178 --=_Part_0_7501974.1201725644209 Content-Type: text/xml; charset=UTF-8 Content-Transfer-Encoding: binary Content-Id: BC12686C70134DE6BB8177E11F2132B3 ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getProduct xmlns=http://www.iris.edu/spade; productId ProductType name=RecordSection uri=http://www.iris.edu/xml/recordsection/ ProductId20080106_051417.2.spyder._US-ALL.TELE_LONG/ProductId SourceIdIRIS_DMC/SourceId /productId includeAttachmentstrue/includeAttachments /getProduct /soapenv:Body /soapenv:Envelope--=_Part_0_7501974.1201725644209Content-Type: application/xmlContent-Transfer-Encoding: binaryContent-Id: 8B569B94D4D794855F8B2DED839383D9 ?xml version=1.0 encoding=UTF-8? - 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]
weblogic 8.1 axis 1.4
hello i am triting of configurate my app, when i put the weblogic.xml the app stop of run, without this my app run, but i need have this but some reason, of configuration in production server. this is my weblogic.xml weblogic-web-app container-descriptor prefer-web-inf-classestrue/prefer-web-inf-classes /container-descriptor /weblogic-web-app thanks.
[Axis2] Webservices - 100% Memory and CPU usage (OutOfMemoryError) on API call
Hi, I have a webservice API call which is using 100% of Memory CPU and throwing an OutOfMemoryError (I'm using Axis2 1.3). My webservice call returns a long array. Here is the signature of my webservice API. public long[] getIds(Calendar startDate, Calendar endDate) throws Exception; Based on the given startDate endDate, I retrieve the corresponding records from the database and store the ids in a long array and return the long array to the client. If the number of records is more, I'm having the issue of 100% memory / CPU usage or OutOfMemoryError. Does anyone of you have any ideas on how to overcome this issue? Thanks Raghu
Re: JRun and Axis2
Hi, If you just deploy the axis.war in JRun4 then you will get Axis2 error page with only header image and Internal Server Error in body . In the logs you will get messages related to JSP Engine. But my understanding is that this is the way JRun cries when there is some thing wrong. JRun is not able to deploy axis2.war properly.I tried many times and most of the times it doesn't create descriptors (axis2.web.xml,axis2.web.jrun.xml) It by default loads system libraries first then application specific and JRun4 already comes with Axis1. When I try to fix the issue and override this order by putting - load-system-classes-firstfalse/load-system-classes-first I am able to see the first page of axis 2 but not beyond that. All the time blank page is displayed and in logs messages are like - Server AxisWS ready (startup time: 21 seconds) 01/30 18:35:28 user FileServlet: init 01/30 18:35:28 user JSPServlet: init 01/30 18:35:28 error java.lang.NoClassDefFoundError at jrun.jsp.JSPEngine.initBuiltInTagLibrary(JSPEngine.java:183) at jrun.jsp.JSPEngine.init(JSPEngine.java:135) at jrun.jsp.JSPServlet.init(JSPServlet.java:62) at jrun.servlet.WebApplicationService.loadServlet (WebApplicationService. java:1200) at jrun.servlet.JRunRequestDispatcher.init( JRunRequestDispatcher.java:81 2) at jrun.servlet.JRunRequestDispatcher.init( JRunRequestDispatcher.java: 83) at jrun.servlet.WebApplicationService.getRequestDispatcher (WebApplicatio nService.java:1075) --- On accessing Root (localhost:8003 )you get this on page -- 500 java.lang.NoClassDefFoundError at jrun.jsp.JSPEngine.initBuiltInTagLibrary(JSPEngine.java:183) at jrun.jsp.JSPEngine.(JSPEngine.java:135) at jrun.jsp.JSPServlet.init(JSPServlet.java:62) at jrun.servlet.WebApplicationService.loadServlet( WebApplicationService.java:1200) at jrun.servlet.JRunRequestDispatcher.init(JRunRequestDispatcher.java :812) at jrun.servlet.JRunRequestDispatcher.(JRunRequestDispatcher.java:83) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) And what ever other page you try to access - 01/31 09:07:53 user JSPServlet: init [WARN] Error dispatching request /axis2/services/listServices java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.transport.http.AbstractAgent.handle( AbstractAgent.ja va:78) at org.apache.axis2.transport.http.ListingAgent.handle( ListingAgent.java :108) at org.apache.axis2.transport.http.AxisServlet.doGet( AxisServlet.java:23 7) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java :42) at jrun.servlet.JRunRequestDispatcher.invoke( JRunRequestDispatcher.java: 259) at jrun.servlet.ServletEngineService.dispatch( ServletEngineService.java: 541) at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172) Thanks On Jan 30, 2008 11:19 PM, Ajith Ranabahu [EMAIL PROTECTED] wrote: is there any specific error ? something in the logs may be ? On Jan 30, 2008 3:46 AM, lucky gupta [EMAIL PROTECTED] wrote: Hi, I am trying to use Axis2 1.3 version with JRun 4 Updater6 for JDK1.5 . However the axis2 ,seems, not getting properly deployed. I understand that almost every one using above combination is having trouble. Has any one used Axis2 1.3 successfully with JRun4? If so can you please advise how you fixed it? Many Thanks -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: overloaded methods/constructors in Axis2?
Hi, I have a class at the server side containing 2 overloaded constructors one with no arguments and the other accepting a String argument eg : public TestOverloaded(){} public TestOverloaded(String argname){} The problem is that when i am trying to invoke the constructor with the argument from my RPCCLIENT it is invoking the default constructor. Yes that is the what Axis2 does , when Axis2 initialize a class it uses it default constructor. If you want Axis2 to use other then then you have to create something called ServiceObjectSuppler and specify that in services.xml Thanks Deepal Can some one please suggest me on this. Thanks Regards, Aruna Sydu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get current ConfigurationContext with embedded tomcat
I'm not really sure how i start axis. I'm doing something like this in embedded tomcat. Context context_axis2 = embedded.createContext(/axis2, getPath() + /webapps/axis2); host.addChild(context); But this does not seem to be the right way (although axis is working). How do i start it by using AxisServlet? Axis2 deploy as a war file alone with a web.xml file , there it starts the AxisServlet. In your case also if you have started Axis2 then I hope you can use the line of codes I send you before. Thanks Deepal Thanks Martin Original-Nachricht Datum: Wed, 30 Jan 2008 10:08:45 +0530 Von: Deepal jayasinghe [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: get current ConfigurationContext with embedded tomcat Hi! I'm developing an application with an embedded tomcat. I want to deploy a Axis2-Webservice at runtime. My problem is: How do i get the current ConfigurationContext to add the service to it? I can create a new ConfigurationContext and add the service, but that does not have any effect. ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(c:/axis2-1.3/conf/axis2.xml); InputStream in = new FileInputStream(c:/workspace/mywebservice/services.xml);AxisService service = DeploymentEngine.buildService(in, configContext); configContext.getAxisConfiguration().addService(service); configContext.getAxisConfiguration().startService(SMARTService); You can do the following (But this depend on how you start Axis2 , if you use AxisServlet then the following works) ListenerManager.defaultConfigurationContext Thanks Deepal Regards, Martin - 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: Defining minOccur and maxOccur
At the moment what you can do is , generate a wsdl using Java2wsdl , then modified that to have minOccurs=1 and then put that into META-INF directory of your service archive , then Axis2 will shows up the wsdl correctly. However the long term solution would be to create a JIRA so that we will try to come up with some kind of way to specify those. Thanks Deepal Hi, /i am using the following definition in my service.xml/ operation name=createInitial messageReceiver class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /operation /pointing to:/ public Status createInitial(String wsml) throws AxisFault; /in the WSDL i noticed:/ xs:element name=createInitial xs:complexType xs:sequence xs:element minOccurs=0 name=wsml nillable=true type=xs:string/ /xs:sequence /xs:complexType /xs:element *so - how can i set minOccurs =1 form my class or the service.xml ?? It should not be nillable.* Regards, Tobias - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange Error after invoking a service the second time
Hi Elisei , I have done this before and did not find any problem , therefore it is difficult for me to give an right answer without looking at your code. So please create a JIRA and attach whatever need to create the issue Thanks Deepal Hello, I have some big trouble implementing some Axis2 Services. I am relative new in this, and i don't quite get it what i do wrong. Please take some time to read this Mail and help me if you can. This is very important and i didn't get help somewhere else. Thank you! I am using Axis2 1.3 with Tomcat 6.0.14 and Eclipse 3.3 with the Axis Plugin. I developed a Service which works very well. I can acess it and it does fine. The second thing i wanted to do is write another service which acesses the first one. Very well, i generated with the Axis Code Generator a stub inside the second service to invoke the first one. Everything works fine, and the service is doing well. Then i wrote some Test classes to test the second service. I only want to acess my second service, which inside it acesses the first one. My biggest Problem, is that the first time i invoke the second service it works well. If i run the Test class the second time, i get an error: [INFO] Unable to sendViaPost to url[http://localhost:8080/axis2/services/QueryHandler] org.apache.axis2.AxisFault: Transport error: 503 Error: Service Unavailable I didn't find nowhere help. What do i do wrong? How changes my service the server? After i run the test class even the Version service isn't working fine. I get the folowing error: There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working. Sometimes a strange service (like QueryHandler21349256) appears in the service list of Apache Tomcat after i run the test class the first time. That is not my service, and it disappears after restart Tomcat. Anybody have an idea? What do i do wrong? Many thanks to all who can help me. Here the whole Error Stack from Tomcat: INFO: Server startup in 41169 ms [INFO] Unable to sendViaPost to url[http://localhost:8080/axis2/services/QueryHandler] org.apache.axis2.AxisFault: Transport error: 503 Error: Service Unavailable at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:298) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:192) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(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 de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerStub.sendQuery(QueryHandlerStub.java:163) at de.fraunhofer.isst.dortmund.burns.queryhandler.QueryHandlerCaller.call(QueryHandlerCaller.java:50) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeletonMethods.GetInformation(MappingComponentSkeletonMethods.java:77) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentSkeleton.GetInformation(MappingComponentSkeleton.java:25) at de.fraunhofer.isst.dortmund.burns.mappingcomponent.services.MappingComponentMessageReceiverInOut.invokeBusinessLogic(MappingComponentMessageReceiverInOut.java:51) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:42) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at
Re: Accessing properties in an aar archive.
Hello, I've find a similar post that suggests: The correct way is get the ServiceDescription from , MessageContxt and then you can get the correct classloader for that service (which has all you lib files) from serviceDescription ClassLoader cl = sd.getClassLoader(); However, I'm not sure how to even get at the ServiceDescription or Message Context objects. MessgeContext.getCurrentMessageContext(); For example, how would I get the ServiceDescription object in the getProvIdentityDD Function: public class LocationLookupService{ public OMElement getProvIdentityDD(OMElement objLatLongitude) {} } the .properties file is in ca/gc/agr/locationlookup/connection.properties file inside the aar file. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.4 WSDL2Java generated client doesnt not create soap me ssage with prefix
Please post your WSDL. Anne On Jan 30, 2008 2:00 AM, robin [EMAIL PROTECTED] wrote: It does not work :( Alick Buckley [EMAIL PROTECTED] wrote: Hi, It could have something to do with the XMLSchema elementFormDefault or form attributes in the WSDL used to generate the client code. form=qualified | unqualified elementFormDefault=qualified | unqualified You might require the attribute value of qualified wsdl:types schema elementFormDefault=qualified targetNamespace=http://soap.service.acme.com; xmlns=http://www.w3.org/2001/XMLSchema; .. /schema /wsdl:types -Original Message- From: robin [mailto:[EMAIL PROTECTED] Sent: Wednesday, 30 January 2008 4:28 AM To: axis-user@ws.apache.org Subject: Axis 1.4 WSDL2Java generated client doesnt not create soap message with prefix Hi, I am using WSDL2Java to generate the client. But the SOAP Messages (body) generated by the client does not have prefix. For e.g: usernameabc/username My server expects them to have prefix, i.e: ns1:usernameabc/ns1:username How do i turn that on? FYI, i've seen the log and the qname being passed into the engine (encoding serializer) is (empty). Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. Looking for last minute shopping deals? Find them fast with Yahoo! Search. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to handle No deserializer for anyType for external service
You can either define a client config file or you can register the serializer/deserializer in your client code. Anne On Jan 29, 2008 8:08 PM, khurana [EMAIL PROTECTED] wrote: Hi Guys I am getting No deserializer for {http://www.w3.org/2001/XMLSchema}anyType; exception while accessing some other project web service. Looking at the forum and documentation, solution is to use typeMapping in wsdd file. But in this scenario I am user of Web service and can't change anything related to Web service deployment. WSDL file contains an element of xsd:anyType. I am trying to access the web service using Stub approach using wsdl2Java utility. Running this utility is providing Object type for element having type xsdanyType and not the SOAPElement. Does anybody have any insight in this issue? Thanks Khurana -- View this message in context: http://www.nabble.com/How-to-handle-No-deserializer-for-anyType-for-external-service-tp15173523p15173523.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]