Re: Bug 1.2RC3-1.2: Using CommonsHttpClient fails
unfortunately the patch it's not working for me. what am I'm doing wrong? I added this to my stub code: protected void setUserHeader( MessageContext msgContext ) { Hashtable userHeaderTable = new Hashtable(); userHeaderTable.put(HTTPConstants.HEADER_TRANSFER_ENCODING_CHUNKED, false); msgContext.setProperty(HTTPConstants.REQUEST_HEADERS, userHeaderTable ); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[0]); _call.setUseSOAPAction(true); _call.setSOAPActionURI(); _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); _call.setOperationName(new javax.xml.namespace.QName(urn:Eusoda, lastChange)); setUserHeader( _call.getMessageContext() ); I'm still getting the old error message. I didn't update the code on the server side, but I think this is not necessary, right? I have used this nightly build: axis-bin-1_2_1.zip 09-Jun-2005 21:07 11M regards, andreas
Re: Blockers for Axis 1.2.1 Release(?)
Folks, I see 5 blockers...Does anyone else have others that needs fixed ASAP? I may or may not downgrade some of these depending on various factors (which i will of course add to the comments). http://issues.apache.org/jira/browse/AXIS-2046 http://issues.apache.org/jira/browse/AXIS-1986 http://issues.apache.org/jira/browse/AXIS-1985 http://issues.apache.org/jira/browse/AXIS-1976 http://issues.apache.org/jira/browse/AXIS-1366 thanks, dims On 6/1/05, Dan Armbrust [EMAIL PROTECTED] wrote: If my opinion counts... this one is a critical blocker... http://issues.apache.org/jira/browse/AXIS-2021 Dan Davanum Srinivas wrote: Hi all, Let's get the ball rolling again...Anyone see blockers for a minor release? Please make sure the problem exists in latest CVS, write/upload a test case and finally change the priority on the JIRA issue to blocker. Thanks, dims -- Davanum Srinivas -http://blogs.cocoondev.org/dims/
Re: Body not found
These two settings are incompatible: style=message provider=java:RPC You want to use provider=java:MESSAGE when using message style. Anne On 6/9/05, Marc Rabil [EMAIL PROTECTED] wrote: Hi All, I am having trouble calling a service of style message and was wondering if someone can help. 1. Here's my service definition: service name=TEST_SERVICE style=message provider=java:RPC parameter name=scope value=application/ parameter name=allowedMethods value=invoke/ parameter name=className value=services.TestService/ /service 2. Here is the service class: public class TestService { public Element[] invoke(Element[] bodies) { System.out.println(invoke called...); return null; } } 3. Here is the SOAP I am sending (it is coming from the Axis client, but that should not matter right?): POST /services/servlet/AxisServlet HTTP/1.0 Content-Type: text/xml; charset=utf-8 Accept: application/soap+xml, application/dime, multipart/related, text/* User-Agent: Axis/1.1 Host: 127.0.0.1 Cache-Control: no-cache Pragma: no-cache SOAPAction: Content-Length: 508 ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body ns1:invoke soapenv:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:ns1=TEST_SERVICE authToken xsi:type=xsd:stringFOHENNEAKMHA/authToken sampleNumber xsi:type=xsd:int12345/sampleNumber /ns1:invoke /soapenv:Body /soapenv:Envelope The server is returning a fault with the message: java.lang.Exception: Body not found. Clearly the inbound SOAP message has a body. It does not seem to be a problem with the message created as the return SOAP either since the invoke method never gets called. Any ideas as to what I am doing wrong? Thanks in advance for any help. Marc
Re: Webservice with XML input parameter
On 6/9/05, Johan Kumps [EMAIL PROTECTED] wrote: Hi all, I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value. Can you point me in the right direction? Code sample? Thanks in advance, Kind regards, Johan Kumps I would do something like: 1) describe my service to take string input and return string response. 2) Use any tool which provides xml-java binding (like castor or JAXB) and generate request, response java classes from xsds. 3) Use the generated classes to marshal/unmarshal request/response java objects to xml. Deepesh
returning and receiving XML DOM object
Hi all, I'm developing a server side web service that will get results from a db table. I want to reurn this data as XML DOM. Can anyone point me to an example where a server-side method returns a DOM object. Also to test this i will need to write a simple client. Can anyone point me to an example of a client calling a web service method and receives a DOM object Thanks for any help _ Want to block unwanted pop-ups? Download the free MSN Toolbar now! http://toolbar.msn.co.uk/
Re: [Axis2] NPE trying to use eclipse code-gen plugin
Chathura, you're the best :-) Like dims, who fixed the bug so fast hehe. You're so right about the deps. I've written down the list of all project dependencies and external jar files, so the next newbie can use it: OM == .xml module. OM: (Project org.apache.ws.axis2.xml) - Dependency to jsr173_api.jar (javax.namespace..) - Dependency to commons-logging.jar (Logging) WSDL: (Project org.apache.ws.axis2.wsdl) - Dependency to jsr173_api.jar - Dependency to wsdl4j-1.5.1.jar - Dependency to Project org.apache.ws.axis2.xml (OM) CORE: (Project org.apache.ws.axis2.core) - Dependency to jsr173_api.jar - Dependency to commons-logging.jar - Dependency to wsdl4j-1.5.1.jar - Dependency to mailapi_1_3_1.jar - Dependency to servlet.jar - Dependency to Project org.apache.ws.axis2.xml (OM) - Dependency to Project org.apache.ws.axis2.wsdl (WSDL) Addressing: (Project org.apache.ws.axis2.addressing) - Dep. to Project org.apache.ws.axis2.core - Dep. to Project org.apache.ws.axis2.xmlö - Dep. to jsr173_api.jar - Dep. to commons-logging.jar SAAJ: (Project org.apache.ws.axis2.saaj) - Dep. to jsr173_api.jar - Dep. to activation.jar - Dep. to Project org.apache.ws.axis2.addressing - Dep. to Project org.apache.ws.axis2.core - Dep. to Project org.apache.ws.axis2.xml Samples: (Project org.apache.ws.axis2.samples) - Dep. to Project org.apache.ws.axis2.core - Dep. to Project org.apache.ws.axis2.wsdl - Dep. to Project org.apache.ws.axis2.xml - Dep. to commons-logging.jar - Dep. to jsr173_api.jar Tool: (project org.apache.ws.axis2.tool.code-gen) - Dep. to ant-1.6.jar - Dep. to wsdl4j-1.5.1jar - Dep. to Project org.apache.ws.axis2.wsdl I'm currently on the CodegenWizard and will provide the preferences enhancements as patch. regards Mike Chathura Herath schrieb: Hi Mike. First of all thank you for the input I am creating a Eclipse projects for each module and there are no cyclic dependencies. It cannot be the case. I ll list the dependencies .. OM No dependencies WSDL -- OM CORE -- OM WSDL Addressing -- CORE OM SAAJ -- CORE Addressing OM Samples -- CORE WSDL OM TOOl -- WSDL That's it .. No cyclic references. Moving to Plug-in ... Saving the values in the store/preference definite +1 Regarding the check box issue... We might want to generate both server side and client side at the same time along with a test case. For the test case to work both the server side and the client side should be generated. (The test case that is generated will create a dummy implementation of the service and deploy it in a SimpleHttpServer and use the Stubs that was generated to invoke the operations.) That was the idea. If this leads to user confusion then of course we can put a radio button and if the test case option is selected we ll generate both server side and client side. Comments?? Thanks. Chathura -Original Message- From: Mike Haller [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 9:18 PM To: axis-dev@ws.apache.org Subject: Re: [Axis2] NPE trying to use eclipse code-gen plugin Hi Chathura, thanks for working on this so fast!!! That's incredible :-] [AXIS2-25] After trying to recompile Axis2 the last few hours (i tried to use the modules as separated projects in the eclipse workspace, and that wasn't a good idea - cyclic dependencies and such). The patch worked fine! Comments on the plugin: - please replace the checkbox Generate serverside code with a radio button, since only one of client OR server is generated. Checking server checkbox automatically disables generating client stubs. Alternatively change the label to Generate serverside code instead of clientside code :) - please save the values in a store/preference, so you don't always have to type them in all over again. Again, thanks for the fast patch! regards Mike Chathura Herath schrieb: Hi Mike, Think this is a problem and I just opened a JIRA issue on this. Issue is fixed now. Please take an update and check. Can I check in your WSDL for a test case??? Thanks. Chathura -Original Message- From: Mike Haller [mailto:[EMAIL PROTECTED] Sent: Thursday, June 09, 2005 2:32 PM To: axis-dev@ws.apache.org Subject: Re: [Axis2] NPE trying to use eclipse code-gen plugin Hi, attached you will find my wsdl, the imported schema and the complete plugin errorlog. I hope this is not against the axis-dev policies (to attach files). regards Mike Chathura Herath schrieb: Can I have a look at the WSDL??? On 6/8/05, Mike Haller [EMAIL PROTECTED] wrote: Hey, i was able to compile axis2 src and create an eclipse plugin Btw, the /modules/tool/maven.xml doesn't create a .project file for the eclipse plugins - any reason? if it would create the .project files, too, you could import the folder directly as projects. Then, you don't need to manually create a Plug-In Project in Eclipse and copy all the files and set the build paths correctly etc. If you need more infos, please let me know (errorlogs, screenshots?)
Re: Array serialize Axis 1.2 Final
The 1.2 response matches your WSDL. Perhaps the WSDL changed between 1.2RC and 1.2. Can you also send us the 1.2RC WSDL? On 6/9/05, Anne Thomas Manes [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Popa Horia [EMAIL PROTECTED] Date: Jun 9, 2005 2:12 AM Subject: RE: Array serialize Axis 1.2 Final To: axis-user@ws.apache.org I have attached it... -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 4 iunie 2005 14:37 To: Popa Horia Subject: Re: Array serialize Axis 1.2 Final I still need to see your WSDL. On 6/3/05, Popa Horia [EMAIL PROTECTED] wrote: I have started with a WSDD file where I have defined my services and all the data types that my service is using. WSDL is generated by the server. Here are two type mappings from my WSDD file: ARRAY: typeMapping xmlns:ns=http://beans.dataobjects.matrix.websitepros.com/SerialNumberHistor yBean qname=ns:ArrayOfSerialNumberHistoryBean type=java:default.SerialNumberHistoryBean[] serializer=org.apache.axis.encoding.ser.ArraySerializerFactory deserializer=org.apache.axis.encoding.ser.ArrayDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding// BEAN: typeMapping xmlns:ns=http://beans.dataobjects.matrix.websitepros.com/SerialNumberHistor yBean qname=ns:SerialNumberHistoryBean type=java:default.SerialNumberHistoryBean serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding// Below is the complete schema as requested: Axis 1.2 Final ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getSerialNumberResponse xmlns=http://webservices.installer.fusion7.fusion.websitepros.com/FusionAcc ountsManager GetSerialNumberResult droppedfalse/dropped history item xmlns= IP113.210.236.206/IP /item /history id45/id /GetSerialNumberResult /getSerialNumberResponse /soapenv:Body /soapenv:Envelope Axis 1.2 RC3 ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getSerialNumberResponse xmlns=http://webservices.installer.fusion7.fusion.websitepros.com/FusionAcc ountsManager GetSerialNumberResult droppedfalse/dropped history history IP113.210.236.206/IP /history /history id45/id /GetSerialNumberResult /getSerialNumberResponse /soapenv:Body /soapenv:Envelope -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 3 iunie 2005 22:30 To: axis-user@ws.apache.org Subject: Re: Array serialize Axis 1.2 Final Is there a default namespace specified higher up in the message? And how does your WSDL describe the structure? (please include the entire schema) Anne On 6/3/05, Popa Horia [EMAIL PROTECTED] wrote: I moved from Axis 1.2 RC3 to Axis 1.2 final and I have noticed that my application doesn't work anymore. The application is a Axis 1.5 C++ stub. The reason is that the Array are serialized different in Axis 1.2 RC3 and Axis 1.2 Final. If you have some information about this please write back. Thanks Below are the samples: Axis 1.2 RC3 history item xmlns= IP193.230.236.206/IP date2005-05-27T07:50:08.000Z/date droppedfalse/dropped hardwareKey851830523/hardwareKey id41/id operation0/operation reasonnPower installation/reason serialNumberId0/serialNumberId touchedfalse/touched /item /history Axis 1.2 Final history IP193.230.236.206/IP date2005-05-27T07:50:08.000Z/date droppedfalse/dropped hardwareKey851830523/hardwareKey id41/id operation0/operation reasonnPower installation/reason serialNumberId0/serialNumberId
Re: Axis Fault
You're sending DOMs back and forth, right? Use message style rather than RPC/encoded. On 6/8/05, Frank [EMAIL PROTECTED] wrote: Anyone have a clue what my problem might be? I don't even know where to start Calling code: XSSRPCService xssSer = new XSSRPCServiceLocator(); XSSRPC xss = xssSer.getXSSRPC(); sanitizedDoc = xss.sanitize(inputDoc); java.lang.reflect.InvocationTargetException AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.lang.reflect.InvocationTargetException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:kwdev java.lang.reflect.InvocationTargetException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1675) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.content(Parser2.java:1926) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1654) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634) at org.apache.crimson.parser.Parser2.parse(Parser2.java:333) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448) at javax.xml.parsers.SAXParser.parse(SAXParser.java:345) at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227) at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696) at org.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206) at org.apache.axis.client.Call.invokeEngine(Call.java:2765) at org.apache.axis.client.Call.invoke(Call.java:2748) at org.apache.axis.client.Call.invoke(Call.java:2424) at org.apache.axis.client.Call.invoke(Call.java:2347) at org.apache.axis.client.Call.invoke(Call.java:1804) at kwdev.axis.XSSRPC_jws.XSSRPCSoapBindingStub.sanitize(XSSRPCSoapBindingStub.java:103) at DBS.startDBS(DBS.java:75) at RunDBS.main(RunDBS.java:10) WSDL --- ?xml version=1.0 encoding=UTF-8 ? - wsdl:definitions targetNamespace=http://kwdev:8080/axis/XSSRPC.jws; xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:impl=http://kwdev:8080/axis/XSSRPC.jws; xmlns:intf=http://kwdev:8080/axis/XSSRPC.jws; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; - !-- WSDL created by Apache Axis version: 1.2 Built on May 03, 2005 (02:20:24 EDT) -- - wsdl:message name=sanitizeRequest wsdl:part name=doc type=apachesoap:Document / /wsdl:message - wsdl:message name=sanitizeResponse wsdl:part name=sanitizeReturn type=apachesoap:Document / /wsdl:message - wsdl:portType name=XSSRPC - wsdl:operation name=sanitize parameterOrder=doc wsdl:input message=impl:sanitizeRequest name=sanitizeRequest / wsdl:output message=impl:sanitizeResponse name=sanitizeResponse / /wsdl:operation /wsdl:portType - wsdl:binding name=XSSRPCSoapBinding type=impl:XSSRPC wsdlsoap:binding style=rpc transport=http://schemas.xmlsoap.org/soap/http; / - wsdl:operation name=sanitize wsdlsoap:operation soapAction= / - wsdl:input name=sanitizeRequest wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://DefaultNamespace; use=encoded / /wsdl:input - wsdl:output name=sanitizeResponse wsdlsoap:body encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; namespace=http://kwdev:8080/axis/XSSRPC.jws; use=encoded / /wsdl:output /wsdl:operation /wsdl:binding - wsdl:service name=XSSRPCService - wsdl:port binding=impl:XSSRPCSoapBinding name=XSSRPC wsdlsoap:address location=http://kwdev:8080/axis/XSSRPC.jws; / /wsdl:port /wsdl:service /wsdl:definitions
RE: Array serialize Axis 1.2 Final
The WSDLs are the same. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 10 iunie 2005 14:50 To: axis-user Subject: Re: Array serialize Axis 1.2 Final Note that 1.2 Final included a bunch of fixes to array processing, so I'm not suprised that the processing changed between 1.2RC and 1.2 Final. Anne On 6/10/05, Anne Thomas Manes [EMAIL PROTECTED] wrote: The 1.2 response matches your WSDL. Perhaps the WSDL changed between 1.2RC and 1.2. Can you also send us the 1.2RC WSDL? On 6/9/05, Anne Thomas Manes [EMAIL PROTECTED] wrote: -- Forwarded message -- From: Popa Horia [EMAIL PROTECTED] Date: Jun 9, 2005 2:12 AM Subject: RE: Array serialize Axis 1.2 Final To: axis-user@ws.apache.org I have attached it... -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 4 iunie 2005 14:37 To: Popa Horia Subject: Re: Array serialize Axis 1.2 Final I still need to see your WSDL. On 6/3/05, Popa Horia [EMAIL PROTECTED] wrote: I have started with a WSDD file where I have defined my services and all the data types that my service is using. WSDL is generated by the server. Here are two type mappings from my WSDD file: ARRAY: typeMapping xmlns:ns=http://beans.dataobjects.matrix.websitepros.com/SerialNumberHistor yBean qname=ns:ArrayOfSerialNumberHistoryBean type=java:default.SerialNumberHistoryBean[] serializer=org.apache.axis.encoding.ser.ArraySerializerFactory deserializer=org.apache.axis.encoding.ser.ArrayDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding// BEAN: typeMapping xmlns:ns=http://beans.dataobjects.matrix.websitepros.com/SerialNumberHistor yBean qname=ns:SerialNumberHistoryBean type=java:default.SerialNumberHistoryBean serializer=org.apache.axis.encoding.ser.BeanSerializerFactory deserializer=org.apache.axis.encoding.ser.BeanDeserializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding// Below is the complete schema as requested: Axis 1.2 Final ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getSerialNumberResponse xmlns=http://webservices.installer.fusion7.fusion.websitepros.com/FusionAcc ountsManager GetSerialNumberResult droppedfalse/dropped history item xmlns= IP113.210.236.206/IP /item /history id45/id /GetSerialNumberResult /getSerialNumberResponse /soapenv:Body /soapenv:Envelope Axis 1.2 RC3 ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; soapenv:Body getSerialNumberResponse xmlns=http://webservices.installer.fusion7.fusion.websitepros.com/FusionAcc ountsManager GetSerialNumberResult droppedfalse/dropped history history IP113.210.236.206/IP /history /history id45/id /GetSerialNumberResult /getSerialNumberResponse /soapenv:Body /soapenv:Envelope -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 3 iunie 2005 22:30 To: axis-user@ws.apache.org Subject: Re: Array serialize Axis 1.2 Final Is there a default namespace specified higher up in the message? And how does your WSDL describe the structure? (please include the entire schema) Anne On 6/3/05, Popa Horia [EMAIL PROTECTED] wrote: I moved from Axis 1.2 RC3 to Axis 1.2 final and I have noticed that my application doesn't work anymore. The application is a Axis 1.5 C++ stub. The reason is that the Array are serialized different in Axis 1.2 RC3 and Axis 1.2 Final. If you have some information about this please write back. Thanks Below are the samples: Axis 1.2 RC3 history item xmlns= IP193.230.236.206/IP date2005-05-27T07:50:08.000Z/date droppedfalse/dropped hardwareKey851830523/hardwareKey id41/id operation0/operation reasonnPower installation/reason serialNumberId0/serialNumberId
Re: Invocation arguments were modified exception in HandlerChainImpl class
Hi - With Axis 1.2 when I try to modify a child within the soap body using a client handler I am getting : java.lang.RuntimeException: Invocation arguments were modified exception at org.apache.axis.handlers.HandlerChainImpl.postInvoke(HandlerChainImpl.java:201) This was I believe working okay with axis 1.1. (Inserting and deleting child elements seems okay in 1.1. 1.2) I think I am experiencing a similar problem as reported on 2005-03-22 by Timour Mouratov in msg : Re: Invocation arguments were modified exception in HandlerChainImpl class I did not see any resolution to his question ? I note that there was work done recently to HandlerChainImp.java file - is that to fix this problem ? See http://cvs.apache.org/viewcvs.cgi/ws-axis/java/src/org/apache/axis/handlers/HandlerChainImpl.java?r1=1.18r2=1.19 Cheers, Kieran ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
deploying web service
Hi all I've developeed a web service on my local PC. I now need to deploy this to our network so it can be used. Can someone point to an example of deploying a webservice to tomcat. I've read a few articles but they don't seem to be relevant/quite complex to understand I have my deploy/undeploy/server-cofig wsdd and my wsdl - i just don't know where to put them and what to change once they are on the network e.g the endpoint in the wsdl file Also, i don't understand how the web service will see the java files. It works on my PC i have a project with packages and java files in each and my web service can see them Sorry for my dumb questions Thanks for any help _ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk
Re: org.xml.sax.SAXException: Found character data inside an array element while des
I got around this problem by casting an ArrayList to a String [] and that solved it Thanks for answering my query though From: thomas [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: org.xml.sax.SAXException: Found character data inside an array element while des Date: Fri, 10 Jun 2005 09:42:20 +0200 Have you a complete stack trace ? On Jun 9, 2005, at 11:40 AM, Plorks mail wrote: When I write a test client and call this method i get the error: org.xml.sax.SAXException: Found character data inside an array element while deserializing My service method gets data from a db table and pus it into an array. I call this method using this: String [] ret = (String [])call.invoke(new Object[] {myString}); Can someone help me solve this problem Many thanks _ Be the first to hear what's new at MSN - sign up to our free newsletters! http://www.msn.co.uk/newsletters
Re: Webservice with XML input parameter
Axis isn't really designed to work with XML strings particularly well. It works with Java objects (RPC, Wrapped, and Document styles) and with XML DOM (message style). I suggest you convert your strings to DOM and use the messaging style. See the documentation. Anne On 6/9/05, Johan Kumps [EMAIL PROTECTED] wrote: Hi all, I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value. Can you point me in the right direction? Code sample? Thanks in advance, Kind regards, Johan Kumps
Re: deploying web service
Hi, you can use the ant tasks supplied with axis to deploy/undeploy your service. Regards, Tom Plorks mail wrote: Hi all I've developeed a web service on my local PC. I now need to deploy this to our network so it can be used. Can someone point to an example of deploying a webservice to tomcat. I've read a few articles but they don't seem to be relevant/quite complex to understand I have my deploy/undeploy/server-cofig wsdd and my wsdl - i just don't know where to put them and what to change once they are on the network e.g the endpoint in the wsdl file Also, i don't understand how the web service will see the java files. It works on my PC i have a project with packages and java files in each and my web service can see them Sorry for my dumb questions Thanks for any help _ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk
[Axis2] java.lang.UnsupportedOperationException: service element is not allowed in the server.xml
Why is service element not allowed in (generated) service.xml ? the code snippet from ..ServerTest.java: DeploymentEngine deploymentEngine = new DeploymentEngine(basePath,service.xml); AxisConfiguration axisConfig = deploymentEngine.load(); my service.xml: !--Auto generated Axis Service XML-- service name=ILicenseServerSkeletonTest parameter locked=xsd:false name=ServiceClassde.innovations.licenseserver.axis2.ILicenseServerSkeleton/parameter !--Mounting the method QueryLicenses-- operation name=QueryLicenses/ !--Mounting the method InstallLicense-- operation name=InstallLicense/ !--Mounting the method Reload-- operation name=Reload/ !--Mounting the method FreeLicense-- operation name=FreeLicense/ !--Mounting the method GetServerStatus-- operation name=GetServerStatus/ !--Mounting the method RequestLicense-- operation name=RequestLicense/ /service java.lang.UnsupportedOperationException: service element is not allowed in the server.xml at org.apache.axis.deployment.DeploymentParser.processGlobalConfig(DeploymentParser.java:200) at org.apache.axis.deployment.DeploymentEngine.load(DeploymentEngine.java:208) at de.innovations.licenseserver.axis2.server.ILicenseServerTest.setUp(ILicenseServerTest.java:40) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:474) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:342) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:194)
Re: deploying web service
Hi Thanks for your reply Something like this java org.apache.axis.client.AdminClient deploy.wsdd I would have top copy my java files/jars etc to tomcat first? Thanks From: Tom Ziemer [EMAIL PROTECTED] Reply-To: axis-user@ws.apache.org To: axis-user@ws.apache.org Subject: Re: deploying web service Date: Fri, 10 Jun 2005 17:35:02 +0200 Hi, you can use the ant tasks supplied with axis to deploy/undeploy your service. Regards, Tom Plorks mail wrote: Hi all I've developeed a web service on my local PC. I now need to deploy this to our network so it can be used. Can someone point to an example of deploying a webservice to tomcat. I've read a few articles but they don't seem to be relevant/quite complex to understand I have my deploy/undeploy/server-cofig wsdd and my wsdl - i just don't know where to put them and what to change once they are on the network e.g the endpoint in the wsdl file Also, i don't understand how the web service will see the java files. It works on my PC i have a project with packages and java files in each and my web service can see them Sorry for my dumb questions Thanks for any help _ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk _ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk
re: error using axis-1_2, works with 1_2RC3
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am curious what may have changed that leads to some odd behavior. My application is working with RC3, but I realized today that I didn't upgrade to 1_2 final, so I tried it. My unit test is failing, and here is what is feels is the root cause of the error, look for the '#' symbol. It isn't telling me what is missing, obviously it is finding WSDDOperation. Thank you for any help. LMSClient.LMSMonitorTest.TestGetItemTypeList : System.InvalidOperationException : Client found response content type of 'text/html;charset=ISO-8859-1', but expected 'text/xml'. The request failed with the error message: - -- Exception report/ppbmessage/b u/u/ppbdescription/b uThe server encountered an internal error () that prevented it from fulfilling this request./u/ppbexception/b prejavax.servlet.ServletException: Servlet.init() for servlet AxisServlet threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:595) ### /pre/ppbroot cause/b prejava.lang.NoClassDefFoundError org.apache.axis.deployment.wsdd.WSDDOperation.lt;initgt;(WSDDOperation.java:46) org.apache.axis.deployment.wsdd.WSDDService.lt;initgt;(WSDDService.java:157) org.apache.axis.deployment.wsdd.WSDDDeployment.lt;initgt;(WSDDDeployment.java:191) org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139) org.apache.axis.deployment.wsdd.WSDDDocument.lt;initgt;(WSDDDocument.java:65) org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179) org.apache.axis.AxisEngine.init(AxisEngine.java:172) org.apache.axis.AxisEngine.lt;initgt;(AxisEngine.java:156) org.apache.axis.server.AxisServer.lt;initgt;(AxisServer.java:88) org.apache.axis.server.DefaultAxisServerFactory.createServer(DefaultAxisServerFactory.java:109) org.apache.axis.server.DefaultAxisServerFactory.getServer(DefaultAxisServerFactory.java:73) org.apache.axis.server.AxisServer.getServer(AxisServer.java:73) org.apache.axis.transport.http.AxisServletBase.getEngine(AxisServletBase.java:185) org.apache.axis.transport.http.AxisServletBase.getOption(AxisServletBase.java:396) org.apache.axis.transport.http.AxisServletBase.init(AxisServletBase.java:112) org.apache.axis.transport.http.AxisServlet.init(AxisServlet.java:156) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) java.lang.Thread.run(Thread.java:595) - --. - -- Love is mutual self-giving that ends in self-recovery. Fulton Sheen James Black[EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCqcDKikQgpVn8xrARAlSqAJ0XggM6fqUgnbJwYVYdNuOOPbUdgQCaAmfZ rKocwiCmZTxLa36lH7QdNhE= =KvZD -END PGP SIGNATURE-
making a call through a proxy
Hi I am new to Axis, so here is my question: I need to submit a request to a web service, but since I am in the corporate network, I need to go through a proxy. How do I do it? I am using the Axis-generated client (stub, etc). Thanks. Janos
Re: making a call through a proxy
Just call these static methods before you call the web service: AxisProperties.setProperty("http.proxyHost", "123.123.123.123"); AxisProperties.setProperty("http.proxyPort", "1234"); Where 123.123.123.123 is the IP address of the proxy server and 1234 is the port to connect to. Jeff - Original Message - From: Janos Mucsi To: axis-user@ws.apache.org ; [EMAIL PROTECTED] Sent: Friday, June 10, 2005 12:45 PM Subject: making a call through a proxy Hi I am new to Axis, so here is my question: I need to submit a request to a web service, but since I am in the corporate network, I need to go through a proxy. How do I do it? I am using the Axis-generated client (stub, etc). Thanks. Janos
Re: making a call through a proxy
Thanks, Jeff, are these properties enumerated somewhere? I also need user id and password. Thanks. Janos Just call these static methods before you call the web service: AxisProperties.setProperty("http.proxyHost", "123.123.123.123"); AxisProperties.setProperty("http.proxyPort", "1234"); Where 123.123.123.123 is the IP address of the proxy server and 1234 is the port to connect to. Jeff
RE: Blockers for Axis 1.2.1 Release(?)
I would also like to see 1903 get fixed. Raul Flores -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Friday, June 10, 2005 10:09 AM To: axis-user@ws.apache.org Subject: Re: Blockers for Axis 1.2.1 Release(?) Is there any chance that this issue: http://issues.apache.org/jira/browse/AXIS-1903 get fixed? It seems to have problem with many platforms. Davanum Srinivas wrote: Folks, I see 5 blockers...Does anyone else have others that needs fixed ASAP? I may or may not downgrade some of these depending on various factors (which i will of course add to the comments). http://issues.apache.org/jira/browse/AXIS-2046 http://issues.apache.org/jira/browse/AXIS-1986 http://issues.apache.org/jira/browse/AXIS-1985 http://issues.apache.org/jira/browse/AXIS-1976 http://issues.apache.org/jira/browse/AXIS-1366 thanks, dims On 6/1/05, Dan Armbrust [EMAIL PROTECTED] wrote: If my opinion counts... this one is a critical blocker... http://issues.apache.org/jira/browse/AXIS-2021 Dan Davanum Srinivas wrote:
Re: making a call through a proxy
AxisProperties.setProperty("http.proxyUser", "user name"); AxisProperties.setProperty("http.proxyPassword", "password"); They are Java system properties that are specific to the code that needs them, Janos. As far as I can tell, they are simply hard-coded rather that formally enumerated in documentation. Jeff - Original Message - From: Janos Mucsi To: axis-user@ws.apache.org Sent: Friday, June 10, 2005 1:15 PM Subject: Re: making a call through a proxy Thanks, Jeff, are these properties enumerated somewhere? I also need user id and password. Thanks. Janos Just call these static methods before you call the web service: AxisProperties.setProperty("http.proxyHost", "123.123.123.123"); AxisProperties.setProperty("http.proxyPort", "1234"); Where 123.123.123.123 is the IP address of the proxy server and 1234 is the port to connect to. Jeff
attachments truncate on JDK 1.5 Axis1.2?
same application that ran OK on jdk 1.4 is truncating attachement files at 8K? a wild guess is that the portion of Axis that is chunking the stream on the Wire is sending 1 segment and dropping the connection. is this just my environment or is there a problem running Axis 1.2 on JDK 1.5? I presume that i made a mistake with the migration to Jdk1.5 and the recompile of my application. robert rowntree Borneo Consulting Inc 415 642 4162 415 335 5539 M
List and Map
Hello: There are API's that is already exposed that needs to be converted to webservices which use Lists and Maps as arguements and return types. Could someone throw some pointers/exampels n how to do this with Axis. Thanks, Ravi
Re: Webservice with XML input parameter
Hi Anne,To me, pass xml as a string input is very important. If I call a web service from a JSP, PHP, ASPX or other client applications, I don't want write functions inside these pages or client applications to parse the string to xml dom.I rather like web service handle it. Besides, to parse a xml string, I may not want use dom but sax. So I like web service taking xml string as an option, just for convenience of applications.Jack H. Xu Technology columnist and author http://www.usanalyst.com http://www.getusjobs.com- Original Message - From: "Anne Thomas Manes" <[EMAIL PROTECTED]>To: axis-user@ws.apache.org Subject: Re: Webservice with XML input parameter Date: Fri, 10 Jun 2005 07:31:25 -0400 Axis isn't really designed to work with XML strings particularly well. It works with Java objects (RPC, Wrapped, and Document styles) and with XML DOM (message style). I suggest you convert your strings to DOM and use the messaging style. See the documentation. Anne On 6/9/05, Johan Kumps <[EMAIL PROTECTED]>wrote: Hi all, I would like to deploy a webservice using Axis 1.2 with a XML-string as input parameter and a XML-string as return value. Can you point me in the right direction? Code sample? Thanks in advance, Kind regards, Johan Kumps Jack H. Xu Technology columnist and author http://www.usanalyst.com http://www.getusjobs.com -- ___Sign-up for Ads Free at Mail.com http://www.mail.com/?sr=signup
Re: deploying web service
hihi, the deploy/undeploy.wsdd are not needed in production. they are used to generate the server-config.wsdd the server-config.wsdd goes into your webapp/WEB-INF folder (same as your web.xml deployment descriptor file) if you have web services working on your local machine, deploying it on 'the network' requires no change to your web service. you should be able to just copy your entire web service app to your network server and have it work just the same. only the clients who access the web service needs to change, they need to know where the new location of your web service is (eg. the proxy/stub classes if you're using any). hth, woodchuck --- Plorks mail [EMAIL PROTECTED] wrote: Hi all I've developeed a web service on my local PC. I now need to deploy this to our network so it can be used. Can someone point to an example of deploying a webservice to tomcat. I've read a few articles but they don't seem to be relevant/quite complex to understand I have my deploy/undeploy/server-cofig wsdd and my wsdl - i just don't know where to put them and what to change once they are on the network e.g the endpoint in the wsdl file Also, i don't understand how the web service will see the java files. It works on my PC i have a project with packages and java files in each and my web service can see them Sorry for my dumb questions Thanks for any help _ It's fast, it's easy and it's free. Get MSN Messenger 7.0 today! http://messenger.msn.co.uk __ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail
Re: Blockers for Axis 1.2.1 Release(?)
Raul, does the fix work for you too? -- dims On 6/10/05, Flores, Raul [EMAIL PROTECTED] wrote: I would also like to see 1903 get fixed. Raul Flores -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Friday, June 10, 2005 10:09 AM To: axis-user@ws.apache.org Subject: Re: Blockers for Axis 1.2.1 Release(?) Is there any chance that this issue: http://issues.apache.org/jira/browse/AXIS-1903 get fixed? It seems to have problem with many platforms. Davanum Srinivas wrote: Folks, I see 5 blockers...Does anyone else have others that needs fixed ASAP? I may or may not downgrade some of these depending on various factors (which i will of course add to the comments). http://issues.apache.org/jira/browse/AXIS-2046 http://issues.apache.org/jira/browse/AXIS-1986 http://issues.apache.org/jira/browse/AXIS-1985 http://issues.apache.org/jira/browse/AXIS-1976 http://issues.apache.org/jira/browse/AXIS-1366 thanks, dims On 6/1/05, Dan Armbrust [EMAIL PROTECTED] wrote: If my opinion counts... this one is a critical blocker... http://issues.apache.org/jira/browse/AXIS-2021 Dan Davanum Srinivas wrote: -- Davanum Srinivas -http://blogs.cocoondev.org/dims/
Re: Blockers for Axis 1.2.1 Release(?)
upgraded to blocker. see my last comment in the bug report. -- dims On 6/10/05, Flores, Raul [EMAIL PROTECTED] wrote: I would also like to see 1903 get fixed. Raul Flores -Original Message- From: Vy Ho [mailto:[EMAIL PROTECTED] Sent: Friday, June 10, 2005 10:09 AM To: axis-user@ws.apache.org Subject: Re: Blockers for Axis 1.2.1 Release(?) Is there any chance that this issue: http://issues.apache.org/jira/browse/AXIS-1903 get fixed? It seems to have problem with many platforms. Davanum Srinivas wrote: Folks, I see 5 blockers...Does anyone else have others that needs fixed ASAP? I may or may not downgrade some of these depending on various factors (which i will of course add to the comments). http://issues.apache.org/jira/browse/AXIS-2046 http://issues.apache.org/jira/browse/AXIS-1986 http://issues.apache.org/jira/browse/AXIS-1985 http://issues.apache.org/jira/browse/AXIS-1976 http://issues.apache.org/jira/browse/AXIS-1366 thanks, dims On 6/1/05, Dan Armbrust [EMAIL PROTECTED] wrote: If my opinion counts... this one is a critical blocker... http://issues.apache.org/jira/browse/AXIS-2021 Dan Davanum Srinivas wrote: -- Davanum Srinivas -http://blogs.cocoondev.org/dims/