[Axis2] AXIS2_CALL_GET_BASE macro
Hi, Is AXIS2_CALL_GET_BASE macro deprecated? I can see it's being used in the Axis2 PHP extension but I can't find it in the Axis2 source. Is there a different function that does the same task as AXIS2_CALL_GET_BASE? Bye, -Chintana -- http://www.linux.lk/~chintana/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] AXIS2_CALL_GET_BASE macro
Chintana Wilamuna wrote: Hi, Is AXIS2_CALL_GET_BASE macro deprecated? I can see it's being used in the Axis2 PHP extension but I can't find it in the Axis2 source. Is there a different function that does the same task as AXIS2_CALL_GET_BASE? call struct is no more. You have to use svc_client Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] AXIS2_CALL_GET_BASE macro
On 9/13/06, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Is there a different function that does the same task as AXIS2_CALL_GET_BASE? call struct is no more. You have to use svc_client I'm trying to understand the way of calling an existing web service, given an XML string as the payload. I'm going through service_client.c in Axis2 PHP extension. The AXIS2_CALL_GET_BASE macro seems to be returning a struct of axis2_mep_client_t after taking an axis2_call_t and axis2_env_t as parameters. So how can I get an axis2_mep_client_t by giving axis2_svc_client_t and axis2_env_t as parameters? Is there a function for this? Or am I following a wrong path? Thanks in advance, Bye, -Chintana -- http://www.linux.lk/~chintana/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with Axis C++ installatio on Linux PC
Title: Message Hi All, I got the following error when i try to build the file using ant from the SVN code... buildVersionResource: [cc] Starting dependency analysis for 2 files. [cc] 1 files are up to date. [cc] 1 files to be recompiled from dependency analysis. [cc] 2 total files to be compiled. [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp: In member [cc] function `virtual int [cc] Apache2Transport::setTransportProperty(axiscpp::AXIS_TRANSPORT_INFORMATION_TYPE, [cc] const char*)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: ` [cc] ap_table_set' undeclared (first use this function) [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: (Each [cc] undeclared identifier is reported only once for each function it appears [cc] in.) [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp: In member [cc] function `virtual const char* Apache2Transport::getTransportProperty(const [cc] char*, bool)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:243: ` [cc] ap_table_elts' undeclared (first use this function) [cc] /home/globus/Axis/ws-axis/src/server/apache2/mod_axis2.cpp: In function `int [cc] axis_handler(request_rec*)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/mod_axis2.cpp:122: warning: control [cc] reaches end of non-void function BUILD FAILED/home/globus/Axis/ws-axis/build.xml:245: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build.xml:236: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build.xml:124: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build/buildApache20Module.xml:21: g++ failed with return code 1 Total time: 2 minutes 21 seconds Can anybody tell me, do i need to modify any part of the build.xml. Thanks in advance, Murali Krishna K
Re: [Axis2] AXIS2_CALL_GET_BASE macro
Chintana Wilamuna wrote: On 9/13/06, Samisa Abeysinghe [EMAIL PROTECTED] wrote: Is there a different function that does the same task as AXIS2_CALL_GET_BASE? call struct is no more. You have to use svc_client I'm trying to understand the way of calling an existing web service, given an XML string as the payload. I'm going through service_client.c in Axis2 PHP extension. The AXIS2_CALL_GET_BASE macro seems to be returning a struct of axis2_mep_client_t after taking an axis2_call_t and axis2_env_t as parameters. So how can I get an axis2_mep_client_t by giving axis2_svc_client_t and axis2_env_t as parameters? Is there a function for this? Or am I following a wrong path? Looks like you are on the wrong path. Best is to use service client API, even though mep client is there, it is deprecated. You can get it all done with service client and op client. Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2C on Solaris
I'm evaluating Axis2C and will want to use it for my next project on Windows, Linux and Solaris. Are there plans to create a distribution of the binaries for Solaris? -Dave. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem with Axis C++ installatio on Linux PC
Title: Message Sorry this is not a right reply to your problem. I need to check the build.xml for this. I will check and reply you after some time. -Monica -Original Message-From: Popuri, Monica Sent: Thursday, September 14, 2006 10:54 AMTo: Apache AXIS C User ListSubject: RE: Problem with Axis C++ installatio on Linux PC This means you have not set APACHE2_HOME variable -Original Message-From: Murali Konnipati [mailto:[EMAIL PROTECTED]Sent: Wednesday, September 13, 2006 8:30 PMTo: axis-c-user@ws.apache.orgSubject: Problem with Axis C++ installatio on Linux PC Hi All, I got the following error when i try to build the file using ant from the SVN code... buildVersionResource: [cc] Starting dependency analysis for 2 files. [cc] 1 files are up to date. [cc] 1 files to be recompiled from dependency analysis. [cc] 2 total files to be compiled. [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp: In member [cc] function `virtual int [cc] Apache2Transport::setTransportProperty(axiscpp::AXIS_TRANSPORT_INFORMATION_TYPE, [cc] const char*)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: ` [cc] ap_table_set' undeclared (first use this function) [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:107: (Each [cc] undeclared identifier is reported only once for each function it appears [cc] in.) [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp: In member [cc] function `virtual const char* Apache2Transport::getTransportProperty(const [cc] char*, bool)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/Apache2Transport.cpp:243: ` [cc] ap_table_elts' undeclared (first use this function) [cc] /home/globus/Axis/ws-axis/src/server/apache2/mod_axis2.cpp: In function `int [cc] axis_handler(request_rec*)': [cc] /home/globus/Axis/ws-axis/src/server/apache2/mod_axis2.cpp:122: warning: control [cc] reaches end of non-void function BUILD FAILED/home/globus/Axis/ws-axis/build.xml:245: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build.xml:236: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build.xml:124: The following error occurred while executing this line:/home/globus/Axis/ws-axis/build/buildApache20Module.xml:21: g++ failed with return code 1 Total time: 2 minutes 21 seconds Can anybody tell me, do i need to modify any part of the build.xml. Thanks in advance, Murali Krishna K
Multiple MTOM Attachments
I found there is a fix for multiple mtom attachments problem, the fix number is AXIS2-752. Can any one tell me how to get the fix? Thanks. Yewen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
transport support
Hi all, I am new to AXIS and web service in general. I have a few basic questions: Does AXIS support protocls other than SOAP? For example,raw XML and MIME. Does AXIS support transport other than HTTP? For example, SMTP, TCP and JMS. We have built a web service based on SOAP/HTTP, but looking to support other protocols/Transports. If there are some examples or documents/apis, that would be great! Thanks much. Frank __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multiple MTOM Attachments
Try the Axis2 nightly builds.. http://people.apache.org/dist/axis2/nightly/ ~Thilina On 9/13/06, axis2e168 jose [EMAIL PROTECTED] wrote: I found there is a fix for multiple mtom attachments problem, the fix number is AXIS2-752. Can any one tell me how to get the fix? Thanks. Yewen __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- May the SourcE be with u http://webservices.apache.org/~thilina/ http://thilinag.blogspot.com/ http://www.bloglines.com/blog/Thilina - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Getting the samples to work
Hello, I tried to deploy the MyService.aar file from the axis2\samples\userguide folder to axis2 using the upload services tool, but when I try to access the wsdl description I get error descriptionUnable to generate WSDL for this service/description − reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error what am I doing wrong ? regards Christoph Raupach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Client .net using WSE to access Secure Web Service implemeted using Axis 1.4
Hi Jose, I am trying the reverse. Have you done that? Regards, Xinjun On 9/12/06, José Ferreiro [EMAIL PROTECTED] wrote: Hello,Does/Did anyone program/ed a .net client using WSE to access a secure web service done with Axis 1.4?If you have a link with some example, or some related help, it will be great!I appreciate your help I wish you a nice day.Thank you for your help. José Ferreiro
Re: Client .net using WSE to access Secure Web Service implemeted using Axis 1.4
Life is funny!No I didn't try but the problem is similar.We should be able to build up soap messages that both understand (Axis and .Net) with the correct headers and right mappings.Have a nice day. José FerreiroOn 9/13/06, Xinjun Chen [EMAIL PROTECTED] wrote: Hi Jose, I am trying the reverse. Have you done that? Regards, Xinjun On 9/12/06, José Ferreiro [EMAIL PROTECTED] wrote: Hello,Does/Did anyone program/ed a .net client using WSE to access a secure web service done with Axis 1.4?If you have a link with some example, or some related help, it will be great!I appreciate your help I wish you a nice day.Thank you for your help. José Ferreiro -- José FerreiroEPFL Communication Systems engineering.sys.com.dipl.EPFL
Re: transport support
http://ws.apache.org/axis2/ Frank Zhou wrote: Hi all, I am new to AXIS and web service in general. I have a few basic questions: Does AXIS support protocls other than SOAP? For example,raw XML and MIME. Programming Model * Improved, XML-centric client API including full WSDL and policy support * Support for any message exchange pattern * Synchronous and asynchronous calls * Archived service deployment model * Archived module deployment model supporting controlled extensibility with versioning support * Hot deployment * WS-Policy driven code generation extensions * Flexible service lifecyle model * Support for querying service's WSDL (using ?wsdl), schema (using ?xsd) and policies (using ?policy) Does AXIS support transport other than HTTP? For example, SMTP, TCP and JMS. Transports * HTTP * SMTP * JMS * TCP We have built a web service based on SOAP/HTTP, but looking to support other protocols/Transports. If there are some examples or documents/apis, that would be great! http://ws.apache.org/axis2/1_0/userguide.html The examples are included into the bin distribution http://people.apache.org/dist/axis2/nightly/ Thanks much. Frank Michele __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.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: Getting the samples to work
pls have a look at the following faq http://www.wso2.net/kb/104 Christoph Raupach wrote: Hello, I tried to deploy the MyService.aar file from the axis2\samples\userguide folder to axis2 using the upload services tool, but when I try to access the wsdl description I get error descriptionUnable to generate WSDL for this service/description − reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error what am I doing wrong ? regards Christoph Raupach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (瑞星提示-此邮件可能是垃圾邮件)Re: Getting the samples to work
Deepal Jayasinghe,您好! i got this problem too. it happened some time, but the service still work on === 2006-09-13 17:01:37 您在来信中写道:=== pls have a look at the following faq http://www.wso2.net/kb/104 Christoph Raupach wrote: Hello, I tried to deploy the MyService.aar file from the axis2\samples\userguide folder to axis2 using the upload services tool, but when I try to access the wsdl description I get error descriptionUnable to generate WSDL for this service/description - reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error what am I doing wrong ? regards Christoph Raupach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = = = = = = = = = = = = 致 礼! allen zheng [EMAIL PROTECTED] 2006-09-13
Re: (瑞星提示-此邮件可能是垃圾邮件)Re: Ge tting the samples to work
Ya , it is not a problem for the service , it is just problem of generating wsdl. Thanks Deepal allen zheng wrote: Deepal Jayasinghe,您好! i got this problem too. it happened some time, but the service still work on === 2006-09-13 17:01:37 您在来信中写道:=== pls have a look at the following faq http://www.wso2.net/kb/104 Christoph Raupach wrote: Hello, I tried to deploy the MyService.aar file from the axis2\samples\userguide folder to axis2 using the upload services tool, but when I try to access the wsdl description I get error descriptionUnable to generate WSDL for this service/description - reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error what am I doing wrong ? regards Christoph Raupach - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = = = = = = = = = = = = = = = = = = = = 致 礼! allen zheng [EMAIL PROTECTED] 2006-09-13 -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Parameters in wsdl
Hi, I tried to get the wsdl from a deployed service by typing http://localhost:8080/axis/services/MyService?wsdl but all the parameters of all the methods named in0, in1, in2... How can I get the real name of the parameters? Thank in advance. Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoSuchMethodError while deploying aar file on WebSphere
I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService with one method which takes in a string and sends out a string. The SimpleService.aar deployment works fine on Jboss But I get the following error on WebSphere. Any idea? [9/12/06 11:49:54:478 EDT] 0028 DeploymentEng I Invalid service SimpleService.aar due to java.lang.NoSuchMethodError: javax.wsdl.PortType: method getExtensionAttributes()Ljava/util/Map; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortType( WSDL11ToAxisServiceBuilder.java:738) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(W SDL11ToAxisServiceBuilder.java:412) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil e(ArchiveReader.java:191) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A rchiveReader.java:304) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:513) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList .java:200) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener .java:208) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL istener.java:155) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL istener.java:200) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sche dulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja va:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S cheduler.java:76) at java.util.TimerThread.mainLoop(Timer.java:447) at java.util.TimerThread.run(Timer.java:397) - 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]
[Axis2] Axis and session management tutorial
Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav -- Vaclav _ Sun Certified Programmer for Java 2 Platform gTalk: [EMAIL PROTECTED] cv: http://www.vaclav.kiev.ua/cv http://www.vaclav.kiev.ua http://www.wtg.kiev.ua icq: 196335325 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis and session management tutorial
http://www.developer.com/java/web/article.php/3620661 Michele Vyacheslav Yakovenko wrote: Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Parameters in wsdl
How did you create this service? If you deployed it using the .jws method, you can't change the parameter names. If you used java2wsdl, then you need to make sure that you use a class with debug turned on. I also suggest that you specify that you want style=wrapped and use=literal: -y, --style argument The style of binding in the WSDL, either DOCUMENT, RPC, or WRAPPED. -u, --use argument The use of items in the binding, either LITERAL or ENCODED Anne On 9/13/06, Nguyen Tuan Anh [EMAIL PROTECTED] wrote: Hi, I tried to get the wsdl from a deployed service by typing http://localhost:8080/axis/services/MyService?wsdl but all the parameters of all the methods named in0, in1, in2... How can I get the real name of the parameters? Thank in advance. Tuan - 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: [Axis14] axis and XSD choice - axis wants both elements
Please file a JIRA, including the WSDL, XSD, and WSDD. Thanks. On 9/13/06, Axel Bock [EMAIL PROTECTED] wrote: I do need a wsdd, I am only client side :-) but here it is ... . I was even able to follow the problem to the AXIS-1753 issue in the jira issue tracking system of axis. I might try the patch provided there, but I don't really want to use patched axis files in my project. greetings thanks, axel. == == DEPLOY.wsdd == == !-- Use this file to deploy some handlers/chains and services -- !-- Two ways to do this: -- !-- java org.apache.axis.client.AdminClient deploy.wsdd -- !-- after the axis server is running -- !-- or -- !-- java org.apache.axis.utils.Admin client|server deploy.wsdd -- !-- from the same directory that the Axis engine runs -- deployment xmlns=http://xml.apache.org/axis/wsdd/ xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; !-- Services from CardService WSDL service -- service name=CardServicePort provider=java:RPC style=document use=literal parameter name=wsdlTargetNamespace value= http://ws.gematik.de/schema/conn/card/v1/ parameter name=wsdlServiceElement value=CardService/ parameter name=schemaQualified value= http://ws.gematik.de/schema/conn/common/v1,http://ws.gematik.de/schema/conn/card/v1/ parameter name=wsdlServicePort value=CardServicePort/ parameter name=className value= de.gematik.ws.schema.conn.card.v1.CardServiceBindingImpl/ parameter name=wsdlPortType value=CardServicePortType/ parameter name=typeMappingVersion value= 1.2/ operation name=getCards qname=GetCards returnQName=retNS:GetCardsResponse xmlns:retNS=http://ws.gematik.de/schema/conn/card/v1 returnType=rtns:GetCardsResponse xmlns:rtns=http://ws.gematik.de/schema/conn/card/v1; soapAction= http://ws.gematik.de/schema/conn/card/v1#GetCards; parameter qname=pns:GetCards xmlns:pns=http://ws.gematik.de/schema/conn/card/v1 type=tns:GetCards xmlns:tns=http://ws.gematik.de/schema/conn/card/v1/ /operation operation name=getCardTerminals qname=GetCardTerminals returnQName=retNS:GetCardTerminalsResponse xmlns:retNS= http://ws.gematik.de/schema/conn/card/v1; returnType=rtns:GetCardTerminalsResponse xmlns:rtns= http://ws.gematik.de/schema/conn/card/v1; soapAction=http://ws.gematik.de/schema/conn/card/v1#GetCardTerminals; parameter qname=pns:GetCardTerminals xmlns:pns= http://ws.gematik.de/schema/conn/card/v1; type=tns:GetCardTerminals xmlns:tns=http://ws.gematik.de/schema/conn/card/v1 / /operation operation name=ejectCard qname=EjectCard returnQName=retNS:EjectCardResponse xmlns:retNS= http://ws.gematik.de/schema/conn/card/v1; returnType=rtns:EjectCardResponse xmlns:rtns=http://ws.gematik.de/schema/conn/card/v1; soapAction= http://ws.gematik.de/schema/conn/card/v1#EjectCard; parameter qname=pns:EjectCard xmlns:pns= http://ws.gematik.de/schema/conn/card/v1; type=tns:EjectCard xmlns:tns=http://ws.gematik.de/schema/conn/card/v1/ /operation operation name=verifyPin qname=VerifyPin returnQName=retNS:VerifyPinResponseType xmlns:retNS=http://ws.gematik.de/schema/conn/card/v1 returnType=rtns:VerifyPinResponseType xmlns:rtns=http://ws.gematik.de/schema/conn/card/v1; soapAction= http://ws.gematik.de/schema/conn/card/v1#VerifyPin; parameter qname=pns:VerifyPin xmlns:pns=http://ws.gematik.de/schema/conn/card/v1 type=tns:VerifyPin xmlns:tns=http://ws.gematik.de/schema/conn/card/v1/ /operation operation name=changePin qname=ChangePin returnQName=retNS:ChangePinResponse xmlns:retNS= http://ws.gematik.de/schema/conn/card/v1; returnType=rtns:VerifyPinResponseType xmlns:rtns=http://ws.gematik.de/schema/conn/card/v1 soapAction=http://ws.gematik.de/schema/conn/card/v1#ChangePin; parameter qname=pns:ChangePin xmlns:pns= http://ws.gematik.de/schema/conn/card/v1; type=tns:ChangePin xmlns:tns=http://ws.gematik.de/schema/conn/card/v1 / /operation operation name=unblockPin qname=UnblockPin returnQName=retNS:UnblockPinResponse xmlns:retNS= http://ws.gematik.de/schema/conn/card/v1; returnType=rtns:VerifyPinResponseType xmlns:rtns=http://ws.gematik.de/schema/conn/card/v1; soapAction= http://ws.gematik.de/schema/conn/card/v1#UnblockPin; parameter qname=pns:UnblockPin xmlns:pns= http://ws.gematik.de/schema/conn/card/v1; type=tns:UnblockPin xmlns:tns=http://ws.gematik.de/schema/conn/card/v1/ /operation parameter name=allowedMethods value=changePin getCards ejectCard getCardTerminals unblockPin verifyPin/ typeMapping xmlns:ns=
tutorial
Anyone can send me a axis2 tutorial, causa i dont understood the site tutorial.. tks
Re: WSDL generation
You must use the RPC provider if you want Axis2 to generate your WSDL for you. With that, you want to use a databinding framework, such as ADB or XMLBeans, to do automatic mapping between XML and Java objects. Anne On 9/12/06, Florian Bantner [EMAIL PROTECTED] wrote: Hello list. I'm new to this list and axis2 and in fact im new to webservices, soap tomcat and all java-server stuff. But I'm pretty familiar with web programing, Java and XML. Until now I avoided java server programming due to the tomcat configuration nightmare. And in fact after dealing with it (j2ee)for a few weeks now I can say that the learning curve is as steep as the mount everest. The reason why I'm posting here is that I've searched the web for quiet a long time and read much but didn't find an answer to following (simple?) question: Axis2 has this very nice 'Generate a WSDL automatically' feature wich I'd like to use in my application a lot. It would met my coding style (which was called code-first paradigm in some articles if I recall right) pretty well. It works great for simple examples (echo or that alike) but I can't find a way to make it work with my complex datastructures. By now I'm using the OMElement-style approch which means that I take some skeleton-classes which I got I don't know where and passing the whole xml-thing through to my method and generate the result the hard way beginning with the body-node. My one-method-service has a result very similar to google 'doGoogleSearch's result and in fact my first approach was to build my result like theirs, use their wsdl and then change here a little and there a litte. But now I'd like a quicker way because my one-method-service will become a much-more-method service quickly. The way I'd like to do it (and the documentation suggest it should be possible -- but without telling me how) is: Define some classes for the result, write a service class which only needs to implement the service-methods, return the custom classes as result, deploy it and you have your new webservice. Trivial? So, my only problem is: Every atempt to do so failed as early as at the ?wsld generation. And my question: What requirements are there for a result that the wsdl-generation will work? Best regards and my appologies if this question is explaind everywhere and I was just to stupid to see the answer. Florian -- Florian Bantner fon +49 (0)941 599 854 4 AXON-E interaktive medien fax +49 (0)941 599 854 1 technische Leitung mail [EMAIL PROTECTED] web http://www.axon-e.de gpg public key https://www.axon-e.de/gpg/f.bantner.gpg hash 1191 0C87 D9DB 3217 ABBA 5223 6D74 AB19 5C9D FC49 - 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 OMText to File
Well, I didn't get a reply back, so I posted a JIRA for it. Hope that's ok. I have a patch for it, if you want me to post that also. It sort of cleans up the code there and fixes another bug too with the file caching. Roshan -Original Message- From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] Sent: Tue 9/12/2006 2:28 PM To: axis-user@ws.apache.org Subject: RE: Axis2 OMText to File Ok, maybe I'm not looking at this right, but I think I see a bug in TransportUtils.selectBuilderForMIME(...): Object cacheAttachmentProperty = msgContext .getProperty(Constants.Configuration.CACHE_ATTACHMENTS); String cacheAttachmentString = null; boolean fileCacheForAttachments; if (cacheAttachmentProperty != null) { cacheAttachmentProperty = cacheAttachmentProperty; fileCacheForAttachments = (Constants.VALUE_TRUE .equals(cacheAttachmentString)); The cacheAttachmentString is always going to be null right? Then, the client will never actually cache the attachment in the temp directory if the properties have been set. Right? Am I going crazy? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 12:17 PM To: axis-user@ws.apache.org Subject: Axis2 OMText to File Hi, I am trying to take my OMText element and put the contents in a file, but I keep going OutOfMemory. Here is the server code: OMElement data = fac.createOMElement(mtomSample, omNs); OMElement file = fac.createOMElement(file, omNs); FileDataSource fileDataSource = new FileDataSource( C:/temp/local_cert.txt); DataHandler dataHandler = new DataHandler(fileDataSource); OMText textData = fac.createOMText(dataHandler, true); file.addChild(textData); data.addChild(file); Client code (this goes out of memory): OMText binaryNode = (OMText) _imageElement.getFirstOMChild(); FileOutputStream fileOutputStream = new FileOutputStream(C:/temp/returnFile.txt); binaryNode.serialize(fileOutputStream); Any ideas? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 10:47 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] eager service initialization Its part of the nightlies under the Service.startUp() interface ... just have your service implement it . Robert On 9/12/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, some time ago somebody raised an issue about eager service initialization (i.e. at system startup). Is there any news about it? Thanks, Michele - 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] winmail.dat- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Exception when processing WSDL
Please log a JIRA bug and upload your wsdl. thanks, dims On 9/13/06, Kedar, Shahar [EMAIL PROTECTED] wrote: Hi All, I'm getting the following exception when Axis2 tries to process my WSDL file: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:256) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:513) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:200) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:208) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:155) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:200) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) at java.util.TimerThread.mainLoop(Timer.java:432) at java.util.TimerThread.run(Timer.java:382) Caused by: org.apache.axis2.deployment.DeploymentException: null; nested exception is: java.lang.NullPointerException; nested exception is: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:193) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:242) ... 10 more Caused by: org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:236) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:191) ... 11 more Caused by: java.lang.NullPointerException at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.generateWrapperSchema(WSDL11ToAxisServiceBuilder.java:937) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:195) ... 12 more The WSDL xml is: wsdl:definitions targetNamespace=http://tempuri.org/; - wsdl:types - xsd:schema targetNamespace=http://tempuri.org/; - xsd:element name=ArrayOfItemSummary - xsd:complexType - xsd:sequence xsd:element maxOccurs=unbounded minOccurs=0 name=Items type=ItemSummary/ /xsd:sequence /xsd:complexType /xsd:element - xsd:element name=ItemSummary - xsd:complexType - xsd:sequence xsd:element name=Number type=xsd:string/ xsd:element name=Name type=xsd:string/ xsd:element name=Description type=xsd:string/ /xsd:sequence /xsd:complexType /xsd:element /xsd:schema /wsdl:types - wsdl:message name=GetItemsByTypeSoapOut wsdl:part element=ArrayOfItemSummary name=Items/ /wsdl:message - wsdl:message name=GetItemsByTypeSoapIn wsdl:part name=ItemType type=xsd:string/ /wsdl:message - wsdl:portType name=SabraFood_ItemsGroupPortType - wsdl:operation name=GetItemsByType wsdl:documentationReturns the list of items of a certain type./wsdl:documentation wsdl:input message=GetItemsByTypeSoapIn/ wsdl:output message=GetItemsByTypeSoapOut/ /wsdl:operation - wsdl:operation name=GetItemsTransactionStateful wsdl:documentationReturns the list of all items./wsdl:documentation /wsdl:operation - wsdl:operation name=GetItemsTransaction wsdl:documentationReturns the list of all items./wsdl:documentation /wsdl:operation /wsdl:portType - wsdl:binding name=SabraFood_ItemsGroupSoapBinding type=SabraFood_ItemsGroupPortType soap:binding style=document transport=http://schemas.xmlsoap.org/soap/http/ - wsdl:operation name=GetItemsByType soap:operation soapAction=http://tempuri.org/GetItemsByType/ wsdl:input/ - wsdl:output soap:body use=literal/ /wsdl:output /wsdl:operation - wsdl:operation name=GetItemsTransactionStateful soap:operation soapAction=http://tempuri.org/GetItemsTransactionStateful/ wsdl:input/ - wsdl:output soap:body use=literal/ /wsdl:output
Re: NoSuchMethodError while deploying aar file on WebSphere
David, Please log a JIRA bug with your problem/stack trace against nightly. If we don't know about a problem, we can't fix it. can we? thanks, dims On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService with one method which takes in a string and sends out a string. The SimpleService.aar deployment works fine on Jboss But I get the following error on WebSphere. Any idea? [9/12/06 11:49:54:478 EDT] 0028 DeploymentEng I Invalid service SimpleService.aar due to java.lang.NoSuchMethodError: javax.wsdl.PortType: method getExtensionAttributes()Ljava/util/Map; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortType( WSDL11ToAxisServiceBuilder.java:738) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding(W SDL11ToAxisServiceBuilder.java:412) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFil e(ArchiveReader.java:191) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(A rchiveReader.java:304) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.j ava:513) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList .java:200) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener .java:208) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryL istener.java:155) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryL istener.java:200) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sche dulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.ja va:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(S cheduler.java:76) at java.util.TimerThread.mainLoop(Timer.java:447) at java.util.TimerThread.run(Timer.java:397) - 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] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 OMText to File
please post the patch in JIRA as well. -- dims On 9/13/06, Punnoose, Roshan [EMAIL PROTECTED] wrote: Well, I didn't get a reply back, so I posted a JIRA for it. Hope that's ok. I have a patch for it, if you want me to post that also. It sort of cleans up the code there and fixes another bug too with the file caching. Roshan -Original Message- From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] Sent: Tue 9/12/2006 2:28 PM To: axis-user@ws.apache.org Subject: RE: Axis2 OMText to File Ok, maybe I'm not looking at this right, but I think I see a bug in TransportUtils.selectBuilderForMIME(...): Object cacheAttachmentProperty = msgContext .getProperty(Constants.Configuration.CACHE_ATTACHMENTS); String cacheAttachmentString = null; boolean fileCacheForAttachments; if (cacheAttachmentProperty != null) { cacheAttachmentProperty = cacheAttachmentProperty; fileCacheForAttachments = (Constants.VALUE_TRUE .equals(cacheAttachmentString)); The cacheAttachmentString is always going to be null right? Then, the client will never actually cache the attachment in the temp directory if the properties have been set. Right? Am I going crazy? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Punnoose, Roshan [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 12:17 PM To: axis-user@ws.apache.org Subject: Axis2 OMText to File Hi, I am trying to take my OMText element and put the contents in a file, but I keep going OutOfMemory. Here is the server code: OMElement data = fac.createOMElement(mtomSample, omNs); OMElement file = fac.createOMElement(file, omNs); FileDataSource fileDataSource = new FileDataSource( C:/temp/local_cert.txt); DataHandler dataHandler = new DataHandler(fileDataSource); OMText textData = fac.createOMText(dataHandler, true); file.addChild(textData); data.addChild(file); Client code (this goes out of memory): OMText binaryNode = (OMText) _imageElement.getFirstOMChild(); FileOutputStream fileOutputStream = new FileOutputStream(C:/temp/returnFile.txt); binaryNode.serialize(fileOutputStream); Any ideas? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 10:47 AM To: axis-user@ws.apache.org Subject: Re: [Axis2] eager service initialization Its part of the nightlies under the Service.startUp() interface ... just have your service implement it . Robert On 9/12/06, Michele Mazzucco [EMAIL PROTECTED] wrote: Hi all, some time ago somebody raised an issue about eager service initialization (i.e. at system startup). Is there any news about it? Thanks, Michele - 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] -- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] service client skeleton
I'm currently using Axis 1.4 to generate a client from a WSDL, and I'd like to switch to Axis2. I'm a little confused by the different classes it generates for the client though. With my BookingService wsdl, I currently use the generated BookingServiceLocator to set the endpoint on the fly, and get the facade, then use the facade to send the request. I don't see a locator anywhere in the code generated by Axis2, but I do see a BookingServiceSkeleton, but I can't find any good examples on how to use the generated skeleton. I need to be able to set the endpoint, and call the createBooking method that's on the skeleton, but I don't see how to set the endpoint. There's this example from the docs that seems close to what I want: try { OMElement payload = ClientUtil.getEchoOMElement(); Options options = new Options(); options.setTo(targetEPR); // this sets the location of MyService service ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); OMElement result = sender.sendReceive(payload); System.out.println(result); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }But it leaves out the details like what is ClientUtil, and what is sender that's calling sendRecieve? Does anyone have a good simple example of how to set the endpoint and what to do with the Skeleton? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: NoSuchMethodError while deploying aar file on WebSphere
Sorry, I'm relatively new to using software this bleeding edge (we are using WebSphere after all ;-)) I normally try to post solutions to issues encountered, but allas, I'm late already. How would I go about doing this? I'll have to submit the stack track that Vikas posted as I no longer have my software setup using the nightly build. Dave Ziebol -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 7:51 AM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere David, Please log a JIRA bug with your problem/stack trace against nightly. If we don't know about a problem, we can't fix it. can we? thanks, dims On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService with one method which takes in a string and sends out a string. The SimpleService.aar deployment works fine on Jboss But I get the following error on WebSphere. Any idea? [9/12/06 11:49:54:478 EDT] 0028 DeploymentEng I Invalid service SimpleService.aar due to java.lang.NoSuchMethodError: javax.wsdl.PortType: method getExtensionAttributes()Ljava/util/Map; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortTyp e( WSDL11ToAxisServiceBuilder.java:738) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding (W SDL11ToAxisServiceBuilder.java:412) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServic e( WSDL11ToAxisServiceBuilder.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLF il e(ArchiveReader.java:191) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs (A rchiveReader.java:304) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine .j ava:513) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoLi st .java:200) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListen er .java:208) at org.apache.axis2.deployment.RepositoryListener.checkServices(Repositor yL istener.java:155) at org.apache.axis2.deployment.RepositoryListener.startListener(Repositor yL istener.java:200) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(Sc he dulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask. ja va:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run (S cheduler.java:76) at java.util.TimerThread.mainLoop(Timer.java:447) at java.util.TimerThread.run(Timer.java:397) - 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] Issue with WSDL generated by AXIS2
Thanks a lot. I will try it. -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 12:33 AM To: axis-user@ws.apache.org Subject: Re: [AXIS2] Issue with WSDL generated by AXIS2 Hi Charak; Hi , Please look the following WSDL bindings. Why does AXIS places axis2.war in SOAP end points, where as rest binding is fine. This is happening if you deploy aar files on WebSphere. Can I enforce AXIS2 to not generate WSDL's and read only the WSDL which I supply. Yes , you can do that ; - First put your wsdl into meta-inf directory - Then add the following attribute into services.xml parameter name=useOriginalwsdltrue/parameter wsdl:port name=TestServiceSOAP11port_http binding=ns:TestServiceSOAP11Binding soap:address location=http://208.49.76.165:9080/axis2.war/services/TestService/ /wsdl:port − wsdl:port name=TestServiceSOAP12port_http binding=ns:TestServiceSOAP12Binding soap12:address location=http://208.49.76.165:9080/axis2.war/services/TestService/ /wsdl:port − wsdl:port name=TestServiceHttpport0 binding=ns:TestServiceHttpBinding http:address location=http://208.49.76.165:9080/rest/TestService/ /wsdl:port - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rg.apache.axis2.AxisFault: Axis2 transport error
Hi I got this error when I try to invoke following ws through Axis2. https://www.secpay.com/java-bin/services/SECCardService?wsdlAxis2 version I am using is 1.0Stack trace I got as followsorg.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:223) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:589) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:328) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:279) at com.secpay.pmntgtw.clientstub.SECVPNServiceStub.validateCardFull(SECVPNServiceStub.java:405) at paymenttest.SecPayPaymentMaker.doPayment(SecPayPaymentMaker.java:33) at paymenttest.SecPayPaymentMakerTest.testDoPayment(SecPayPaymentMakerTest.java:12) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Caused by: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented; nested exception is: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:207) ... 21 moreCaused by: org.apache.axis2.AxisFault: Axis2 transport error : Not Implemented at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:117) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:299) ... 22 moreAny one can help ?Thanks and Best RegardsTerr How low will we go? Check out Yahoo! Messengers low PC-to-Phone call rates.
RE: NoSuchMethodError while deploying aar file on WebSphere
Hi , I replaced WSDL4J.jar of websphere with the WSDL4J.jar which came with Axis2 and now the services are getting deployed on websphere. I am not sure if this would affect our websphere warranty/support. I do not have much experience on websphere but another solution could be to configure websphere, where libraries in Axis2 module take precedence over websphere. I tried setting parameter Load parent last for Axis2 module in Admin screen, but that did not help. Issue with invoking services still remains. Interestingly, I am able to call REST version of the services but not SOAP version. Further investigation revealed that the SOAP endpoint in WSDL generated by AXIS2 has /axis2.war/services/testservice instead of just /axis2/services/testservice. REST endpoint is fine. I am still doing some RD , if I find something else I will post it. Good luck to me. Regards, Vikas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:38 AM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Sorry, I'm relatively new to using software this bleeding edge (we are using WebSphere after all ;-)) I normally try to post solutions to issues encountered, but allas, I'm late already. How would I go about doing this? I'll have to submit the stack track that Vikas posted as I no longer have my software setup using the nightly build. Dave Ziebol -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 7:51 AM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere David, Please log a JIRA bug with your problem/stack trace against nightly. If we don't know about a problem, we can't fix it. can we? thanks, dims On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService with one method which takes in a string and sends out a string. The SimpleService.aar deployment works fine on Jboss But I get the following error on WebSphere. Any idea? [9/12/06 11:49:54:478 EDT] 0028 DeploymentEng I Invalid service SimpleService.aar due to java.lang.NoSuchMethodError: javax.wsdl.PortType: method getExtensionAttributes()Ljava/util/Map; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortTyp e( WSDL11ToAxisServiceBuilder.java:738) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding (W SDL11ToAxisServiceBuilder.java:412) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServic e( WSDL11ToAxisServiceBuilder.java:230) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLF il e(ArchiveReader.java:191) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs (A rchiveReader.java:304) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine .j ava:513) at
RE: NoSuchMethodError while deploying aar file on WebSphere
Setup a shared lib and put all the stuff you need in it and reference the lib from you app. WS has a tendancy to have old jars. Setup your appserver to load parentlast so the shared lib gets in first. Just things I've learned trying to get Axis2 in WS. Can you now call you services? Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:27 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi , I replaced WSDL4J.jar of websphere with the WSDL4J.jar which came with Axis2 and now the services are getting deployed on websphere. I am not sure if this would affect our websphere warranty/support. I do not have much experience on websphere but another solution could be to configure websphere, where libraries in Axis2 module take precedence over websphere. I tried setting parameter Load parent last for Axis2 module in Admin screen, but that did not help. Issue with invoking services still remains. Interestingly, I am able to call REST version of the services but not SOAP version. Further investigation revealed that the SOAP endpoint in WSDL generated by AXIS2 has /axis2.war/services/testservice instead of just /axis2/services/testservice. REST endpoint is fine. I am still doing some RD , if I find something else I will post it. Good luck to me. Regards, Vikas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:38 AM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Sorry, I'm relatively new to using software this bleeding edge (we are using WebSphere after all ;-)) I normally try to post solutions to issues encountered, but allas, I'm late already. How would I go about doing this? I'll have to submit the stack track that Vikas posted as I no longer have my software setup using the nightly build. Dave Ziebol -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 7:51 AM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere David, Please log a JIRA bug with your problem/stack trace against nightly. If we don't know about a problem, we can't fix it. can we? thanks, dims On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService with one method which takes in a string and sends out a string. The SimpleService.aar deployment works fine on Jboss But I get the following error on WebSphere. Any idea? [9/12/06 11:49:54:478 EDT] 0028 DeploymentEng I Invalid service SimpleService.aar due to java.lang.NoSuchMethodError: javax.wsdl.PortType: method getExtensionAttributes()Ljava/util/Map; not found at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processPortTyp e( WSDL11ToAxisServiceBuilder.java:738) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.processBinding (W
RE: NoSuchMethodError while deploying aar file on WebSphere
Thanks Devid. I will try that. I will soon be working again on invoking services. I will let you know as soon as I achieve that. Yesterday, I was able to call REST version of the services. Another interesting thing is that I have setup a handler in Axis2 to trap the call and the call is going to my handler but after that when the call goes to invoke the service, I get Service not found exception. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:31 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Setup a shared lib and put all the stuff you need in it and reference the lib from you app. WS has a tendancy to have old jars. Setup your appserver to load parentlast so the shared lib gets in first. Just things I've learned trying to get Axis2 in WS. Can you now call you services? Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:27 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi , I replaced WSDL4J.jar of websphere with the WSDL4J.jar which came with Axis2 and now the services are getting deployed on websphere. I am not sure if this would affect our websphere warranty/support. I do not have much experience on websphere but another solution could be to configure websphere, where libraries in Axis2 module take precedence over websphere. I tried setting parameter Load parent last for Axis2 module in Admin screen, but that did not help. Issue with invoking services still remains. Interestingly, I am able to call REST version of the services but not SOAP version. Further investigation revealed that the SOAP endpoint in WSDL generated by AXIS2 has /axis2.war/services/testservice instead of just /axis2/services/testservice. REST endpoint is fine. I am still doing some RD , if I find something else I will post it. Good luck to me. Regards, Vikas -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:38 AM To: axis-user@ws.apache.org; [EMAIL PROTECTED] Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Sorry, I'm relatively new to using software this bleeding edge (we are using WebSphere after all ;-)) I normally try to post solutions to issues encountered, but allas, I'm late already. How would I go about doing this? I'll have to submit the stack track that Vikas posted as I no longer have my software setup using the nightly build. Dave Ziebol -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 7:51 AM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere David, Please log a JIRA bug with your problem/stack trace against nightly. If we don't know about a problem, we can't fix it. can we? thanks, dims On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I ran out of time to explore this issue, but Even though docs on the web note how WebSphere unpacks prior to use... In reality, WS6 doesn't unpack aar files. So the axis2 war file is unpacked but the services are not. You can see this by looking in the services area; the aars are there and they aren't represented as folders. You could try to place the service (in unpacked form) into the \services area. Many places won't allow a move out of dev like this, but at least you could determine if this is the issue. Sorry I couldn't be more helpful, as noted before, good luck, please post your outcome back to the mail list so others can benefit from your experiment. I'm currently trying to roll back to the ver1.0 release, and it has not been fun! Good luck Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 3:42 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi Dave, Although the services are getting deployed now but when I invoke the service I still get Service not found operation terminated !! error on websphere . Any Idea? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 1:26 PM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere You are using the websphere version of wsdl4j.jar rather then one of the newer versions that are required by Axis2. Just been down that path with nightly builds, to circumvent the websphere issue with not really unpacking aar files. Good luck! Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 12, 2006 11:19 AM To: axis-user@ws.apache.org Subject: NoSuchMethodError while deploying aar file on WebSphere Hi , I have created a SimpleService
Re[2]: [Axis2] Axis and session management tutorial
Hello, Michele. MM http://www.developer.com/java/web/article.php/3620661 MM Michele MM Vyacheslav Yakovenko wrote: Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Do you have a test source code with using session management in Axis2, send me, please. Thanks. -- WBR, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
OMException when calling web-service
Hi, I successfully deployed the .aar file after generating the classes with the command WSDL2Java -uri baggis.wsdl -pn PortalSoap -ss -sd -d xmlbeans -o .. g. But, I get an error message when calling my web-service. I couldnt find anything about this issue at google, has anybody seen that message before? Servlet.service() for servlet AxisServlet threw exception org.apache.axiom.om.OMException at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76) at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:599) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at
Re: [Axis2] Axis and session management tutorial
hmmm.., I'm sorry, but I'm using services in application scope. Maybe the following links could help: http://www-128.ibm.com/developerworks/edu/os-dw-os-ag-onbank1.html http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank2.html http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank3.html Regards, Michele Sergey GMAIL wrote: Hello, Michele. MM http://www.developer.com/java/web/article.php/3620661 MM Michele MM Vyacheslav Yakovenko wrote: Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Do you have a test source code with using session management in Axis2, send me, please. Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: [Axis2] Axis and session management tutorial
Hello, Michele. MM hmmm.., I'm sorry, but I'm using services in application scope. MM Maybe the following links could help: MM http://www-128.ibm.com/developerworks/edu/os-dw-os-ag-onbank1.html MM http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank2.html MM http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank3.html MM Regards, MM Michele MM Sergey GMAIL wrote: Hello, Michele. MM http://www.developer.com/java/web/article.php/3620661 MM Michele MM Vyacheslav Yakovenko wrote: Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Do you have a test source code with using session management in Axis2, send me, please. Thanks. MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Thanks. -- WBR, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] AXIOM XmlStreamReader
I have an XmlStreamReader and I want to get the OMElement from it and add it to another OMElement. However, since I am using the StAXOMBuilder, it always returns the XmlStreamReader contents as a OMElementImpl, and I can't add an OMElementImpl to another OMElementImpl. Is there anyway to get the XmlStreamReader as an OMNodeImpl instead? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Sergey GMAIL [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 11:55 AM To: Michele Mazzucco Subject: Re[2]: [Axis2] Axis and session management tutorial Hello, Michele. MM hmmm.., I'm sorry, but I'm using services in application scope. MM Maybe the following links could help: MM http://www-128.ibm.com/developerworks/edu/os-dw-os-ag-onbank1.html MM http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank2.html MM http://www.ibm.com/developerworks/edu/os-dw-os-ag-onbank3.html MM Regards, MM Michele MM Sergey GMAIL wrote: Hello, Michele. MM http://www.developer.com/java/web/article.php/3620661 MM Michele MM Vyacheslav Yakovenko wrote: Hi All! I'm interesting how can I organize a session management in Axis2? For example I need to receive a SESSIONID from container after successful user login store it in somewhere and check it during ws-calls. Can anybody recommend any good tutorial about this subject? Any hints will be helpful too. Thanks, Vaclav MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Do you have a test source code with using session management in Axis2, send me, please. Thanks. MM - MM To unsubscribe, e-mail: [EMAIL PROTECTED] MM For additional commands, e-mail: [EMAIL PROTECTED] Thanks. -- WBR, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 and Soap Header and Skeleton
Hello! I have the next wsdl: .. message name=requestHeader part name=requestHeader element=ns2:loginContext/ /message message name=responseHeader part name=responseHeader element=ns2:loginContext/ /message operation name=add input soap:header message=tns:requestHeader part=requestHeader use=literal/ soap:body use=literal/soap:body /input output soap:header message=tns:responseHeader part=responseHeader use=literal/ soap:body use=literal/soap:body /output /operation .. After generation, using WSDL2Java from Axis2 I get code which have loginContext in the client Stub class and in the server MessageReceiverInOut class. How get loginContext in the Skeleton? -- WBR, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Axis2 and Soap Header and Skeleton
You'll have to change your method signature to pass in the appropriate parameter(s), then change the call in your *MessageReceiver* class invokeBusinessLogic() method to pass these in. To get a reference to your element, you need to get the appropriate OMElement from your incoming MessageContext, which is the first child of your SOAP body: messageContext.getEnvelope().getBody()...etc. If you are not using recent nightly builds, I suggest doing so because of lot of the code handling this has been improved in the last week or so. -Original Message- From: Sergey GMAIL [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:10 AM To: axis-user@ws.apache.org Subject: Axis2 and Soap Header and Skeleton Hello! I have the next wsdl: .. message name=requestHeader part name=requestHeader element=ns2:loginContext/ /message message name=responseHeader part name=responseHeader element=ns2:loginContext/ /message operation name=add input soap:header message=tns:requestHeader part=requestHeader use=literal/ soap:body use=literal/soap:body /input output soap:header message=tns:responseHeader part=responseHeader use=literal/ soap:body use=literal/soap:body /output /operation .. After generation, using WSDL2Java from Axis2 I get code which have loginContext in the client Stub class and in the server MessageReceiverInOut class. How get loginContext in the Skeleton? -- WBR, Sergey mailto:[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: NoSuchMethodError while deploying aar file on WebSphere
Derek, Did you set the soap action to getMemoryStatus? try that, the alternative is to specify the method name in the EPR itself like you did for REST. thanks, dims On 9/13/06, VanKooten, Derek [EMAIL PROTECTED] wrote: I seem to be having the same problem. I wrote a service that worked fine on the 1.0 release. I then read that the nightly builds had a eager initialization feature. So, I tried getting a nightly build and using the same aar file from before. I get the error Sep 13, 2006 11:20:52 AM org.apache.axis2.engine.AxisEngine receiveFault INFO: Received Error Message with id urn:uuid:9EF9037ADD59CB7B7D11581608519631 org.apache.axis2.AxisFault: Service not found operation terminated !! at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:298) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:473) at com.bealls.services.personalization.PersonalizationService.main(PersonalizationService.java:53) I have tried replacing the wsdl4j.jar in lib of webshpere 6.0 with the one that comes with axis2 nightly build. I have created a shared lib, added it to the class loader for the app server, and set the class loader to have Parent Last The class path for my shared lib is: C:\Projects\axis2\WEB-INF\lib\activation-1.1.jar;C:\Projects\axis2\WEB-INF\lib\annogen-0.1.0.jar;C:\Projects\axis2\WEB-INF\lib\axiom-api-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axiom-dom-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axiom-impl-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-adb-codegen-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-adb-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-codegen-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-java2wsdl-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-jaxbri-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-jibx-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-kernel-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-soapmonitor-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-xmlbeans-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\backport-util-concurrent-2.1.jar;C:\Projects\axis2\WEB-INF\lib\commons-codec-1.3.jar;C:\Projects\axis2\WEB-INF\lib\commons-fileupload-1.0.jar;C:\Projects\axis2\WEB-INF\lib\commons-httpclient-3.0.jar;C:\Projects\axis2\WEB-INF\lib\commons-logging-1.1.jar;C:\Projects\axis2\WEB-INF\lib\geronimo-spec-jms-1.1-rc4.jar;C:\Projects\axis2\WEB-INF\lib\jaxen-1.1-beta-9.jar;C:\Projects\axis2\WEB-INF\lib\jibx-run-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\mail-1.4.jar;C:\Projects\axis2\WEB-INF\lib\neethi-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\stax-api-1.0.1.jar;C:\Projects\axis2\WEB-INF\lib\woden-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\wsdl4j-1.5.2.jar;C:\Projects\axis2\WEB-INF\lib\wstx-asl-3.0.0.jar;C:\Projects\axis2\WEB-INF\lib\xalan-2.7.0.jar;C:\Projects\axis2\WEB-INF\lib\xbean-2.1.0.jar;C:\Projects\axis2\WEB-INF\lib\xercesImpl-2.7.1.jar;C:\Projects\axis2\WEB-INF\lib\xml-apis-1.3.03.jar;C:\Projects\axis2\WEB-INF\lib\XmlSchema-SNAPSHOT.jar The REST version seems to work fine. http://localhost:9080/PersonalizationEngine/rest/PersonalizationServices/getMemoryStatus Just trying to use the epr it gives me doesn't seem to work. http://localhost:9080/PersonalizationEngine/services/PersonalizationServices I've only been playing with axis2 for a couple of days now, so, am at a loss as to what I could do to try to troubleshoot this other than start to look at the source code. Any help would be greatly appreciated. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:31 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Setup a shared lib and put all the stuff you need in it and reference the lib from you app. WS has a tendancy to have old jars. Setup your appserver to load parentlast so the shared lib gets in first. Just things I've learned trying to get Axis2 in WS. Can you now call you services? Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:27 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi , I replaced WSDL4J.jar of websphere with the WSDL4J.jar which came with Axis2 and now the services are getting deployed on websphere. I am not sure if this would affect our websphere warranty/support. I do not have much experience on websphere but another solution could be to configure websphere, where libraries in Axis2 module take precedence over websphere. I tried setting parameter Load parent last for Axis2 module in Admin screen, but that did not help. Issue with invoking services still remains. Interestingly, I am able to call REST version of the services but not SOAP version.
RE: NoSuchMethodError while deploying aar file on WebSphere
Hi Dims, Do you mean Options.setAction(methodName)? -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:35 PM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere Derek, Did you set the soap action to getMemoryStatus? try that, the alternative is to specify the method name in the EPR itself like you did for REST. thanks, dims On 9/13/06, VanKooten, Derek [EMAIL PROTECTED] wrote: I seem to be having the same problem. I wrote a service that worked fine on the 1.0 release. I then read that the nightly builds had a eager initialization feature. So, I tried getting a nightly build and using the same aar file from before. I get the error Sep 13, 2006 11:20:52 AM org.apache.axis2.engine.AxisEngine receiveFault INFO: Received Error Message with id urn:uuid:9EF9037ADD59CB7B7D11581608519631 org.apache.axis2.AxisFault: Service not found operation terminated !! at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:298) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539 ) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:473 ) at com.bealls.services.personalization.PersonalizationService.main(Personal izationService.java:53) I have tried replacing the wsdl4j.jar in lib of webshpere 6.0 with the one that comes with axis2 nightly build. I have created a shared lib, added it to the class loader for the app server, and set the class loader to have Parent Last The class path for my shared lib is: C:\Projects\axis2\WEB-INF\lib\activation-1.1.jar;C:\Projects\axis2\WEB-I NF\lib\annogen-0.1.0.jar;C:\Projects\axis2\WEB-INF\lib\axiom-api-SNAPSHO T.jar;C:\Projects\axis2\WEB-INF\lib\axiom-dom-SNAPSHOT.jar;C:\Projects\a xis2\WEB-INF\lib\axiom-impl-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\a xis2-adb-codegen-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-adb-SN APSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-codegen-SNAPSHOT.jar;C:\P rojects\axis2\WEB-INF\lib\axis2-java2wsdl-SNAPSHOT.jar;C:\Projects\axis2 \WEB-INF\lib\axis2-jaxbri-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axi s2-jibx-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-kernel-SNAPSHOT .jar;C:\Projects\axis2\WEB-INF\lib\axis2-soapmonitor-SNAPSHOT.jar;C:\Pro jects\axis2\WEB-INF\lib\axis2-xmlbeans-SNAPSHOT.jar;C:\Projects\axis2\WE B-INF\lib\backport-util-concurrent-2.1.jar;C:\Projects\axis2\WEB-INF\lib \commons-codec-1.3.jar;C:\Projects\axis2\WEB-INF\lib\commons-fileupload- 1.0.jar;C:\Projects\axis2\WEB-INF\lib\commons-httpclient-3.0.jar;C:\Proj ects\axis2\WEB-INF\lib\commons-logging-1.1.jar;C:\Projects\axis2\WEB-INF \lib\geronimo-spec-jms-1.1-rc4.jar;C:\Projects\axis2\WEB-INF\lib\jaxen-1 .1-beta-9.jar;C:\Projects\axis2\WEB-INF\lib\jibx-run-SNAPSHOT.jar;C:\Pro jects\axis2\WEB-INF\lib\mail-1.4.jar;C:\Projects\axis2\WEB-INF\lib\neeth i-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\stax-api-1.0.1.jar;C:\Proje cts\axis2\WEB-INF\lib\woden-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\w sdl4j-1.5.2.jar;C:\Projects\axis2\WEB-INF\lib\wstx-asl-3.0.0.jar;C:\Proj ects\axis2\WEB-INF\lib\xalan-2.7.0.jar;C:\Projects\axis2\WEB-INF\lib\xbe an-2.1.0.jar;C:\Projects\axis2\WEB-INF\lib\xercesImpl-2.7.1.jar;C:\Proje cts\axis2\WEB-INF\lib\xml-apis-1.3.03.jar;C:\Projects\axis2\WEB-INF\lib\ XmlSchema-SNAPSHOT.jar The REST version seems to work fine. http://localhost:9080/PersonalizationEngine/rest/PersonalizationServices /getMemoryStatus Just trying to use the epr it gives me doesn't seem to work. http://localhost:9080/PersonalizationEngine/services/PersonalizationServ ices I've only been playing with axis2 for a couple of days now, so, am at a loss as to what I could do to try to troubleshoot this other than start to look at the source code. Any help would be greatly appreciated. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 10:31 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Setup a shared lib and put all the stuff you need in it and reference the lib from you app. WS has a tendancy to have old jars. Setup your appserver to load parentlast so the shared lib gets in first. Just things I've learned trying to get Axis2 in WS. Can you now call you services? Dave Ziebol -Original Message- From: Charak, Vikas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:27 AM To: axis-user@ws.apache.org Subject: RE: NoSuchMethodError while deploying aar file on WebSphere Hi , I replaced WSDL4J.jar of websphere with the WSDL4J.jar which came with Axis2 and now the services are getting deployed on websphere. I am not sure if this would affect our websphere warranty/support. I do not have much experience on
RE: NoSuchMethodError while deploying aar file on WebSphere
Dims, I did printout of Context information (by adding a handler) on Server Side while trying to invoke version service .See below, I am not sure if this is helpful. With REST call: -- {CHARACTER_SET_ENCODING=UTF-8, ContentType=text/xml; charset=UTF-8, ContainerManaged=true, [EMAIL PROTECTED] e0a784, RUNNING_PORT=9080, HTTP_METHOD=POST, REMOTE_ADDR=127.0.0.1, TRANSPORT_HEADERS={com.ibm.websphere.servlet.uri_non_decoded=/axis2/rest /version}, transport.http.servletContext=com.ibm.ws.webcontainer.facade.ServletCont [EMAIL PROTECTED], OutTransportInfo=org.apache.axis2.transport.http.ServletBasedOutTranspor [EMAIL PROTECTED], transport.http.servletRequest=com.ibm.ws.webcontainer.srt.SRTServletRequ [EMAIL PROTECTED] With SOAP Call : -- {CHARACTER_SET_ENCODING=UTF-8, ContainerManaged=true, [EMAIL PROTECTED] e0a784, RUNNING_PORT=9080, REMOTE_ADDR=127.0.0.1, [EMAIL PROTECTED] 780, SessionId=kDNd1dhqpFWd9G-n_eWW5s1, transport.http.servletContext=com.ibm.ws.webcontainer.facade.ServletCont [EMAIL PROTECTED], OutTransportInfo=org.apache.axis2.transport.http.ServletBasedOutTranspor [EMAIL PROTECTED], TransportInURL=http://127.0.0.1:9080/axis2/services/version, transport.http.servletRequest=com.ibm.ws.webcontainer.srt.SRTServletRequ [EMAIL PROTECTED] -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:35 PM To: axis-user@ws.apache.org Subject: Re: NoSuchMethodError while deploying aar file on WebSphere Derek, Did you set the soap action to getMemoryStatus? try that, the alternative is to specify the method name in the EPR itself like you did for REST. thanks, dims On 9/13/06, VanKooten, Derek [EMAIL PROTECTED] wrote: I seem to be having the same problem. I wrote a service that worked fine on the 1.0 release. I then read that the nightly builds had a eager initialization feature. So, I tried getting a nightly build and using the same aar file from before. I get the error Sep 13, 2006 11:20:52 AM org.apache.axis2.engine.AxisEngine receiveFault INFO: Received Error Message with id urn:uuid:9EF9037ADD59CB7B7D11581608519631 org.apache.axis2.AxisFault: Service not found operation terminated !! at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisO peration.java:298) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:539 ) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:473 ) at com.bealls.services.personalization.PersonalizationService.main(Personal izationService.java:53) I have tried replacing the wsdl4j.jar in lib of webshpere 6.0 with the one that comes with axis2 nightly build. I have created a shared lib, added it to the class loader for the app server, and set the class loader to have Parent Last The class path for my shared lib is: C:\Projects\axis2\WEB-INF\lib\activation-1.1.jar;C:\Projects\axis2\WEB-I NF\lib\annogen-0.1.0.jar;C:\Projects\axis2\WEB-INF\lib\axiom-api-SNAPSHO T.jar;C:\Projects\axis2\WEB-INF\lib\axiom-dom-SNAPSHOT.jar;C:\Projects\a xis2\WEB-INF\lib\axiom-impl-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\a xis2-adb-codegen-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-adb-SN APSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-codegen-SNAPSHOT.jar;C:\P rojects\axis2\WEB-INF\lib\axis2-java2wsdl-SNAPSHOT.jar;C:\Projects\axis2 \WEB-INF\lib\axis2-jaxbri-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axi s2-jibx-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\axis2-kernel-SNAPSHOT .jar;C:\Projects\axis2\WEB-INF\lib\axis2-soapmonitor-SNAPSHOT.jar;C:\Pro jects\axis2\WEB-INF\lib\axis2-xmlbeans-SNAPSHOT.jar;C:\Projects\axis2\WE B-INF\lib\backport-util-concurrent-2.1.jar;C:\Projects\axis2\WEB-INF\lib \commons-codec-1.3.jar;C:\Projects\axis2\WEB-INF\lib\commons-fileupload- 1.0.jar;C:\Projects\axis2\WEB-INF\lib\commons-httpclient-3.0.jar;C:\Proj ects\axis2\WEB-INF\lib\commons-logging-1.1.jar;C:\Projects\axis2\WEB-INF \lib\geronimo-spec-jms-1.1-rc4.jar;C:\Projects\axis2\WEB-INF\lib\jaxen-1 .1-beta-9.jar;C:\Projects\axis2\WEB-INF\lib\jibx-run-SNAPSHOT.jar;C:\Pro jects\axis2\WEB-INF\lib\mail-1.4.jar;C:\Projects\axis2\WEB-INF\lib\neeth i-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\stax-api-1.0.1.jar;C:\Proje cts\axis2\WEB-INF\lib\woden-SNAPSHOT.jar;C:\Projects\axis2\WEB-INF\lib\w sdl4j-1.5.2.jar;C:\Projects\axis2\WEB-INF\lib\wstx-asl-3.0.0.jar;C:\Proj ects\axis2\WEB-INF\lib\xalan-2.7.0.jar;C:\Projects\axis2\WEB-INF\lib\xbe an-2.1.0.jar;C:\Projects\axis2\WEB-INF\lib\xercesImpl-2.7.1.jar;C:\Proje cts\axis2\WEB-INF\lib\xml-apis-1.3.03.jar;C:\Projects\axis2\WEB-INF\lib\ XmlSchema-SNAPSHOT.jar The REST version seems to work fine. http://localhost:9080/PersonalizationEngine/rest/PersonalizationServices /getMemoryStatus Just trying to use the epr it gives me doesn't seem to work. http://localhost:9080/PersonalizationEngine/services/PersonalizationServ ices I've only been playing
Re: [Axis2] AXIOM XmlStreamReader
Punnoose, Roshan wrote: I have an XmlStreamReader and I want to get the OMElement from it and add it to another OMElement. However, since I am using the StAXOMBuilder, it always returns the XmlStreamReader contents as a OMElementImpl, and I can't add an OMElementImpl to another OMElementImpl. Is there anyway to get the XmlStreamReader as an OMNodeImpl instead? Seems you have a slight misunderstanding. You should never see OMElementImpl and/or OMNodeImpl classes and you should always work with the factory and AXIOM api. IIUC, you want to create an OMElement out of an XMLStreamReader and the created OMElement to another OMElement. Here is how you can do it. OMElement myOMElement = new StAXOMBuilder(xmlStreamReaderInstance).getDocumentElement(); parentElement.addChild(myOMElement); HTH. -- Chinthaka signature.asc Description: OpenPGP digital signature
Axis adding namespace to the soapbody elements
Hello all, I appreciate if someone can help me on this and my apologies if it's been asked and answered before. I was wondering why Axis is adding a namespace to the elements in the soap body. The soapbody element is created from a Document created by JAXB. I believe since elementFromDefault=qualified is set in the schema, JAXB adds the default namespace (the same as target namespace) to the element. But then later, Call.invoke(SOAPBodyElement[]) adds another namespace. Example: Before calling Call.invoke(SOAPBodyElement[]): == soapenv:Body notify xmlns=http://www.osg.ca/Repair; Timestamp2006-07-22T03:13:34.000Z/Timestamp ... /notify /soapenv:Body What Call.invoke(SOAPBodyElement[]) is sending to the endpoint == soapenv:Body ns1:notify xmlns:ns1=http://www.osg.ca/Repair; xmlns=http://www.osg.ca/Repair; ns1:Timestamp2006-07-22T03:13:34.000Z/ns1:Timestamp ... /ns1:notify /soapenv:Body The fact is it passes our schema validation but fails at the endpoint. Thanks, Seyed Bostandoustnik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] AXIOM XmlStreamReader
Thanks, I thought that's what I did, and I kept getting a Elemetn already has a DocumentElement error. Weird. But thanks, the explanation makes perfect sense. Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 1:09 PM To: axis-user@ws.apache.org Subject: Re: [Axis2] AXIOM XmlStreamReader Punnoose, Roshan wrote: I have an XmlStreamReader and I want to get the OMElement from it and add it to another OMElement. However, since I am using the StAXOMBuilder, it always returns the XmlStreamReader contents as a OMElementImpl, and I can't add an OMElementImpl to another OMElementImpl. Is there anyway to get the XmlStreamReader as an OMNodeImpl instead? Seems you have a slight misunderstanding. You should never see OMElementImpl and/or OMNodeImpl classes and you should always work with the factory and AXIOM api. IIUC, you want to create an OMElement out of an XMLStreamReader and the created OMElement to another OMElement. Here is how you can do it. OMElement myOMElement = new StAXOMBuilder(xmlStreamReaderInstance).getDocumentElement(); parentElement.addChild(myOMElement); HTH. -- Chinthaka BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
javax.xml.stream.XMLStreamException
Title: javax.xml.stream.XMLStreamException I am trying to compile examples under samples/userguide directory of the axis distribution. I am getting compile errors for the : javax.xml.stream.XMLStreamException I have Java SE installed on my machine and StAX doesn't seem to come with the standard edition. I don't really want to install the enterprise adition if I don't need to. Does anyone know which jar file exactly contains the javax.xml.stream.XMLStreamException ? And where download it from ? Thanks, Gul
axis2 examples
Trying to deploy the sample aar files in the axis2 distribution's userguide MyService.aar MyServiceWithModule.aar WsaMappingService.aar build.xml groovyService.aar sample.jar I am using tomcat. After uploaded these aar files, I checked services. MyServiceWithModule was listed as Faulty, others were listed as Available. But these services all had an erroneous wsdl like below: error descriptionUnable to generate WSDL for this service/description − reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error Where can I find full readily runnable examples? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2]
Hi as per the sample service dd below I can have an actionMapping element for my operation in the dd. Now can I map multiple actions to one operation. like multiple actionMapping elements for one operation element in the service dd. I guess a schema for the service xml would have been good eneough to figure that out - but I am not sure if there is one. thanks Anamitra service description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ actionMappingurn:ping/actionMapping /operation /service - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 - compile error with generated stub
I get a lot of errors with the Stub that Axis2 generated. I get a lot of these: [javac] /export/home/jvitrone/trunk/starwood/reservation/classes/com/starwood/valhalla/booking/BookingServiceStub.java:33346: no interface expected here [javac] public static class RateDTO extends org.apache.axiom.om.OMElement And at that line, this code was generated: [33346]public static class RateDTO extends org.apache.axiom.om.OMElement [33347]implements org.apache.axis2.databinding.ADBBean{ Does anyone know what's going on? If i use xmlbeans, I don't get these errors, but I'd rather use adb. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis using more than 256MB for a 9MB file
Hello: I have a web service deployed using Axis 1.4 In that service, I have a method that accepts a String containing an XML document. When I try to upload a 9MB XML file into my service, Axis seems to be taking up a HUGE amount of memory. If I set the JVM to 256MB of heap, it runs out of memory and throws an OutOfMemoryException. If I set the JVM to 512MB of heap, I get the file just fine. The problem occurs *before* my web service method is even invoked. The service is running on Tomcat on Windows. Any ideas why Axis would consume so much memory? Thanks, Neil -- Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] NonBlocking Client
Hi, I have a non-blocking client with the callback on a separate listener. Is there anyway that I can keep that callback open even after the response, while the server will be able to send more responses back to the same callback? Then close it on the client side after I receive what I want from the server? Roshan Punnoose Phone: 301-497-6039 -Original Message- From: Neil Aggarwal [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 5:43 PM To: axis-user@ws.apache.org Subject: Axis using more than 256MB for a 9MB file Hello: I have a web service deployed using Axis 1.4 In that service, I have a method that accepts a String containing an XML document. When I try to upload a 9MB XML file into my service, Axis seems to be taking up a HUGE amount of memory. If I set the JVM to 256MB of heap, it runs out of memory and throws an OutOfMemoryException. If I set the JVM to 512MB of heap, I get the file just fine. The problem occurs *before* my web service method is even invoked. The service is running on Tomcat on Windows. Any ideas why Axis would consume so much memory? Thanks, Neil -- Neil Aggarwal, (214)986-3533, www.JAMMConsulting.com FREE! Eliminate junk email and reclaim your inbox. Visit http://www.spammilter.com for details. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] BEGIN:VCARD VERSION:2.1 N:Punnoose;Roshan FN:Punnoose, Roshan ADR;WORK:;2115 LABEL;WORK:2115 EMAIL;PREF;INTERNET:[EMAIL PROTECTED] REV:20050413T183207Z END:VCARD - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axsi2] multiple soapactions mapping to a single operation?
Hi as per the sample service dd below I can have an actionMapping element for my operation in the dd. Now can I map multiple actions to one operation. like multiple actionMapping elements for one operation element in the service dd. I guess a schema for the service xml would have been good eneough to figure that out - but I am not sure if there is one. thanks Anamitra service description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ actionMappingurn:ping/actionMapping /operation /service - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Java for a wsdl file with multiple porttypes
Title: WSDL2Java for a wsdl file with multiple porttypes How do I use WSDL2Java to generate code for a wsdl file with multiple portTypes in it? Both eclipse plug-in and command line versions of the WSDL2Java tool seem to generate code for only one of the port types in my wsdl. I don't see how I generate code for all the port types in my wsdl file. Thanks, Gul
RE: WSDL2Java for a wsdl file with multiple porttypes
Title: WSDL2Java for a wsdl file with multiple porttypes I have also tried invoking the wsdl2java with -pn option to see what it does for a wsdl file with multiple portTypes. But got the following exception. Any suggestions ? Gul D:\axis2-std-1.0-bin\binWSDL2Java.bat -uriwsdl location -ooutput -ppackage_name -ss -sd -g -ssi -pn port_name Using AXIS2_HOME: D:\axis2-std-1.0-binUsing JAVA_HOME: C:\Program Files\Java\jdk1.5.0_08log4j:WARN No appenders could be found for logger (org.apache.axis2.i18n.ProjectResourceBundle).log4j:WARN Please initialize the log4j system properly.Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:94) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)Caused by: org.apache.axis2.AxisFault: Cannot Determine the MEP; nested exception is: java.lang.Exception: Cannot Determine the MEP at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:243) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.init(CodeGenerationEngine.java:87) ... 2 moreCaused by: java.lang.Exception: Cannot Determine the MEP at org.apache.axis2.description.WSDL2AxisServiceBuilder.getMEP(WSDL2AxisServiceBuilder.java:1365) at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateOperations(WSDL2AxisServiceBuilder.java:389) at org.apache.axis2.description.WSDL2AxisServiceBuilder.processPortType(WSDL2AxisServiceBuilder.java:377) at org.apache.axis2.description.WSDL2AxisServiceBuilder.processBinding(WSDL2AxisServiceBuilder.java:299) at org.apache.axis2.description.WSDL2AxisServiceBuilder.populateService(WSDL2AxisServiceBuilder.java:238) ... 3 more From: Onural, Gul (CAR:SI12) Sent: Wednesday, September 13, 2006 8:07 PMTo: axis-user@ws.apache.orgSubject: WSDL2Java for a wsdl file with multiple porttypes How do I use WSDL2Java to generate code for a wsdl file with multiple portTypes in it? Both eclipse plug-in and command line versions of the WSDL2Java tool seem to generate code for only one of the port types in my wsdl. I don't see how I generate code for all the port types in my wsdl file. Thanks, Gul
Re: [Axis2] service client skeleton
Have you looked at the migration guide? If its lacking, could you give us some feedback to imnprove it? http://ws.apache.org/axis2/1_0/migration.html#data_binding Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I'm currently using Axis 1.4 to generate a client from a WSDL, and I'd like to switch to Axis2. I'm a little confused by the different classes it generates for the client though. With my BookingService wsdl, I currently use the generated BookingServiceLocator to set the endpoint on the fly, and get the facade, then use the facade to send the request. I don't see a locator anywhere in the code generated by Axis2, but I do see a BookingServiceSkeleton, but I can't find any good examples on how to use the generated skeleton. I need to be able to set the endpoint, and call the createBooking method that's on the skeleton, but I don't see how to set the endpoint. There's this example from the docs that seems close to what I want: try { OMElement payload = ClientUtil.getEchoOMElement(); Options options = new Options(); options.setTo(targetEPR); // this sets the location of MyService service ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); OMElement result = sender.sendReceive(payload); System.out.println(result); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }But it leaves out the details like what is ClientUtil, and what is sender that's calling sendRecieve? Does anyone have a good simple example of how to set the endpoint and what to do with the Skeleton? Thanks in advance. - 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: javax.xml.stream.XMLStreamException
I believe stax-api-1.0.1.jar is what you are looking for ... comes with the standard distro from the nightlies. Robert On 9/13/06, Gul Onural [EMAIL PROTECTED] wrote: I am trying to compile examples under samples/userguide directory of the axis distribution. I am getting compile errors for the : javax.xml.stream.XMLStreamException I have Java SE installed on my machine and StAX doesn't seem to come with the standard edition. I don't really want to install the enterprise adition if I don't need to. Does anyone know which jar file exactly contains the javax.xml.stream.XMLStreamException ? And where download it from ? Thanks, Gul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [axis2]
In the src distro the services schema is here: xdocs/latest/resources/schemas/services.xsd Robert On 9/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi as per the sample service dd below I can have an actionMapping element for my operation in the dd. Now can I map multiple actions to one operation. like multiple actionMapping elements for one operation element in the service dd. I guess a schema for the service xml would have been good eneough to figure that out - but I am not sure if there is one. thanks Anamitra service description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ actionMappingurn:ping/actionMapping /operation /service - 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 - compile error with generated stub
Can you post your wsdl ? Have you validated it? Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I get a lot of errors with the Stub that Axis2 generated. I get a lot of these: [javac] /export/home/jvitrone/trunk/starwood/reservation/classes/com/starwood/valhalla/booking/BookingServiceStub.java:33346: no interface expected here [javac] public static class RateDTO extends org.apache.axiom.om.OMElement And at that line, this code was generated: [33346]public static class RateDTO extends org.apache.axiom.om.OMElement [33347]implements org.apache.axis2.databinding.ADBBean{ Does anyone know what's going on? If i use xmlbeans, I don't get these errors, but I'd rather use adb. Thanks in advance. - 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] service client skeleton
Thanks for the link, a good read. I realized that my real problem was that I was generating server side code when I really wanted a client. Using the skeleton was only confusing because I shouldn't have been using it. I generated without the -ss flag and it generated the stub which is exactly what I was looking for. Which leads to my other post about the stub getting compiler errors... Thanks again, Jesse - Original Message From: robert lazarski [EMAIL PROTECTED] To: axis-user@ws.apache.org; Jesse Vitrone [EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 8:36:42 PM Subject: Re: [Axis2] service client skeleton Have you looked at the migration guide? If its lacking, could you give us some feedback to imnprove it? http://ws.apache.org/axis2/1_0/migration.html#data_binding Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I'm currently using Axis 1.4 to generate a client from a WSDL, and I'd like to switch to Axis2. I'm a little confused by the different classes it generates for the client though. With my BookingService wsdl, I currently use the generated BookingServiceLocator to set the endpoint on the fly, and get the facade, then use the facade to send the request. I don't see a locator anywhere in the code generated by Axis2, but I do see a BookingServiceSkeleton, but I can't find any good examples on how to use the generated skeleton. I need to be able to set the endpoint, and call the createBooking method that's on the skeleton, but I don't see how to set the endpoint. There's this example from the docs that seems close to what I want: try { OMElement payload = ClientUtil.getEchoOMElement(); Options options = new Options(); options.setTo(targetEPR); // this sets the location of MyService service ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); OMElement result = sender.sendReceive(payload); System.out.println(result); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }But it leaves out the details like what is ClientUtil, and what is sender that's calling sendRecieve? Does anyone have a good simple example of how to set the endpoint and what to do with the Skeleton? Thanks in advance. - 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: [Axis2] service client skeleton
The migration guide is very helpful, but since you asked for feedback, I'll point out one nick picky thing. The very end of the guide says: Axis1.x and Axis2 have different ways of seeing the SOAP stack. So the best way to migrate is to follow the User guide and the Architecture guide of Axis2 properly. Axis2 is very much straight forward and friendly to use than it's successor. That should be predecessor, not successor. Overall a nice doc to have. The docs on Axis2 are very good and I've been very impressed with the docs as well as the produc.t. Keep up the great work. Jesse - Original Message From: robert lazarski [EMAIL PROTECTED] To: axis-user@ws.apache.org; Jesse Vitrone [EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 8:36:42 PM Subject: Re: [Axis2] service client skeleton Have you looked at the migration guide? If its lacking, could you give us some feedback to imnprove it? http://ws.apache.org/axis2/1_0/migration.html#data_binding Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I'm currently using Axis 1.4 to generate a client from a WSDL, and I'd like to switch to Axis2. I'm a little confused by the different classes it generates for the client though. With my BookingService wsdl, I currently use the generated BookingServiceLocator to set the endpoint on the fly, and get the facade, then use the facade to send the request. I don't see a locator anywhere in the code generated by Axis2, but I do see a BookingServiceSkeleton, but I can't find any good examples on how to use the generated skeleton. I need to be able to set the endpoint, and call the createBooking method that's on the skeleton, but I don't see how to set the endpoint. There's this example from the docs that seems close to what I want: try { OMElement payload = ClientUtil.getEchoOMElement(); Options options = new Options(); options.setTo(targetEPR); // this sets the location of MyService service ServiceClient serviceClient = new ServiceClient(); serviceClient.setOptions(options); OMElement result = sender.sendReceive(payload); System.out.println(result); } catch (AxisFault axisFault) { axisFault.printStackTrace(); } }But it leaves out the details like what is ClientUtil, and what is sender that's calling sendRecieve? Does anyone have a good simple example of how to set the endpoint and what to do with the Skeleton? Thanks in advance. - 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: Axis2 - compile error with generated stub
Since its a WSDL from work, I don't think I'm allowed to post it, but no, I haven't validated it. Is there a validator with Axis2? I couldn't find anything in the docs. If not, is there one you recommend? Thanks again, Jesse - Original Message From: robert lazarski [EMAIL PROTECTED] To: axis-user@ws.apache.org; Jesse Vitrone [EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:28:30 PM Subject: Re: Axis2 - compile error with generated stub Can you post your wsdl ? Have you validated it? Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I get a lot of errors with the Stub that Axis2 generated. I get a lot of these: [javac] /export/home/jvitrone/trunk/starwood/reservation/classes/com/starwood/valhalla/booking/BookingServiceStub.java:33346: no interface expected here [javac] public static class RateDTO extends org.apache.axiom.om.OMElement And at that line, this code was generated: [33346]public static class RateDTO extends org.apache.axiom.om.OMElement [33347]implements org.apache.axis2.databinding.ADBBean{ Does anyone know what's going on? If i use xmlbeans, I don't get these errors, but I'd rather use adb. Thanks in advance. - 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: Axis2 - compile error with generated stub
These days I'm using the wtp plugin for eclipse to do validation ... its the only open source one I know about that supports wsdl 1.1 . Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: Since its a WSDL from work, I don't think I'm allowed to post it, but no, I haven't validated it. Is there a validator with Axis2? I couldn't find anything in the docs. If not, is there one you recommend? Thanks again, Jesse - Original Message From: robert lazarski [EMAIL PROTECTED] To: axis-user@ws.apache.org; Jesse Vitrone [EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 9:28:30 PM Subject: Re: Axis2 - compile error with generated stub Can you post your wsdl ? Have you validated it? Robert On 9/13/06, Jesse Vitrone [EMAIL PROTECTED] wrote: I get a lot of errors with the Stub that Axis2 generated. I get a lot of these: [javac] /export/home/jvitrone/trunk/starwood/reservation/classes/com/starwood/valhalla/booking/BookingServiceStub.java:33346: no interface expected here [javac] public static class RateDTO extends org.apache.axiom.om.OMElement And at that line, this code was generated: [33346]public static class RateDTO extends org.apache.axiom.om.OMElement [33347]implements org.apache.axis2.databinding.ADBBean{ Does anyone know what's going on? If i use xmlbeans, I don't get these errors, but I'd rather use adb. Thanks in advance. - 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: [Axsi2] multiple soapactions mapping to a single operation?
Hi Anamitra Hi as per the sample service dd below I can have an actionMapping element for my operation in the dd. Now can I map multiple actions to one operation. like multiple actionMapping elements for one operation element in the service dd. Yes you can have any number of actionmapping for an operation. I guess a schema for the service xml would have been good eneough to figure that out - but I am not sure if there is one. thanks Anamitra service description This is a sample Web Service with two operations, echo and ping. /description parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter operation name=echo messageReceiver class=org.apache.axis2.receivers.RawXMLINOutMessageReceiver/ actionMappingurn:echo/actionMapping /operation operation name=ping messageReceiver class=org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver/ actionMappingurn:ping/actionMapping /operation /service - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2 examples
can you please hava a look at the following faq http://www.wso2.net/kb/104 CYW wrote: Trying to deploy the sample aar files in the axis2 distribution's userguide MyService.aar MyServiceWithModule.aar WsaMappingService.aar build.xml groovyService.aar sample.jar I am using tomcat. After uploaded these aar files, I checked services. MyServiceWithModule was listed as Faulty, others were listed as Available. But these services all had an erroneous wsdl like below: error descriptionUnable to generate WSDL for this service/description − reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error Where can I find full readily runnable examples? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OMException when calling web-service
please file a JIRA Felix Sprick wrote: Hi, I successfully deployed the .aar file after generating the classes with the command “WSDL2Java -uri baggis.wsdl -pn PortalSoap -ss -sd -d xmlbeans -o .. –g”. But, I get an error message when calling my web-service. I couldn’t find anything about this issue at google, has anybody seen that message before? Servlet.service() for servlet AxisServlet threw exception org.apache.axiom.om.OMException at org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:265) at org.apache.axiom.om.impl.traverse.OMChildrenQNameIterator.hasNext(OMChildrenQNameIterator.java:75) at org.apache.axiom.om.impl.llom.OMElementImpl.getFirstChildWithName(OMElementImpl.java:222) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:76) at org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183) at org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) - Servlet.service() for servlet jsp threw exception java.lang.IllegalStateException: getOutputStream() has already been called for this response at org.apache.catalina.connector.Response.getWriter(Response.java:599) at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:195) at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:124) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:117) at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:191) at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:115) at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:75) at org.apache.jsp.axis2_002dweb.Error.error500_jsp._jspService(error500_jsp.java:97) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:465) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301) at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:363) at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:284) at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:228) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:134) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at
RE: axis2 examples
Thank you. -Original Message- From: Deepal Jayasinghe [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 13, 2006 11:35 PM To: axis-user@ws.apache.org Subject: Re: axis2 examples can you please hava a look at the following faq http://www.wso2.net/kb/104 CYW wrote: Trying to deploy the sample aar files in the axis2 distribution's userguide MyService.aar MyServiceWithModule.aar WsaMappingService.aar build.xml groovyService.aar sample.jar I am using tomcat. After uploaded these aar files, I checked services. MyServiceWithModule was listed as Faulty, others were listed as Available. But these services all had an erroneous wsdl like below: error descriptionUnable to generate WSDL for this service/description − reason Either user has not dropped the wsdl into META-INF or operations use message receivers other than RPC. /reason /error Where can I find full readily runnable examples? Thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal ~Future is Open~ - 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]