The compatibility of Axis 1.4 and JAX-WS when sending attachments
Hi all, I use Axis 1.4 as the SOAP server and JAX-WS as the client, and I want to transfer attachments between them. I use WS-ISwA.xsd in WSDL import namespace=http://ws-i.org/profiles/basic/1.1/xsd; schemaLocation=WS-ISwA.xsd/ ... element name=targetFileName type=wsi:swaRef / But when I use WSDL2Java to generate the stub, the wsi:swaRef is mapped to org.apache.axis.types.URI and when use wsimport to generate the JAX-WS stub, the wsi:swaRef is mapped to DataHandler. So how to configure axis so it mappes wsi:swaRef to DataHandler too? Or there is another way to transfer attachements between these two libs. Thanks a lot - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with wsdl2java
My current shell is bash. As I see wsdl2java is written for sh and it always executes by sh interpretator. What will the difference, if I change my shell to zsh for example ? For trying another shell I must set up all JAVA enviroment variables 2007/5/28, Davanum Srinivas [EMAIL PROTECTED]: which shell are you using? can try please try any other alternate shell(s)? thanks, dims On 5/27/07, Genious Soul [EMAIL PROTECTED] wrote: - Original Message From: neiroman neiroman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Saturday, May 26, 2007 7:58:38 PM Subject: Problem with wsdl2java Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2 wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How does axis decide the endpoint URL?
Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims On 5/18/07, Jeremy Smith [EMAIL PROTECTED] wrote: My server has a bit of a complicated networking setup. It is behind a firewall with an external address, and it only knows about its internal addresses. The problem is that in the wsdl that axis2 generates, it directs clients to the internal URL and they can't connect. How does axis2 decide what the URL will be? Is there any way I can override this? Example: Axis generates this: wsdl:service name=MyService wsdl:port name=MyServiceSOAP11port_http binding=axis2:MyServiceSOAP11Binding soap:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceSOAP12port_http binding=axis2:MyServiceSOAP12Binding soap12:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceHttpport binding=axis2:MyServiceHttpBinding http:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port /wsdl:service where 10.x.x.x is an inaccessible internal IP address. Thanks, Jeremy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate mappings inside aar..
Hello, I'm trying to deploy spring hibernate inside aar-package but spring doesn't seems to be able to locate hibernate mapping files. I've tried using that MultiParentClassLoader and I've tested that it finds the mapping files with getResource-method but when I give it to spring and try to load application context it still gives me FileNotFoundException for that same mapping file. I've placed all mapping files + applicationcontext-files to the root of that aar-package. Anyone have any ideas how to fix this? Here's my spring init code + test for finding that mapping file with that MultiParentClassLoader : try { ClassLoader multiParCL = new MultiParentClassLoader(new URL[0], new ClassLoader[] { AxisService.class.getClassLoader(), this.getClass().getClassLoader() }); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {ApplicationContextWS.xml, ApplicationContextLogic.xml}, false); System.out.print(url: + multiParCL.getResource(User.hbm.xml)); appCtx.setClassLoader(multiParCL); appCtx.refresh(); } catch (Exception ex) { ex.printStackTrace(); } which results in: ERROR [STDERR] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factory' defined in class path resource [ApplicationContextLogic.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR] Caused by: 2007-05-28 11:15:09,968 ERROR [STDERR] java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:656) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284) 2007-05-28 11:15:09,968 ERROR [STDERR] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) but that url for that mapping file is printed ok.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner
Tomcat 5.5 and Axis 1.4 sumedha rubasinghe wrote: Hi, What is the version of Tomcat Axis your using? Sipungora wrote: I have only newly deal with axis. And I have a problem at the installation. I have copied xercesImpl.jar and all other jar-files for XML Parser in TOMCAT\webapps\axis\WEB-INF\lib, but happyaxis.jsp shows me in Examining Application Server, that XML ParserLocation is unknown. Moreover I have the same Problem with JAXP. What should I do? What could I wrong make? In the axis installation instructions it is mentioned distribution directory for xml- axis(Step 7:Testing). Where is this directory located? Thank you very much beforehand. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner-tf3825949.html#a10833354 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2:WSDL2Java giving error
Hi, I'm trying to compile the quickstartadb sample in the Axis2 1.1.1 source distribution. It doesn't appear to be working. I am getting following error - --- C:\axis2\samples\classifiedserviceant generate.client Buildfile: build.xml init: [mkdir] Created dir: C:\axis2\samples\classifiedservice\build generate.client: BUILD FAILED C:\axis2\samples\classifiedservice\build.xml:90: java.util.zip.ZipException: The system cannot find the file specified -- I think all the necessary jars are available and wsdl file is also in right location. I was able to generate the service skeleton by directly using org.apache.axis2.wsdl.WSDL2Java but not able to create service skelton with given build file with example which used anttask. Any suggestion here??? Thanks Snehil
Re: Axis beginner
Furthemore, I have set up Tomcat with Axis on the other Computer and there I have the same Problems plus these ones on the other Places. *** Found SAAJ API ( javax.xml.soap.SOAPMessage ) at an unknown location Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location Found Activation API ( javax.activation.DataHandler ) at an unknown location Examining Application Server XML ParserLocation at an unknown location *** sumedha rubasinghe wrote: Hi, What is the version of Tomcat Axis your using? Sipungora wrote: I have only newly deal with axis. And I have a problem at the installation. I have copied xercesImpl.jar and all other jar-files for XML Parser in TOMCAT\webapps\axis\WEB-INF\lib, but happyaxis.jsp shows me in Examining Application Server, that XML ParserLocation is unknown. Moreover I have the same Problem with JAXP. What should I do? What could I wrong make? In the axis installation instructions it is mentioned distribution directory for xml- axis(Step 7:Testing). Where is this directory located? Thank you very much beforehand. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner-tf3825949.html#a10833961 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Web service asynchronous invocation
Hello, My name is Adrián Toporcer and I am a student from the Computer Engineering Faculty of Barcelona (Spain). I am doing my final course project and it involves Axis2. I would be grateful whether you could answer my doubt or whether, at least, you could tell me where is it answered. However I have not found the answer anywhere. I need a web service that can be invoked from a PHP script (actually, it is a script integrated in the Moodle platform) without waiting for the result. The task of the web service consists in writing in a database so there is no result at all. This means that the web service call should be done in an asynchronous way, but from the PHP's web service API(NuSOAP) it is not possible to make this kind of invocations. I have found the next statement relative to Axis2: Web services implementation invocation within the engine can be done either synchronously or asynchronously., so I thought there should be a way to do it without worrying about the technology from which the call is made, but configuring Axis2 or the web service directly. Actually I developed a web service that creates a thread which does the hard work, so the web service ends almost immediately. However, it seems that when two users call the web service simultaneously the first call does not end properly. Maybe it is something related with Tomcat's thread pool and how it cleans the resources used by the threads that have already ended. Can you tell me how should I proceed to make this asynchronous call to the web service? I hope that you understood my problem despite my poor english. Thank you for your time. Adrián.
problem installing axis[jboss-4.0.5]
hi,I'm tring to install axis,but when I try to access to this page http://localhost:8080/axis/EchoHeaders.jws?method=3Dlist, I receive this error. [JWSHandler] Exception: AxisFault faultCode: {http://xml.apache.org/axis/}Server.compileError faultSubcode: faultString: Error while compiling: /home/lorenza/seconda/jboss-4.0.5.G= A/server/default/./deploy/axis.war/WEB-INF/jwsClasses/EchoHeaders.java faultActor: faultNode: faultDetail: {}Errors: Error compiling /home/lorenza/seconda/jboss-4.0.5.GA/se= rver/default/./deploy/axis.war/WEB-INF/jwsClasses/EchoHeaders.java: Line 0, column 0: could not parse error message: Note: sun.tools.javac.M= ain has been deprecated. /home/lorenza/seconda/jboss-4.0.5.GA/server/default/./deploy/axis.war/WEB= -INF/jwsClasses/EchoHeaders.java:59: Class javax.servlet.http.HttpServlet= Request not found in import. import javax.servlet.http.HttpServletRequest; ^ Line 0, column 0: 1 error, 1 warning I'm working on ubuntu whit jdk-1.5.0_11 and axis version 1.1 can somebody help me? thanks L.A. -- Leggi GRATIS le tue mail con il telefonino i-mode di Wind http://i-mode.wind.it/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hibernate mappings inside aar..
.. I noticed that hibernate is able to find that mapping file when I place it to axis2/WEB-INF/lib. So it seems that Spring is not giving that MultiParentClassLoader to Hibernate and I guess it's then trying to locate resources with TCCL. Does anyone know any solution for how to make hibernate look for those resources within aar-package? On 5/28/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'm trying to deploy spring hibernate inside aar-package but spring doesn't seems to be able to locate hibernate mapping files. I've tried using that MultiParentClassLoader and I've tested that it finds the mapping files with getResource-method but when I give it to spring and try to load application context it still gives me FileNotFoundException for that same mapping file. I've placed all mapping files + applicationcontext-files to the root of that aar-package. Anyone have any ideas how to fix this? Here's my spring init code + test for finding that mapping file with that MultiParentClassLoader : try { ClassLoader multiParCL = new MultiParentClassLoader(new URL[0], new ClassLoader[] { AxisService.class.getClassLoader(), this.getClass().getClassLoader() }); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {ApplicationContextWS.xml, ApplicationContextLogic.xml}, false); System.out.print(url: + multiParCL.getResource(User.hbm.xml)); appCtx.setClassLoader(multiParCL); appCtx.refresh(); } catch (Exception ex) { ex.printStackTrace(); } which results in: ERROR [STDERR] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factory' defined in class path resource [ApplicationContextLogic.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR] Caused by: 2007-05-28 11:15:09,968 ERROR [STDERR] java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:135) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:656) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) but that url for that mapping file is printed ok.. - 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: Problem with wsdl2java
try replacing the sh in the wsdl2java.sh file with a . or use this command sh axis2.sh org.apache.axis2.wsdl.WSDL2Java your arguments On 5/28/07, neiroman neiroman [EMAIL PROTECTED] wrote: My current shell is bash. As I see wsdl2java is written for sh and it always executes by sh interpretator. What will the difference, if I change my shell to zsh for example ? For trying another shell I must set up all JAVA enviroment variables 2007/5/28, Davanum Srinivas [EMAIL PROTECTED]: which shell are you using? can try please try any other alternate shell(s)? thanks, dims On 5/27/07, Genious Soul [EMAIL PROTECTED] wrote: - Original Message From: neiroman neiroman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Saturday, May 26, 2007 7:58:38 PM Subject: Problem with wsdl2java Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED] :/usr/lib/axis2 wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Amila Suriarachchi, WSO2 Inc.
Axis beginner2
Nobody want me to answer. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10835380 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
JDK1.5. tomcat 5.5, Axis2 1.2 is my usual environment. -- dims On 5/28/07, Sipungora [EMAIL PROTECTED] wrote: Nobody want me to answer. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10835380 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hibernate mappings inside aar..
You are using spring with hibernate right? Spring 2.0 ? Does this work for you? http://www.springframework.org/docs/api/org/springframework/orm/hibernate/LocalSessionFactoryBean.html#setMappingDirectoryLocations(org.springframework.core.io.Resource[]) Keep in mind the aar file can be deployed expanded. See the example below for a hint on using classpath locations and DEBUG mode to see what is getting picked up as locations. http://ws.apache.org/axis2/1_2/spring.html#263 HTH, Robert On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: .. I noticed that hibernate is able to find that mapping file when I place it to axis2/WEB-INF/lib. So it seems that Spring is not giving that MultiParentClassLoader to Hibernate and I guess it's then trying to locate resources with TCCL. Does anyone know any solution for how to make hibernate look for those resources within aar-package? On 5/28/2007, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I'm trying to deploy spring hibernate inside aar-package but spring doesn't seems to be able to locate hibernate mapping files. I've tried using that MultiParentClassLoader and I've tested that it finds the mapping files with getResource-method but when I give it to spring and try to load application context it still gives me FileNotFoundException for that same mapping file. I've placed all mapping files + applicationcontext-files to the root of that aar-package. Anyone have any ideas how to fix this? Here's my spring init code + test for finding that mapping file with that MultiParentClassLoader : try { ClassLoader multiParCL = new MultiParentClassLoader(new URL[0], new ClassLoader[] { AxisService.class.getClassLoader(), this.getClass().getClassLoader() }); ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {ApplicationContextWS.xml, ApplicationContextLogic.xml}, false); System.out.print(url: + multiParCL.getResource(User.hbm.xml)); appCtx.setClassLoader(multiParCL); appCtx.refresh(); } catch (Exception ex) { ex.printStackTrace(); } which results in: ERROR [STDERR] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'factory' defined in class path resource [ApplicationContextLogic.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR] Caused by: 2007-05-28 11:15:09,968 ERROR [STDERR] java.io.FileNotFoundException: class path resource [User.hbm.xml] cannot be opened because it does not exist 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.core.io.ClassPathResource.getInputStream( ClassPathResource.java:135) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (LocalSessionFactoryBean.java:656) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet (AbstractSessionFactoryBean.java:134) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods (AbstractAutowireCapableBeanFactory.java:1202) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean (AbstractAutowireCapableBeanFactory.java:1172) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:428) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject( AbstractBeanFactory.java:251) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:156) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:248) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:160) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:284) 2007-05-28 11:15:09,968 ERROR [STDERR]at org.springframework.context.support.AbstractApplicationContext.refresh( AbstractApplicationContext.java:352) but that url for that mapping file is printed ok.. - To unsubscribe,
Re: Axis beginner2
Thank you, Sumedha, very much. I'll report about my advances later. sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836332 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: Problem with wsdl2java
neiroman neiroman wrote: Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2 wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri I believe I had the same problem when I started to use Axis2.1.2. I already posted a solution for this problem in a previous thread: http://marc.info/?l=axis-userm=11787015586w=2 You may take a look at it. Stephane Roy Alcatel-Lucent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
Unfortunatelly it won't work. I could not load axis 1.2 and axis 1.2.1 and axis 1.3 only axis 1.4. There it went wrong with a download. You can proof that yourself. And what can I do now? sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836651 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
old versions are in http://archive.apache.org/ -- dims On 5/28/07, Sipungora [EMAIL PROTECTED] wrote: Unfortunatelly it won't work. I could not load axis 1.2 and axis 1.2.1 and axis 1.3 only axis 1.4. There it went wrong with a download. You can proof that yourself. And what can I do now? sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836651 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
Thank you, Davanum, but in what directory schould I looking for axis? Davanum Srinivas wrote: old versions are in http://archive.apache.org/ -- dims On 5/28/07, Sipungora [EMAIL PROTECTED] wrote: Unfortunatelly it won't work. I could not load axis 1.2 and axis 1.2.1 and axis 1.3 only axis 1.4. There it went wrong with a download. You can proof that yourself. And what can I do now? sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836651 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10837167 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: [VOTE] Apache Rampart-1.2 Release
Folks, Anyone interested in rampart release, please head on over to rampart-dev@ and report issues against the release candidate. thanks, dims -- Forwarded message -- From: Ruchith Fernando [EMAIL PROTECTED] Date: May 28, 2007 7:59 AM Subject: [VOTE] Apache Rampart-1.2 Release To: [EMAIL PROTECTED] Hi All, I'd like to propose the 1.2 release of Apache Rampart with the release artifacts available here[1]. (finally !!! :-) ) This release provides WS-Security, WS-Trust and WS-SecureConversation implementations for Apache Axis2-1.2. Rampart configuration is based on WS-SecurityPolicy and we still support Rampart-1.0 style configuration even though its marked to be deprecated. Here's my +1 for the release. Thanks, Ruchith -- www.ruchith.org www.wso2.org -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Recommendations for a new project?
Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way possible. I just wrote a POJO class with a method String authenticate( String, String, String ) and ran Java2Wsdl using the basic defaults. I don't explicitly use any of the Axis apis. However, looking to the future, I can see where I'll eventually need to take more control, for example I might want to manipulate the SOAP headers and/or use WS-Security, and I'll probably eventually want to pass around more complicated structures than strings. So I'm trying to determine the best strategy. I'm slightly bewildered with all of the choices: 1. Should I write the clients and services from scratch using the axiom libraries, or generate the stubs and skeletons? 2. If I write them from scratch, and already have my own model classes (representing such things as users), should I use one of the data binding libraries such as XMLBeans or JiBX? If so, which one? 3. Should I be maintaining my wsdl file (and included schema files) by hand (or using an appropriate editing tool) in order to maitain control over the various types, as opposed to generating it using Java2Wsdl every time the interface changes? I can see that the Axis developers have tried hard to provide a spectrum of methods and interfaces from the easy/simple to the complex/powerful. But I'd be very interested to know what methods a really experienced Axis user would use. Many thanks, Michael Davis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Recommendations for a new project?
I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way possible. I just wrote a POJO class with a method String authenticate( String, String, String ) and ran Java2Wsdl using the basic defaults. I don't explicitly use any of the Axis apis. However, looking to the future, I can see where I'll eventually need to take more control, for example I might want to manipulate the SOAP headers and/or use WS-Security, and I'll probably eventually want to pass around more complicated structures than strings. So I'm trying to determine the best strategy. I'm slightly bewildered with all of the choices: 1. Should I write the clients and services from scratch using the axiom libraries, or generate the stubs and skeletons? 2. If I write them from scratch, and already have my own model classes (representing such things as users), should I use one of the data binding libraries such as XMLBeans or JiBX? If so, which one? 3. Should I be maintaining my wsdl file (and included schema files) by hand (or using an appropriate editing tool) in order to maitain control over the various types, as opposed to generating it using Java2Wsdl every time the interface changes? I can see that the Axis developers have tried hard to provide a spectrum of methods and interfaces from the easy/simple to the complex/powerful. But I'd be very interested to know what methods a really experienced Axis user would use. Many thanks, Michael Davis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis setup (JAXP)
happyaxis.jsp shows me: *** Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location *** What jar-file should be found? In what directory should it be located? %CATALINA_HOME%\webapps\axis\WEB-INF\lib or? Should be %AXIS_HOME% and %CATALINA_HOME%\webapps\axis different directories or the same? From Axis installation instructions I have not quite understand this. Thank you very much beforehead. -- View this message in context: http://www.nabble.com/Axis-setup-%28JAXP%29-tf3828768.html#a10838524 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: Recommendations for a new project?
From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way possible. I just wrote a POJO class with a method String authenticate( String, String, String ) and ran Java2Wsdl using the basic defaults. I don't explicitly use any of the Axis apis. However, looking to the future, I can see where I'll eventually need to take more control, for example I might want to manipulate the SOAP headers and/or use WS-Security, and I'll probably eventually want to pass around more complicated structures than strings. So I'm trying to determine the best strategy. I'm slightly bewildered with all of the choices: 1. Should I write the clients and services from scratch using the axiom libraries, or generate the stubs and skeletons? 2. If I write them from scratch, and already have my own model classes (representing such things as users), should I use one of the data binding libraries such as XMLBeans or JiBX? If so, which one? 3. Should I be maintaining my wsdl file (and included schema files) by hand (or using an appropriate editing tool) in order to maitain control over the various types, as opposed to generating it using Java2Wsdl every time the interface changes? I can see that the Axis developers have tried hard to provide a spectrum of methods and interfaces from the easy/simple to the complex/powerful. But I'd be very interested to know what methods a really experienced Axis user would use. Many thanks, Michael Davis - 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: Recommendations for a new project?
Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 12:18 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way possible. I just wrote a POJO class with a method String authenticate( String, String, String ) and ran Java2Wsdl using the basic defaults. I don't explicitly use any of the Axis apis. However, looking to the future, I can see where I'll eventually need to take more control, for example I might want to manipulate the SOAP headers and/or use WS-Security, and I'll probably eventually want to pass around more complicated structures than strings. So I'm trying to determine the best strategy. I'm slightly bewildered with all of the choices: 1. Should I write the clients and services from scratch using the axiom libraries, or generate the stubs and skeletons? 2. If I write them from scratch, and already have my own model classes (representing such things as users), should I use one of the data binding libraries such as XMLBeans or JiBX? If so, which one? 3. Should I be maintaining my wsdl file (and included schema files) by hand (or using an appropriate editing tool) in order to maitain control over the various types, as opposed to generating it using Java2Wsdl every time the interface changes? I can see that the Axis developers have tried hard to provide a spectrum of methods and interfaces from the easy/simple to the complex/powerful. But I'd be very interested to know what methods a really experienced Axis user would use. Many thanks, Michael Davis - 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: Recommendations for a new project?
Ok, thanks again -Original Message- From: robert lazarski [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 12:36 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- From: robert lazarski [mailto: [EMAIL PROTECTED] Sent: Monday, May 28, 2007 12:18 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way possible. I just wrote a POJO class with a method String authenticate( String, String, String ) and ran Java2Wsdl using the basic defaults. I don't explicitly use any of the Axis apis. However, looking to the future, I can see where I'll eventually need to take more control, for example I might want to manipulate the SOAP headers and/or use WS-Security, and I'll probably eventually want to pass around more complicated structures than strings. So I'm trying to determine the best strategy. I'm slightly bewildered with all of the choices: 1. Should I write the clients and services from scratch using the axiom libraries, or generate the stubs and skeletons? 2. If I write them from scratch, and already have my own model classes (representing such things as users), should I use one of the data binding libraries such as XMLBeans or JiBX? If so, which one? 3. Should I be maintaining my wsdl file (and included schema files) by hand (or using an appropriate editing tool) in order to maitain control over the various types, as opposed to generating it using Java2Wsdl every time the interface changes? I can see that the Axis developers have tried hard to provide a spectrum of methods and interfaces from the easy/simple to the complex/powerful. But I'd be very interested to know what methods a really experienced Axis user would use. Many thanks, Michael Davis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
Have a look at this http://archive.apache.org/dist/ws/axis/ regards Charitha Sipungora wrote: Thank you, Davanum, but in what directory schould I looking for axis? Davanum Srinivas wrote: old versions are in http://archive.apache.org/ -- dims On 5/28/07, Sipungora [EMAIL PROTECTED] wrote: Unfortunatelly it won't work. I could not load axis 1.2 and axis 1.2.1 and axis 1.3 only axis 1.4. There it went wrong with a download. You can proof that yourself. And what can I do now? sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836651 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: soap or soapenv
The former is SOAP version 1.2, and the latter is SOAP version 1.1. I'm new to Axis but I'm betting that there is a way to coerce it into using soap 1.1 (or maybe there's a way to coerce .net to use 1.2?) Michael Davis -Original Message- From: Harrie Hazewinkel [mailto:[EMAIL PROTECTED] Sent: Friday, May 25, 2007 6:24 PM To: axis-user@ws.apache.org Subject: soap or soapenv Hallo, I would like to know if someone can tell me the difference between the usage of 'soap' and 'soapenv'? I see the usage of 'soapenv' in the axis2 package, but .NET uses 'soap' and does not accept the 'soapenv'. Is there some parameter one can set for this? message ?xml version=1.0 encoding=utf-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/ envelope/ soapenv:Header . /soapenv:Header soapenv:Body .. /soapenv:Body /soapenv:Envelope and ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:soap=http:// schemas.xmlsoap.org/soap/envelope/ soap:Header . /soap:Header soap:Body . /soap:Body /soap:Envelope Thanks by advance, Harrie -- Funambol - Professional Services, Netherlands http://www.funambol.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis beginner2
Thank you, Charitha, very much. It was OK with download. Charitha Kankanamge wrote: Have a look at this http://archive.apache.org/dist/ws/axis/ regards Charitha Sipungora wrote: Thank you, Davanum, but in what directory schould I looking for axis? Davanum Srinivas wrote: old versions are in http://archive.apache.org/ -- dims On 5/28/07, Sipungora [EMAIL PROTECTED] wrote: Unfortunatelly it won't work. I could not load axis 1.2 and axis 1.2.1 and axis 1.3 only axis 1.4. There it went wrong with a download. You can proof that yourself. And what can I do now? sumedha rubasinghe wrote: Hi, Sipungora wrote: Nobody want me to answer. I replied to your previous mail, inquiring the version of Axis tomcat version your using. OK I ask it in other words. What a versions of Tomcat, Axis and JSDK schould I take in order to be assure, that their setup is without much ado? Use following as your guideline. http://ws.apache.org/axis2/1_2/installationguide.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10836651 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Axis-beginner2-tf3827726.html#a10839022 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Hostname parameter in axis2.xml
Hi: I'm using Tomcat 6 on port 8080 with Axis 1.2. My server is a LAN with one NIC and just one private IP address. Let's say: 192.168.10.10/24. I using a firewall conected to the Internat which has a public IP address: Let's say: 200.0.0.1/24. When a client connects to my services Autogenerated WSDL they get all http locations (soap:address) refering to my internal IP address, that is 'http://192.168.10.10:8080/services/?wsdl' I need a way to instruct Axis to put my public IP address when the 'Auto Generated WSDL' is served. I read previously the same situation in this thread: http://marc.info/?t=11795143196r=1w=2 but it doesn't come to a close. I tried enabling and changing the hostname parameter in axis2.xml inside tag transportReceiver name=http class=org.apache.axis2.transport.http.SimpleHTTPServer, but this did not change any behaviour in my 'Autogenerated WSDL'. I think this is because I'm not using SimpleAxisServer, just Axis2 on Tomcat as told above. I having a hard time trying to get more info on the net about it. If anyone can help, this will be much appreciated. Thanks in advance, Regards, Luis Mensaje original Asunto: Re: How does axis decide the endpoint URL? Fecha: Mon, 28 May 2007 04:36:30 -0300 De: Luis Mariano Luporini [EMAIL PROTECTED] Para: axis-user@ws.apache.org Referencias:[EMAIL PROTECTED] Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims On 5/18/07, Jeremy Smith [EMAIL PROTECTED] wrote: My server has a bit of a complicated networking setup. It is behind a firewall with an external address, and it only knows about its internal addresses. The problem is that in the wsdl that axis2 generates, it directs clients to the internal URL and they can't connect. How does axis2 decide what the URL will be? Is there any way I can override this? Example: Axis generates this: wsdl:service name=MyService wsdl:port name=MyServiceSOAP11port_http binding=axis2:MyServiceSOAP11Binding soap:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceSOAP12port_http binding=axis2:MyServiceSOAP12Binding soap12:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceHttpport binding=axis2:MyServiceHttpBinding http:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port /wsdl:service where 10.x.x.x is an inaccessible internal IP address. Thanks, Jeremy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
Re: Axis2:WSDL2Java giving error
Why is the quickstartadb example in a directory called classifiedservice? Are you sure you're running what you think you're running? Glen Am Montag, den 28.05.2007, 15:32 +0530 schrieb snehil Brajpuriya: Hi, I'm trying to compile the quickstartadb sample in the Axis2 1.1.1 source distribution. It doesn't appear to be working. I am getting following error - --- C:\axis2\samples\classifiedserviceant generate.client Buildfile: build.xml init: [mkdir] Created dir: C:\axis2\samples\classifiedservice\build generate.client: BUILD FAILED C:\axis2\samples\classifiedservice\build.xml:90: java.util.zip.ZipException: The system cannot find the file specified -- I think all the necessary jars are available and wsdl file is also in right location. I was able to generate the service skeleton by directly using org.apache.axis2.wsdl.WSDL2Java but not able to create service skelton with given build file with example which used anttask. Any suggestion here??? Thanks Snehil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Recommendations for a new project?
Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working on a simple web service that provides a single-sign-on for our organization's applications. The first operation I'm working on is very simple - it just takes three strings (user name, password and application name) and returns a string containing a list of permissions. It works fine, but I've implemented it using the easiest way
Re: raw XML from apache axis
In addition to the others' suggestions, you may wish to look at the Apache TCPMon source code for ideas on trapping the request and response. You'll still need to write the database code though. Glen Am Freitag, den 25.05.2007, 11:10 -0400 schrieb Jaya Pattaswamy: Hi, Can any one tell me on how to capture the request and response XMLs Using Apache Axis without Using TCPMon or SOAP Monitor? I want to store these request and response in a Database. Thanks and Regards, Jaya SunCom is the wireless company that's committed to doing things differently. Things we want you to know. This e-mail and any files transmitted with it are confidential and are intended solely for the use of the individual or entity to whom they are addressed. This communication may contain material protected by the attorney-client privilege. If you are not the intended recipient or the person responsible for delivering the e-mail to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Recommendations for a new project?
To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several years. I'm working
Re: Recommendations for a new project?
I didn't too. It seems to me like the most natural approach to interop in the middle of refactoring and adding new features. Thanks to you. Luis [EMAIL PROTECTED] escribió: To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd
[TIP] How do i tell Axis2 *not* to change the port/ip address when i use the useOriginalwsdl parameter?
See http://wso2.org/blog/dims/1572 -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hostname parameter in axis2.xml
See http://wso2.org/blog/dims/1572 -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Hi: I'm using Tomcat 6 on port 8080 with Axis 1.2. My server is a LAN with one NIC and just one private IP address. Let's say: 192.168.10.10/24. I using a firewall conected to the Internat which has a public IP address: Let's say: 200.0.0.1/24. When a client connects to my services Autogenerated WSDL they get all http locations (soap:address) refering to my internal IP address, that is 'http://192.168.10.10:8080/services/?wsdl' I need a way to instruct Axis to put my public IP address when the 'Auto Generated WSDL' is served. I read previously the same situation in this thread: http://marc.info/?t=11795143196r=1w=2 but it doesn't come to a close. I tried enabling and changing the hostname parameter in axis2.xml inside tag transportReceiver name=http class=org.apache.axis2.transport.http.SimpleHTTPServer, but this did not change any behaviour in my 'Autogenerated WSDL'. I think this is because I'm not using SimpleAxisServer, just Axis2 on Tomcat as told above. I having a hard time trying to get more info on the net about it. If anyone can help, this will be much appreciated. Thanks in advance, Regards, Luis Mensaje original Asunto: Re: How does axis decide the endpoint URL? Fecha: Mon, 28 May 2007 04:36:30 -0300 De: Luis Mariano Luporini [EMAIL PROTECTED] Para: axis-user@ws.apache.org Referencias:[EMAIL PROTECTED] Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims On 5/18/07, Jeremy Smith [EMAIL PROTECTED] wrote: My server has a bit of a complicated networking setup. It is behind a firewall with an external address, and it only knows about its internal addresses. The problem is that in the wsdl that axis2 generates, it directs clients to the internal URL and they can't connect. How does axis2 decide what the URL will be? Is there any way I can override this? Example: Axis generates this: wsdl:service name=MyService wsdl:port name=MyServiceSOAP11port_http binding=axis2:MyServiceSOAP11Binding soap:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceSOAP12port_http binding=axis2:MyServiceSOAP12Binding soap12:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceHttpport binding=axis2:MyServiceHttpBinding http:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port /wsdl:service where 10.x.x.x is an inaccessible internal IP address. Thanks, Jeremy - To unsubscribe, e-mail:
[axis2]Configuring logging inside Tomcat
Folks: I've been trying to do logging from inside my POJO axis2 web service, but I'm buffaloed by the configuration. I'm deploying into Tomcat 5.5.x Currently, my error messages go to the console. I'm trying to configure the logging so that my log messages go to a separate application log file (which will live inside CATALINA_HOME/logs. I've edited the Tomcat 5.x logging.properties file as follows: 1) I've added a handler in the handlers line: handlers = 1catalina.org.apache.juli.FileHandler, 6genecruiser.org.apache.juli.FileHandler... 2) I've defined the handler: 6genecruiser.org.apache.juli.FileHandler.level = FINE 6genecruiser.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 6genecruiser.org.apache.juli.FileHandler.prefix = genecruiser. 3) I've assigned the handler to the context: org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].level = DEBUG org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2].handlers = 6genecruiser.org.apache.juli.FileHandler Inside my axis2 web service, I get the log as follows: private static Log log = LogFactory.getLog(VariationService.class); I then log a message using: log.error(hello world); The error message goes to the Tomcat console. My genecruiser.log file gets created in the CATALINA_HOME/logs directory, but it is empty. Any suggestions? -- Jared Nedzel Cancer Genomics Informatics Broad Institute - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Recommendations for a new project?
No No No :) Please use contract-first. thanks, -- dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org Subject: Recommendations for a new project? Hi, I apologize in advance for a slightly rambling and unfocussed request for advice. The short questions are: if you are a really experienced Axis user, and are starting a brand new project, would you write everything from scratch using Axiom? Would you use one of the data binding libraries such as JiBX? Would you maintain your wsdl/xsd files by hand? Now for the long version: I'm new to Axis and web services, but have been programming Java for several
Re: Hostname parameter in axis2.xml
Great dims, I tried it and worked. Although, it worked for user provided WSDL and not for Autogenerated (for example in case of POJO based service). Is there any alternative or some setting axis2 wide? Thanks for your help. Davanum Srinivas escribió: See http://wso2.org/blog/dims/1572 -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Hi: I'm using Tomcat 6 on port 8080 with Axis 1.2. My server is a LAN with one NIC and just one private IP address. Let's say: 192.168.10.10/24. I using a firewall conected to the Internat which has a public IP address: Let's say: 200.0.0.1/24. When a client connects to my services Autogenerated WSDL they get all http locations (soap:address) refering to my internal IP address, that is 'http://192.168.10.10:8080/services/?wsdl' I need a way to instruct Axis to put my public IP address when the 'Auto Generated WSDL' is served. I read previously the same situation in this thread: http://marc.info/?t=11795143196r=1w=2 but it doesn't come to a close. I tried enabling and changing the hostname parameter in axis2.xml inside tag transportReceiver name=http class=org.apache.axis2.transport.http.SimpleHTTPServer, but this did not change any behaviour in my 'Autogenerated WSDL'. I think this is because I'm not using SimpleAxisServer, just Axis2 on Tomcat as told above. I having a hard time trying to get more info on the net about it. If anyone can help, this will be much appreciated. Thanks in advance, Regards, Luis Mensaje original Asunto: Re: How does axis decide the endpoint URL? Fecha: Mon, 28 May 2007 04:36:30 -0300 De: Luis Mariano Luporini [EMAIL PROTECTED] Para: axis-user@ws.apache.org Referencias:[EMAIL PROTECTED] Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims On 5/18/07, Jeremy Smith [EMAIL PROTECTED] wrote: My server has a bit of a complicated networking setup. It is behind a firewall with an external address, and it only knows about its internal addresses. The problem is that in the wsdl that axis2 generates, it directs clients to the internal URL and they can't connect. How does axis2 decide what the URL will be? Is there any way I can override this? Example: Axis generates this: wsdl:service name=MyService wsdl:port name=MyServiceSOAP11port_http binding=axis2:MyServiceSOAP11Binding soap:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port name=MyServiceSOAP12port_http binding=axis2:MyServiceSOAP12Binding soap12:address location=http://10.x.x.x:80/axis2/services/MyService/ http://10.x.x.x:80/axis2/services/MyService /wsdl:port wsdl:port
Re: [axis2]Configuring logging inside Tomcat
You don't need and edit the tomcat logging files to do that. One way to get what you seem to be after is: 1) Place a recent version of log4j under axis2/WEB-INF/lib 2) Define your apenders and categories in axis2/WEB-INF/classes/log4j.properties : log4j.appender.apacheOrg=org.apache.log4j.RollingFileAppender log4j.appender.apacheOrg.layout=org.apache.log4j.PatternLayout log4j.appender.apacheOrg.layout.ConversionPattern=%d [%c] - %m%n log4j.appender.apacheOrg.File=${catalina.home}/logs/apache_logs.log log4j.appender.apacheOrg.MaxFileSize=4KB log4j.appender.apacheOrg.MaxBackupIndex=1 log4j.category.org.apache=DEBUG, apacheOrg log4j.category.com.myapp=DEBUG, apacheOrg HTH, Robert On 5/28/07, jnedzel [EMAIL PROTECTED] wrote: Folks: I've been trying to do logging from inside my POJO axis2 web service, but I'm buffaloed by the configuration. I'm deploying into Tomcat 5.5.x Currently, my error messages go to the console. I'm trying to configure the logging so that my log messages go to a separate application log file (which will live inside CATALINA_HOME/logs. I've edited the Tomcat 5.x logging.properties file as follows: 1) I've added a handler in the handlers line: handlers = 1catalina.org.apache.juli.FileHandler, 6genecruiser.org.apache.juli.FileHandler... 2) I've defined the handler: 6genecruiser.org.apache.juli.FileHandler.level = FINE 6genecruiser.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 6genecruiser.org.apache.juli.FileHandler.prefix = genecruiser. 3) I've assigned the handler to the context: org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/axis2].level = DEBUG org.apache.catalina.core.ContainerBase .[Catalina].[localhost].[/axis2].handlers = 6genecruiser.org.apache.juli.FileHandler Inside my axis2 web service, I get the log as follows: private static Log log = LogFactory.getLog(VariationService.class); I then log a message using: log.error(hello world); The error message goes to the Tomcat console. My genecruiser.log file gets created in the CATALINA_HOME/logs directory, but it is empty. Any suggestions? -- Jared Nedzel Cancer Genomics Informatics Broad Institute - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Hostname parameter in axis2.xml
Luis, You best bet for Axis2 1.2 release would be to save the autogenerated file and use the modifyUserWSDLPortAddress / useOriginalwsdl in services.xml. Please raise an issue in JIRA for an alternate mechanism say supply the host name in web.xml servlet init parameters for system wide use. Sorry about that. -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Great dims, I tried it and worked. Although, it worked for user provided WSDL and not for Autogenerated (for example in case of POJO based service). Is there any alternative or some setting axis2 wide? Thanks for your help. Davanum Srinivas escribió: See http://wso2.org/blog/dims/1572 -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Hi: I'm using Tomcat 6 on port 8080 with Axis 1.2. My server is a LAN with one NIC and just one private IP address. Let's say: 192.168.10.10/24. I using a firewall conected to the Internat which has a public IP address: Let's say: 200.0.0.1/24. When a client connects to my services Autogenerated WSDL they get all http locations (soap:address) refering to my internal IP address, that is 'http://192.168.10.10:8080/services/?wsdl' I need a way to instruct Axis to put my public IP address when the 'Auto Generated WSDL' is served. I read previously the same situation in this thread: http://marc.info/?t=11795143196r=1w=2 but it doesn't come to a close. I tried enabling and changing the hostname parameter in axis2.xml inside tag transportReceiver name=http class=org.apache.axis2.transport.http.SimpleHTTPServer, but this did not change any behaviour in my 'Autogenerated WSDL'. I think this is because I'm not using SimpleAxisServer, just Axis2 on Tomcat as told above. I having a hard time trying to get more info on the net about it. If anyone can help, this will be much appreciated. Thanks in advance, Regards, Luis Mensaje original Asunto: Re: How does axis decide the endpoint URL? Fecha: Mon, 28 May 2007 04:36:30 -0300 De: Luis Mariano Luporini [EMAIL PROTECTED] Para: axis-user@ws.apache.org Referencias:[EMAIL PROTECTED] Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims On 5/18/07, Jeremy Smith [EMAIL PROTECTED] wrote: My server has a bit of a complicated networking setup. It is behind a firewall with an external address, and it only knows about its internal addresses. The problem is that in the wsdl that axis2 generates, it directs clients to the internal URL and they can't connect. How does axis2 decide what the URL will be? Is there any way I can override this? Example: Axis generates this: wsdl:service name=MyService wsdl:port name=MyServiceSOAP11port_http binding=axis2:MyServiceSOAP11Binding
RE: Recommendations for a new project?
Thanks Davanum, that sounds like a Yes Yes Yes to me :-) One more question: It also feels like it makes sense to factor out the xsd files and include them in the wsdls, mainly to avoid duplication but also to allow the xsds to be reused in other types of applications. Are there any pitfalls to that practice that I'm not anticipating, such as issues with data binding libraries or something? cheers md -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 3:06 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? No No No :) Please use contract-first. thanks, -- dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To: axis-user@ws.apache.org mailto:axis-user@ws.apache.org
Re: Hostname parameter in axis2.xml
Ok, dims thanks. I'll do that. Anyway I'm probably going for a 'Contract-First' approach. But it's possible that we have clients using our WS from the internet (public IP address) and from our LAN (private IP address). and that case is a problem because with need to put a handcoded location in our WSDL (one IP or the other). You clarified it a lot to me. Thanks for your help again. Luis Davanum Srinivas escribió: Luis, You best bet for Axis2 1.2 release would be to save the autogenerated file and use the modifyUserWSDLPortAddress / useOriginalwsdl in services.xml. Please raise an issue in JIRA for an alternate mechanism say supply the host name in web.xml servlet init parameters for system wide use. Sorry about that. -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Great dims, I tried it and worked. Although, it worked for user provided WSDL and not for Autogenerated (for example in case of POJO based service). Is there any alternative or some setting axis2 wide? Thanks for your help. Davanum Srinivas escribió: See http://wso2.org/blog/dims/1572 -- dims On 5/28/07, Luis Mariano Luporini [EMAIL PROTECTED] wrote: Hi: I'm using Tomcat 6 on port 8080 with Axis 1.2. My server is a LAN with one NIC and just one private IP address. Let's say: 192.168.10.10/24. I using a firewall conected to the Internat which has a public IP address: Let's say: 200.0.0.1/24. When a client connects to my services Autogenerated WSDL they get all http locations (soap:address) refering to my internal IP address, that is 'http://192.168.10.10:8080/services/?wsdl' I need a way to instruct Axis to put my public IP address when the 'Auto Generated WSDL' is served. I read previously the same situation in this thread: http://marc.info/?t=11795143196r=1w=2 but it doesn't come to a close. I tried enabling and changing the hostname parameter in axis2.xml inside tag transportReceiver name=http class=org.apache.axis2.transport.http.SimpleHTTPServer, but this did not change any behaviour in my 'Autogenerated WSDL'. I think this is because I'm not using SimpleAxisServer, just Axis2 on Tomcat as told above. I having a hard time trying to get more info on the net about it. If anyone can help, this will be much appreciated. Thanks in advance, Regards, Luis Mensaje original Asunto: Re: How does axis decide the endpoint URL? Fecha: Mon, 28 May 2007 04:36:30 -0300 De: Luis Mariano Luporini [EMAIL PROTECTED] Para: axis-user@ws.apache.org Referencias:[EMAIL PROTECTED] Jeremy: I'm having the same problem right now. I'm working on Tomcat and not using SimpleAxisServer. Changing the hostname parameter value did not make any effect. Did you manage to solve it? Thanks in advance, Luis - But is there an option to control the *host* of the services? I am getting an inaccessible address for the hostname of the service endpoint (i.e. http://10.x.x.x/axis2/etc) but I want to have a proper domain name in there (i.e. http://my.domain.com/axis2/etc). Is this possible? Thanks, Jeremy Martin Gainty wrote: as Dims pomited out you can see the web.xml servlet parameters (located in WEB-INF) in the case of services AxisServlet will be invoked servlet-mapping servlet-nameAxisServlet/servlet-name url-pattern/services/*/url-pattern /servlet-mapping servlet servlet-nameAxisServlet/servlet-name display-nameApache-Axis Servlet/display-name servlet-class org.apache.axis2.transport.http.AxisServlet/servlet-class /servlet-class /servlet //or with rest AxisRESTServlet will be invoked.. servlet-mapping servlet-nameAxisRESTServlet/servlet-name url-pattern/rest/*/url-pattern /servlet-mapping servlet servlet-nameAxisRESTServlet/servlet-name display-nameApache-Axis Servlet (REST)/display-name servlet-class org.apache.axis2.transport.http.AxisRESTServlet/servlet-class /servlet HTH/ Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If you have received this email message in error, please notify the sender immediately by telephone or email and destroy the original message without making a copy. Thank you. - Original Message - From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, May 18, 2007 3:11 PM Subject: Re: How does axis decide the endpoint URL? Please look into your axis2.xml under WEB-INF/conf there is a setting there for hard-coding the url. thanks, dims
Re: Recommendations for a new project?
md, Separate xsd's should be ok. thanks, dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Davanum, that sounds like a Yes Yes Yes to me :-) One more question: It also feels like it makes sense to factor out the xsd files and include them in the wsdls, mainly to avoid duplication but also to allow the xsds to be reused in other types of applications. Are there any pitfalls to that practice that I'm not anticipating, such as issues with data binding libraries or something? cheers md -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 3:06 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? No No No :) Please use contract-first. thanks, -- dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1, because due to circumstances beyond my control, I'm forced to use jdk 1.4.2 and WebSphere 6.1, and I couldn't get axis2 1.2 to work with that combination. md -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] Sent: Monday, May 28, 2007 11:44 AM To:
Guidelines for introducing changes in business logic (Contract-First approach)
Hi: I'm working on a few WSs at this moment on Axis2 1.2 on Linux. I'm starting from WSDL generated by my own. I've used the following command to auto-generate the code for on of my services: wsdl2java.sh -uri /tmp/FirstService.wsdl -p org.example.ws.FirstService -d adb -s -wv 1.2 -sd -ss -ssi Everything went just fine. Next I did some modifications to the file: ./src/org/example/ws/firstservice/FirstServiceSkeleton.java which implements FirstServiceSkeletonIterface. Compiled and packed my service, deployed it and tested it successfully. Now I want to introduce some changes in my WSDL file and regenerate axis2 auto generated code for my service. At this point I can delete the next files: 1) ./src/org/example/ws/firstservice/FirstServiceSkeletonInterface.java 2) ./src/org/example/ws/firstservice/FirstServiceMessageReceiverInOut.java And then rerun wsdl2java.sh as above. With this I end up getting all the changes introduced in my WSDL all over the axis2 auto-generated code, which is also right. Finally, I'd alter the file ./src/org/example/ws/firstservice/FirstServiceSkeleton.java to reflect the new features / changes as written by wsdl2java in FirstServiceSkeletonInterface.java. Is this the expected way of maintaining a service server code or am I missing something? Is there a better approach? Thanks in advance. Regrets, Luis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with JNI based web service
Hi, I just converted my JNI based program into web service. It deployed successfully but when I click to see the WSDL of the deployed service.I got the following error : 500 HTTP Internal Server Error Tomcat console is giving the following error messages: - Exception: java.lang.NoClassDefFoundError at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:219) at org.apache.axis.utils.ClassUtils$2.run(ClassUtils.java:168) at java.security.AccessController.doPrivileged(Native Method) at org.apache.axis.utils.ClassUtils.loadClass(ClassUtils.java:160) at org.apache.axis.utils.ClassUtils.forName(ClassUtils.java:142) at org.apache.axis.utils.cache.ClassCache.lookup(ClassCache.java:85) at org.apache.axis.providers.java.JavaProvider.getServiceClass(JavaProvi der.java:428) at org.apache.axis.providers.java.JavaProvider.initServiceDesc(JavaProvi der.java:461) at org.apache.axis.handlers.soap.SOAPService.getInitializedServiceDesc(S OAPService.java:286) at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:273) at org.apache.axis.handlers.JWSHandler.generateWSDL(JWSHandler.java:294) at org.apache.axis.strategies.WSDLGenStrategy.visit(WSDLGenStrategy.java :33) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) at org.apache.axis.SimpleChain.generateWSDL(SimpleChain.java:104) at org.apache.axis.server.AxisServer.generateWSDL(AxisServer.java:454) at org.apache.axis.transport.http.QSWSDLHandler.invoke(QSWSDLHandler.jav a:68) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis.transport.http.AxisServlet.processQuery(AxisServlet.j ava:1226) at org.apache.axis.transport.http.AxisServlet.doGet(AxisServlet.java:249 ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBas e.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:199) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:145) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:210) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:139) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java: 2460) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:133) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:596) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche rValve.java:119) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:594) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:117) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:594) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:127) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex t.invokeNext(StandardPipeline.java:596) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav a:433) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:955) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:15 7) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :874) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:665) at
Re: Recommendations for a new project?
Sorry for replying to this email.I just subscribed to the mailing list.But I just could not able to send new mesages to the mailing list.I am just wondering whether there is any problem with the mailing list.Thanks. Best Kashif - Original Message From: Davanum Srinivas [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Monday, May 28, 2007 9:01:49 PM Subject: Re: Recommendations for a new project? md, Separate xsd's should be ok. thanks, dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Davanum, that sounds like a Yes Yes Yes to me :-) One more question: It also feels like it makes sense to factor out the xsd files and include them in the wsdls, mainly to avoid duplication but also to allow the xsds to be reused in other types of applications. Are there any pitfalls to that practice that I'm not anticipating, such as issues with data binding libraries or something? cheers md -Original Message- From: Davanum Srinivas [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 3:06 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? No No No :) Please use contract-first. thanks, -- dims On 5/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: To me, Contact-First makes perfect sense. I haven't heard the Axis experts say No No No! yet, so I figure I'll go with that. thanks md -Original Message- From: Luis Mariano Luporini [mailto:[EMAIL PROTECTED] Sent: Monday, May 28, 2007 1:17 PM To: axis-user@ws.apache.org Subject: Re: Recommendations for a new project? Michael: I'm having this kind of questions as you stated in your mails. And think, probably, the better one would be to go with a 'Contract-First' approach to keep the environment controlled when one needs to implement features/changes. This way your clients will be happy to get a consistent WSDL across releases. But anyway I would like to hear your points on this. Please, let know if you come to some conclusions. Thanks, Luis [EMAIL PROTECTED] escribió: Ok, thanks again -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] *Sent:* Monday, May 28, 2007 12:36 PM *To:* axis-user@ws.apache.org *Subject:* Re: Recommendations for a new project? JIBX has its own site and docs - I'd follow those to get on the right track. Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks very much. I am using Hibernate and fortunately I have complete control over the schema, so I'll check out jibx. So assuming I'm creating my own wsdl and will use jibx, would you generate code using wsdl2java or would you start from scratch? I suspect that starting from scratch will allow for cleaner and simpler code in the long run, because as the number of operations grows then there will be more opportunities for refactoring code rather than having lots of redundant generated code, am I right? cheers md -Original Message- *From:* robert lazarski [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] *Sent:* Monday, May 28, 2007 12:18 PM *To:* axis-user@ws.apache.org mailto:axis-user@ws.apache.org *Subject: *Re: Recommendations for a new project? From what you say I'd go with ADB databinding, creating and validating your WSDL via eclipse's WST. If you are using hibernate / jdo and such, I'd consider jibx. If you have complex schemas out of your control - which is often the case for me - use xmlbeans. Either way, starting with the WSDL for a 'contract first' approach is often a good choice. If you've never done single sign on before I recommend CAS: http://www.ja-sig.org/products/cas/ See rampart for ws-security - available for axis2 1.1.1 . Search the archives for questions related to soap headers as the subject comes up frequently. HTH, Robert On 5/28/07, [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]*[EMAIL PROTECTED] icecanada.gc.ca mailto:[EMAIL PROTECTED] wrote: I forgot to mention, in case it's important. I'm using axis2 1.1.1,
Re: register DataHandler
Thilina, Thanks for your reply. Do you have any suggestions as to how to address this? Do I need to abandon Axis2 framework all together and read HTTP stream directly? Is there another WS framework that offers more extensibility? Thanks, Jennifer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Data in SOAP messages
Hi all, does (and if it does where and how ) the SOAP specificaton allow to add proprietary or application specific data to SOAP messages? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Data in SOAP messages
I am not sure what you asking--can you give us an example of what you might be looking for? Glen Am Montag, den 28.05.2007, 23:07 -0400 schrieb Demetris G: Hi all, does (and if it does where and how ) the SOAP specificaton allow to add proprietary or application specific data to SOAP messages? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2:WSDL2Java giving error
Hi, This is another example I was trying based on quickstartadb. When it didn't workl for me in classifiedservice example which I was bulding at my own , I tried the quickstartadb and got the same error while running ant generate.service in quickstartadb example. There was similar problem reported by some once else but I think no body replied to him. I couldn't find any replies to that. Thanks Snehil On 5/28/07, Glen Mazza [EMAIL PROTECTED] wrote: Why is the quickstartadb example in a directory called classifiedservice? Are you sure you're running what you think you're running? Glen Am Montag, den 28.05.2007, 15:32 +0530 schrieb snehil Brajpuriya: Hi, I'm trying to compile the quickstartadb sample in the Axis2 1.1.1source distribution. It doesn't appear to be working. I am getting following error - --- C:\axis2\samples\classifiedserviceant generate.client Buildfile: build.xml init: [mkdir] Created dir: C:\axis2\samples\classifiedservice\build generate.client: BUILD FAILED C:\axis2\samples\classifiedservice\build.xml:90: java.util.zip.ZipException: The system cannot find the file specified -- I think all the necessary jars are available and wsdl file is also in right location. I was able to generate the service skeleton by directly using org.apache.axis2.wsdl.WSDL2Java but not able to create service skelton with given build file with example which used anttask. Any suggestion here??? Thanks Snehil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]