Hi Dimuthu, I changed the wsdl as you have suggested. A test with soapUI returned error:
request: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://ws.apache.org/axis2/services/Calculator/types"> <soapenv:Header/> <soapenv:Body> <typ:add> <param_1>?</param_1> <param_2>?</param_2> </typ:add> </soapenv:Body> </soapenv:Envelope> response: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header/> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Sender</faultcode> <faultstring>Invalid XML format in request</faultstring> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> Any idea about this issue? Best regards, Sandro 2008/10/7 Dimuthu Gamage <[EMAIL PROTECTED]> > Hi Sandro, > > The namesapce declarations (starting with xmlns: ) and targetNamespaces > doesn't related to the service endpoint. They are just namespaces that the > xml elements belongs to (in the wsdl and the soap messages). > > > In order to change the service endpoint you have to change the endpoint > inside > > <definintion> > ............................ > <service> > <prot> > <address location="this is where your actual endpoint address should > be placed"/> > </prot> > </service> > </definition> > > Check this > http://mooshup.com/services/jonathan/southwestAutoCheckin?wsdl&annotation=truefor > an annotated wsdl which shows what each elements mean. > > > Thanks > Dimuthu > > > > On Tue, Oct 7, 2008 at 7:52 PM, Sandro Javiel <[EMAIL PROTECTED]> wrote: > >> Hi Samisa, >> >> >> I have just chaged some lines in the beginning of Calculator.wsdl: >> >> <wsdl:definitions >> targetNamespace="http://192.168.0.11/axis2/services/Calculator" >> xmlns:impl="http://192.168.0.11/axis2/services/Calculator" >> xmlns:type="http://192.168.0.11/axis2/services/Calculator/types" >> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" >> xmlns:xsd="http://www.w3.org/2001/XMLSchema"> >> <wsdl:types> >> <schema >> targetNamespace=" >> http://192.168.0.11/axis2/services/Calculator/types" >> xmlns="http://www.w3.org/2001/XMLSchema" >> xmlns:impl="http://192.168.0.11/axis2/services/Calculator" >> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> >> >> >> >> >> >> <!-- ################################################################### >> >> Regards, >> Sandro >> >> 2008/10/7 Samisa Abeysinghe <[EMAIL PROTECTED]> >> >> Sandro Javiel wrote: >>> >>>> Hi Samisa, >>>> >>>> I changed the address ws.apache.org <http://ws.apache.org> to >>>> 192.168.0.11 <http://192.168.0.11> (which is my dev server) in th wsdl >>>> file. >>>> >>> >>> All places, or only the service element? >>> >>> Samisa... >>> >>> >>>> Tks >>>> Sandro. >>>> >>>> >>>> 2008/10/6 Samisa Abeysinghe <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> >>>> >>>> Where did you exactly changed localhost to ws.apache.org >>>> <http://ws.apache.org>? >>>> >>>> Samisa... >>>> >>>> Sandro Javiel wrote: >>>> >>>> Somebody has any idea about this issue? Am I doing something >>>> wrong? >>>> >>>> Thank you so much for your help. >>>> >>>> 2008/10/1 Sandro Javiel <[EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]>>> >>>> >>>> >>>> Hi Rajika, >>>> >>>> >>>> 2008/10/1 Rajika Kumarasiri <[EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]> >>>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> >>>> >>>> >>>> >>>> >>>> On Wed, Oct 1, 2008 at 12:32 AM, Sandro Javiel >>>> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >>>> <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote: >>>> >>>> Hi all, >>>> >>>> Hi, >>>> Did you follow the guidelines in the manual when deploying >>>> services with Apache? Did you specify the services >>>> folder in >>>> httpd.conf ? You can look into the axis2.log and the >>>> httpd.log >>>> to look into further information about the error. >>>> >>>> >>>> Yes I follow carefully the instructions from INSTALL file >>>> (available from /usr/local/axis2c-bin-1.5.0-linux ) >>>> >>>> >>>> >>>> I am trying to deploy a c++ based webservice with >>>> axis2c-1.5.0 integrated with apache-2.2. >>>> Although the libraries and other files (as xml and wsdl) >>>> are created and deployed to >>>> /usr/local/axis2c/services/<myWS> >>>> I could not connect over the address >>>> http://<host>/services/<myWS>. I noticed that the >>>> Calculator example (found in sample/server) could >>>> not be >>>> connect when I changed the address "ws.apache.org >>>> <http://ws.apache.org> >>>> <http://ws.apache.org>" by "localhost". >>>> >>>> BTW, what you mean by this ? Where did you change the >>>> address ? >>>> >>>> The goal is to provide a WS with wsdl and SOAP to partners. >>>> Thus, >>>> I first copied Calculator.wsdl file from >>>> /usr/local/axis2c-bin-1.5.0-linux/samples/server/Calculator/ >>>> to /usr/local/axis2c-bin-1.5.0-linux/samples/server/<myWS> >>>> changing the operations. >>>> Notice that the apache integration seems to be fine since I >>>> can >>>> browse page http://<myServer>/axis2/services/ >>>> <http://192.168.0.11/axis2/services/> >>>> >>>> and http://<myServer>/axis2/services/Calculator?wsdl >>>> <http://192.168.0.11/axis2/services/Calculator?wsdl> if >>>> the >>>> reference "ws.apache.org <http://ws.apache.org> >>>> <http://ws.apache.org>" is preserved on >>>> >>>> wsdl file. >>>> >>>> >>>> >>>> -- Sandro Caldeira Javiel >>>> +55 51 3076.1235 >>>> >>>> >>>> >>>> >>>> -- Sandro Caldeira Javiel >>>> +55 51 3076.1235 >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus >>>> Database: 270.7.6/1709 - Release Date: 10/5/2008 9:20 AM >>>> >>>> >>>> >>>> >>>> -- Samisa Abeysinghe Director, Engineering; WSO2 Inc. >>>> >>>> http://www.wso2.com/ - "The Open Source SOA Company" >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]> >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]> >>>> >>>> >>>> >>>> >>>> -- >>>> Sandro Caldeira Javiel >>>> +55 51 3076.1235 >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus Database: >>>> 270.7.6/1709 - Release Date: 10/5/2008 9:20 AM >>>> >>>> >>>> >>> >>> >>> -- >>> Samisa Abeysinghe Director, Engineering; WSO2 Inc. >>> >>> http://www.wso2.com/ - "The Open Source SOA Company" >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> >> -- >> Sandro Caldeira Javiel >> +55 51 3076.1235 >> > > > > -- > Thanks, > Dimuthu Gamage > > http://www.dimuthu.org > http://www.wso2.org > -- Sandro Caldeira Javiel +55 51 3076.1235
