Re: WSDL2C Stub Generation - Operations missing
Hi Dimuthu, thanks for the quick answer. Now that I know this, I think I can live with request-response operations ... Von: Dimuthu Gamage [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 22. November 2007 13:15 An: Apache AXIS C User List Betreff: Re: WSDL2C Stub Generation - Operations missing Hi Sebastian, You wsdl have a operation with out only message exchange pattern. You can't generate code to this kind of scenarios using WSDL2C tool. AFAIK you need to work with Apache savan module here. And currently there are no other ways to generate the stub from the wsdl except the WSDL2C tool. Thanks Dimuthu On Nov 22, 2007 5:09 PM, Sebastian Merten [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I a m currently making my first steps with axis2/c and now have a few questions about stub generation. I' m using the WSDL2C Tool to generate the client stub with the following command: axis2.bat org.apache.axis2.wsdl.WSDL2C -uri http:// mydomain.com/ http://mydomain.com/ soap_server.php?wsdl -d adb - u The Problem is, that when I define a so called Notfication Operation in the server side wsdl file , the corresponding implementation in the generated axis2_stub_service.c -file is missing. Although the definition in the .h file is there. Functions for Request-respones Operations are correctly generated. Some example: Operations defined in the WSDL file: portType name =Service_PortType operation name= ServerVersion output message= tns:ServerVersionOutput / / operation operation name= Test input message= tns:TestInput / output message =tns:TestOutput / / operation / portType Function declarations in the generated .h file: adb_string_element_t* axis2_stub_Service_ServerVersion( axis2_stub_t *stub, const axutil_env_t *env); adb_string_element_t* axis2_stub_Service_Test( axis2_stub_t *stub, const axutil_env_t *env, adb_string_element_t* string_element3); The function axis2_stub_Service_Test is correctly implemented in the .c file but the function axis2_stub_Service_ServerVersion not. Anyone has an idea what could be wrong? b.t.w.: Is there also a way to generate the client stub (from wsdl) programmatically without using the WSDL2C Tool? Greetings and thanks in advance Sebastian
re: Re[2]: How to develop a HTTPs-based webservice client
The one question I have at the moment is, to use the https-based service, is it just a matter of replacing http://web service uri with https://web service uri? Yes If you have done as the way above link says it is just a matter of replacing http with https given that your service endpoint is https based. -Manjula. Thanks for that, I've got it working now w/ client-side authentication. Regards, Royston - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] roadmap, eta. for axis2 1.4?
Hi all, i didn't found this on the webpage. What is the roadmap of the axis2 1.4 release? What is the eta? And will it support POJOs with HasMap, Hastable and Vectors? Regeards -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: About SSL..
Hi, In axis2 1.3, axis2.xml there is a ssl listener and sender commented out. You can uncomment it. That is how it is supposed to work. But keystores are missing in the distribution i think. So you will have to provide the keystore files and try Upul On Nov 23, 2007 6:34 PM, Ajay Kumar Gour [EMAIL PROTECTED] wrote: Hello All, I was googling for help about using SSL with Axis2 and i have got this link http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html;. This tells how to make Axis2 client use SSL. If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss then we need to use server specific configuration to enable SSL. Please correct me if iam rong somewhere. But, how to configure SSL on standalone Axis2? Thanks, -Ajay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2 Sample EchoBlockingDualClient - clients hangs, service times out
Hi, I am still trying to get the EchoBlockingDualClient from the Axis2 /Userguide to correctly terminate. As I reported in a previous email, the client sample runs to completion, then hangs waiting possibly for a socket operation(?) The MyService is started, reads the request and sends a correct response, but then the service times out with LogHandler:InvocationRespons [INFO] ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; ... [INFO] Unable to sendViaPost to url[ http://127.0.0.1:9000/axis2/services/MyService] java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) I have added the options.setReplyTo(replyEPR) line to the client sample, but I do not understand what the services wants to send or why. I have read several articles about async communication with Axis2 and they all seem to old to provide an answer. I have traced the SOAP messages and see that there is a connection back to the client using port 9000. Has anyone got this sample work correctly? Rick
Re: axis2.log missing
Ensure you have copied log4j.jar under axis2\WEB-INF\lib vpl wrote: Hi, I've browsed the axis user mailing list and could not find a clear answer to this new-comer ... question. Please help I'm unsing the axis2.war deployed into a tomcat 6.0.14. In the catalina.out I see a log4j INFO when my Web-service is deployed. But I added on the server side some log4j code to trace my web-service activity. When I start my rpc.client I get the log4j WARM No appender could be found .. log4j file is never created, nowhere. I've also tried to insert a log4j.properties into the .aar generated by my ant when I compile my web-serivce (into the class root directory). NOTHING Something wrong. Could somebody help me ? Thanks === public class IcProvider { private static org.apache.log4j.Logger log = Logger.getLogger(IcProvider.class); public User logon(String userVal) { if (userVal.equals(vpl)) { log.info(user vpl logged); return new User(vpl); } else return null; } } # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n -- View this message in context: http://www.nabble.com/axis2.log-missing-tf4508178.html#a13913667 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
About SSL..
Hello All, I was googling for help about using SSL with Axis2 and i have got this link http://www.mail-archive.com/axis-user@ws.apache.org/msg19269.html;. This tells how to make Axis2 client use SSL. If Axis2 is deployed in Web Server or App Server e.g. on Tomcat or JBoss then we need to use server specific configuration to enable SSL. Please correct me if iam rong somewhere. But, how to configure SSL on standalone Axis2? Thanks, -Ajay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] roadmap, eta. for axis2 1.4?
[EMAIL PROTECTED] wrote: Hi all, i didn't found this on the webpage. What is the roadmap of the axis2 1.4 release? What is the eta? We discussed some of of the stuff we are going to have in the next release in the last hackathon we had in Apachecon. And I will send a note with what we discuss and may be I will be able to give you a tentative date of the next release. We are not in a hurry to do another release since we have not found critical issues with 1.3 release. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis - Using attachments
Hi , My requirement is to get a pdf from a service. The server sends a pdf and the client has to store the same in the file system. But i am unable to save the pdf in a location i want instead of the windows temp folder. Can some one help me on this pls. I have attached the Service class, the client and the wsdd. // Service Class public class PDFAttachmentsService { public DataHandler sendPdfs() throws MalformedURLException { String filename = C:/EDDHome/1_52043_1.pdf; DataHandler dataHandler = new DataHandler(new FileDataSource(filename)); return dataHandler; } } // Client Class public class PDFAttachment { public static void main(String args[]) { try { Service service = new Service(); Call call = (Call) service.createCall(); call .setTargetEndpointAddress(http://localhost:8080/axis/services/urn:PDFAttachmentsService;); call.setOperationName(new QName(urn:PDFAttachmentsService, sendPdfs)); QName qnameAttachment = new QName(urn:PDFAttachmentsService, DataHandler); call.registerTypeMapping(PDFAttachment.class, qnameAttachment, JAFDataHandlerSerializerFactory.class, JAFDataHandlerDeserializerFactory.class); call.setReturnType(qnameAttachment); Object ret = call.invoke(new Object[] {}); if (null == ret) { System.out.println(Received null ); throw new AxisFault(, Received null, null, null); } if (ret instanceof String) { System.out.println(Received problem response from server: + ret); throw new AxisFault(, (String) ret, null, null); } if (!(ret instanceof DataHandler)) { // The wrong type of object that what was expected. System.out.println(Received problem response from server: + ret.getClass().getName()); throw new AxisFault(, Received problem response from server: + ret.getClass().getName(), null, null); } DataHandler rdh = (DataHandler) ret; System.out.println(Received thro : + rdh.getClass().getName()); } catch (Exception e) { System.err.println(e); e.printStackTrace(); } } } // WSDD file !-- This deploys PDF attachment service. -- deployment xmlns=http://xml.apache.org/axis/wsdd/; xmlns:java=http://xml.apache.org/axis/wsdd/providers/java; xmlns:ns1=urn:PDFAttachmentsService service name=urn:PDFAttachmentsService provider=java:RPC parameter name=className value=samples.pdfattachments.PDFAttachmentsService/ parameter name=allowedMethods value=sendPdfs/ parameter name=dataHandler type=ns1:DataHandler/ typeMapping deserializer=org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory languageSpecificType=java:javax.activation.DataHandler qname=ns1:DataHandler serializer=org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; / /service /deployment -- View this message in context: http://www.nabble.com/Axis---Using-attachments-tf4860902.html#a13910296 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
help to explain an exception
Hello! I am running a couple of generated wsdl2java blocking clients in parallel. Different processes.They are executing calls to a local web server as fast as they can. Then after some hours I get an exception and I cant understand what is wrong. What do you think? /Pär Malmqvist INFO main org.apache.commons.httpclient.HttpMethodDirector - I/O exception (org.apache.commons.httpclient.NoHttpResponseException) caught when processing request: The server 127.0.0.1 failed to respondINFO main org.apache.commons.httpclient.HttpMethodDirector - Retrying requestINFO main org.apache.axis2.transport.http.HTTPSender - Unable to sendViaPost to url[http://127.0.0.1:8080/axis2/services/SilDB2]org.apache.axis2.AxisFault: problem accessing the parser. Parser already accessed! at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:72) at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84) at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:495) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:520) at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:191) at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:77) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:327) at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206) at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:396) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:374) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at client.axis2.main.SilDB2Stub.getInteractionsWithinDrugIdListSevClassification(Unknown Source) at silor.prot.SilApiAxis2Handler.getInteractionsWithinDrugIdListSevClassification(Unknown Source) at silor.cases.InteractionBasic.InteractionBasic20070912000(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at silor.main.Mexecute.execute(Unknown Source) at silor.main.CaseExecutor.run(Unknown Source) at silor.main.Main.init(Unknown Source) at silor.main.Main.main(Unknown Source)Caused by: javax.xml.stream.XMLStreamException: problem accessing the parser. Parser already accessed! at org.apache.axiom.om.impl.llom.OMStAXWrapper.next(OMStAXWrapper.java:906) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode(StreamingOMSerializer.java:72) at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(StreamingOMSerializer.java:57) at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(OMSerializerUtil.java:525) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElementImpl.java:789) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.serializeInternally(SOAPEnvelopeImpl.java:237) at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOAPEnvelopeImpl.java:225) at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsume(OMElementImpl.java:814) at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImpl.java:421) at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:68) ... 28 more _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
RE: Strange generated java class names
Hi all, I have the same issue. It's kind of strange because, in my case, it is just a wrapper to the good class (i.e. HelloWorldRequest15 has only one field which is HelloWorldRequest). I tried to get rid of it using the -uw option but it doesn't help. The numbers are indeed random, every time I generate the sources I have other numbers. This pretty much ruins the automated build. Is there a workaround for this? Cheers, Sietse -Original Message- From: Simon Steinacker [mailto:[EMAIL PROTECTED] Sent: 23 November 2007 06:11 To: axis-user@ws.apache.org Subject: Re: Strange generated java class names Yes, I am using Axis2. This is the WSDL: http://pastebin.com/m1c167821 Thanks, Simon Amila Suriarachchi wrote: Are you using Axis2? Can you send your wsdl? thanks, amila. On Nov 22, 2007 3:31 PM, Simon Steinacker [EMAIL PROTECTED] wrote: Hello, I have a wsdl and generate java classes out of it using the wsdl2java ant task. For example I have defined a response message named 'FindDocumentsResponse'. Axis2 generates the java class for that, but performs a renaming into something like 'FindDocumentsResponse11'. So it seems that it somehow appends a random number to the generated response. This only seems to be the case with service responses, since parameters are not affected by that phenomenon. Is there a way to circumnavigate this issue? Because it is rather inconvenient to use? Thanks for your help! Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Axis2] roadmap, eta. for axis2 1.4?
You still haven't completed the 1.3 release. (See my last message, for which I haven't received an answer.) Original Message Subject: Re: [Axis2] roadmap, eta. for axis2 1.4? From: Deepal jayasinghe [EMAIL PROTECTED] Date: Fri, November 23, 2007 2:37 am To: axis-user@ws.apache.org We are not in a hurry to do another release since we have not found critical issues with 1.3 release. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] roadmap, eta. for axis2 1.4?
Thanks for your answer. Would be nice to get a tentative date of the next release and the notes. I'm asking for this, because we are in the situation that we must support hashtable in some way. It's no problem to define a a new class that has an member which is an array of KeyValuePair. Where KeyValuePair has two member of type object (key and value). WSDL is genereated as follows: xs:complexType name=Hashtable xs:sequence xs:element maxOccurs=unbounded minOccurs=0 name=keyValuePairs nillable=true type=ns2:KeyValuePair/ /xs:sequence /xs:complexType xs:complexType name=KeyValuePair xs:sequence xs:element minOccurs=0 name=key nillable=true type=xs:anyType/ xs:element minOccurs=0 name=value nillable=true type=xs:anyType/ /xs:sequence /xs:complexType Service class method: public Hashtable testHashtable2() { KeyValuePair[] keyValuePairs = new KeyValuePair[] { new KeyValuePair(TestStringKey, TestStringValue), new KeyValuePair(new Integer(1), new Integer(2)), new KeyValuePair(StringKayForinteger, new Integer(2)), new KeyValuePair(new Integer(1), StringValueForInteger), new KeyValuePair(new Integer(1), new String(StringValueForInteger)) }; return new Hashtable(keyValuePairs); } and SOAP Response: soapenv:Envelope xmlns:soapenv=http://www.w3.org/2003/05/soap-envelope; soapenv:Body ns:testHashtable2Response xmlns:ns=http://coaching.de; ns:return type=de.coaching.Hashtable xmlns:ax22=http://vo.coaching.de/xsd; xmlns:ax23=http://io.java/xsd; xmlns:ax21=http://coaching.de/xsd; ax21:keyValuePairs type=de.coaching.KeyValuePair ax21:keyTestStringKey/ax21:key ax21:valueTestStringValue/ax21:value /ax21:keyValuePairs ax21:keyValuePairs type=de.coaching.KeyValuePair ax21:key type=java.lang.Integer/ ax21:value type=java.lang.Integer/ /ax21:keyValuePairs ax21:keyValuePairs type=de.coaching.KeyValuePair ax21:keyStringKayForinteger/ax21:key ax21:value type=java.lang.Integer/ /ax21:keyValuePairs ax21:keyValuePairs type=de.coaching.KeyValuePair ax21:key type=java.lang.Integer/ ax21:valueStringValueForInteger/ax21:value /ax21:keyValuePairs ax21:keyValuePairs type=de.coaching.KeyValuePair ax21:key type=java.lang.Integer/ ax21:valueStringValueForInteger/ax21:value /ax21:keyValuePairs /ns:return /ns:testHashtable2Response /soapenv:Body /soapenv:Envelope So for String there are the values but not type and for Integer there are no values but the type. Why is this? And another problem are exceptions. (See my other mail http://marc.info/?l=axis-userm=119572197706388w=2) Regards Original-Nachricht Datum: Fri, 23 Nov 2007 15:07:42 +0530 Von: Deepal jayasinghe [EMAIL PROTECTED] An: axis-user@ws.apache.org Betreff: Re: [Axis2] roadmap, eta. for axis2 1.4? [EMAIL PROTECTED] wrote: Hi all, i didn't found this on the webpage. What is the roadmap of the axis2 1.4 release? What is the eta? We discussed some of of the stuff we are going to have in the next release in the last hackathon we had in Apachecon. And I will send a note with what we discuss and may be I will be able to give you a tentative date of the next release. We are not in a hurry to do another release since we have not found critical issues with 1.3 release. Thanks Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to know when the message is built and rebuilt in Axis2?
Hi, I would like to know in what part of Axis2 can I obtain information about where the message is built (sender) and rebuilt (receiver). For example: I need to know when the message start to be built and when the message construction is finished. Where can I collect these information? In what class? Where is the beginnig and the end of message construction? Could be in handlers? How to do it? Thanks. Julio -- View this message in context: http://www.nabble.com/How-to-know-when-the-message-is-built-and-rebuilt-in-Axis2--tf4862877.html#a13915821 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: axis2.log missing
Hi, I had the same problem for the client as I wanted the log on the client side. I got logging to work in the /Userguide samples. I put the following files in the \build dir C:\apache- tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\build\commons-logging.propertiesC:\apache- tomcat-5.5.25\webapps\axis2\WEB-INF\samples\userguide\build\log4j.properties and added the \build to the classpath in the build.xml project name=userguide default=generate.service property name=mainDir value=../../ property name=classes.dir value=build/classes/ path id=axis.classpath fileset dir=../../lib include name=*.jar/ /fileset pathelement location=build/userguide.jar/ pathelement location=build/ /path The files need to be class path, then the client will not display the WARN: No appender could be If you do a clean, the build dir will be deleted. Hope this works. Rick On Nov 23, 2007 3:58 PM, aquaglia [EMAIL PROTECTED] wrote: Ensure you have copied log4j.jar under axis2\WEB-INF\lib vpl wrote: Hi, I've browsed the axis user mailing list and could not find a clear answer to this new-comer ... question. Please help I'm unsing the axis2.war deployed into a tomcat 6.0.14. In the catalina.out I see a log4j INFO when my Web-service is deployed. But I added on the server side some log4j code to trace my web-service activity. When I start my rpc.client I get the log4j WARM No appender could be found .. log4j file is never created, nowhere. I've also tried to insert a log4j.properties into the .aar generated by my ant when I compile my web-serivce (into the class root directory). NOTHING Something wrong. Could somebody help me ? Thanks === public class IcProvider { private static org.apache.log4j.Logger log = Logger.getLogger(IcProvider.class); public User logon(String userVal) { if (userVal.equals(vpl)) { log.info(user vpl logged); return new User(vpl); } else return null; } } # Set root category priority to INFO and its only appender to CONSOLE. log4j.rootCategory=INFO, CONSOLE #log4j.rootCategory=INFO, CONSOLE, LOGFILE # Set the enterprise logger priority to FATAL log4j.logger.org.apache.axis2.enterprise=FATAL log4j.logger.de.hunsicker.jalopy.io=FATAL log4j.logger.httpclient.wire.header=FATAL log4j.logger.org.apache.commons.httpclient=FATAL # CONSOLE is set to be a ConsoleAppender using a PatternLayout. log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n # LOGFILE is set to be a File appender using a PatternLayout. log4j.appender.LOGFILE=org.apache.log4j.FileAppender log4j.appender.LOGFILE.File=axis2.log log4j.appender.LOGFILE.Append=true log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n -- View this message in context: http://www.nabble.com/axis2.log-missing-tf4508178.html#a13913667 Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Premature end of file - Axis2 1.x versions
Hi, I am new to Axis Web Service development. I am writing an Axis2 web service client program to invoke a web service published in IIS server. I am not sure in which language the service is implemented but anyway that should not matter when we talk about Web Service!! I generated my client and stubs using wsdl2java tool provided by Axis2 version 1.3. When I tried to run my client and monitor this HTTP traffic using TCPMon tool, I get the following message from the server: org.apache.axis2.AxisFault: org.xml.sax.SAXParseException: Premature end of file. at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163) at CHG_ChangeRequestStagingFormServiceStub.OpCreate(CHG_ChangeRequestStagingFormServiceStub.java:296) at WSClient.main(RemedyWSClient.java:77) In the tcpmon SOAP request looks like this: ?xml version='1.0' encoding='utf-8'?soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Header ns1:AuthenticationInfo xmlns:ns1=urn:CHG_ChangeRequestStagingForm soapenv:mustUnderstand=0 ns1:userNameDemo/ns1:userName ns1:password/ns1:password /ns1:AuthenticationInfo/soapenv:Header soapenv:Body ns1:OpCreate xmlns:ns1=urn:CHG_ChangeRequestStagingForm ns1:Assigned_Tows_AssignedTo/ns1:Assigned_To ns1:dat_CHG_CreateTime2007-11-21T21:21:30.620Z/ns1:dat_CHG_CreateTime ns1:fld_Attachment_Field0_attachmentNamews_AttachName0/ns1:fld_Attachment_Field0_attachmentNamens1:fld_Attachment_Field0_attachmentData /ns1:fld_Attachment_Field0_attachmentOrigSize0/ns1:fld_Attachment_Field0_attachmentOrigSizens1:fld_Attachment_Field1_attachmentNamews_AttachName1/ns1:fld_Attachment_Field1_attachmentNamens1:fld_Attachment_Field1_attachmentData /ns1:fld_Attachment_Field1_attachmentOrigSize0/ns1:fld_Attachment_Field1_attachmentOrigSizens1:fld_Attachment_Field2_attachmentNamews_AttachName2/ns1:fld_Attachment_Field2_attachmentNamens1:fld_Attachment_Field2_attachmentData /ns1:fld_Attachment_Field2_attachmentOrigSize0/ns1:fld_Attachment_Field2_attachmentOrigSizens1:fld_Attachment_Field3_attachmentNamews_AttachName3/ns1:fld_Attachment_Field3_attachmentNamens1:fld_Attachment_Field3_attachmentData /ns1:fld_Attachment_Field3_attachmentOrigSize0/ns1:fld_Attachment_Field3_attachmentOrigSize ns1:fld_CHG_Categoryws_Category/ns1:fld_CHG_Category ns1:fld_CHG_Deptmentws_Department/ns1:fld_CHG_Deptment ns1:fld_CHG_Groupws_Group/ns1:fld_CHG_Group ns1:fld_CHG_IDws_ID/ns1:fld_CHG_ID ns1:fld_CHG_Itemws_Item/ns1:fld_CHG_Item ns1:fld_CHG_Sitews_Site/ns1:fld_CHG_Site ns1:fld_CHG_Typews_Type/ns1:fld_CHG_Type ns1:Short_Descriptionws_ShortDescription/ns1:Short_Description ns1:StatusNew/ns1:Status ns1:Submitterws_Submitter/ns1:Submitter /ns1:OpCreate/soapenv:Body /soapenv:Envelope and the SOAP response looks like this: HTTP/1.1 500 Internal server errorServer: Microsoft-IIS/5.0Date: Fri, 23 Nov 2007 21:37:22 GMTConnection: closeX-Powered-By: ServletExec/5.0p06, Servlet/2.4, JSP/2.0Content-Type: text/xml; charset=utf-8 ?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 soapenv:Fault faultcodesoapenv:Server.userException/faultcode faultstringorg.xml.sax.SAXParseException: Premature end of file./faultstring detail/ /soapenv:Fault /soapenv:Body/soapenv:Envelope But the weird part is when I copied the above SOAP request from the tcpmon and paste it in the SOAP request pane in the Sender window of tcpmon tool, and directly invoke the web service through tcpmon, I get a valid SOAP response like this: ?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 OpCreateResponse xmlns=urn:CHG_ChangeRequestStagingForm xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; CHG_StagingRequestID002/CHG_StagingRequestID /OpCreateResponse/soapenv:Body I also tried in other base versions of Axis2 like 1.1 and 1.1.1, but still getting the same error message. Then I thought of using Axis 1.4 instead of Axis2 versions assuming that it may some version incompatibility with the server as the published web service supports only SOAP 1.1 and WSDL 1.1. In this case, the generated stub code didn't have the complete parameters required for invoking the web service as I don't see the web service operation method taking
Re: [Axis2 1.3]RESTFul serivce problem when parameters are short
Thanks, Keith. 2007/11/23, keith chapman [EMAIL PROTECTED]: Hi, This is an issue with the RPCMessageReceiver and there is a JIRA opened against yhis. If you want to develop a nice RESTFull web service WSDL 2.0 deployment would be the better way. If you like I can help you write the WSDL 2.0 doc for this so that you can codegenarate the skeleton and the stub if you wish to. I want to call the service from a browser, so I don't codegenarate the skeleton and the stub. I opend a JIRA : https://issues.apache.org/jira/browse/AXIS2-3364 Thanks, Takanori - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]