Re: Getting guththila exception
Hi, Thanks for all of your help. They were quite useful. My Services.xml is !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) -- service name=ParseMessage parameter name=ServiceClassParseMessage/parameter operation name=parseMessage/ /service I copied this and the libparser.so to $AXIS2C_HOME/services under a folder called parseMessage. In the browser, if i give http://localhost:9090/soap, it is listing the operation. In the wsdl the soapAction style was rpc, but i changed it to binding because code generator gave error for that. After changing that the code was generated properly. I have a doubt after this. If u look at the soapAction from wsdl (pasted below), it is something like http://www.abnamro.com/paymentrouter#parseMessage Has this, got something to do with the error? Should this match with the uri i am giving? I gave the uri as http://localhost:9090/axis2/services/parseMessage I am getting this doubt because i am comparing my wsdl with calculator.wsdl, where in soapAction, http://localhost/axis/services is present Please clarify Thanks Sathya binding name=ParseMessageBinding type=tns:ParseMessagePortType SOAP:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ operation name=parseMessage SOAP:operation style=binding soapAction= http://www.abnamro.com/paymentrouter#parseMessage/ input SOAP:body parts=inputMessage use=literal namespace= http://www.abnamro.com/paymentrouter/ /input output SOAP:body parts=pInterchange use=literal namespace= http://www.abnamro.com/paymentrouter/ /output /operation /binding On 9/21/07, Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi Sathya, Did you put the operations in the services.xml. You can generate the services.xml for your service by giving -sd as the option from the codegen tool. Thanks Dimuthu On 9/20/07, Sathya Raghunathan [EMAIL PROTECTED] wrote: Yes, sorry i missed to check that last time. I changed the link again and it worked, Thanks Now, i am facing another new error after sending a message. Operation Not found. Endpoint reference is : http://127.0.0.1:9090/axis2/services/parseMessage Client log says AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP What should i check for? Thanks Sathya On 9/20/07, Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi, Please check with ldd axis2_http_server and check what version of the libxml2 is loaded. Thanks Dimuthu On 9/20/07, Sathya Raghunathan [EMAIL PROTECTED] wrote: Hi I installed libxml2.so, still i am getting the problem when i run the binary ls -l /usr/lib/libxml2.so lrwxrwxrwx1 root root 32 Sep 20 16:20 /usr/lib/libxml2.so - /usr/local/lib/libxml2.so.2.6.23 ./axis2_http_server: relocation error: /home/sathya/axis2c/axis2c- bin-1.0.0-linux/lib/libaxis2_parser.so.0: undefined symbol: xmlReaderForFile If i say nm i can see that symbol [EMAIL PROTECTED] lib]# nm libxml2.so | grep xmlReaderForFile 000c16b8 T xmlReaderForFile What else could be the problem Thanks Sathya On 9/20/07, Sathya Raghunathan [EMAIL PROTECTED] wrote: Hi In my usr/lib, there are libxml2.so.2.5.10, /usr/lib/libxml2.so.2, /usr/lib/libxml2.a I am not sure which so, the binary would use. If this is old version, i will try to download and see Also, while doing a building the source I am getting an error called XML_PARSE_RECOVER undeclared error message. I check your website for solution and got that i need to download the file from apache site if this is not present in /usr/include/libxml2 Let me know from where i can download the header file or the library? Thanks Sathya On 9/20/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Sathya Raghunathan wrote: Should i rebuild the source again with --enable-libxml2=yes --enable-guththila=no?? I am not using binary version because i got the error message relocation error: /home/sathya/axis2c/axis2c- bin-1.0.0-linux/lib/libaxis2_parser.so.0: undefined symbol: xmlReaderForFile You get this error becuase you do not have libxml2 on your system or because your libxml2 version is old. I am using libxml2 version 2.6.23 Samisa... Let me know if i need to rebuild the axis source with the above configuration Thanks Sathya On 9/20/07, *Sathya Raghunathan* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: I used both options as yes when i built the source. On 9/20/07, *Dimuthu Gamage* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: Hi,
Re: Getting guththila exception
Hi I changed that, I am again getting the same error message. But if you check the logs, it is looking for the operationName using the soapAction (soap_action_disp.c(109) ) Let me know if soapAction has got something to do with the operationName, as i mentioned in the last mail. I read in apache home page about the 4 dispatchers. But i didnot understand much about it. What i feel is, this logs looks exactly like how it is mentioned there. Let me know what i should do about the soapAction? Should i modify it in the WSDL file? Thanks Sathya [Fri Sep 21 15:01:32 2007] [debug] phase.c(195) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch [Fri Sep 21 15:01:32 2007] [debug] soap_body_disp.c(217) Checking for operation using SOAP message body's first child's local name : inputMessage [Fri Sep 21 15:01:32 2007] [debug] phase.c(195) Invoke the handler addressing_based_dispatcher within the phase Dispatch [Fri Sep 21 15:01:32 2007] [debug] phase.c(195) Invoke the handler soap_action_based_dispatcher within the phase Dispatch [Fri Sep 21 15:01:32 2007] [debug] soap_action_disp.c(109) Checking for operation using SOAPAction : http://www.abnamro.com/paymentrouter#parseMessage [Fri Sep 21 15:01:32 2007] [debug] engine.c(571) Invoking phase PostDispatch [Fri Sep 21 15:01:32 2007] [debug] phase.c(195) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch [Fri Sep 21 15:01:32 2007] [info] Operation Not found. Endpoint reference is : http://127.0.0.1:9090/axis2/services/parseMessage [Fri Sep 21 15:01:32 2007] [debug] engine.c(571) Invoking phase MessageOut [Fri Sep 21 15:01:32 2007] [debug] phase.c(195) Invoke the handler AddressingOutHandler within the phase MessageOut [Fri Sep 21 15:01:32 2007] [info] Request served in 0.006 seconds 130,1 Bot On 9/21/07, Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi Sathya, I can show you one error. i.e. paramerterClass paramer in the services.xmlshould contain name of the .so of your service. so your services.xml should be changed to following, service name=ParseMessage parameter name=ServiceClassparser/parameter operation name=parseMessage/ /service Thanks Dimuthu On 9/21/07, Sathya Raghunathan [EMAIL PROTECTED] wrote: Hi, Thanks for all of your help. They were quite useful. My Services.xml is !-- This file was auto-generated from WSDL -- !-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 LKT) -- service name=ParseMessage parameter name=ServiceClassParseMessage/parameter operation name=parseMessage/ /service I copied this and the libparser.so to $AXIS2C_HOME/services under a folder called parseMessage. In the browser, if i give http://localhost:9090/soap, it is listing the operation. In the wsdl the soapAction style was rpc, but i changed it to binding because code generator gave error for that. After changing that the code was generated properly. I have a doubt after this. If u look at the soapAction from wsdl (pasted below), it is something like http://www.abnamro.com/paymentrouter#parseMessage Has this, got something to do with the error? Should this match with the uri i am giving? I gave the uri as http://localhost:9090/axis2/services/parseMessage I am getting this doubt because i am comparing my wsdl with calculator.wsdl, where in soapAction, http://localhost/axis/services is present Please clarify Thanks Sathya binding name=ParseMessageBinding type=tns:ParseMessagePortType SOAP:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http/ operation name=parseMessage SOAP:operation style=binding soapAction= http://www.abnamro.com/paymentrouter#parseMessage/ input SOAP:body parts=inputMessage use=literal namespace= http://www.abnamro.com/paymentrouter/ /input output SOAP:body parts=pInterchange use=literal namespace= http://www.abnamro.com/paymentrouter/ /output /operation /binding On 9/21/07, Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi Sathya, Did you put the operations in the services.xml. You can generate the services.xml for your service by giving -sd as the option from the codegen tool. Thanks Dimuthu On 9/20/07, Sathya Raghunathan [EMAIL PROTECTED] wrote: Yes, sorry i missed to check that last time. I changed the link again and it worked, Thanks Now, i am facing another new error after sending a message. Operation Not found. Endpoint reference is : http://127.0.0.1:9090/axis2/services/parseMessage Client log says AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP What should i check for? Thanks Sathya On 9/20/07, Dimuthu Gamage [EMAIL PROTECTED] wrote: Hi, Please check with ldd axis2_http_server and check what version of the
Re: dependencies for compiling svn version
Hello Chintana and Sanjaya, when I run autoconf in the src folder or in the util folder I have the same output - nothing. I think this is not right. The error is printed in line 65 of the autogen.sh script - the first script called from the build.sh My question is if I'm right with all my variables as I think? If I run the command in the especial line I get the following. But I don't know what it means. If I understand right the libtool library is used but something is undefined - what? src/core/addr/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/addr/Makefile.am:1: src/core/addr/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/addr/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/clientapi/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/clientapi/Makefile.am:1: src/core/clientapi/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/clientapi/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/context/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/context/Makefile.am:1: src/core/context/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/context/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/deployment/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/deployment/Makefile.am:1: src/core/deployment/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/deployment/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/description/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/description/Makefile.am:1: src/core/description/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/description/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/description/Makefile.am:17: variable `libaxis2_engine_la_LDFLAGS' is defined but no program or src/core/description/Makefile.am:17: library has `libaxis2_engine_la' as canonic name (possible typo) src/core/engine/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/engine/Makefile.am:1: src/core/engine/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/engine/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/phaseresolver/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/phaseresolver/Makefile.am:1: src/core/phaseresolver/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/phaseresolver/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/receivers/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/receivers/Makefile.am:1: src/core/receivers/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/receivers/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/common/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/common/Makefile.am:1: src/core/transport/http/common/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/common/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/receiver/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/receiver/Makefile.am:1: src/core/transport/http/receiver/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/receiver/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/sender/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/sender/Makefile.am:2: src/core/transport/http/sender/Makefile.am:2: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/sender/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/server/apache2/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/server/apache2/Makefile.am:1: src/core/transport/http/server/apache2/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/server/apache2/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/util/Makefile.am:2: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/util/Makefile.am:2: src/core/transport/http/util/Makefile.am:2: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/util/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again.
Re: dependencies for compiling svn version
Michael, Could you please confirm that you have automake 1.9 or higher? thanks, Dinesh Michael Sutter [EMAIL PROTECTED] writes: Hello Chintana and Sanjaya, when I run autoconf in the src folder or in the util folder I have the same output - nothing. I think this is not right. The error is printed in line 65 of the autogen.sh script - the first script called from the build.sh My question is if I'm right with all my variables as I think? If I run the command in the especial line I get the following. But I don't know what it means. If I understand right the libtool library is used but something is undefined - what? src/core/addr/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/addr/Makefile.am:1: src/core/addr/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/addr/Makefile.am:1: to `configure.ac' and run `aclocal' and autoconf' again. src/core/clientapi/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/clientapi/Makefile.am:1: src/core/clientapi/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/clientapi/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/context/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/context/Makefile.am:1: src/core/context/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/context/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/deployment/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/deployment/Makefile.am:1: src/core/deployment/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/deployment/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/description/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/description/Makefile.am:1: src/core/description/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/description/Makefile.am:1: to `configure.ac' and run aclocal' and `autoconf' again. src/core/description/Makefile.am:17: variable libaxis2_engine_la_LDFLAGS' is defined but no program or src/core/description/Makefile.am:17: library has `libaxis2_engine_la' as canonic name (possible typo) src/core/engine/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/engine/Makefile.am:1: src/core/engine/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/engine/Makefile.am:1: to `configure.ac' and run `aclocal' and autoconf' again. src/core/phaseresolver/Makefile.am:1: Libtool library used but LIBTOOL' is undefined src/core/phaseresolver/Makefile.am:1: src/core/phaseresolver/Makefile.am:1: The usual way to define LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/phaseresolver/Makefile.am:1: to `configure.ac' and run aclocal' and `autoconf' again. src/core/receivers/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/receivers/Makefile.am:1: src/core/receivers/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/receivers/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/common/Makefile.am:1: Libtool library used but LIBTOOL' is undefined src/core/transport/http/common/Makefile.am:1: src/core/transport/http/common/Makefile.am:1: The usual way to define LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/common/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/receiver/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/receiver/Makefile.am:1: src/core/transport/http/receiver/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/receiver/Makefile.am:1: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/sender/Makefile.am:2: Libtool library used but LIBTOOL' is undefined src/core/transport/http/sender/Makefile.am:2: src/core/transport/http/sender/Makefile.am:2: The usual way to define LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/sender/Makefile.am:2: to `configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/server/apache2/Makefile.am:1: Libtool library used but `LIBTOOL' is undefined src/core/transport/http/server/apache2/Makefile.am:1: src/core/transport/http/server/apache2/Makefile.am:1: The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL' src/core/transport/http/server/apache2/Makefile.am:1: to configure.ac' and run `aclocal' and `autoconf' again. src/core/transport/http/util/Makefile.am:2: Libtool library used but LIBTOOL' is undefined src/core/transport/http/util/Makefile.am:2: src/core/transport/http/util/Makefile.am:2: The usual way to
How to develop a HTTPs-based webservice client
Hi All, I am newbie to axisc world. I have a webservice which is deployed in an HTTPS server with server certificate. I have to develop a webservice client, which will use the Server certificate(Server doesn't require client certificate) for authorization. Can anybody please provide me some guide or document, which will explain me on how to write HTTPS based webservice client(in the code) and do the needful favor. Thanks Regards, Murali Krishna K
Axis 1.4 Attachments
good morning, somthimes when I send larger files to my webservice i get the exception: End of physical stream detected when more 20 bytes expected. does anybody knows a solution or a reason why this happends. thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis 1.4 Attachments
I came across similar kind of problem in Tomcat mailing list, when someone was using along with Apache. -Original Message- From: Peter [mailto:[EMAIL PROTECTED] Sent: 21 September 2007 14:18 To: axis-user@ws.apache.org Subject: Axis 1.4 Attachments good morning, somthimes when I send larger files to my webservice i get the exception: End of physical stream detected when more 20 bytes expected. does anybody knows a solution or a reason why this happends. thanks, Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] == Please access the attached hyperlink for an important electronic communications disclaimer: http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.4 Attachments
thank you for your hint Narayanaswamy, Mohan, I came across similar kind of problem in Tomcat mailing list, when someone was using along with Apache. I searched the web and also some mailing lists (tomcat,..), but I always found some hints for the clientside. I got the exception on the serverside when the service is receiving the attachment(s). dose the problem deppends on the clientside? peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Request Tracking
I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities+for+kidscs=bz
Re: ADBException: Unexpected subelement Code
can you send the full stack trace? is the sample code I send works with the simple Http server? Amila. On 9/20/07, Erwin Reinhoud [EMAIL PROTECTED] wrote: Hello Amila, Thanks for that info. It still mystifies me that i cant get it to work though. I took your generated code ran the included ant build file and added the aar to my clean axis2 1.3 web app service location. I got a the same error as before i.e. soapenv:Server faultstring:unknown. For the moment we're going to use the axis 1.4 version, but i hope to solve this problem with axis2. However considering the last test i can see only the environment i used as the source of this problem (which is windows XP and tomcat 5.5-0.23. Once again thanks for the help. Kind regards, Erwin -Oorspronkelijk bericht- *Van:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] *Verzonden:* donderdag 20 september 2007 11:24 *Aan:* axis-user@ws.apache.org *Onderwerp:* Re: ADBException: Unexpected subelement Code for -p option you have to give a package name. I used the wsdl2java.sh tool with current trunk code base. it should be ok with Axis2 1.3 wsdl2java.sh -uri wsdl path -ss -sd -g -u -o out put path Amila On 9/20/07, Erwin Reinhoud [EMAIL PROTECTED] wrote: Dear Amila, Once again thanks for your time and good to hear axis2 has no problem with this wsdl. Keeps me wondering what is wrong, probably the build script which i used succesfully for other services. I'll post it again. How does your build script look like? What version of axis2 (i used 1.3)? Any ideas on what i might be doing wrong? I will compare your generated code with mine. target depends=prepare.repo name=generate.service java classname=org.apache.axis2.wsdl.WSDL2Java arg value=-uri / arg value=wsdl\test.wsdl / arg value=-ss / arg value=-sd / arg value=-uw / arg value=-g/ arg value=-p / arg value=-o / arg value=${service.dir} / classpath refid=axis2.class.path / /java /target Once again thanks very much. Kind regards, Erwin -Oorspronkelijk bericht- *Van:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] *Verzonden:* donderdag 20 september 2007 10:10 *Aan:* axis-user@ws.apache.org *Onderwerp:* Re: ADBException: Unexpected subelement Code please see the attached file where I could invoke the service correctly. I have attached request and response messages. Amila. On 9/19/07, Erwin Reinhoud [EMAIL PROTECTED] wrote: Dear Amila, Could you let me know if my infromation was of any use? I succesfully used the wsdl to generate a service using axis 1.4, but am hoping to be able to do the same with axis2. Kind regards, Erwin -Oorspronkelijk bericht- *Van:* Erwin Reinhoud *Verzonden:* dinsdag 18 september 2007 14:58 *Aan:* axis-user@ws.apache.org *Onderwerp:* RE: ADBException: Unexpected subelement Code Dear Amila, Thanks for the time. I added the complete wsdl and log, response and request as attachment. Mind you, the fault of this service differs from before, but i still have trouble creating a working service of this ws-i compliant wsdl. Hope you can help. Thanks in advance. Kind regards, Erwin -Oorspronkelijk bericht- *Van:* Amila Suriarachchi [mailto:[EMAIL PROTECTED] *Verzonden: *maandag 17 september 2007 13:02 *Aan:* axis-user@ws.apache.org *Onderwerp:* Re: ADBException: Unexpected subelement Code On 9/17/07, Erwin Reinhoud [EMAIL PROTECTED] wrote: Dear users, I am using axis2 1.3 and an ant script to generate a service. However i keep getting the Unexpected subelement exception as soon as i add for example the Metadata element being a complex type (see additions below). I renamed some stuff for this post so please disregard any possible errors (the wsdl+schema is validated). I also added the-uw argument to the wsdl2java but does not seem to help. The question is what is wrong with the ant target or wsdl, assuming that the soapui generated request is correct? Can you try to access the axis2 service with the Axis2 client and see? Can you send a valid complete wsdl file which shows the problem? Amila. Thanks in advance. Kind regards, Erwin Server response: soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ soapenv:Body soapenv:Fault faultcodesoapenv:Server/faultcode faultstringorg.apache.axis2.databinding.ADBException: Unexpected subelement Code2/faultstring
RE: Create one Web Service out of multiple java classes?
Hmm If we think logically, To make a project from java classes, we make multiple classes then only one class contain main method that class we make run. So If you connect all classes to 1 class and in Service.xml put this class name. Date: Thu, 20 Sep 2007 03:44:33 -0700 From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Subject: RE: Create one Web Service out of multiple java classes? But how? Any idea? Any Link? Nasreen Laghari-2 wrote: As far as I know it is possible and Axis2 support this. Date: Thu, 20 Sep 2007 01:35:06 -0700 From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Subject: Create one Web Service out of multiple java classes? Hello, is it possible to create one Web Service out of multiple java classes? Is it possible using Axis2? Are there any other possibilities? Hannes -- View this message in context: http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classes--tf4486127.html#a12793022 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Can you find the hidden words? Take a break and play Seekadoo! http://club.live.com/seekadoo.aspx?icid=seek_wlmailtextlink-- View this message in context: http://www.nabble.com/Create-one-Web-Service-out-of-multiple-java-classes--tf4486127.html#a12794751 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Capture your memories in an online journal! http://www.reallivemoms.com?ocid=TXT_TAGHMloc=us
Re: [HELP!!!] [JIRA AXIS2-3215 created] was: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string:
More information on this: Just found out that if the client stub is used in a servlet context for which I managed to clear the system property for http.proxyHost it works (meaning I don't get the For input string: "" message anymore) and get the correct answer from the service host. But as soon as I add the AxisServlet to my web.xml the same client fire the second exception mentioned below (i.e. org.apache.axis2.AxisFault: Transport error: 415 Error: Unsupported Media Type). That leads me to a basic question: Can an AXIS2 client stub live in a web application which exposes other AXIS2 web services using the AxisServlet? If yes what is the recommended setup for the webapp folder? web.xml? axis2.xml? and modules? Please help me! I really need to have this working soon. Cheers, Patrick. Patrick Houbaux wrote: Interesting ... after further investigations: The first problem actually happens if the client stub is used inside a simple web client that is not using the skeleton. So it seems that the org.apache.axis2.AxisFault: For input string: "" issue is actually happening when the stub is used from a servlet context and not happening from a standard java application. What is wrong with this web service? Why the client stub doesn't work in a servlet context? Any idea? Cheers, Patrick. Patrick Houbaux wrote: As I think there is a bug in AXIS2 on this issue I created a JIRA one: https://issues.apache.org/jira/browse/AXIS2-3215 together with stubs/skeleton/test project. Any help on this would be really appreciated as I'm currently blocked. Cheers, Patrick. Patrick Houbaux wrote: Hi Joe, Well that I know and could have done it if that piece of code was not part of AXIS2 libs ... not in my application :) The real question is why AXIS2 detects a server proxy config while I'm not using any ... i.e. when System.getProperty("http.proxyHost"`) is set to "" by default when running AXIS2 in a servlet container. Hence the idea of clearing this system property before invoking the stub. Cheers, Patrick. Horninger, Joe (Contr) (Mission Systems) wrote: Patrick, I have a simple solution for problem #1. Youre only checking for null. What if you rewrite your if to if(port != null !.equalsIgnoreCase(port) ). That should fix the NumberFormatException. The Unable to sendViaPost to url issue may or may not be resolved with this Cheers! Joe From: Patrick Houbaux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 19, 2007 9:07 AM To: axis-user@ws.apache.org Subject: Strange behavior with AXIS2_1.3: org.apache.axis2.AxisFault: For input string: "" Hi all, I have a weird problem that I am stuck with. Here is the situation: I have a web service client stub generated with wsdl2java using xmlbeans which works ok when I used it from a standalone application. Now I have the need to use this client stub from an application server (i.e. tomcat + axis2_1_3) from which I'm exposing other web services as well as this one. So for this web service I have both the client stub and the server skeleton on the server side (the skeleton is calling the client stub, actually passing through requests to the underlying server). The problem: I'm getting the following exception org.apache.axis2.AxisFault: For input string: "" on the client side and nothing on the server side. When running the server in debug mode I found out that this exception is actually due to a NumberFormatException thrown by the following line in org.apache.axis2.transport.http.ProxyConfiguration: String port = System.getProperty(HTTP_PROXY_PORT); -- port = "" if (port != null) { this.setProxyPort(Integer.parseInt(port)); -- ERROR here } But this did not happen when using the client stub directly from a standalone application. Debugging further I noticed the following difference: In both case the method org.apache.axis2.transport.http.AbstractHTTPSender#getHostConfiguration is called but the following test is false in case of the standalone application and true in case of the server application: if (ProxyConfiguration.isProxyEnabled(msgCtx,targetURL)) { log.debug("ProxyConfiguration"); ProxyConfiguration proxyConfiguration = new ProxyConfiguration(); proxyConfiguration.configure(msgCtx,client,config); } So I thought that clearing the System property ("http.proxyHost") would do the trick in the server skeleton before invoking the method from the client stub but ... this leads to another exception (this time on the server side) which I don't really understand: [INFO] Unable to sendViaPost to url[http://vivace.qub.ac.uk/MassService.asmx]
RE: destroy
Hi, I didn't receive any response about that. Is this a bug? I close sessions manually and when I turn off Axis2, destroy method is called again so I got NPE because some elements I destroyed in that method were already destroyed. Thanks, Jorge Fernández Jorge Fernandez [EMAIL PROTECTED] escribió: Hi, I'm using SOAP sessions and I'm testing my Web service opening and closing sessions and I can see sometimes in the logs that the session is being closed more than once. Sometimes, this happens with more than one minute of difference. And when I shutdown Tomcat, all sessions are closed again. I have a method called logout that invokes destroy for cleaning axis2 session when the clients wants to close the session manually. How does Axis2 manage sessions? What may be happening here? Thanks, Jorge Fernández - Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden! . - Sé un Mejor Amante del Cine ¿Quieres saber cómo? ¡Deja que otras personas te ayuden!.
Re: Problem in WSDL2java with eclipse code generator
The log will be append to the eclipse .log file located at the eclipse_worksapace/.metadata Please attach the stack trace there. thanks Lahiru On 9/20/07, ktzanet [EMAIL PROTECTED] wrote: Hi, I am trying to create java code with eclipse code generator. I first created the wsdl file with java2wsdl using the same plugin. When I click finish though, I get the following message: An error occured while completing process -java.lang.InterruptedException: There are no parts for fault message: {http://service.netmode.ntua.gr}Exception Can someone help me? Thank you This is my wsdl: wsdl:definitions xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:xsd=http://service.netmode.ntua.gr/xsd; xmlns:ns=http://service.netmode.ntua.gr; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; targetNamespace=http://service.netmode.ntua.gr;wsdl:typesxs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=qualified elementFormDefault=qualified targetNamespace=http://service.netmode.ntua.gr/xsd; xs:element name=ExceptionFault xs:complexType xs:sequence xs:element name=Exception nillable=true type=xs:anyType / /xs:sequence /xs:complexType /xs:element xs:element name=getLocation xs:complexType xs:sequence xs:element name=id nillable=true type=xs:int / /xs:sequence /xs:complexType /xs:element xs:element name=getLocationResponse xs:complexType xs:sequence xs:element name=return nillable=true type=xs:string / /xs:sequence /xs:complexType /xs:element /xs:schema/wsdl:typeswsdl:message name=getLocationMessagewsdl:part name=part1 element=xsd:getLocation //wsdl:messagewsdl:message name=getLocationResponseMessagewsdl:part name=part1 element=xsd:getLocationResponse //wsdl:messagewsdl:portType name=TopologyServicePortTypewsdl:operation name=getLocationwsdl:input xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; wsaw:Action=urn:getLocation message=ns:getLocationMessage /wsdl:output xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; message=ns:getLocationResponseMessage wsaw:Action=urn:getLocation /wsdl:fault message=ns:Exception name=Exception //wsdl:operation/wsdl:portTypewsdl:binding name=TopologyServiceSOAP11Binding type=ns:TopologyServicePortTypesoap:binding transport=http://schemas.xmlsoap.org/soap/http; style=document /wsdl:operation name=getLocationsoap:operation soapAction=urn:getLocation style=document /wsdl:inputsoap:body use=literal //wsdl:inputwsdl:outputsoap:body use=literal //wsdl:outputwsdl:fault name=Exceptionsoap:body use=literal //wsdl:fault/wsdl:operation/wsdl:bindingwsdl:binding name=TopologyServiceSOAP12Binding type=ns:TopologyServicePortTypesoap12:binding transport=http://schemas.xmlsoap.org/soap/http; style=document /wsdl:operation name=getLocationsoap12:operation soapAction=urn:getLocation style=document /wsdl:inputsoap12:body use=literal //wsdl:inputwsdl:outputsoap12:body use=literal //wsdl:outputwsdl:fault name=Exceptionsoap12:body use=literal //wsdl:fault/wsdl:operation/wsdl:bindingwsdl:service name=TopologyServicewsdl:port name=TopologyServiceSOAP11port binding=ns:TopologyServiceSOAP11Bindingsoap:address location=http://localhost:8080/axis2/services/TopologyService; //wsdl:portwsdl:port name=TopologyServiceSOAP12port binding=ns:TopologyServiceSOAP12Bindingsoap12:address location=http://localhost:8080/axis2/services/TopologyService; //wsdl:port/wsdl:service/wsdl:definitions -- View this message in context: http://www.nabble.com/Problem-in-WSDL2java-with-eclipse-code-generator-tf4486812.html#a12794863 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Lahiru Sandakith http://sandakith.wordpress.com/ GPG Key Fingerprint : 8CD8 68E0 4CBC 75CB 25BC 1AB1 FE5E 7464 1F01 9A0F
Re: Problem in WSDL2java with eclipse code generator
Can you please explain this to me because I don't understand. Thank u The log will be append to the eclipse .log file located at the eclipse_worksapace/.metadata Please attach the stack trace there. thanks Lahiru -- View this message in context: http://www.nabble.com/Problem-in-WSDL2java-with-eclipse-code-generator-tf4486812.html#a12815037 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EPR...Endpoint Reference
Hi Why EPR operation is not found? Exception: The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/Random and the WSA Action = urn:anonOutInOp My Coding: %@ page import=org.apache.axiom.om.OMAbstractFactory, org.apache.axiom.om.OMElement, org.apache.axiom.om.OMFactory, org.apache.axiom.om.OMNamespace, org.apache.axis2.AxisFault, org.apache.axis2.Constants, org.apache.axis2.addressing.EndpointReference, org.apache.axis2.client.Options, org.apache.axis2.client.ServiceClient, org.apache.axis2.context.ConfigurationContext, org.apache.axis2.context.ConfigurationContextFactory % %! private OMElement createEnvelope() {OMFactory fac = OMAbstractFactory.getOMFactory();OMNamespace omNs = fac.createOMNamespace(http://axisversion.sample/xsd;, ns1);OMElement method = fac.createOMElement(getVersion, omNs);OMElement value = fac.createOMElement(myValue, omNs);method.addChild(value); return method;} % % String IP = http://localhost:8080/axis2/axis2-web/trial.jsp;; int lastindex = IP.lastIndexOf('/'); IP = IP.substring(0, lastindex); ///axis2/axis2-web/services/versionIP = IP.replaceAll(axis2-web, );% % try{ OMElement payload = createEnvelope(); ConfigurationContext configctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);ServiceClient client = new ServiceClient(configctx, null); EndpointReference targetEPR = new EndpointReference(IP + configctx.getServicePath() + /Random);Options options = new Options();client.setOptions(options); options.setTo(targetEPR); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); OMElement result = client.sendReceive(payload); out.println(Result: +result); } catch (Exception e) { out.println(Exception: +e.getMessage()); } % _ More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907
Re: Axis2 + ADB + Asynchronous
Hi All I appreciate very much your tips... Many Thanks for your attention... @jr@ ___ Yahoo! Mail - Sempre a melhor opção para você! Experimente já e veja as novidades. http://br.yahoo.com/mailbeta/tudonovo/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 and Enum
I try to serialize hibernate pojos via axis and it works fine except when using ENUM. When using enum I get error org.apache.axis2.AxisFault: Mapping qname not fond for the package: sun.misc When changing the type to int everything works great. Can anyone help me? -- View this message in context: http://www.nabble.com/Axis2-and-Enum-tf4495600.html#a12819817 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache Savan: No release, unable to build release by myself
Hi Guys, I'm curious about the status of the Apache Savan project. I saw on the home page that no realeases have been made yet. Are there any releases planned in the near future? Because no release is available, I tried to build the software myself, but... this failed. I got the following failure: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. GroupId: org.apache.axis2 ArtifactId: axis2-mar-maven-plugin Version: SNAPSHOT Reason: Unable to download the artifact from any repository org.apache.axis2:axis2-mar-maven-plugin:pom:SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2), apache-ws-snapshots2 (http://ws.zones.apache.org/repository2), apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository), snapshot (http://snapshots.maven.codehaus.org/maven2), snapshot-apache (http://people.apache.org/repo/m2-snapshot-repository) [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 7 seconds [INFO] Finished at: Fri Sep 21 15:00:12 CEST 2007 [INFO] Final Memory: 1M/3M [INFO] I checked the specified repositories and the specified plugin is not available in any of them (SNAPSHOT version). What do I need to to to get the build of Savan going?
Axis 1.4
Hi all, I coded few Web Service in Java. Axis 1.4 requires few XML files on Internet. My current problem is : When my internet is down, my Web Services is down too. I tried to put every externals references on a local server but it's difficult to get every references. Somebody thinks Apache Axis2 can publish intranet Web Service without a internet connection ? Bye :-) Carl Lefrançois __ Programmeur-analyste - Programmer-analyst Service Hydrographique du Canada - Canadian Hydrographic Service Institut Maurice Lamontagne - Maurice Lamontagne Institute Local : B-504-1 Courriel : [EMAIL PROTECTED] Tél. : (418)775-0827
Re: [Axis2] Axis2 and Enum type
This is an old problem. Until Axis2 gets code to support java 5 enums, I just do a simple conversion. With this example in the wsdl: element minOccurs=1 maxOccurs=1 nillable=true name=TipoMibEnum type=xsd:int/ You'd get that value in the Service with the idea of converting it to this: public enum TipoMib implements Serializable{ MIB2, MIB_GERENCIA, MIB_ESPECIFICA; } I do the conversion as: private static TipoMib getTipoMib(Integer ordinal) { if (TipoMib.MIB2.ordinal() == ordinal) { return TipoMib.MIB2; } else if (TipoMib.MIB_ESPECIFICA.ordinal() == ordinal) { return TipoMib.MIB_ESPECIFICA; } else if (TipoMib.MIB_GERENCIA.ordinal() == ordinal) { return TipoMib.MIB_GERENCIA; } else return null; } To convert the other way I do tipoMib.ordinal() - see the javadoc of Enum about ordinal() . HTH, Robert On 9/21/07, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Did you find any solution to this? I'm having the same problem -- View this message in context: http://www.nabble.com/-Axis2--Axis2-and-Enum-type-tf4350527.html#a12819819 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 and Enum type
Did you find any solution to this? I'm having the same problem -- View this message in context: http://www.nabble.com/-Axis2--Axis2-and-Enum-type-tf4350527.html#a12819819 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] Axis2 and Enum type
I don't quit get the response. I don't generate the wsdl myself. Axis2 servlet does that I suppose. In my method I should return int instead? -- View this message in context: http://www.nabble.com/-Axis2--Axis2-and-Enum-type-tf4350527.html#a12821870 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis 1.4
Hi, I am guessing the xml files you're referring too are the XML Schema files used to parse the xml documents you send. It would seem that Axis2 will actually look up xml namespaces (thus incurring the internet hit) for each namespace you have in your wsdl and schema. If this is true, then theoretically, you can just copy all of the schema files referenced in your namespaces, and be all set? To all, What else does Axis2 look up on the 'Net? (I'm sure I missed something). Thanks, -jeff _ From: Lefrançois, Carl [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 9:17 AM To: axis-user@ws.apache.org Subject: Axis 1.4 Hi all, I coded few Web Service in Java. Axis 1.4 requires few XML files on Internet. My current problem is : When my internet is down, my Web Services is down too. I tried to put every externals references on a local server but it's difficult to get every references. Somebody thinks Apache Axis2 can publish intranet Web Service without a internet connection ? Bye :-) Carl Lefrançois __ Programmeur-analyste - Programmer-analyst Service Hydrographique du Canada - Canadian Hydrographic Service Institut Maurice Lamontagne - Maurice Lamontagne Institute Local : B-504-1 Courriel : [EMAIL PROTECTED] Tél. : (418)775-0827
RE: The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the
Fatima I'm having the same issue. I have access Version Service but Cant access my own webservice. If you get any answer, can you fwd to me as well. Thanks Date: Fri, 21 Sep 2007 16:13:05 +0200 From: [EMAIL PROTECTED] To: axis-user@ws.apache.org Subject: The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the WSA Action = null Hi, when I try to access to the endpoint of my web service at http://localhost:8080/axis2/services/mywebservice with Tomcat it appears: faultstring The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the WSA Action = null /faultstring, nevertheless I can execute my web service. What has it happened? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907
selecting methods with allowedMethods param
Hi All, It looked all simple when reading the docs. My goal was to expose only a few methods from the interface, so I changed allowedMethods=* to allowedMethods=myMethod in server-config.wsdd. Restart tomcat, point a browser to the list of services ... and: Exception - org.apache.axis.InternalException: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation getProxyRequest (3 args) The getProxyRequest happened to be the first method which would normally show in the list when a * was used. I'm using Axis 1.4. I'm about to edit the wsdl and regenerate the stubs, but maybe there is a lighter option ? any help will be appreciated, cheers JM p.s I also tried to redeploy with correctons made to deploy.wsdd rather that server-config.wsdd, no difference - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the WSA Action = null
Hi, when I try to access to the endpoint of my web service at http://localhost:8080/axis2/services/mywebservice with Tomcat it appears: faultstring The endpoint reference (EPR) for the Operation not found is /axis2/services/mywebservice and the WSA Action = null /faultstring, nevertheless I can execute my web service. What has it happened? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 and Enum type
They said the current Axis2 is based on Java 1.4 which doesn't have the enum type definition. I was told that this will be fixed in the next release (I am not sure if that was an official answer or not). For creating WSDL, look at the code (WSDLDataLocator.java) in Axis2 source. Here is what I do. Instead of inventing WSDL creator, create your own data locator extended from WSDLDataLocator. In outputInlineForm, get the result (OMElemet) from the parent and make changes there. protected Data[] outputInlineForm(MessageContext msgContext, ServiceData[] dataList) throws DataRetrievalException { Data[] result = super.outputInlineForm(msgContext, dataList); if (null != result null != result[0]) { OMElement wsdlElement = (OMElement)result[0].getData(); this.generateCustomWSDL(wsdlElement); // call your own function result[0] = new Data(wsdlElement, null); } return result; } Then, add datalocator in service.xml service name=api descriptionSome API/description messageReceivers messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-only; class=org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver / messageReceiver mep=http://www.w3.org/2004/08/wsdl/in-out; class=org.apache.axis2.rpc.receivers.RPCMessageReceiver / /messageReceivers parameter name=ServiceClass locked=false YOUR_SERVICE_CLASS /parameter dataLocator dialectLocator dialect=http://schemas.xmlsoap.org/wsdl/; class=YOUR_DATA_LOCATOR_CLASS / /dataLocator /service Hope this helps. - Leon Mathias P.W Nilsson wrote: I don't quit get the response. I don't generate the wsdl myself. Axis2 servlet does that I suppose. In my method I should return int instead? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: [axis2-1.2]How to assign values to Binary Security Token in client stub code
hi All, I am having a wsdl and i am using axis2 version 1.2 to generate client stub code using adb binding. There is message level security incorporated in the service and i need to send security information in the header of the soap envelope using BinarySecurityToken. How to incorporate security information in my client code? Can some one suggest me how to go about and provide me some sample code for sending BinarySecurityToken information along with my client code. Thanks, Vittal --- vittal nangunoori [EMAIL PROTECTED] wrote: Note: forwarded message attached. Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ Date: Thu, 20 Sep 2007 09:58:47 -0700 (PDT) From: vittal nangunoori [EMAIL PROTECTED] Subject: [axis2-1.2]How to assign values to Binary Security Token in client stub code To: axis user [EMAIL PROTECTED] hi All, I have generated client stub code using adb binding. In the security header I am unable to send both text data (base 64 encoded data of the public key) to BinarySecurityToken element and values to its attributes like ValueType, wsu:Id and EncodingType. Can any one provide solution to this issue. Thanks Vittal Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Rampart-1.1.mar
After adding the rampart-1.1.mar in the Web-Inf/modules folder and adding the same in modules.list file and restart the Weblogic, below error is thrown. I tried to get the rampart jar file, but I couldn't find it in the Apache website. Please let me know how to resolve this error. Caused by: java.lang.ClassNotFoundException: org.apache.rampart.Rampart at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa der.java:199) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAware ClassLoader.java:6 at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa der.java:224) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware ClassLoader.java:4 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.axis2.util.Loader.loadClass(Loader.java:261) at org.apache.axis2.util.Loader.loadClass(Loader.java:229) at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder. java:66) Thanks Regards, Peter Rajesh | 860-547-3881 * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. *
RE: Rampart-1.1.mar
Rajesh, You can find the distribution for all Rampart 1.3 at http://www.apache.org/dyn/mirrors/mirrors.cgi/ws/rampart/1_3/rampart-1.3 .zip Thanks Raghu From: Rajesh, Peter (CLAIMS, WIP) [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 10:43 AM To: [EMAIL PROTECTED] Cc: axis-user@ws.apache.org Subject: Rampart-1.1.mar After adding the rampart-1.1.mar in the Web-Inf/modules folder and adding the same in modules.list file and restart the Weblogic, below error is thrown. I tried to get the rampart jar file, but I couldn't find it in the Apache website. Please let me know how to resolve this error. Caused by: java.lang.ClassNotFoundException: org.apache.rampart.Rampart at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoa der.java:199) at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAware ClassLoader.java:6 at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoa der.java:224) at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAware ClassLoader.java:4 at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:141) at org.apache.axis2.util.Loader.loadClass(Loader.java:261) at org.apache.axis2.util.Loader.loadClass(Loader.java:229) at org.apache.axis2.deployment.ModuleBuilder.loadModuleClass(ModuleBuilder. java:66) Thanks Regards, Peter Rajesh | 860-547-3881 * This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies. *
Re: Axis2 Request Tracking
I guess I'll do this with the session though it seems wrong ... I can't think of any other way to handle it. I'm still open to suggestions if anyone has a good idea to share :-) Thanks, Ty - Original Message From: tyju tiui [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 3:25:48 AM Subject: Request Tracking I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
Re: Axis2 Request Tracking
I often do session handling this way. What I do is on login, return a token generated by the UUID class in java 5 and later. Then I force the users on subsequent calls to pass in the token or the invokation is rejected. Works great if you can control policy on both sides. HTH, Robert On 9/21/07, tyju tiui [EMAIL PROTECTED] wrote: I guess I'll do this with the session though it seems wrong ... I can't think of any other way to handle it. I'm still open to suggestions if anyone has a good idea to share :-) Thanks, Ty - Original Message From: tyju tiui [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 3:25:48 AM Subject: Request Tracking I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 Request Tracking
But can't each session can have multiple requests within it? (I'm thinking HTTP sessions here, is that not what you guys are thinking?) I think Ty said he wants unique ids on each request. On our project, we waited for WS-ReliableMessaging to come to web services (in WebSphere 6.1), that would give us unique ids for each request and response, sequencing of requests, repeated requests that were lost and requests out of order. Lots of good stuff. But we cannot wait any longer. I ended up coding a very primitive message id reflection technique. Client creates a SOAP header called MessageId. Add into it the UUID generated id from, as you say, Java5 (or .NET). The service receives the request and MessageID header, opens the header in a request handler class and stores it in the MessageContext for safe keeping until the response is ready. On the way out, a response handler class creates a MessageId SOAP header, containing, you guessed it, the messageId it gets from the MessageContext. 1. The client is solely responsible for uniqueness. 2. The service does not manipulate the messageId, just stores it. 3. Fault semantics are simple. No messageId available in request header - Soap Fault. No messageId available when the response is being handled on the way out - Soap Fault. 4. Any call that times out before a response is received, means obviously that the request was invalid, and a new messageId is generated by the client and the client tries that call again. 5. Such a primitive messageID reflection technique doesn't need a session to work. (Perhaps you need a session for something else, but not for this). 6. Recommend you add in 'To:' and 'From:' addressee fields to the MessageID header, as well as the messageId string field. 7. Recommend that you avoid anything more sophisticated like keeping track of previous messageIds received and sent. It gets nasty, very quickly. (Leave that to WS-ReliableMessaging, when it is ready for primetime). Hope this helps. -jeff -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 2:26 PM To: axis-user@ws.apache.org Subject: Re: Axis2 Request Tracking I often do session handling this way. What I do is on login, return a token generated by the UUID class in java 5 and later. Then I force the users on subsequent calls to pass in the token or the invokation is rejected. Works great if you can control policy on both sides. HTH, Robert On 9/21/07, tyju tiui [EMAIL PROTECTED] wrote: I guess I'll do this with the session though it seems wrong ... I can't think of any other way to handle it. I'm still open to suggestions if anyone has a good idea to share :-) Thanks, Ty - Original Message From: tyju tiui [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 3:25:48 AM Subject: Request Tracking I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. - 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]
Axis Fault that I haven't seen before
So, A little background on what I'm trying to accomplish... I've written my own proxy to call TestDataService. I'm currently in the process of Test-Fix-Test on it, before I submit it for formal testing. I'm calling it with a bunch of data that I've got hard coded in my J-Unit test. The TestDataService was supplied by a third party and I am unable to modify the WSDL or Schemas for it. Does anyone have any ideas as to what the problem here would be? AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException faultSubcode: faultString: Couldn't find an appropriate operation for XML QName {http://test.com/v1.0/webservice/TestDataService}addDataOperationRequest faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:hq-con-dc-01 Couldn't find an appropriate operation for XML QName {http://test.com/v1.0/webservice/TestDataService}addDataOperationRequest at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.ja va:222) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.jav a:129) at org.apache.axis.encoding.DeserializationContext.endElement(Deserializati onContext.java:1087) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis patcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:375) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon text.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:435) at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java :796) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j ava:32) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165) at org.apache.axis.client.Call.invokeEngine(Call.java:2784) at org.apache.axis.client.Call.invoke(Call.java:2767) at org.apache.axis.client.Call.invoke(Call.java:1792) aTdHvAaNnKcSe, Joe
RE: Axis2 Request Tracking
As this is to track each request till the response and does not have any relevance to the requestor, this need not be part of the SOAP message. This can be achieved using ThreadLocal - every request can be assigned a Unique generated ID that can be stored in a Context assigned to the ThreadLocal. --- Walker, Jeff [EMAIL PROTECTED] wrote: But can't each session can have multiple requests within it? (I'm thinking HTTP sessions here, is that not what you guys are thinking?) I think Ty said he wants unique ids on each request. On our project, we waited for WS-ReliableMessaging to come to web services (in WebSphere 6.1), that would give us unique ids for each request and response, sequencing of requests, repeated requests that were lost and requests out of order. Lots of good stuff. But we cannot wait any longer. I ended up coding a very primitive message id reflection technique. Client creates a SOAP header called MessageId. Add into it the UUID generated id from, as you say, Java5 (or .NET). The service receives the request and MessageID header, opens the header in a request handler class and stores it in the MessageContext for safe keeping until the response is ready. On the way out, a response handler class creates a MessageId SOAP header, containing, you guessed it, the messageId it gets from the MessageContext. 1. The client is solely responsible for uniqueness. 2. The service does not manipulate the messageId, just stores it. 3. Fault semantics are simple. No messageId available in request header - Soap Fault. No messageId available when the response is being handled on the way out - Soap Fault. 4. Any call that times out before a response is received, means obviously that the request was invalid, and a new messageId is generated by the client and the client tries that call again. 5. Such a primitive messageID reflection technique doesn't need a session to work. (Perhaps you need a session for something else, but not for this). 6. Recommend you add in 'To:' and 'From:' addressee fields to the MessageID header, as well as the messageId string field. 7. Recommend that you avoid anything more sophisticated like keeping track of previous messageIds received and sent. It gets nasty, very quickly. (Leave that to WS-ReliableMessaging, when it is ready for primetime). Hope this helps. -jeff -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 2:26 PM To: axis-user@ws.apache.org Subject: Re: Axis2 Request Tracking I often do session handling this way. What I do is on login, return a token generated by the UUID class in java 5 and later. Then I force the users on subsequent calls to pass in the token or the invokation is rejected. Works great if you can control policy on both sides. HTH, Robert On 9/21/07, tyju tiui [EMAIL PROTECTED] wrote: I guess I'll do this with the session though it seems wrong ... I can't think of any other way to handle it. I'm still open to suggestions if anyone has a good idea to share :-) Thanks, Ty - Original Message From: tyju tiui [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 3:25:48 AM Subject: Request Tracking I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. - 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] Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos more. http://mobile.yahoo.com/go?refer=1GNXIC
synchronous vs asynchronous and axis 1 vs axis 2
Dear folks, I am just starting to use web service and Axis. I want to use a C++ client to communicate with a java web service(tomcat + axis). The client sends a request to start a time-consuming process on the server, then wants to get the progress (like 40% done) while the server's working on it. 1. I found Axis2's asynchronous model appealing because it provides a natural way to for client to get Progress,error, completion,etc. Callback callback = new Callback() { public void onComplete(AsyncResult result) { //what user can do to result } public void reportError(Exception e) { //on error } public onMessage(MessageContext msgContext) {} }; Without asynchronous model, how do I accomplish this in Axis 1? I make a call to start the process, then periodically make status checking call until it finishes, correct? By what I know so far, it seems it makes more sense to use Axis2 for my project. But please point out if I missed anything... 2.There's an axis2/c project, but no c++, why? thanks!! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Request Tracking
Hi Jeff, On 9/21/07, Walker, Jeff [EMAIL PROTECTED] wrote: But can't each session can have multiple requests within it? (I'm thinking HTTP sessions here, is that not what you guys are thinking?) I think Ty said he wants unique ids on each request. I'm not talking about sessions - I'm not a believer when it comes to web services. Its why I mentioned generating the UUID on login and return it. I prefer to return it as one of the vars that a login returns. Its needs to be presisted for which I use ehcache so the client can send it back in. You say you are using handlers. I personally avoid those here - and just return an object with the uuid included. On our project, we waited for WS-ReliableMessaging to come to web services (in WebSphere 6.1), that would give us unique ids for each request and response, sequencing of requests, repeated requests that were lost and requests out of order. Lots of good stuff. But we cannot wait any longer. WS-ReliableMessaging and more interesting to me, WS-SecureConversation , is worth exploring. Keep in mind addressing already has an uuid. The problem I always run into with those are lacking implementations I trust on all the potential clients and servers. Hacking up a UUID solution is something any mid-level programmer can do in a few days, and every language supports UUID these days. I ended up coding a very primitive message id reflection technique. Client creates a SOAP header called MessageId. Add into it the UUID generated id from, as you say, Java5 (or .NET). The service receives the request and MessageID header, opens the header in a request handler class and stores it in the MessageContext for safe keeping until the response is ready. On the way out, a response handler class creates a MessageId SOAP header, containing, you guessed it, the messageId it gets from the MessageContext. 1. The client is solely responsible for uniqueness. Why give responsibilty to the client on something so important ? 2. The service does not manipulate the messageId, just stores it. That's essential I think, though I'd generate it on the server. 3. Fault semantics are simple. No messageId available in request header - Soap Fault. Soap Faults are a PITA. There have probably been 30 jira's on that in the two years of axis2's existence. They seem to work well now, thru much effort which of course is appreciated. Who knows how well all the other languages do there. I prefer to return 0 on success and define error codes on the rest. Simple and is fail proof. No messageId available when the response is being handled on the way out - Soap Fault. 4. Any call that times out before a response is received, means obviously that the request was invalid, and a new messageId is generated by the client and the client tries that call again. Again, why leave that up to the client ? 5. Such a primitive messageID reflection technique doesn't need a session to work. (Perhaps you need a session for something else, but not for this). 6. Recommend you add in 'To:' and 'From:' addressee fields to the MessageID header, as well as the messageId string field. You are depending on the MessageContext API which changes a lot on every release. That'll only work consistently, barring the frequent and often drastic changes, in axis2. The idea I try to implement in my code is an approach that'll work in any language independent of any standards, ie, .net clients and servers which I somehow end up having to at least co-exist with. 7. Recommend that you avoid anything more sophisticated like keeping track of previous messageIds received and sent. It gets nasty, very quickly. (Leave that to WS-ReliableMessaging, when it is ready for primetime). Hope this helps. -jeff Likewise, barring anything prime time its always intrigues me to see how people in the real world do this. What you are doing I'm sure works fine. Cheers, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Request Tracking
ThreadLocal at the Service level ? I guess I'm being particularly jumpy today - I'm hacking powerpc assembler for a bootloader on a custom Freescale board and I wouldn't even touch that ;-) . Cheers, Robert On 9/21/07, Hyma [EMAIL PROTECTED] wrote: As this is to track each request till the response and does not have any relevance to the requestor, this need not be part of the SOAP message. This can be achieved using ThreadLocal - every request can be assigned a Unique generated ID that can be stored in a Context assigned to the ThreadLocal. --- Walker, Jeff [EMAIL PROTECTED] wrote: But can't each session can have multiple requests within it? (I'm thinking HTTP sessions here, is that not what you guys are thinking?) I think Ty said he wants unique ids on each request. On our project, we waited for WS-ReliableMessaging to come to web services (in WebSphere 6.1), that would give us unique ids for each request and response, sequencing of requests, repeated requests that were lost and requests out of order. Lots of good stuff. But we cannot wait any longer. I ended up coding a very primitive message id reflection technique. Client creates a SOAP header called MessageId. Add into it the UUID generated id from, as you say, Java5 (or .NET). The service receives the request and MessageID header, opens the header in a request handler class and stores it in the MessageContext for safe keeping until the response is ready. On the way out, a response handler class creates a MessageId SOAP header, containing, you guessed it, the messageId it gets from the MessageContext. 1. The client is solely responsible for uniqueness. 2. The service does not manipulate the messageId, just stores it. 3. Fault semantics are simple. No messageId available in request header - Soap Fault. No messageId available when the response is being handled on the way out - Soap Fault. 4. Any call that times out before a response is received, means obviously that the request was invalid, and a new messageId is generated by the client and the client tries that call again. 5. Such a primitive messageID reflection technique doesn't need a session to work. (Perhaps you need a session for something else, but not for this). 6. Recommend you add in 'To:' and 'From:' addressee fields to the MessageID header, as well as the messageId string field. 7. Recommend that you avoid anything more sophisticated like keeping track of previous messageIds received and sent. It gets nasty, very quickly. (Leave that to WS-ReliableMessaging, when it is ready for primetime). Hope this helps. -jeff -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 2:26 PM To: axis-user@ws.apache.org Subject: Re: Axis2 Request Tracking I often do session handling this way. What I do is on login, return a token generated by the UUID class in java 5 and later. Then I force the users on subsequent calls to pass in the token or the invokation is rejected. Works great if you can control policy on both sides. HTH, Robert On 9/21/07, tyju tiui [EMAIL PROTECTED] wrote: I guess I'll do this with the session though it seems wrong ... I can't think of any other way to handle it. I'm still open to suggestions if anyone has a good idea to share :-) Thanks, Ty - Original Message From: tyju tiui [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 3:25:48 AM Subject: Request Tracking I'd like to assign a unique ID to each request as it comes in so that I might track it all the way through to the outFlow. In other words I want to give each request a tracking ID so I can go back in my logs and follow a request's path all the way through my system. What do you guys and gals think the best way to do this might be? I've thought about doing something with a session variable, but that seems to go against the stateless nature of WS in general. I also thought I might inject the unique ID into the request after I've received it, but that also seems like a bad idea ... I'm sure there are a million things that could potentially go wrong doing something like this. Your ideas are much appreciated. Thanks, Ty Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. Don't let your dream ride pass you by. Make it a reality with Yahoo! Autos. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ERP and .aar
Hi All, I have find out why i'm having exception on EndpointReference when I try to access my webservice and why is working fine with version service (Axis2 defaullt service, HappyAxis.jsp) Version service is in .aar extesion that means this object accept .aar servie. Could Any1 please help me how to make .aar service and/or how can I access my service without converting it to .aar EndpointReference targetEPR = new EndpointReference(IP + configctx.getServicePath() + /Random); Exception: The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/Random and the WSA Action = urn:anonOutInOp Thank you So much Nasreen _ More photos; more messages; more whatever – Get MORE with Windows Live™ Hotmail®. NOW with 5GB storage. http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_migration_HM_mini_5G_0907
RE: ERP and .aar
Hi Nasreen, You can check the Axis2 Quickstart guide at http://ws.apache.org/axis2/1_3/quickstartguide.html In this under Axis2 Services, it'll show the structure of an axis2 war file also the structure of an aar file. For detailed explanation, you can check the Axis2 user guide at http://ws.apache.org/axis2/1_3/userguide.html Thanks Raghu From: Nasreen Laghari [mailto:[EMAIL PROTECTED] Sent: Friday, September 21, 2007 1:56 PM To: [EMAIL PROTECTED]; axis-user@ws.apache.org Subject: ERP and .aar Hi All, I have find out why i'm having exception on EndpointReference when I try to access my webservice and why is working fine with version service (Axis2 defaullt service, HappyAxis.jsp) Version service is in .aar extesion that means this object accept .aar servie. Could Any1 please help me how to make .aar service and/or how can I access my service without converting it to .aar EndpointReference targetEPR = new EndpointReference(IP + configctx.getServicePath() + /Random); Exception: The endpoint reference (EPR) for the Operation not found is http://localhost:8080/axis2/services/Random and the WSA Action = urn:anonOutInOp Thank you So much Nasreen More photos; more messages; more whatever - Get MORE with Windows Live(tm) Hotmail(r). NOW with 5GB storage. Get more! http://imagine-windowslive.com/hotmail/?locale=en-usocid=TXT_TAGHM_mig ration_HM_mini_5G_0907
[axis2-1.3] wsdl2java takes forever - unbearably long
I am upgrading from Axis2 1.1.1 to 1.3, and rebuilding my Java stubs is taking forever. This is the command I am running: ../bin/wsdl2java.sh -s -p com.vivisimo.connector.sharepoint2007 -uri sharepoint2007/SiteData.wsdl the WSDL file is attached. Can someone please explain what is taking so long for these files? With 1.1.1, there was nowhere near this amount of time taken, maybe 5-15 seconds. With 1.3, my processor has been spinning for over 15 minutes at 100% CPU, and 450+ MB of resident memory. Things do not appear to be deadlocked, as if I let it sit, java files eventually get produced. -Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2-1.3] wsdl2java takes forever - unbearably long
I forgot to attach... Jake Goulding wrote: I am upgrading from Axis2 1.1.1 to 1.3, and rebuilding my Java stubs is taking forever. This is the command I am running: ../bin/wsdl2java.sh -s -p com.vivisimo.connector.sharepoint2007 -uri sharepoint2007/SiteData.wsdl the WSDL file is attached. Can someone please explain what is taking so long for these files? With 1.1.1, there was nowhere near this amount of time taken, maybe 5-15 seconds. With 1.3, my processor has been spinning for over 15 minutes at 100% CPU, and 450+ MB of resident memory. Things do not appear to be deadlocked, as if I let it sit, java files eventually get produced. -Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] wsdl:definitions xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:tm=http://microsoft.com/wsdl/mime/textMatching/; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:tns=http://schemas.microsoft.com/sharepoint/soap/; xmlns:s=http://www.w3.org/2001/XMLSchema; xmlns:soap12=http://schemas.xmlsoap.org/wsdl/soap12/; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; targetNamespace=http://schemas.microsoft.com/sharepoint/soap/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; wsdl:types s:schema elementFormDefault=qualified targetNamespace=http://schemas.microsoft.com/sharepoint/soap/; s:element name=GetSiteAndWeb s:complexType s:sequence s:element minOccurs=0 maxOccurs=1 name=strUrl type=s:string / /s:sequence /s:complexType /s:element s:element name=GetSiteAndWebResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=GetSiteAndWebResult type=s:unsignedInt / s:element minOccurs=0 maxOccurs=1 name=strSite type=s:string / s:element minOccurs=0 maxOccurs=1 name=strWeb type=s:string / /s:sequence /s:complexType /s:element s:element name=GetSite s:complexType / /s:element s:element name=GetSiteResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=GetSiteResult type=s:unsignedInt / s:element minOccurs=1 maxOccurs=1 name=sSiteMetadata type=tns:_sSiteMetadata / s:element minOccurs=0 maxOccurs=1 name=vWebs type=tns:ArrayOf_sWebWithTime / s:element minOccurs=0 maxOccurs=1 name=strUsers type=s:string / s:element minOccurs=0 maxOccurs=1 name=strGroups type=s:string / s:element minOccurs=0 maxOccurs=1 name=vGroups type=tns:ArrayOfString / /s:sequence /s:complexType /s:element s:complexType name=_sSiteMetadata s:sequence s:element minOccurs=1 maxOccurs=1 name=LastModified type=s:dateTime / s:element minOccurs=1 maxOccurs=1 name=LastModifiedForceRecrawl type=s:dateTime / s:element minOccurs=1 maxOccurs=1 name=SmallSite type=s:boolean / s:element minOccurs=0 maxOccurs=1 name=PortalUrl type=s:string / s:element minOccurs=0 maxOccurs=1 name=UserProfileGUID type=s:string / s:element minOccurs=1 maxOccurs=1 name=ValidSecurityInfo type=s:boolean / /s:sequence /s:complexType s:complexType name=ArrayOf_sWebWithTime s:sequence s:element minOccurs=0 maxOccurs=unbounded name=_sWebWithTime type=tns:_sWebWithTime / /s:sequence /s:complexType s:complexType name=_sWebWithTime s:sequence s:element minOccurs=0 maxOccurs=1 name=Url type=s:string / s:element minOccurs=1 maxOccurs=1 name=LastModified type=s:dateTime / /s:sequence /s:complexType s:complexType name=ArrayOfString s:sequence s:element minOccurs=0 maxOccurs=unbounded name=string nillable=true type=s:string / /s:sequence /s:complexType s:element name=GetWeb s:complexType / /s:element s:element name=GetWebResponse s:complexType s:sequence s:element minOccurs=1 maxOccurs=1 name=GetWebResult type=s:unsignedInt / s:element minOccurs=1 maxOccurs=1 name=sWebMetadata type=tns:_sWebMetadata / s:element minOccurs=0 maxOccurs=1 name=vWebs type=tns:ArrayOf_sWebWithTime / s:element minOccurs=0 maxOccurs=1 name=vLists type=tns:ArrayOf_sListWithTime / s:element minOccurs=0 maxOccurs=1 name=vFPUrls type=tns:ArrayOf_sFPUrl / s:element minOccurs=0 maxOccurs=1 name=strRoles type=s:string / s:element minOccurs=0 maxOccurs=1 name=vRolesUsers type=tns:ArrayOfString / s:element minOccurs=0 maxOccurs=1 name=vRolesGroups type=tns:ArrayOfString / /s:sequence /s:complexType /s:element
Re: [axis2-1.3] wsdl2java takes forever - unbearably long
please delete the jalopy.jar and try again. thanks, dims On 9/21/07, Jake Goulding [EMAIL PROTECTED] wrote: I am upgrading from Axis2 1.1.1 to 1.3, and rebuilding my Java stubs is taking forever. This is the command I am running: ../bin/wsdl2java.sh -s -p com.vivisimo.connector.sharepoint2007 -uri sharepoint2007/SiteData.wsdl the WSDL file is attached. Can someone please explain what is taking so long for these files? With 1.1.1, there was nowhere near this amount of time taken, maybe 5-15 seconds. With 1.3, my processor has been spinning for over 15 minutes at 100% CPU, and 450+ MB of resident memory. Things do not appear to be deadlocked, as if I let it sit, java files eventually get produced. -Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2-1.3] wsdl2java takes forever - unbearably long
Jake-- Have much RAM do you have? M-- - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, September 21, 2007 8:50 PM Subject: Re: [axis2-1.3] wsdl2java takes forever - unbearably long please delete the jalopy.jar and try again. thanks, dims On 9/21/07, Jake Goulding [EMAIL PROTECTED] wrote: I am upgrading from Axis2 1.1.1 to 1.3, and rebuilding my Java stubs is taking forever. This is the command I am running: ../bin/wsdl2java.sh -s -p com.vivisimo.connector.sharepoint2007 -uri sharepoint2007/SiteData.wsdl the WSDL file is attached. Can someone please explain what is taking so long for these files? With 1.1.1, there was nowhere near this amount of time taken, maybe 5-15 seconds. With 1.3, my processor has been spinning for over 15 minutes at 100% CPU, and 450+ MB of resident memory. Things do not appear to be deadlocked, as if I let it sit, java files eventually get produced. -Jake - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]