Hi Sathya, I can show you one error. i.e. paramerterClass paramer in the services.xmlshould contain name of the .so of your service.
so your services.xml should be changed to following, <service name="ParseMessage"> <parameter name="ServiceClass">parser</parameter> <operation name="parseMessage"/> </service> Thanks Dimuthu On 9/21/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for all of your help. They were quite useful. > > My Services.xml is > <!-- This file was auto-generated from WSDL --> > <!-- by the Apache Axis2 version: 1.3 Built on : Aug 10, 2007 (04:45:47 > LKT) --> > <service name="ParseMessage"> > <parameter name="ServiceClass">ParseMessage</parameter> > <operation name="parseMessage"/> > </service> > > I copied this and the libparser.so to $AXIS2C_HOME/services under a folder > called parseMessage. > > In the browser, if i give http://localhost:9090/soap, it is listing the > operation. > > In the wsdl the soapAction style was rpc, but i changed it to binding > because code generator gave error for that. > > After changing that the code was generated properly. I have a doubt after > this. > > If u look at the soapAction from wsdl (pasted below), it is something like > http://www.abnamro.com/paymentrouter#parseMessage > > Has this, got something to do with the error? Should this match with the > uri i am giving? I gave the uri as > http://localhost:9090/axis2/services/parseMessage > > I am getting this doubt because i am comparing my wsdl with > calculator.wsdl, where in soapAction, http://localhost/axis/services is > present > > Please clarify > > Thanks > Sathya > > <binding name="ParseMessageBinding" type="tns:ParseMessagePortType"> > <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> > > <operation name="parseMessage"> > <SOAP:operation style="binding" soapAction=" > http://www.abnamro.com/paymentrouter#parseMessage"/> > <input> > <SOAP:body parts="inputMessage" use="literal" namespace=" > http://www.abnamro.com/paymentrouter"/> > </input> > <output> > <SOAP:body parts="pInterchange" use="literal" namespace=" > http://www.abnamro.com/paymentrouter"/> > </output> > </operation> > </binding> > > > > > > > On 9/21/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote: > > > > Hi Sathya, > > Did you put the operations in the services.xml. You can generate the > > services.xml for your service by giving -sd as the option from the > > codegen tool. > > > > Thanks > > Dimuthu > > > > On 9/20/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote: > > > > > > Yes, sorry i missed to check that last time. I changed the link again > > > and it worked, Thanks > > > > > > Now, i am facing another new error after sending a message. > > > > > > Operation Not found. Endpoint reference is : > > > http://127.0.0.1:9090/axis2/services/parseMessage > > > > > > Client log says > > > "AXIS2_ERROR_TRANSPORT_LEVEL_INFORMATION_DOES_NOT_MATCH_WITH_SOAP" > > > > > > What should i check for? > > > > > > Thanks > > > Sathya > > > > > > On 9/20/07, Dimuthu Gamage <[EMAIL PROTECTED]> wrote: > > > > > > > > Hi, > > > > Please check with > > > > ldd axis2_http_server > > > > and check what version of the libxml2 is loaded. > > > > > > > > Thanks > > > > Dimuthu > > > > > > > > On 9/20/07, Sathya Raghunathan <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hi > > > > > > > > > > I installed libxml2.so, still i am getting the problem when i run > > > > > the binary > > > > > > > > > > ls -l /usr/lib/libxml2.so > > > > > > > > > > lrwxrwxrwx 1 root root 32 Sep 20 16:20 > > > > > /usr/lib/libxml2.so -> > > > > > /usr/local/lib/libxml2.so.2.6.23 > > > > > > > > > > "./axis2_http_server: relocation error: > > > > > /home/sathya/axis2c/axis2c-bin-1.0.0-linux/lib/libaxis2_parser.so.0: > > > > > undefined symbol: xmlReaderForFile" > > > > > > > > > > If i say nm i can see that symbol > > > > > > > > > > [EMAIL PROTECTED] lib]# nm libxml2.so | grep xmlReaderForFile > > > > > 000c16b8 T xmlReaderForFile > > > > > > > > > > What else could be the problem > > > > > > > > > > Thanks > > > > > Sathya > > > > > > > > > > On 9/20/07, Sathya Raghunathan <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > > > > > > Hi > > > > > > > > > > > > In my usr/lib, there are libxml2.so.2.5.10, > > > > > > /usr/lib/libxml2.so.2, /usr/lib/libxml2.a > > > > > > I am not sure which so, the binary would use. If this is old > > > > > > version, i will try to download and see > > > > > > Also, while doing a building the source I am getting an error > > > > > > called XML_PARSE_RECOVER undeclared error message. > > > > > > > > > > > > I check your website for solution and got that i need to > > > > > > download the file from apache site if this is not present in > > > > > > /usr/include/libxml2 > > > > > > > > > > > > Let me know from where i can download the header file or the > > > > > > library? > > > > > > > > > > > > Thanks > > > > > > Sathya > > > > > > > > > > > > On 9/20/07, Samisa Abeysinghe < [EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > Sathya Raghunathan wrote: > > > > > > > > Should i rebuild the source again with --enable-libxml2=yes > > > > > > > > --enable-guththila=no?? > > > > > > > > > > > > > > > > I am not using binary version because i got the error > > > > > > > message > > > > > > > > "relocation error: /home/sathya/axis2c/axis2c- > > > > > > > > bin-1.0.0-linux/lib/libaxis2_parser.so.0: undefined symbol: > > > > > > > > xmlReaderForFile" > > > > > > > You get this error becuase you do not have libxml2 on your > > > > > > > system or > > > > > > > because your libxml2 version is old. > > > > > > > I am using libxml2 version 2.6.23 > > > > > > > > > > > > > > Samisa... > > > > > > > > > > > > > > > > > > > > > > > Let me know if i need to rebuild the axis source with the > > > > > > > above > > > > > > > > configuration > > > > > > > > > > > > > > > > Thanks > > > > > > > > Sathya > > > > > > > > > > > > > > > > On 9/20/07, *Sathya Raghunathan* < > > > > > > > [EMAIL PROTECTED] > > > > > > > > <mailto: [EMAIL PROTECTED]>> wrote: > > > > > > > > > > > > > > > > I used both options as yes when i built the source. > > > > > > > > > > > > > > > > > > > > > > > > On 9/20/07, *Dimuthu Gamage* < [EMAIL PROTECTED] > > > > > > > > <mailto: [EMAIL PROTECTED]>> wrote: > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > > > You can use libxml instead of xml as the xml parser. > > > > > > > If you > > > > > > > > are building from axis2 source configure it with the > > > > > > > option > > > > > > > > --enable-libxml2=yes --enable-guththila=no (which > > > > > > > is the > > > > > > > > default configuration) > > > > > > > > Or if you are using binary , use the > > > > > > > libaxis2_libxml2.so (That > > > > > > > > is put that in the LD_LIBRARY_PATH) > > > > > > > > > > > > > > > > Thanks > > > > > > > > DImuthu > > > > > > > > > > > > > > > > On 9/20/07, *Sathya Raghunathan* < > > > > > > > [EMAIL PROTECTED] > > > > > > > > <mailto: [EMAIL PROTECTED] >> wrote: > > > > > > > > > > > > > > > > Hi Dimuthu, > > > > > > > > > > > > > > > > Thanks for helping me solve the segmentation > > > > > > > fault. I > > > > > > > > followed the calculator example. But now i am > > > > > > > getting > > > > > > > > another error called > > > > > > > > > > > > > > > > "Throws guththila_exception > > > > > > > guththila_xml_pull_parser.c > > > > > > > > 250." > > > > > > > > > > > > > > > > Also it looks like its going in an infinite > > > > > > > loop. When I > > > > > > > > went to guththila_xml_pull_parser.c line 250, i > > > > > > > checked > > > > > > > > the if condition > > > > > > > > else if (((parser->_next) > (parser->last)) > > > > > > > > && > > > > > > > guththila_read(environment, > > > > > > > > parser)) > > > > > > > > { > > > > > > > > if (eof) > > > > > > > > return -1; > > > > > > > > else > > > > > > > > guththila_exception(p_FILE, LINE, > > > > > > > > GUTHTHILA_ERROR_UNEXPECTED_EOF > > > > > > > > ); > > > > > > > > } > > > > > > > > > > > > > > > > Is there anything wrong with the input message > > > > > > > again? I am > > > > > > > > not able to proceed beyond this. I am attaching > > > > > > > the client > > > > > > > > code. I tried an input message with a "\n", and > > > > > > > without a > > > > > > > > "\n" at the end. Both gives a problem. > > > > > > > > > > > > > > > > Please help me. > > > > > > > > > > > > > > > > Thanks > > > > > > > > Sathya > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > > To unsubscribe, e-mail: > > > > > > > > [EMAIL PROTECTED] > > > > > > > > <mailto: [EMAIL PROTECTED]> > > > > > > > > For additional commands, e-mail: > > > > > > > > [EMAIL PROTECTED] > > > > > > > > <mailto: [EMAIL PROTECTED]> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > Samisa Abeysinghe : WSO2 WSF/PHP > > > > > > > "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP > > > > > > > > > > > > > > <http://wso2.org/projects/wsf/php?WSO2%C2%A0Web%C2%A0Services%C2%A0Framework%2FPHP%C2%A0-%C2%A0Open%C2%A0source%C2%A0PHP%C2%A0extention%C2%A0for%C2%A0providing%C2%A0and%C2%A0consuming%C2%A0Web%C2%A0services%C2%A0in%C2%A0PHP> > > > > > > > " > > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > > > For additional commands, e-mail: > > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
