Next Release of axis2c
Hello group, I wanted to know few things. 1. When is the next release date of axis2c?? 2. Whether MTOM with caching be available in the next release??. 3. For a particular version axis2c, which is the corresponding version of axis2/java to be used for code generation.For eg: for axis2c-1.3 is it axis2/java-1.3 to be used???.Is there a dependency of version between axis2c and axis2/java??? Thanks in advance, Naveen Bhat
Re: Next Release of axis2c
Hi Naveen, naveen bhat [EMAIL PROTECTED] writes: Hello group, I wanted to know few things. 1. When is the next release date of axis2c?? AFAIK, we didn't think about next Axis2/C release yet. However since the bug we found recently, new improvements to the code (MTOM caching and guththila improvements) suggest me that there should be a one in near future. 2. Whether MTOM with caching be available in the next release??. I'm not sure :) 3. For a particular version axis2c, which is the corresponding version of axis2/java to be used for code generation.For eg: for axis2c-1.3 is it axis2/java-1.3 to be used???.Is there a dependency of version between axis2c and axis2/java??? AFAIK, there is no such a dependency. Since frequent changes current svn head (Axis2/Java) is the recommended one to use. thanks, Dinesh -- http://nethu.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to support MTOM for code generation with adb
Hello group, I have a service which receives an MTOM attachment, and the service sends back the same. I generated the service skeleton code with adb from the wsdl . The wsdl describes the data exchanged to be of type xmime:base64binary. I am able to receive the MTOM attachment at the client and save it to a file. In the business logic of the service, i wrote the code to create the datahandler from the file received. But i found that the code that is serializing the xop node is converting it to a string using axiom_node_to_string API. Because of which i am unable to see the attachment at the client end. *For Instance:* Sample server response to client as observed in tcpmon ---MIME boundary soapenvelope soapbody BinaryDataxop node serialized as string/BinaryData /soapbody /soapenvelope MIME boundary MIME boundary No attachment(empty) MIME boundary *Serializer logic:* It is enclosing the xop node in between the tags BinaryData and /BinaryData. Its converting xop node to string using axiom_node_to_string(xop_node,env)l How to generate code with proper serializers to send MTOM from the service with adb??? Kindly let me know if you need more details. Thanks in advance, Naveen Bhat
Re: Next Release of axis2c
On Wed, 2008-06-04 at 15:44 +0530, Dinesh Premalal wrote: Hi Naveen, naveen bhat [EMAIL PROTECTED] writes: Hello group, I wanted to know few things. 1. When is the next release date of axis2c?? AFAIK, we didn't think about next Axis2/C release yet. However since the bug we found recently, new improvements to the code (MTOM caching and guththila improvements) suggest me that there should be a one in near future. 2. Whether MTOM with caching be available in the next release??. I'm not sure :) MTOM caching implementation for receiving side is almost complete. We are doing some further testing and since caching callback thing is a user defined mechanism we need to provide an extensible API. Because Axis2/C is being used by many other Web services frameworks like WSO2 WSF/PHP, WSF/RUBY. The improvements to MTOM at receiving side will most probably be there for the next release. For the sending side I need to look at what exactly required. -Manjula. 3. For a particular version axis2c, which is the corresponding version of axis2/java to be used for code generation.For eg: for axis2c-1.3 is it axis2/java-1.3 to be used???.Is there a dependency of version between axis2c and axis2/java??? AFAIK, there is no such a dependency. Since frequent changes current svn head (Axis2/Java) is the recommended one to use. thanks, Dinesh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Next Release of axis2c
Manjula Peiris wrote: On Wed, 2008-06-04 at 15:44 +0530, Dinesh Premalal wrote: Hi Naveen, naveen bhat [EMAIL PROTECTED] writes: Hello group, I wanted to know few things. 1. When is the next release date of axis2c?? AFAIK, we didn't think about next Axis2/C release yet. However since the bug we found recently, new improvements to the code (MTOM caching and guththila improvements) suggest me that there should be a one in near future. 2. Whether MTOM with caching be available in the next release??. I'm not sure :) MTOM caching implementation for receiving side is almost complete. What about sending? Samisa... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TRACE related defines in AxisTrace.h
Hi, I downloaded the linux source the other day and am trying to build this under cygwin. I don't have ant which AFAIK is your suggested build tool. However, most of the stuff just compiles with a few minor issues in some things like time include files. However, I encountered this thing and I'm not sure what to make of it. I just want to write some simple test programs to exchange SOAP messages with a remote server and would prefer to have any trace/debug tools enabled but at this point a reference to doc's describing these defines would help. Thanks. #ifdef AXISTRACE_LIBRARY extern AxisTraceEntrypoints *g_traceEntrypoints; #elif !defined(AXIS_CLIENTC_LIB) extern AxisTraceEntrypoints g_traceEntrypoints; #endif #ifdef AXISTRACE_LIBRARY_MAINENTRYPOINT AxisTraceEntrypoints *g_traceEntrypoints = NULL; #endif $ for f in `ls *.cpp`; do g=`echo $f| sed -e 's/\.cpp/.o/'` ; if [ ! -e $g ] ; then echo $f; g++ -D__CYGWIN__ -I../../../include -c $f ; fi ; done ChannelFactory.cpp HTTPTransport.cpp HTTPTransportException.cpp HTTPTransportInstantiator.cpp In file included from HTTPTransportInstantiator.cpp:27: ../../common/AxisTrace.h:126: error: conflicting declaration 'axiscpp::AxisTrace Entrypoints*axiscpp::g_traceEntrypoints' ../../common/AxisTrace.h:122: error: 'axiscpp::g_traceEntrypoints' has a previou s declaration as `axiscpp::AxisTraceEntrypoints axiscpp::g_traceEntrypoints' ../../common/AxisTrace.h:126: error: type mismatch with previous external decl o f `axiscpp::AxisTraceEntrypoints*axiscpp::g_traceEntrypoints' ../../common/AxisTrace.h:122: error: previous external decl of `axiscpp::AxisTra ceEntrypoints axiscpp::g_traceEntrypoints' ../../common/AxisTrace.h:126: error: declaration of `axiscpp::AxisTraceEntrypoin ts*axiscpp::g_traceEntrypoints' ../../common/AxisTrace.h:122: error: conflicts with previous declaration `axiscp p::AxisTraceEntrypoints axiscpp::g_traceEntrypoints' URL.cpp AxisConfig.h has this little comment at top, #ifdef ENABLE_AXISTRACE /* TRACE ADDED BY THE TRACE INSTRUMENTOR TOOL */ #include ../common/AxisTrace.h #endif Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)- leave message 989-348-4796 (P)- emergency only [EMAIL PROTECTED] Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on [EMAIL PROTECTED] if no reply here. Thanks. _ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
xsd__string definition and geneated files.
Hi, It looks like I was able to generate the needed files from my wsdl file but ran into a problem with the string related code. I thought I could figure this out as some problem with typedefs but it isn't immediately obvious how to fix this. The generated code seems to expect pointers to things, xsd__int* p_afImpressionReviewPeriod = (pIWSDZ-getElementAsInt(afImpressionReviewPeriod,0)); param-afImpressionReviewPeriod = *p_afImpressionReviewPeriod; delete p_afImpressionReviewPeriod; xsd__string* p_bannerCustomFields = (pIWSDZ-getElementAsString(bannerCustomFields,0)); param-bannerCustomFields = *p_bannerCustomFields; but the related method is returning a thing, not a ptr, virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName, const AxisChar* pNamespace)=0; Is there a simple reason for this? I can't find obvious conditionals in the axis code or the WSDL2Ws program to make this match. Thanks. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)- leave message 989-348-4796 (P)- emergency only [EMAIL PROTECTED] Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on [EMAIL PROTECTED] if no reply here. Thanks. _ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to compile Axis2c v1.4 with libxml2
Never mindi found it. its --enable-libxml2 On Wed, Jun 4, 2008 at 6:03 PM, Subra A Narayanan [EMAIL PROTECTED] wrote: Hello guys, whats the configure option to compile v1.4 with libxml2 rather than gunthila? Subra
Re: xsd__string definition and geneated files.
Mike, I assume your are using AXIS C++. If so, ensure you have built the binaries from the latest codbase in SVN by using ant to build the product. Then see what is generated. If you have a problem would need to see wsdl and how you are generating the stubs. Nadir Amra Integrated Web services for i5/OS IBM Rochester, MN, (Tel. 507-253-0645, t/l 553-0645) Internet: [EMAIL PROTECTED] Mike Marchywka [EMAIL PROTECTED] wrote on 06/04/2008 01:30:34 PM: Hi, It looks like I was able to generate the needed files from my wsdl file but ran into a problem with the string related code. I thought I could figure this out as some problem with typedefs but it isn't immediately obvious how to fix this. The generated code seems to expect pointers to things, xsd__int* p_afImpressionReviewPeriod = (pIWSDZ-getElementAsInt(afImpressionReviewPeriod,0)); param-afImpressionReviewPeriod = *p_afImpressionReviewPeriod; delete p_afImpressionReviewPeriod; xsd__string* p_bannerCustomFields = (pIWSDZ-getElementAsString(bannerCustomFields,0)); param-bannerCustomFields = *p_bannerCustomFields; but the related method is returning a thing, not a ptr, virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName, const AxisChar* pNamespace)=0; Is there a simple reason for this? I can't find obvious conditionals in the axis code or the WSDL2Ws program to make this match. Thanks. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)- leave message 989-348-4796 (P)- emergency only [EMAIL PROTECTED] Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on [EMAIL PROTECTED] if no reply here. Thanks. _ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/? pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback - 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: xsd__string definition and geneated files.
To: axis-c-user@ws.apache.org Subject: Re: xsd__string definition and geneated files. From: [EMAIL PROTECTED] Date: Wed, 4 Jun 2008 18:41:23 -0500 Mike, I assume your are using AXIS C++. If so, ensure you have built the binaries from the latest codbase in SVN by using ant to build the product. Well, I thought there could be a versioning problem as I had, IIRC, 1.6 for the c++ code and 1.4 was listed as the latest java release ( but this seems to be more recent than the c++ code). I can't release the WSDL but it appears to be an issue with how to handle the char* return value. It only depends on the java code generators and then the compile depends on the c++ include files, not the results of the build ( AFAIK, unless there is a config script which modifies the include files, but I checked for obvious issues with #ifdef's and conditional compilation and strings didn't appear to be conditional ). Then see what is generated. If you have a problem would need to see wsdl and how you are generating the stubs. AFAIK, the wsdl has been used with java but again I can't release it. A quick scan didn't show anything obviously quirky about the string fields. I also discovered that variables were on occasion redecelared in the same scope, but this is easy to fix by hand. It would also suggest either a quirk of the wsdl file or a possible versioning problem ( I had to manually collect jar files ). but the related method is returning a thing, not a ptr, virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName, const AxisChar* pNamespace)=0; Should this return a ptr or a thing? Thanks. Nadir Amra Integrated Web services for i5/OS IBM Rochester, MN, (Tel. 507-253-0645, t/l 553-0645) Internet: [EMAIL PROTECTED] Mike Marchywka wrote on 06/04/2008 01:30:34 PM: Hi, It looks like I was able to generate the needed files from my wsdl file but ran into a problem with the string related code. I thought I could figure this out as some problem with typedefs but it isn't immediately obvious how to fix this. The generated code seems to expect pointers to things, xsd__int* p_afImpressionReviewPeriod = (pIWSDZ-getElementAsInt(afImpressionReviewPeriod,0)); param-afImpressionReviewPeriod = *p_afImpressionReviewPeriod; delete p_afImpressionReviewPeriod; xsd__string* p_bannerCustomFields = (pIWSDZ-getElementAsString(bannerCustomFields,0)); param-bannerCustomFields = *p_bannerCustomFields; but the related method is returning a thing, not a ptr, virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName, const AxisChar* pNamespace)=0; Is there a simple reason for this? I can't find obvious conditionals in the axis code or the WSDL2Ws program to make this match. Thanks. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)- leave message 989-348-4796 (P)- emergency only [EMAIL PROTECTED] Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on [EMAIL PROTECTED] if no reply here. Thanks. _ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/? pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback - 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] _ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
memory leak with SOAP12Factory
we use axis2 v1.2 class org/apache/axiom/soap/impl/llom/soap12/SOAP12Factory holds a java/util/HashMap oject which grows over day and totally it need huge amount of memory. Every HaspMap entry contains a string and a org/apache/axiom/om/impl/OMNamespaceImpl object. Does anybody know if there exits a fix in a newer version of axis2?
Re: ServiceClient Port Location Versus Options.setTo(EndpointReference)
Hi Jay, This behaviour doesn't sound correct. Please raise a JIRA [1] and add a few more details on how the client is performing the invocation. Thanks [1] http://issues.apache.org/jira/browse/AXIS2 Cheers Brian DePradine Web Services Development IBM Hursley External +44 (0) 1962 816319 Internal 246319 If you can't find the time to do it right the first time, where will you find the time to do it again? jaybytez [EMAIL PROTECTED] wrote on 03/06/2008 15:59:48: I am doing Stubless Web Service Invocation, using the ServiceClient. I use the Options to setup information like timeout and also to set where the web service request should be sent using the Options.setTo(EndpointReference). Then I use the AxisService.createClientSideAxisService to create an instance of the ServiceClient class with the Options I configured passed into it. The WSDL that is being used by the ServiceClient has a different location identified in the serviceName/port that I am utilizing. It appears that sometimes the Options.setTo(EndpointReference) does not override the URL that is located in the WSDL. I have a developer that runs multiple tests and the first test always uses the WSDLs port URL and the subsequent posts uses the Options.setTo(EndpointReference). Does the Options.setTo(EndpointReference) override the URL that is found the the portName being used? Thanks - jay -- View this message in context: http://www.nabble.com/ServiceClient- Port-Location-Versus-Options.setTo%28EndpointReference%29- tp17625643p17625643.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Unless stated otherwise above: IBM United Kingdom Limited - Registered in England and Wales with number 741598. Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
Using WSS4J with Axis 1.4
Hi, I have developed a soap server using axis 1.4 in core java. Now I want to add security support using ws4j. What are the changes I need to do in order to achieve this? Thanks Shripad This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp
RE: Problem using java2wsdl
Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
same answer :) or try with your path beetwenlikec:\document and... 2008/6/4 Perez Arbulu, Ibai [EMAIL PROTECTED]: I Would try with a different classpath. Documents and settings is not advisable at all. -- *De:* Adriana Verdejo [mailto:[EMAIL PROTECTED] *Enviado el:* Miércoles, 04 de Junio de 2008 05:23 a.m. *Para:* axis-user@ws.apache.org *Asunto:* RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. -- *De:* pierre betz [mailto:[EMAIL PROTECTED] *Enviado el:* miércoles, 04 de junio de 2008 12:04 *Para:* axis-user@ws.apache.org *Asunto:* Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
RE: Problem using java2wsdl
I have copied my folder in C:\ and it is the same... C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService _ De: Perez Arbulu, Ibai [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:28 Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl I Would try with a different classpath. Documents and settings is not advisable at all. _ De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Creating Queue, JNDI.. in Active MQ
Hi, Can any one help me in creating queue manager, queue, JNDI in Active MQ? And do we have any utility/tool like MQExplorer for MQseries. Thanks in advance Disclaimer The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to [EMAIL PROTECTED] and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
Re: Problem using java2wsdl
Adriana Maybe you don't even need to use java2wsdl. Are you deploying a Java class as a service? If so, then Axis2 automatically generates the WSDL for you. Paul On Wed, Jun 4, 2008 at 10:48 AM, Adriana Verdejo [EMAIL PROTECTED] wrote: Hi all, I am new using axis and I am very lost. I would like to generate my wsdl from my java interface. I have used the axis plugin for eclipse (axis 2 code generator) but I find always this error message: An error occured while completing process -java.lang.reflect.InvocationTargetException. I don't know what is wrong. Because of that I tried to do it by command.. C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 And I get this error: An error occured while generating codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService My class is in my workspace. How I should give this information to axis? Could you please help me? Thanks in advance. Best regards, Adriana. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using java2wsdl
I Would try with a different classpath. Documents and settings is not advisable at all. De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\binjava2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way.
wsdl
Hi, nbsp; I am new to the web services and so as to axis. Please help me. I have to show something this week. I have been working to sort this out since last 4 days. I am sorry to say this. nbsp; I have an existing web application. To use axis in existing application, I have done : 1.copy all jars from axis.lib directory 2.copy axis's web.xml servlet params and mapping tonbsp;to my web.xml nbsp; I have got a wsdl url from an external application (to be integrated with my application) Now what should I do to use this wsdl to access the external application ? Please kind enough to me. nbsp; Many Thanks, nbsp; nbsp; __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
RE: Creating Queue, JNDI.. in Active MQ
Shouldn't this question be posed on the Active MQ mailing list? You should get better hits there. Sanjay From: adisesha [mailto:[EMAIL PROTECTED] Sent: 04 June 2008 11:39 To: axis-user@ws.apache.org Subject: Creating Queue, JNDI.. in Active MQ Hi, Can any one help me in creating queue manager, queue, JNDI in Active MQ? And do we have any utility/tool like MQExplorer for MQseries. Thanks in advance Disclaimer The information contained in this communication is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. It may contain confidential or legally privileged information. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking any action in reliance on the contents of this information is strictly prohibited and may be unlawful. If you have received this communication in error, please notify us immediately by forwarding this email to [EMAIL PROTECTED] and then delete it from your system. Ness technologies is neither liable for the proper and complete transmission of the information contained in this communication nor for any delay in its receipt.
Re: Axis2 (ADB) : Problem with empty RequestBody
We have succeeded in solving this problem: it was necessary to hand-edit the generated Stub file and disable the REST style access to web services: addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.ENABLE_REST,false); This turned off the option which caused Axis2 to send the payload in the HTTP header (which corresponds to the REST style) to the traditional mode, in which the payload was sent in the request body in the XML form. -- Robert Novotny Robert Novotny wrote: I have the same problem here. I think that the culprit is the http:binding verb=POST/ element in the WSDL. This binding forces the WSDL2Java to generate code that sends the application/x-www-form-urlencoded header. This corresponds to the REST style of web service invocation. However, I think that this REST approach does not support complex objects. If you look on the org.apache.axis2.transport.http.XFormURLEncodedFormatter class, you'd see the the getBytes() method which converts the SOAP payload to the byte representation sent via wire: ... OMElement omElement = messageContext.getEnvelope().getBody().getFirstElement(); if (omElement != null) { Iterator it = omElement.getChildElements(); String paraString = ; while (it.hasNext()) { OMElement ele1 = (OMElement) it.next(); String parameter; parameter = ele1.getLocalName() + = + ele1.getText(); paraString = .equals(paraString) ? parameter : (paraString + + parameter); } return paraString.getBytes(); } ... If your message looks like this: ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body ns2:getCustomerFolder xmlns:ns2=http://www.example.org/nPVR/; getCustomerFolderRequestBody getCustomerFolderInput customerSmartvisionID1/customerSmartvisionID folderNamemyFolder/folderName /getCustomerFolderInput /getCustomerFolderRequestBody /ns2:getCustomerFolder /soapenv:Body /soapenv:Envelope the only child matched by iterator is the getCustomerFolder. Deeper children are simply ignored. This seems quite natural to me, since the REST style via POST supports only key=value parameters passed in the HTTP header. However, I have heard about a possibility to send the SOAP message via both methods: some parameters in the HTTP POST header and some parameters in the payload send via XML. Is it possible in Axis2? The quick hack which remedies your situation can be editing of the stub file. Just change content type in the addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.CONTENT_TYPE,application/x-www-form-urlencoded); and addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,application/x-www-form-urlencoded); text/xml as advised. However, this hack would perhaps break your WSDL contract. Robert Novotny Ajith Ranabahu wrote: The part that I can see as the problem is the last one where the request is written to the wire. I can't understand how the content type became application/x-www-form-urlencoded (should have been text/xml for soap1.1. Since I see the SOAPAction header I suppose its 1.1). Is there any other configuration regarding the httpclient ? (that may have changed its behavior) Ajith On Fri, May 30, 2008 at 8:01 AM, Aljen7 [EMAIL PROTECTED] wrote: I can see thanks to dubugging that the soapEnvelope in request is constructed in Stub class correctly and it remains unchainged during axis2 engine which ended in the correct request calling messageContext is OK (afaik). Then why is it changed (empty - no body) when it comes to server. -- View this message in context: http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17557256.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17644016.html Sent from the Axis - User mailing list archive at Nabble.com. - To
Re: Using WSS4J with Axis 1.4
Hello Shirpad, You need to determine first which Token Profile you will be using [1]: Username Token Profile 1.1 X.509 Token Profile 1.1 SAML Token profile 1.1 Kerberos Token Profile 1.1 Also in the distribution of wss4j, there is samples. Hope this helps [1] http://www.oasis-open.org/committees/tc_home.php?wg_abbrev=wss#overview On 6/4/08, Shripad Gokhale [EMAIL PROTECTED] wrote: Hi, I have developed a soap server using axis 1.4 in core java. Now I want to add security support using ws4j. What are the changes I need to do in order to achieve this? Thanks Shripad This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement, you may review at http://www.amdocs.com/email_disclaimer.asp -- Jose Ferreiro ing.sys.com.dipl.EPFL
Re: wsdl
You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a stub which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma [EMAIL PROTECTED] wrote: Hi, I am new to the web services and so as to axis. Please help me. I have to show something this week. I have been working to sort this out since last 4 days. I am sorry to say this. I have an existing web application. To use axis in existing application, I have done : 1.copy all jars from axis.lib directory 2.copy axis's web.xml servlet params and mapping to to my web.xml I have got a wsdl url from an external application (to be integrated with my application) Now what should I do to use this wsdl to access the external application ? Please kind enough to me. Many Thanks, Sent from Yahoo! Mail. A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl
Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ?nbsp; I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp nbsp; Thank you very much, nbsp; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: From: Paul Fremantle lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a stub which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: gt; Hi, gt; gt; gt; gt; I am new to the web services and so as to axis. Please help me. gt; gt; I have to show something this week. I have been working to sort this out gt; since last 4 days. gt; gt; I am sorry to say this. gt; gt; gt; gt; I have an existing web application. To use axis in existing application, gt; gt; I have done : gt; gt; 1.copy all jars from axis.lib directory gt; gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml gt; gt; gt; gt; I have got a wsdl url from an external application (to be integrated with my gt; application) gt; gt; Now what should I do to use this wsdl to access the external application ? gt; gt; Please kind enough to me. gt; gt; gt; gt; Many Thanks, gt; gt; gt; gt; gt; gt; gt; Sent from Yahoo! Mail. gt; A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Re: wsdl
I am using netbeans with ant to build the web application. --- On Wed, 4/6/08, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: From: Jyotsna Varma lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org Date: Wednesday, 4 June, 2008, 4:56 PM Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ?nbsp; I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp nbsp; Thank you very much, nbsp; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: From: Paul Fremantle lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a stub which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: gt; Hi, gt; gt; gt; gt; I am new to the web services and so as to axis. Please help me. gt; gt; I have to show something this week. I have been working to sort this out gt; since last 4 days. gt; gt; I am sorry to say this. gt; gt; gt; gt; I have an existing web application. To use axis in existing application, gt; gt; I have done : gt; gt; 1.copy all jars from axis.lib directory gt; gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml gt; gt; gt; gt; I have got a wsdl url from an external application (to be integrated with my gt; application) gt; gt; Now what should I do to use this wsdl to access the external application ? gt; gt; Please kind enough to me. gt; gt; gt; gt; Many Thanks, gt; gt; gt; gt; gt; gt; gt; Sent from Yahoo! Mail. gt; A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Re: wsdl
Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma [EMAIL PROTECTED] wrote: Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ? I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp Thank you very much, --- On Wed, 4/6/08, Paul Fremantle [EMAIL PROTECTED] wrote: From: Paul Fremantle [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a stub which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma [EMAIL PROTECTED] wrote: Hi, I am new to the web services and so as to axis. Please help me. I have to show something this week. I have been working to sort this out since last 4 days. I am sorry to say this. I have an existing web application. To use axis in existing application, I have done : 1.copy all jars from axis.lib directory 2.copy axis's web.xml servlet params and mapping to to my web.xml I have got a wsdl url from an external application (to be integrated with my application) Now what should I do to use this wsdl to access the external application ? Please kind enough to me. Many Thanks, Sent from Yahoo! Mail. A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl
Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: From: Paul Fremantle lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: gt; gt; Thanks Paul for the quick reply. gt; gt; I have got axis-bin-1_4. In which directory I should run this ? I have done gt; an advnced installation gt; http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp gt; gt; gt; gt; Thank you very much, gt; gt; gt; gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: gt; gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt; gt; Subject: Re: wsdl gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED] gt; Date: Wednesday, 4 June, 2008, 4:23 PM gt; gt; You need to run gt; gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o gt; directory\where\you\want\the\code\generated gt; gt; This will create a stub which is a class you can embed in your gt; application. You simply need to create a new instance of this class gt; and then call methods on it, those methods will call the remote gt; service. gt; gt; Paul gt; gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; gt; wrote: gt;gt; Hi, gt;gt; gt;gt; gt;gt; gt;gt; I am new to the web services and so as to axis. Please help me. gt;gt; gt;gt; I have to show something this week. I have been working to sort this out gt;gt; since last 4 days. gt;gt; gt;gt; I am sorry to say this. gt;gt; gt;gt; gt;gt; gt;gt; I have an existing web application. To use axis in existing application, gt;gt; gt;gt; I have done : gt;gt; gt;gt; 1.copy all jars from axis.lib directory gt;gt; gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml gt;gt; gt;gt; gt;gt; gt;gt; I have got a wsdl url from an external application (to be integrated with gt; my gt;gt; application) gt;gt; gt;gt; Now what should I do to use this wsdl to access the external application ? gt;gt; gt;gt; Please kind enough to me. gt;gt; gt;gt; gt;gt; gt;gt; Many Thanks, gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; Sent from Yahoo! Mail. gt;gt; A Smarter Email. gt; gt; gt; gt; -- gt; Paul Fremantle gt; Co-Founder and CTO, WSO2 gt; Apache Synapse PMC Chair gt; OASIS WS-RX TC Co-chair gt; gt; blog: http://pzf.fremantle.org gt; [EMAIL PROTECTED] gt; gt; Oxygenating the Web Service Platform, www.wso2.com gt; gt; - gt; To unsubscribe, e-mail: [EMAIL PROTECTED] gt; For additional commands, e-mail: [EMAIL PROTECTED] gt; gt; gt; Sent from Yahoo! Mail. gt; A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
RE: wsdl
There are many reasons to adopt Axis2 Ability to use Axis Object Model to represent all of your entities (Axiom) Ability to incorporate more databinding types ADB, XMLBEANS, JIBX, JAXBRI Ability to engage or disengage AOP modules security, addressing, logging Ability to upload services without disrupting other services Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 4 Jun 2008 11:37:09 + From: [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle [EMAIL PROTECTED] wrote: From: Paul Fremantle [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma [EMAIL PROTECTED] wrote: Thanks Paul for the quick reply. I have got axis-bin-1_4. In which directory I should run this ? I have done an advnced installation http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp Thank you very much, --- On Wed, 4/6/08, Paul Fremantle [EMAIL PROTECTED] wrote: From: Paul Fremantle [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 4:23 PM You need to run bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o directory\where\you\want\the\code\generated This will create a stub which is a class you can embed in your application. You simply need to create a new instance of this class and then call methods on it, those methods will call the remote service. Paul On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma [EMAIL PROTECTED] wrote: Hi, I am new to the web services and so as to axis. Please help me. I have to show something this week. I have been working to sort this out since last 4 days. I am sorry to say this. I have an existing web application. To use axis in existing application, I have done : 1.copy all jars from axis.lib directory 2.copy axis's web.xml servlet params and mapping to to my web.xml I have got a wsdl url from an external application (to be integrated with my application) Now what should I do to use this wsdl to access the external application ? Please kind enough to me. Many Thanks, Sent from Yahoo! Mail. A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Sent from Yahoo! Mail. A Smarter Email. _ Now you can invite friends from Facebook and other groups to join you on Windows Live™ Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now
RE: wsdl
Thank you. I run wsdl2java in Axis2 1.3 version. But I am getting error :- nbsp; Caused by: javax.wsdl.WSDLException: WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas .xmlsoap.org/wsdl/}definitions'. nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenerationEngine.java:286) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.lt;initgt;(CodeGenerationEngine.java:105) nbsp;nbsp;nbsp;nbsp;nbsp;nbsp;nbsp; ... 2 more I don't understand whats the cause of this error ? Is something missing in wsdl document? --- On Wed, 4/6/08, Martin Gainty lt;[EMAIL PROTECTED]gt; wrote: From: Martin Gainty lt;[EMAIL PROTECTED]gt; Subject: RE: wsdl To: [EMAIL PROTECTED], axis-user@ws.apache.org Date: Wednesday, 4 June, 2008, 5:20 PM #yiv112315369 .hmmessage P { margin:0px;padding:0px;} #yiv112315369 .hmmessage { FONT-SIZE:10pt;FONT-FAMILY:Tahoma;} There are many reasons to adopt Axis2 Ability to use Axis Object Model to represent all of your entities (Axiom) Ability to incorporate more databinding types ADB, XMLBEANS, JIBX, JAXBRI Ability to engage or disengage AOP modules security, addressing, logging Ability to upload services without disrupting other services Martin Gainty __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Wed, 4 Jun 2008 11:37:09 + From: [EMAIL PROTECTED] Subject: Re: wsdl To: axis-user@ws.apache.org Thanks Paul. I am downloading it. But I am not sure whether the external system accepts axis2. I will try. External system's documentation tells that it works with Axis 1.3. But it is an old documant. They must have updated it. Let me come back. --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: From: Paul Fremantle lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: gt; gt; Thanks Paul for the quick reply. gt; gt; I have got axis-bin-1_4. In which directory I should run this ? I have done gt; an advnced installation gt; http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp gt; gt; gt; gt; Thank you very much, gt; gt; gt; gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: gt; gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt; gt; Subject: Re: wsdl gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED] gt; Date: Wednesday, 4 June, 2008, 4:23 PM gt; gt; You need to run gt; gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o gt; directory\where\you\want\the\code\generated gt; gt; This will create a stub which is a class you can embed in your gt; application. You simply need to create a new instance of this class gt; and then call methods on it, those methods will call the remote gt; service. gt; gt; Paul gt; gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; gt; wrote: gt;gt; Hi, gt;gt; gt;gt; gt;gt; gt;gt; I am new to the web services and so as to axis. Please help me. gt;gt; gt;gt; I have to show something this week. I have been working to sort this out gt;gt; since last 4 days. gt;gt; gt;gt; I am sorry to say this. gt;gt; gt;gt; gt;gt; gt;gt; I have an existing web application. To use axis in existing application, gt;gt; gt;gt; I have done : gt;gt; gt;gt; 1.copy all jars from axis.lib directory gt;gt; gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml gt;gt; gt;gt; gt;gt; gt;gt; I have got a wsdl url from an external application (to be integrated with gt; my gt;gt; application) gt;gt; gt;gt; Now what should I do to use this wsdl to access the external application ? gt;gt; gt;gt; Please kind enough to me. gt;gt; gt;gt; gt;gt;
RE: Problem using java2wsdl
Really, I had testing something as simple as that (please find attached the simple project...) _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:46 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way. Myproject_specs.rar Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl
Thanks Paul. Now I think I am able to build stub classes. Thank you very much for your help. --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: From: Paul Fremantle lt;[EMAIL PROTECTED]gt; Subject: Re: wsdl To: axis-user@ws.apache.org, [EMAIL PROTECTED] Date: Wednesday, 4 June, 2008, 5:01 PM Sorry, I was assuming you had Axis2 (the latest version). I'm not up to speed on Axis1 so I can't help out with that. Basically if you get Axis2-bin zipfile, unzip it, and it should become clear. If you are calling a webservice from your webapp you just need to include the axis2 libs in the webapp\lib directory. Paul On Wed, Jun 4, 2008 at 12:26 PM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; wrote: gt; gt; Thanks Paul for the quick reply. gt; gt; I have got axis-bin-1_4. In which directory I should run this ? I have done gt; an advnced installation gt; http://ws.apache.org/axis/java/install.html#AdvancedInstallationAddingAxisToYourOwnWebapp gt; gt; gt; gt; Thank you very much, gt; gt; gt; gt; --- On Wed, 4/6/08, Paul Fremantle lt;[EMAIL PROTECTED]gt; wrote: gt; gt; From: Paul Fremantle lt;[EMAIL PROTECTED]gt; gt; Subject: Re: wsdl gt; To: axis-user@ws.apache.org, [EMAIL PROTECTED] gt; Date: Wednesday, 4 June, 2008, 4:23 PM gt; gt; You need to run gt; gt; bin\wsdl2java -uw -uri http:///url/of/the/.wsdl -o gt; directory\where\you\want\the\code\generated gt; gt; This will create a stub which is a class you can embed in your gt; application. You simply need to create a new instance of this class gt; and then call methods on it, those methods will call the remote gt; service. gt; gt; Paul gt; gt; On Wed, Jun 4, 2008 at 11:48 AM, Jyotsna Varma lt;[EMAIL PROTECTED]gt; gt; wrote: gt;gt; Hi, gt;gt; gt;gt; gt;gt; gt;gt; I am new to the web services and so as to axis. Please help me. gt;gt; gt;gt; I have to show something this week. I have been working to sort this out gt;gt; since last 4 days. gt;gt; gt;gt; I am sorry to say this. gt;gt; gt;gt; gt;gt; gt;gt; I have an existing web application. To use axis in existing application, gt;gt; gt;gt; I have done : gt;gt; gt;gt; 1.copy all jars from axis.lib directory gt;gt; gt;gt; 2.copy axis's web.xml servlet params and mapping to to my web.xml gt;gt; gt;gt; gt;gt; gt;gt; I have got a wsdl url from an external application (to be integrated with gt; my gt;gt; application) gt;gt; gt;gt; Now what should I do to use this wsdl to access the external application ? gt;gt; gt;gt; Please kind enough to me. gt;gt; gt;gt; gt;gt; gt;gt; Many Thanks, gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; gt;gt; Sent from Yahoo! Mail. gt;gt; A Smarter Email. gt; gt; gt; gt; -- gt; Paul Fremantle gt; Co-Founder and CTO, WSO2 gt; Apache Synapse PMC Chair gt; OASIS WS-RX TC Co-chair gt; gt; blog: http://pzf.fremantle.org gt; [EMAIL PROTECTED] gt; gt; Oxygenating the Web Service Platform, www.wso2.com gt; gt; - gt; To unsubscribe, e-mail: [EMAIL PROTECTED] gt; For additional commands, e-mail: [EMAIL PROTECTED] gt; gt; gt; Sent from Yahoo! Mail. gt; A Smarter Email. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] Oxygenating the Web Service Platform, www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Set nillable=true when axis2 generated wsdl
Hi, I just did a sample service (java first) which returns a book object. book Class has two variables name, author. (both String). Both name and author can be null. Service works fine when values for the name and author are not null.(I hit the service using soapui) If any variable value is null i am getting, org.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) The wsdl generated by the Axis2 1.4 is not setting the nillable=true for two element definition. Note : 1 . I worked with Axis1.3 where i am getting nillable=true in generated wsdl. 2 . I even tried by setting the default variable value in bean as null. ie code class Book{ private String name=null; private String author=null; getters and setters } /code But even then wsdl not showing nillable=true. How to tell Axis2 1.4 that generate a wsdl with nillable=true for an element ? FYR I attached the soap fault, soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header/ soapenv:Body soapenv:Fault faultcodesoapenv:Client/faultcode faultstringjava.lang.NullPointerException/faultstring detail Exceptionorg.apache.axis2.AxisFault: java.lang.NullPointerException; nested exception is: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:136) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.axiom.om.OMException: java.lang.NullPointerException at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:206) at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.java:298) at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:584) at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:118) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:240) at org.apache.axiom.om.impl.llom.OMElementImpl.addChild(OMElementImpl.java:197) at org.apache.axis2.rpc.receivers.RPCUtil.processResponse(RPCUtil.java:71) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:130) ... 20 more Caused by: java.lang.NullPointerException at org.apache.axis2.databinding.utils.reader.WrappingXMLStreamReader.getEventType(WrappingXMLStreamReader.java:141) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProperties(ADBXMLStreamReaderImpl.java:964) at org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXMLStreamReaderImpl.java:826) at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:68) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:123) ... 27 more/Exception /detail /soapenv:Fault /soapenv:Body /soapenv:Envelope
Axis2 Service Archiver issue
Hi all, Got a wsdl file and generated the Java classes for it using wsdl2java. Then looked up the mywebserviceService Skeleton file and implemented my business logic in it. And now I want to build the .aar file so I can deploy the mywebservice. I'm trying to build the the Service Archive using the Eclipse Axis2 Service Archiver wizard, but cannot get it to work. I point the Class File Location setting to the directory that contains the directory structure com/ws/mywebservice. The mywebservice directory contains my compiled Java classes that wsdl2java created (including my added business logic), so for example mywebserviceServiceSkeleton.class. On the second screen of the wizard, I skip the WDSL I do not add any additional jars I check the checkbox to generate the service.xml automatically and then I get to the part where I'm getting stuck... I have to specify a Service Name and Class name. So, I try all kind of things here, but the wizard keeps telling me: error : Class notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton As you can see, as classname, I put in the full path + the name of the skeleton class (in which my business logic is also implemented). I tried all kind of different options, but nothing seems to work. As Service Name I use the name of the service from the wsdl file i started with, which is mywebservice in various combinations: mywebservice and mywebserviceService for example. Not, nothing seems to work. Where am I going wrong? Tnx in advance, -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 (ADB) : Problem with empty RequestBody
Hi when you generated code did you guys specify a port (endpoint-port in the wsdl) ? Could it be that the port used had an HTTP binding ? Ajith On Wed, Jun 4, 2008 at 6:54 AM, Robert Novotny [EMAIL PROTECTED] wrote: We have succeeded in solving this problem: it was necessary to hand-edit the generated Stub file and disable the REST style access to web services: addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.ENABLE_REST,false); This turned off the option which caused Axis2 to send the payload in the HTTP header (which corresponds to the REST style) to the traditional mode, in which the payload was sent in the request body in the XML form. -- Robert Novotny Robert Novotny wrote: I have the same problem here. I think that the culprit is the http:binding verb=POST/ element in the WSDL. This binding forces the WSDL2Java to generate code that sends the application/x-www-form-urlencoded header. This corresponds to the REST style of web service invocation. However, I think that this REST approach does not support complex objects. If you look on the org.apache.axis2.transport.http.XFormURLEncodedFormatter class, you'd see the the getBytes() method which converts the SOAP payload to the byte representation sent via wire: ... OMElement omElement = messageContext.getEnvelope().getBody().getFirstElement(); if (omElement != null) { Iterator it = omElement.getChildElements(); String paraString = ; while (it.hasNext()) { OMElement ele1 = (OMElement) it.next(); String parameter; parameter = ele1.getLocalName() + = + ele1.getText(); paraString = .equals(paraString) ? parameter : (paraString + + parameter); } return paraString.getBytes(); } ... If your message looks like this: ?xml version='1.0' encoding='UTF-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body ns2:getCustomerFolder xmlns:ns2=http://www.example.org/nPVR/; getCustomerFolderRequestBody getCustomerFolderInput customerSmartvisionID1/customerSmartvisionID folderNamemyFolder/folderName /getCustomerFolderInput /getCustomerFolderRequestBody /ns2:getCustomerFolder /soapenv:Body /soapenv:Envelope the only child matched by iterator is the getCustomerFolder. Deeper children are simply ignored. This seems quite natural to me, since the REST style via POST supports only key=value parameters passed in the HTTP header. However, I have heard about a possibility to send the SOAP message via both methods: some parameters in the HTTP POST header and some parameters in the payload send via XML. Is it possible in Axis2? The quick hack which remedies your situation can be editing of the stub file. Just change content type in the addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.CONTENT_TYPE,application/x-www-form-urlencoded); and addPropertyToOperationClient(_operationClient,org.apache.axis2.Constants.Configuration.MESSAGE_TYPE,application/x-www-form-urlencoded); text/xml as advised. However, this hack would perhaps break your WSDL contract. Robert Novotny Ajith Ranabahu wrote: The part that I can see as the problem is the last one where the request is written to the wire. I can't understand how the content type became application/x-www-form-urlencoded (should have been text/xml for soap1.1. Since I see the SOAPAction header I suppose its 1.1). Is there any other configuration regarding the httpclient ? (that may have changed its behavior) Ajith On Fri, May 30, 2008 at 8:01 AM, Aljen7 [EMAIL PROTECTED] wrote: I can see thanks to dubugging that the soapEnvelope in request is constructed in Stub class correctly and it remains unchainged during axis2 engine which ended in the correct request calling messageContext is OK (afaik). Then why is it changed (empty - no body) when it comes to server. -- View this message in context: http://www.nabble.com/Axis2-%28ADB%29-%3A-Problem-with-empty-RequestBody-tp17532435p17557256.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context:
RE: Minimal set of JARs to embed Axis2 into a webapp?
Can I please be taken off the black list... :-) _ From: Kurt Kavanaugh Sent: Monday, June 02, 2008 1:47 PM To: axis-user@ws.apache.org Subject: Re: Minimal set of JARs to embed Axis2 into a webapp? +---lib axiom-api-1.2.5.jar axiom-impl-1.2.5.jar axis2-kernel-1.3.jar backport-util-concurrent-2.2.jar commons-fileupload-1.1.1.jar commons-httpclient-3.0.1.jar jax-qname-1.5.jar (QName API part of stax-api) neethi-2.0.2.jar wsdl4j-1.6.2.jar wstx-asl-3.2.1.jar xbean-2.3.0.jar XmlSchema-1.3.2.jar Doesn't the AxisServlet depend on annogen-0.1.0.jar.? import org.codehaus.jam.JMethod; JMethod[] method = schemaGenerator.getMethods(); Kurt
Axis1 and Axis2 Coexistence?
Hi All, I would really appreciate if anybody can help me with the answer to this question. Question: *Can Axis1 (1.4 say) and Axis2 clients coexist in the same web-app?* Reason: We need it because we have a lot of legacy code that depend on Axis1 which we cannot refactor to use Axis2 within fortnight. But moving forward we want to use Axis2 and have a long term plans to maintain code using Axis2. Now my concern is if that if they (Axis1 and Axis2) depend on some other Jars for certain functionality that cannot coexist then it will hinder us from migrating to Axis2. Any help would be great. Thanks Abhishek.
Re: Axis2 Service Archiver issue
ok, based on Ajith suggestions I stopped using the wizard in Eclipse and went for a straightforward ant build. That gave me the .aar file, but when I deploy that .aar file, it doesn't work. On the Axis2 admin pages, I see that the error is a missing services.xml. Checked the .aar file and indeed it's missing. I was under the impression that either it would not be needed when supplying the WSDL or that the build (or wizard for that matters) would generate it for me. Any idea's? Tnx in advance, Paul Ajith Ranabahu wrote: Hi, You seem to be doing the right thing and I'm not sure what could be wrong ! However there is another option to generated the aar. Use the build file generated from codegen and run the jar.server target Ajith On Wed, Jun 4, 2008 at 9:36 AM, Kmany [EMAIL PROTECTED] wrote: Hi all, Got a wsdl file and generated the Java classes for it using wsdl2java. Then looked up the mywebserviceService Skeleton file and implemented my business logic in it. And now I want to build the .aar file so I can deploy the mywebservice. I'm trying to build the the Service Archive using the Eclipse Axis2 Service Archiver wizard, but cannot get it to work. I point the Class File Location setting to the directory that contains the directory structure com/ws/mywebservice. The mywebservice directory contains my compiled Java classes that wsdl2java created (including my added business logic), so for example mywebserviceServiceSkeleton.class. On the second screen of the wizard, I skip the WDSL I do not add any additional jars I check the checkbox to generate the service.xml automatically and then I get to the part where I'm getting stuck... I have to specify a Service Name and Class name. So, I try all kind of things here, but the wizard keeps telling me: error : Class notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton As you can see, as classname, I put in the full path + the name of the skeleton class (in which my business logic is also implemented). I tried all kind of different options, but nothing seems to work. As Service Name I use the name of the service from the wsdl file i started with, which is mywebservice in various combinations: mywebservice and mywebserviceService for example. Not, nothing seems to work. Where am I going wrong? Tnx in advance, -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17649491.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2 Service Archiver issue
ok, I realise now that I could have gotten the services.xml by specifying the right parameters in the wsdl2java process. Going there now... Kmany wrote: ok, based on Ajith suggestions I stopped using the wizard in Eclipse and went for a straightforward ant build. That gave me the .aar file, but when I deploy that .aar file, it doesn't work. On the Axis2 admin pages, I see that the error is a missing services.xml. Checked the .aar file and indeed it's missing. I was under the impression that either it would not be needed when supplying the WSDL or that the build (or wizard for that matters) would generate it for me. Any idea's? Tnx in advance, Paul Ajith Ranabahu wrote: Hi, You seem to be doing the right thing and I'm not sure what could be wrong ! However there is another option to generated the aar. Use the build file generated from codegen and run the jar.server target Ajith On Wed, Jun 4, 2008 at 9:36 AM, Kmany [EMAIL PROTECTED] wrote: Hi all, Got a wsdl file and generated the Java classes for it using wsdl2java. Then looked up the mywebserviceService Skeleton file and implemented my business logic in it. And now I want to build the .aar file so I can deploy the mywebservice. I'm trying to build the the Service Archive using the Eclipse Axis2 Service Archiver wizard, but cannot get it to work. I point the Class File Location setting to the directory that contains the directory structure com/ws/mywebservice. The mywebservice directory contains my compiled Java classes that wsdl2java created (including my added business logic), so for example mywebserviceServiceSkeleton.class. On the second screen of the wizard, I skip the WDSL I do not add any additional jars I check the checkbox to generate the service.xml automatically and then I get to the part where I'm getting stuck... I have to specify a Service Name and Class name. So, I try all kind of things here, but the wizard keeps telling me: error : Class notfoundcom.ws.mywebservice.mywebserviceServiceSkeleton As you can see, as classname, I put in the full path + the name of the skeleton class (in which my business logic is also implemented). I tried all kind of different options, but nothing seems to work. As Service Name I use the name of the service from the wsdl file i started with, which is mywebservice in various combinations: mywebservice and mywebserviceService for example. Not, nothing seems to work. Where am I going wrong? Tnx in advance, -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17646914.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ajith Ranabahu Reading, after a certain age, diverts the mind too much from its creative pursuits. Any man who reads too much and uses his own brain too little falls into lazy habits of thinking - Albert Einstein - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis2-Service-Archiver-issue-tp17646914p17649557.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to handle events from webservices for clients?
Hi, I'm new with webservices and was wondering about if Axis2 provides the ability for the webservice to send a event notification to the client. The client can be behind a symmetric NAT and hence the solution needs to handle the firewall problem too. Also, does axis2 support WS-Polling? Thanks
[AXIS2] - How to control To element in the SOAP header?
I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference(https://...;); String action = ...; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header ... wsa:To xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor
Problem using Spring/ArrayList
Hi, I'm trying to use Axis2 1.4 Spring as a transport for objects containing an ArrayList. This is not working for me. XP SP2/JDK1.6.0_06/Apache 2.2/Tomcat 5.5/Axis 2 1.4 using war install. Using the WeatherSpringService example, I modify the Weather class to contain ArrayListString comments. I add getter and setter methods. I set a comment. Generated WSDL shows: xs:complexType name=Weather xs:sequence xs:element minOccurs=0 name=comments nillable=true type=xs:anyType/ xs:element minOccurs=0 name=forecast nillable=true type=xs:string/ xs:element minOccurs=0 name=howMuchRain type=xs:float/ xs:element minOccurs=0 name=rain type=xs:boolean/ xs:element minOccurs=0 name=temperature type=xs:float/ /xs:sequence /xs:complexType When I execute the getWeather method the SOAP passed back shows: ns:return type=sample.spring.bean.Weather ax21:commentsit's nice now!/ax21:comments ax21:forecastle matin/ax21:forecast ax21:howMuchRain0.1/ax21:howMuchRain ax21:raintrue/ax21:rain ax21:temperature37.2/ax21:temperature /ns:return (i.e. the set value is being transported) During testing, I added a setComments(ArrayListString cmt) function to the bean. Later on, I included the following line after setting the internal variable: comments.add(setComments(ArrayList) was called with an array sized + cmts.size()); This is set and says that the passed array was sized 0, so I conclude that something in the transport is creating an ArrayListString and attempting to set the bean with it, but doesn't populate the ArrayList first. Am I missing something here? Has anyone made something like this work successfully? It would make my life easier if I could make this work. _ Stephen Kilburn GeoPraxis Inc.
lib in .aar ignored?
In my testing of Spring, I added to the WeatherSpringService.aar the three spring jars used by the service (spring-beans.jar, spring-context.jar, spring-core.jar) in a /lib directory. However, I get a NoClassDefFound error using this approach. It goes away if I drop the files into axis2/WEB-INF/lib. Does anyone have any advice? _ Stephen Kilburn GeoPraxis Inc. Error: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou p(ArchiveReader.java:151) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deploy mentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java: 597) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.jav a:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.jav a:330) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListe ner.java:227) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine.j ava:131) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedAx isConfigurator.java:284) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCont ext(ConfigurationContextFactory.java:82) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.ja va:511) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:11 39) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Service GroupBuilder.java:106) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup( ArchiveReader.java:110) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGrou p(ArchiveReader.java:144) ... 37 more Caused by: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at
Re: lib in .aar ignored?
Hello, I had the same problem, and eventually found the same solution as well. The only jars that I am including within the aar are the ones that contain my xmlbeans files (*.xsb). Also, if I drop these xsb-jars in WEB-INF/lib I get some exceptions. Sorry, but I don't remember exactly which exceptions. On Wednesday 04 June 2008 04:30:12 pm Stephen Kilburn wrote: In my testing of Spring, I added to the WeatherSpringService.aar the three spring jars used by the service (spring-beans.jar, spring-context.jar, spring-core.jar) in a /lib directory. However, I get a NoClassDefFound error using this approach. It goes away if I drop the files into axis2/WEB-INF/lib. Does anyone have any advice? _ Stephen Kilburn GeoPraxis Inc. Error: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGro u p(ArchiveReader.java:151) at org.apache.axis2.deployment.ServiceDeployer.deploy(ServiceDeployer.java:81) at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(Deplo y mentFileData.java:136) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java : 597) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.ja v a:144) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.ja v a:330) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryList e ner.java:227) at org.apache.axis2.deployment.DeploymentEngine.loadServices(DeploymentEngine. j ava:131) at org.apache.axis2.deployment.WarBasedAxisConfigurator.loadServices(WarBasedA x isConfigurator.java:284) at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationCon t ext(ConfigurationContextFactory.java:82) at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.j a va:511) at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:431) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1 1 39) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java : 3956) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java: 7 60) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppo r t.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.apache.axis2.deployment.DeploymentException: Error loading class [org.apache.axis2.extensions.spring.receivers.ApplicationContextHolder] for bean with name 'applicationContext' defined in class path resource [applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContextAware at org.apache.axis2.deployment.ServiceGroupBuilder.populateServiceGroup(Servic e GroupBuilder.java:106) at org.apache.axis2.deployment.repository.util.ArchiveReader.buildServiceGroup ( ArchiveReader.java:110) at org.apache.axis2.deployment.repository.util.ArchiveReader.processServiceGro u p(ArchiveReader.java:144)
Re: [AXIS2] - How to control To element in the SOAP header?
Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian [EMAIL PROTECTED] wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = *new* EndpointReference(https://...;); String action = ...; client = *new* ServiceClient(ctx, *null*); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = *new* MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, *false*); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(*true*); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header … wsa:To xmlns:wsa= http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: how to handle events from webservices for clients?
I am not sure about WS-Polling, but Axis2 has WS-Eventing implementation. Please check for a module Sawan. It was our WS-Eventing implementation. On Wed, Jun 4, 2008 at 9:12 AM, Newbie [EMAIL PROTECTED] wrote: Hi, I'm new with webservices and was wondering about if Axis2 provides the ability for the webservice to send a event notification to the client. The client can be behind a symmetric NAT and hence the solution needs to handle the firewall problem too. Also, does axis2 support WS-Polling? Thanks -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: Minimal set of JARs to embed Axis2 into a webapp?
What is the black list :) ?? On Wed, Jun 4, 2008 at 6:45 AM, Kurt Kavanaugh [EMAIL PROTECTED] wrote: Can I please be taken off the black list… J -- *From:* Kurt Kavanaugh *Sent:* Monday, June 02, 2008 1:47 PM *To:* axis-user@ws.apache.org *Subject:* Re: Minimal set of JARs to embed Axis2 into a webapp? +---lib axiom-api-1.2.5.jar axiom-impl-1.2.5.jar axis2-kernel-1.3.jar backport-util-concurrent-2.2.jar commons-fileupload-1.1.1.jar commons-httpclient-3.0.1.jar jax-qname-1.5.jar (QName API part of stax-api) neethi-2.0.2.jar wsdl4j-1.6.2.jar wstx-asl-3.2.1.jar xbean-2.3.0.jar XmlSchema-1.3.2.jar Doesn't the AxisServlet depend on annogen-0.1.0.jar.? import org.codehaus.jam.JMethod; JMethod[] method = schemaGenerator.getMethods(); Kurt -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: Soap Header
Check this : http://wso2.org/forum/thread/2608#comment-4298 On Mon, Jun 2, 2008 at 6:57 PM, Priya Agrawal [EMAIL PROTECTED] wrote: Hello, I am new to web services. I created WSDL file also request and response parameter. Generated soap message have only Body no Header information. I want to include Header information for user id and password. Please provide me some point so i will update my WSDL file and how to write server side code for authorization. Thanks, Pritesh Agrawal -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
RE: [AXIS2] - How to control To element in the SOAP header?
Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has To element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another To header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the To element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:41 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control To element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian [EMAIL PROTECTED] wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference(https://...;); String action = ...; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header ... wsa:To xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
RE: [AXIS2] - How to control To element in the SOAP header?
Hi, The WS-Addressing spec states that the address value of the EndpointReference should be copied into the To header. If implementations are doing otherwise, they are probably not WS-Addressing compliant. See Section 2.3 of the following link: http://www.w3.org/Submission/ws-addressing/ Hope this helps... -Vinh From: Victor Solakhian [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 3:01 PM To: axis-user@ws.apache.org Subject: RE: [AXIS2] - How to control To element in the SOAP header? Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has To element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another To header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the To element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks From: Eran Chinthaka [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2008 5:41 PM To: axis-user@ws.apache.org Subject: Re: [AXIS2] - How to control To element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian [EMAIL PROTECTED] wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = new EndpointReference(https://...;); String action = ...; client = new ServiceClient(ctx, null); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = new MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, false); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(true); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header ... wsa:To xmlns:wsa=http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
RE: Problem using Spring/ArrayList
Further on this problem. After a bunch of experimenting I was getting weird ClassCastException errors from my ArrayList (which I declared as String and set with a bunch of string values. I altered my client, adding the following: comments = result.getComments(); // (Check that the variable isn't null - it isn't and has one element.) System.out.println(comments exists and is of type + comments.getClass()); Object o; o = comments.get(i); System.out.println(comment + i + class is + o.getClass()); This returned: comments exists and is of type class java.util.ArrayList comment 0 class is class org.apache.axiom.om.impl.llom.OMElementImpl (?!?) I'm concluding that for my ArrayList Axis2/Spring is calling the setComments(ArrayList al) method but is populating the ArrayList without converting the transport elements back into String first. I have fallen back on using fixed arrays. These are more hassle but they work right now. _ Stephen Kilburn, GeoPraxis Inc. From: Stephen Kilburn [mailto:[EMAIL PROTECTED] Sent: June 4, 2008 16:40 To: axis-user@ws.apache.org Subject: Problem using Spring/ArrayList Hi, I'm trying to use Axis2 1.4 Spring as a transport for objects containing an ArrayList. This is not working for me. XP SP2/JDK1.6.0_06/Apache 2.2/Tomcat 5.5/Axis 2 1.4 using war install. Using the WeatherSpringService example, I modify the Weather class to contain ArrayListString comments. I add getter and setter methods. I set a comment. Generated WSDL shows: xs:complexType name=Weather xs:sequence xs:element minOccurs=0 name=comments nillable=true type=xs:anyType/ xs:element minOccurs=0 name=forecast nillable=true type=xs:string/ xs:element minOccurs=0 name=howMuchRain type=xs:float/ xs:element minOccurs=0 name=rain type=xs:boolean/ xs:element minOccurs=0 name=temperature type=xs:float/ /xs:sequence /xs:complexType When I execute the getWeather method the SOAP passed back shows: ns:return type=sample.spring.bean.Weather ax21:commentsit's nice now!/ax21:comments ax21:forecastle matin/ax21:forecast ax21:howMuchRain0.1/ax21:howMuchRain ax21:raintrue/ax21:rain ax21:temperature37.2/ax21:temperature /ns:return (i.e. the set value is being transported) During testing, I added a setComments(ArrayListString cmt) function to the bean. Later on, I included the following line after setting the internal variable: comments.add(setComments(ArrayList) was called with an array sized + cmts.size()); This is set and says that the passed array was sized 0, so I conclude that something in the transport is creating an ArrayListString and attempting to set the bean with it, but doesn't populate the ArrayList first. Am I missing something here? Has anyone made something like this work successfully? It would make my life easier if I could make this work. _ Stephen Kilburn GeoPraxis Inc.
Re: Configuring SSL on Axis2
Hello Friends, TO make the provider available. Check java.security.policy file in jre directory. the Provider jar must be in ext directory.and file should be in lib\security Jeff Greif wrote: Just a guess, but it appears that you do not have a JCE provider on your classpath, or that one that is on the classpath is not the one requested in some configuration properties file. Jeff On Tue, Jun 3, 2008 at 12:26 AM, prashants b [EMAIL PROTECTED] wrote: Hi, I am configuring SSL on Axis2 1.3 and using Tomcat 5.5.26 as a server. I followed these steps. 1) I generated server keystore. 2) Exported certificate. 3) Imported this certificate in "cacerts". 4) In my web service client I set the properties as System.setProperty("javax.net.ssl.trustStore", "$JAVA_HOME/../cacerts"); System.setProperty("javax.net.ssl.trustStorePassword", "secretPwd"); After calling web service I am getting this error at client. Can any one suggest if I am missing something Please help Exception in thread "main" java.lang.NoClassDefFoundError at javax.crypto.Cipher.getInstance(DashoA12275) at com.sun.net.ssl.internal.ssl.JsseJce.getCipher(Unknown Source) at com.sun.net.ssl.internal.ssl.RSACipher.init(Unknown Source) at com.sun.net.ssl.internal.ssl.RSACipher.getInstance(Unknown Source) at com.sun.net.ssl.internal.ssl.PreMasterSecret.init(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source) at java.io.BufferedOutputStream.flushBuffer(Unknown Source) at java.io.BufferedOutputStream.flush(Unknown Source) at java.io.FilterOutputStream.flush(Unknown Source) at org.apache.commons.httpclient.ChunkedOutputStream.flush(ChunkedOutputStream.java:190) at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:99) at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214) at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311) at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:118) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:422) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68) at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163 Thanks in advance --Prash - 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]
xsd:anyType and OMElement[]
Ok I've already sent this email to the mailing list, but.. I really nedd at least one response, so please try to answer ! whatever the version of axis2 1.3 or 1.4 I use, I've a kind of bud during the wsdl2java operation. why my element Values declared as type = anyType become an OMElement[] instead of an Object[]? in the previous versions of axis (axis1 1.3°, it was worked very well! (in fact I'm upgrading a big web service from axis 1 to axis2, this is my last problem I need to slove..) please help me ! or explain me how to convert an OMElement[] into an object[] ? __ complexType name=SearchConditionClauseType annotation documentation Search Clause Fragment is a comparison between a field and a value. /documentation /annotation sequence element name=Comparator type=tns:SearchComparatorType nillable=true annotation documentation comparator /documentation /annotation /element element name=FieldName type=string nillable=true annotation documentation FieldName to search. Pay attention, fieldnames that are not defined by a type will throw an exception. /documentation /annotation /element element name=Values *type=anyType* maxOccurs=unbounded nillable=true annotation documentation Value for the test. When using the Like operator, the wildcard % can be used. Multiples values can be tested (via OR operator) /documentation /annotation /element element name=RelationName type=string maxOccurs=1 minOccurs=0 nillable=true annotation documentationThere are some relation between types./documentation /annotation /element /sequence /complexType ___ public class SearchConditionClauseType implements org.apache.axis2.databinding.ADBBean { /** * field for Comparator */ protected com.vslitc.service._2008.schema._2008.vslcommontypes.SearchComparatorType localComparator; /** * field for FieldName */ protected java.lang.String localFieldName; /** * field for Values * This was an Array! */ * protected org.apache.axiom.om.OMElement[] localValues;* /** * field for RelationName */ protected java.lang.String localRelationName; Maybe if nobody knows why it's doing that, you could send me a piece of code which was well generated for a type=anytype ? with that I can correct mine... thx a lot to answer!
RE: [Axis2] response content
Anyone have any answers to the question below. Thanks. -Original Message- From: Tony Dean [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2008 4:41 PM To: [EMAIL PROTECTED] Subject: [Axis2] response content Hi, I have a web service that is returning XML... it's schema type is xsd:any. I would expect the content to be returned as follows: HTTP/1.0 200 OK Content-Type: text/xml ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope soapenv:Body ... /soapenv:Body /soapenv:Envelope I would expect this to be returned whether MTOM is enabled or not. Wouldn't you? Here's the response from Axis2 service when MTOM is disabled in the Axis2.conf server config file: HTTP/1.0 200 OK Proxy-Connection: close X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5 X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 Date: Tue, 03 Jun 2008 20:10:23 GMT X-Cache: MISS from inetgw04.unx.sas.com Content-Type: text/xml;charset=UTF-8 Server: Apache-Coyote/1.1 ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body . /soapenv:Body /soapenv:Envelope Looks correct. --- - Here's the response from Axis2 service when MTOM is enabled in the Axis2.conf server config file: HTTP/1.0 200 OK Proxy-Connection: close X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5 X-Cache-Lookup: MISS from inetgw04.unx.sas.com:80 Date: Tue, 03 Jun 2008 20:27:29 GMT X-Cache: MISS from inetgw04.unx.sas.com Content-Type: multipart/related; boundary=MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948; type=application/xop+xml; start=0.urn:uuid:[EMAIL PROTECTED]; start- info=text/xml Server: Apache-Coyote/1.1 --MIMEBoundaryurn_uuid_93D2E13819F92A45691212524849948 Content-Type: application/xop+xml; charset=UTF-8; type=text/xml Content-Transfer-Encoding: binary Content-ID: 0.urn:uuid:[EMAIL PROTECTED] ?xml version='1.0' encoding='UTF-8'? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body /soapenv:Body /soapenv:Envelope Why use multipart/related content type when there are no attachments? That is, why make an attachment out of the SOAP envelope itself when there are no real attachments? Is this correct behavior? I'd like to hear your comments. Thanks. Tony Dean SAS Institute Inc. 919.531.6704 [EMAIL PROTECTED] SAS... The Power to Know http://www.sas.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]
Getting error when trying to install axis2 to Tomcat 4.1
Hi guys, I'm trying to install an axis2 app into Tomcat 4.1 with the binary source as mentioned in the installation instruction. However I get the following error when I try to startup the app: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable. at org.apache.commons.digester.Digester.createSAXException(Digester.java:3181) at org.apache.commons.digester.Digester.createSAXException(Digester.java:3207) ... I'm using Tomcat 4.1 and JDK 1.4 Anyone facing the same problem before? Thanx FooShyn
Re: [AXIS2] - How to control To element in the SOAP header?
Oh I see.Thanks Vinh for the update ;) Can you please help Axis2 to implement it properly to be WS-Addressing compliant ? On Wed, Jun 4, 2008 at 4:00 PM, Vinh Nguyen (vinguye2) [EMAIL PROTECTED] wrote: Hi, The WS-Addressing spec states that the address value of the EndpointReference should be copied into the To header. If implementations are doing otherwise, they are probably not WS-Addressing compliant. See Section 2.3 of the following link: http://www.w3.org/Submission/ws-addressing/ Hope this helps... -Vinh -- *From:* Victor Solakhian [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, June 04, 2008 3:01 PM *To:* axis-user@ws.apache.org *Subject:* RE: [AXIS2] - How to control To element in the SOAP header? Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has To element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another To header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the To element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks -- *From:* Eran Chinthaka [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, June 04, 2008 5:41 PM *To:* axis-user@ws.apache.org *Subject:* Re: [AXIS2] - How to control To element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian [EMAIL PROTECTED] wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = *new* EndpointReference(https://...;); String action = ...; client = *new* ServiceClient(ctx, *null*); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = *new* MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, *false*); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(*true*); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header … wsa:To xmlns:wsa= http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada
Re: [AXIS2] - How to control To element in the SOAP header?
Hi Victor, WS-Addressing specification implementation is a module within Axis2. If you engage that, then it will put relevant headers in to SOAP messages. So users are not expected to mess with those headers. If you want to set two different values to wsa:To and transport endpoint address, there is a well defined way to do that. options.setProperty(Constants.Configuration.TRANSPORT_URL, http://SOAP/message/should/go/here;); and use options.setTo() method to put the address you want to put into wsa:To header. It should work. HTH. Chinthaka On Wed, Jun 4, 2008 at 3:00 PM, Victor Solakhian [EMAIL PROTECTED] wrote: Hi Chinthaka, Actually createSOAPEnvelope() method is mine. It creates an envelope that has To element in the header according to specs of the Web Servcies server. The Axis2 code that sends the message adds another To header block using the value that was set in options.setTo() method. The problem is that sometimes servers expect values in the To element that differ from the value of the endpoint reference used to send messages. I do not know if this is a bug in Axis2. I know that some developers used Axis1 to successfully implement desired behavior. Thanks -- *From:* Eran Chinthaka [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, June 04, 2008 5:41 PM *To:* axis-user@ws.apache.org *Subject:* Re: [AXIS2] - How to control To element in the SOAP header? Hi Victor, If createSOAPEnvelope() method adds wsa:To header, then it is a bug, IMO. Please create a bug in JIRA and someone will look in to this (but it might take some time for me to commit in to this :( ) Thanks, Chinthaka On Wed, Jun 4, 2008 at 10:37 AM, Victor Solakhian [EMAIL PROTECTED] wrote: I have code that creates a SOAP envelope and sends it using Axis2 ServiceCLient. EndpointReference targetEPR = *new* EndpointReference(https://...;); String action = ...; client = *new* ServiceClient(ctx, *null*); operationClient = client.createClient(ServiceClient.ANON_OUT_IN_OP); MessageContext outMsgCtx = *new* MessageContext(); Options options = outMsgCtx.getOptions(); options.setTo(targetEPR); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setProperty(HTTPConstants.CHUNKED, *false*); options.setAction(action); outMsgCtx.setEnvelope(createSOAPEnvelope(operation, payload)); operationClient.addMessageContext(outMsgCtx); operationClient.execute(*true*); Now the createSOAPEnvelope(operation, payload)) method creates an envelope with a header that includes: soapenv:Header … wsa:To xmlns:wsa= http://schemas.xmlsoap.org/ws/2004/08/addressing; urn:xxx.yyy.com.zzz /wsa:To which is expected by the web services server, but Axis2 code adds another To element: wsa:To https://... /wsa:To to the header (using the endpoint reference set by options.setTo(targetEPR)). We need to set the targetEPR to the options so that messages are sent to the right place, but we need to have control on what is put in the header. Is there a way to avoid adding the targetEPR to the header? Thanks, Victor -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada -- With Mettha, Eran Chinthaka Health is the greatest gift; contentment is the greatest wealth; trusting is the best relationship; nirvana is the highest joy. - Dhammapada