Axis2 1.4 - Update .properties file in AAR
I have a web service deployed to Tomcat 5.5 using Axis2 1.4. (Win Server 2003/Java 5). My AAR file contains a .properties file that I would like to update. I can read the .properties from the AAR but I would like to know how it can be updated from within the AAR. Is this possible? Code below reads the property file in the AAR and sets a value for a certain key. Now I just need to save the updated value back to the .properties file in the AAR. InputStream propertystream = loader .getResourceAsStream(ConceptSearch.properties); Properties properties = new Properties() ; properties.load(propertystream); Enumeration e = properties.propertyNames(); while (e.hasMoreElements()) { String key = (String) e.nextElement(); if(key.equals(disableSERVICE)) { properties.setProperty(key, XYZZZ); } } Thank you.
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or sFilePath ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or sFilePath = ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
Re: Best way to load a configuration file in Axis2?
Hi I have read in XSD files for validating incoming XML parametrers to my web service. Use Class Loader and getResourceAsStream using the XML file as a parameter. Using this assumes you are trying to access the XML from the service where the XML file resides. You should be able to access the XML file if it's in your classpath. You can place it in the root of the AAR or in your classes folder. The 'sFilePath' variable below will hold web path and name of your XML file. If the XML is in the root folder of the AAR, then no path will be required. sFilePath can be set to: sFilePAth = myXMLFile.xml or ClassLoader loader = getClass().getClassLoader(); InputStream inputstream = loader.getResourceAsStream(sFilePath); Kim --- On Wed, 5/6/09, Moley Harey moleyha...@gmail.com wrote: From: Moley Harey moleyha...@gmail.com Subject: Best way to load a configuration file in Axis2? To: axis-user@ws.apache.org Date: Wednesday, May 6, 2009, 4:17 PM Hi, I am implementing a web service using Axis2 that can be tunned using several configuration parameters. My web service is deployed as *.aar file into the axis2/WEB-INF/services folder. I have done a separate XML configuration file that store those parameters, my idea was to include the configuration file into de final *.aar file and then try to load that configuration file in my code without the need to specify the full path on disk where it is placed. Is is possible to do this in Axis2? Can I use some kind of ServiceContext to do this? Thanks in advance, Mh
multi-dimention array and inout parameter
Hello, I am doing some project about axis2c So, now I have some questions. (1) Does Axis2 support multi-dimension array.? (2) Does Axis2 support inout parameter.? Where can I find some reference or documents for above things.? Is there anyone who know answers.? Thank you.
creation of jar files- disk space problem
Hello, I'm having a problem where each time I connect to a web service, a jar file gets created (axis##axis2-1.4.jar) and never gets cleaned up, so I'm running out of space. I saw that bug AXIS-2314 which describes exactly the same problem, but it is marked RESOLVED and should have been fixed for 1.2. I'm using Windows XP with axis2 1.4. Should I enter a bug for this? Thanks, kim
sevice handler problem
hi everyone : I am trying to add a handler for my web service , but I got weird exceptions, the following is the testing code. public void invoke(MessageContext msgContext) throws AxisFault { String text=; try { javax.xml.rpc.handler.soap.SOAPMessageContext soapCtx = (javax.xml.rpc.handler.soap.SOAPMessageContext)msgContext; javax.xml.soap.SOAPMessage soapMsg = (javax.xml.soap.SOAPMessage)soapCtx.getMessage(); Document doc = SOAPUtility.toDocument(soapMsg); soapMsg = SOAPUtility.toSOAPMessage(doc); msgContext.setMessage(soapMsg); - //soapCtx.setMessage(soapMsg); - both these two lines cause the exception and here is the exception: Error java.lang.ClassCastException: com.sun.xml.internal.messaging.saaj.soap.ver1_1.Message1_1Impl cannot be cast to org.apache.axis.Message org.apache.axis.MessageContext.setMessage(MessageContext.java:649) testServiceServerHandler.invoke(testServiceServerHandler.java:70) org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32) org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118) org.apache.axis.SimpleChain.invoke(SimpleChain.java:83) org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:454) org.apache.axis.server.AxisServer.invoke(AxisServer.java:281) org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699) javax.servlet.http.HttpServlet.service(HttpServlet.java:710) org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) java.lang.Thread.run(Unknown Source) could any one find out why, thx a lot for your help!
multiple ports issue.
Hi all, I am newbie at Axis2 and having some issue here Now Im trying to generate skeleton files using WSDL2Java out of my wsdl file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java with the wsdl file it only generates skeleton file which has only one port. This is something intended by the Axis2 developer team as far as I know. So for the solution of that I can use -pn option which port I will chose. But it doesn't work for me. When I generate the skeleton file I use java org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s -wv 1.2 -ss -sd -pn urn:my_service:I_Port. But this gives me skeleton file which contains only methods defined under S_Port. The S_Port is the default port generated when I don't use -pn option. It seems like -pn doesn't work. Can anyone address me how to solve this issue? The following is the my_service.wsdl file I have. ?xml version=1.0 encoding=UTF-8? definitions xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:api_binding=urn:api_binding xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=urn:my_service import namespace=urn:api_binding location=api_binding.wsdl / service name=My_Service port name=I_Port binding=api_binding:I_SoapBinding soap:address location= http://localhost/axis2/services/urn:api:i; / /port port name=S_Port binding=api_binding:S_SoapBinding soap:address location= http://localhost/axis2/services/urn:api:s; / /port port name=P_Port binding=api_binding:P_SoapBinding soap:address location= http://localhost/axis2/services/urn:api:p; / /port /service /definitions
Re: Axis2 1.1.1 WSDL2JAVA - Not generating java classes for wsdl:portType
Ajith suggested multiple wsdl files for the solution of multiple ports. I have a question for that. When you want to create client from the wsdl files. with WSDL2Java and if you have multiple wsdl files for one service. Then you have to create multiple clients as well for every ports? Even though they are all under the same service? Thanks Sangwoo Kim On 6/22/07, Bo Xie [EMAIL PROTECTED] wrote: Hi Ajith, Thanks for the comments. Look forward to your explanation. Like to know the difference between the workaround and the expected. Thanks, -Bo On 6/13/07, Ajith Ranabahu [EMAIL PROTECTED] wrote: Hi, We will definitely look at the possibility of supporting this during the hackathon. I will perhaps explain in a separate mail what is the thinking behind starting from the port but it seems that we need to rethink this when it comes to skeletons. What I can suggest as a workaround is to generate code for each port with separate WSDL2Java calls (which will yield multiple skeletons). You can make this easy if you use the ant task Ajith On 6/13/07, Bo Xie [EMAIL PROTECTED] wrote: Hi Amila and all, In case this is not working yet, can you suggest any alternative? I have a few services that shared a lot of common data among them. I have to move all the methods in all services into one mega service and change method name if necessary to avoid conflicts. Mixing methods of different purpose into one service looks messy. Appreciate any advice. -Bo On 5/24/07, Jess Fisher [EMAIL PROTECTED] wrote: I still cannot get all the portTypes generated even with Axis 1.2. Any plans on fixing this ? Bo Xie [EMAIL PROTECTED] wrote: Sorry to bother you again. Just want to know if this is a bug or I did not set the parameter correctly. Any advice on how to make this work. Thanks, -Bo On 5/20/07, Bo Xie [EMAIL PROTECTED] wrote: I attached the wsdls from the original email. Thanks, -Bo On 5/20/07, Amila Suriarachchi [EMAIL PROTECTED] wrote: Can you send your wsdl? do you have ports for each bining? Actually code is generated per port. On 5/20/07, Bo Xie [EMAIL PROTECTED] wrote: Hi, Just wondering if this is still an issue in Axis2 1.2 or I did not put the parameters properly. Thanks, -Bo On 5/17/07, Bo Xie [EMAIL PROTECTED] wrote: Thanks, Amila. I tried your advice using no -pn and -sn. It still only generated last one binding out of the 4. I used asix2 1.2release. Here is the command line. Anything I did not do right? Attached is the output files and wsdl files. Sorry for the 500k size. C:\programs\workwsdl2java -o output -p com.xyz.nbi -t -ss -sd -g -S src -R src -uri wsrp_service.wsdl Using AXIS2_HOME: C:\programs\axis2- 1.2 Using JAVA_HOME:C:\programs\jdk1.5.0_09 Retrieving document at 'wsrp_v1_bindings.wsdl', relative to 'file:/C:/programs/work/'. Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. Retrieving schema at 'wsrp_v1_types.xsd', relative to 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. Retrieving schema at ' http://www.w3.org/2001/xml.xsd', relative to 'file:/C:/programs/work/wsrp_v1_types.xsd'. Retrieving document at 'wsrp_v1_bindings.wsdl', relative to 'file:/C:/programs/work/'. Retrieving document at 'wsrp_v1_interfaces.wsdl', relative to 'file:/C:/programs/work/wsrp_v1_bindings.wsdl'. Retrieving schema at 'wsrp_v1_types.xsd', relative to 'file:/C:/programs/work/wsrp_v1_interfaces.wsdl'. Retrieving schema at ' http://www.w3.org/2001/xml.xsd', relative to 'file:/C:/programs/work/wsrp_v1_types.xsd'. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: The output\src\com\xyz\nbi\InvalidHandleException.java file cannot be overwritten. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: The output\src\com\xyz\nbi\AccessDeniedException.java file cannot be overwritten. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: The output\src\com\xyz\nbi\InvalidRegistrationException.java file cannot be overwritten. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: The output\src\com\xyz\nbi\MissingParametersException.java file cannot be overwritten. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO: The output\src\com\xyz\nbi\InvalidUserCategoryException.java file cannot be overwritten. May 17, 2007 11:55:31 AM org.apache.axis2.wsdl.codegen.writer.ClassWriter createOutFile INFO
WSDL2Java pn option issue
Hi all, I am newbie at Axis2 and having some issue here Now Im trying to generate skeleton files using WSDL2Java out of my wsdl file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java with the wsdl file it only generates skeleton file which has only one port. This is something intended by the Axis2 developer team as far as I know. So for the solution of that I can use -pn option which port I will chose. But it doesn't work for me. When I generate the skeleton file I use java org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s -wv 1.2 -ss -sd -pn urn:my_service:I_Port. But this gives me skeleton file which contains only methods defined under S_Port. The S_Port is the default port generated when I don't use -pn option. It seems like -pn doesn't work. Can anyone address me how to solve this issue? The following is the my_service.wsdl file I have. ?xml version=1.0 encoding=UTF-8? definitions xmlns=http://schemas.xmlsoap.org/wsdl/ xmlns:api_binding=urn:api_binding xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=urn:my_service import namespace=urn:api_binding location=api_binding.wsdl / service name=My_Service port name=I_Port binding=api_binding:I_SoapBinding soap:address location=http://localhost/axis2/services /urn:api:i / /port port name=S_Port binding=api_binding:S_SoapBinding soap:address location= http://localhost/axis2/services/urn:api:s; / /port port name=P_Port binding=api_binding:P_SoapBinding soap:address location= http://localhost/axis2/services/urn:api:p; / /port /service /definitions Thank you Sangwoo Kim
Re: WSDL2Java pn option issue
Thank you for your timely response. Sangwoo Kim On 6/22/07, Alexey Zavizionov [EMAIL PROTECTED] wrote: Do you use Axis2 version 1.2? I ahve faced with same problem. Try to use Axis2 version 1.1, seems it works. Regards, Alexey On 6/22/07, Sagnwoo Kim [EMAIL PROTECTED] wrote: Hi all, I am newbie at Axis2 and having some issue here Now Im trying to generate skeleton files using WSDL2Java out of my wsdl file. My wsdl file has currently 3 ports. If I just go thru the WSDL2Java with the wsdl file it only generates skeleton file which has only one port. This is something intended by the Axis2 developer team as far as I know. So for the solution of that I can use -pn option which port I will chose. But it doesn't work for me. When I generate the skeleton file I use java org.apache.axis2.wsdl.WSDL2Java -uri my_service.wsdl -p myservice -d adb -s -wv 1.2 -ss -sd -pn urn:my_service:I_Port. But this gives me skeleton file which contains only methods defined under S_Port. The S_Port is the default port generated when I don't use -pn option. It seems like -pn doesn't work. Can anyone address me how to solve this issue? The following is the my_service.wsdl file I have. ?xml version=1.0 encoding=UTF-8? definitions xmlns= http://schemas.xmlsoap.org/wsdl/ xmlns:api_binding=urn:api _binding xmlns:soap= http://schemas.xmlsoap.org/wsdl/soap/; targetNamespace=urn:my_service import namespace=urn:api_binding location=api_binding.wsdl / service name=My_Service port name=I_Port binding=api_binding:I_SoapBinding soap:address location=http://localhost/axis2/services/urn:api:i; / /port port name=S_Port binding=api_binding:S_SoapBinding soap:address location=http://localhost/axis2/services/urn:api:s; / /port port name=P_Port binding=api_binding:P_SoapBinding soap:address location=http://localhost/axis2/services/urn:api:p; / /port /service /definitions Thank you Sangwoo Kim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Bundled in version service says
I use Linux AMD64 Java 5 (latest), apache tomcat (latest) and axis2 latest stable. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bundled in version service says Requested resource not found
Dear all I have installed axis2 on my tomcat server. The happyaxis scripts says that I have all the required libraries. However, when i try to go to localhost:8080/axis2/services/version which should list the bundled in version service I get a Requested resource not found error. What am I missing? Regards in - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Class Inheritance question
Hi. My publicly exposed method is public Results find(Something something); and I have a bunch of subclasses of Something as well. When I do Java2WSDL and WSDL2Java, only the class Something is generated. How do I tell AXIS tool to include those subclasses when generating the client stubs? Thanks. kyunam
Re: Axis 1.3 as Client AND Server
Sorry, I may have simplified the example a bit to much. On the SOAP communication between B and C in the before mentioned example, I want to attach SAML headers to the soap message. I'm using wss4j to achieve this. The problem is however, to configure the deployment descriptor for the B web service, so that the call will go through Axis, and thereby through wss4j. I guess this is done by defining a request flow, and a response flow. As it is right now I can make the service check for SAML in the incoming message, and throw and exception if none is there. What I lack is a way to tell the outgoing soap call to go through the response flow defined in the deployment descriptor for the service. As far as I understand the outgoing call doesn't go through the response flow if you use the auto-generated stubs? And how do I distinguish between the cases where the service should act as a server and where it should act as a client? The message flow for these two cases are different as far as I understand? Do you have any experience in this? regards Kim Roslan Amir wrote: Hi, Not a problem at all. I have done this before. The method in the implementation class of B just uses the client API to invoke the Web Services on C and A. They can even be the same Web Service. It's the URL's that are different. Make sure you call using the correct URL. Roslan Amir Quoting Kim Alster Larsen [EMAIL PROTECTED]: Hi, I'm using Axis 1.3, and I have a question on how to configure my server. The setup I want to use Axis to implement is the following two scenarios: (B is the process that uses Axis) 1) A sends a message to B, B forwards the call via Axis using SOAP to C. 2) C sends a message to B, B forwards the message to A. In scenario 1) I guess the Axis component in B should be configured as a Client, but in scenario 2) the setup requires a server setup? B is actually a process that publishes a webservice interface through axis. How is it possible to support both scenarios? Any help or suggestions would be greatly appriciated! -Kim This mail sent through IMP: https://webmail.xybase.com
Re: Tomcat version required for RC2?
under tomcat4.1..., both servlet and jsp api are in the servlet.jar, in tomcat 5..., it is a separate jar, so you can get that from tomcat 5, however, note that the two versions of servlet-api supports different version of serlvet spec"Halsema, Aillil I" [EMAIL PROTECTED] wrote: I'm trying to use Axis 2 RC2 with Tomcat 4.1.29, and I've found that Axis requires the servlet-api.class which doesn't exist in that version of Tomcat. Which version of Axis should I use? TIA, Ian HalsemaXIG/ISTC/ASDS/CRM310-333-54178*823-5417 Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone.
Re: Encoding request as iso8859_1
The scenario is this: I use axis as ws client to call a server which takes the data from a search request and forwards it without modification to a legacy system. This legacy system requires the characters recieved in search queries to be latin1, not UTF8. With the tcp-dump of what is actually transmitted on the wire I see that it is indeed UTF8, where the letter ø (oslash;) is transmitted as two bytes. The best solution is of course to have the server handle encoding in a better way. But unfortunately I cannot do this, so I will have to post iso8859 in stead. /kim Venkat Reddy wrote: Do you have a test case that demostrates the issue? thanks venkat On 4/18/05, Kim Thrysøe [EMAIL PROTECTED] wrote: Is it possible to configure Axis to post requests using a charset other that UTF8, eg. iso8859_1? This question has been posted a while ago (http://marc.theaimsgroup.com/?l=axis-userm=104617666812022w=2), but I failed to find a response. thanks kim
Encoding request as iso8859_1
Is it possible to configure Axis to post requests using a charset other that UTF8, eg. iso8859_1? This question has been posted a while ago (http://marc.theaimsgroup.com/?l=axis-userm=104617666812022w=2), but I failed to find a response. thanks kim