Re: [Axis2] Problem using wsdl with Axis 2.0
Forwarded with Axis2 prefix Farooq Mahmood wrote: Hi, We are using axis2 v0.92 to deploy webservices, but we are getting some problem while associating .wsdl file with the webservice. One of the solution we saw in axis offical website mailing list, but the reply was little bit confusing. Following is the text of that mailing thread. Hi Gordon; It should work , but you need to do some modifications 1. You need to have services.xml instead of service.xml 2. There should be a service element in side services.xml similar to service element in WSDL file as an example , say you have a wsdl with following service element binding="mh:MySereviceBinding"> location="http://www.Monson-Haefel.com/jwsbook/MySereviceService"/> Then the services.xml should look like follows op 1 : .. .. op 2 : there should be a service archive file with the name MySerevice.aar and its services.xml should look like follows .. Thanks, Deepal The very first point in the solution says "You need to have services.xml instead of service.xml". service.xml is the default xml file which describes webservice operations. Its work fine. When i added my services.wsdl file I got an error. My wsdl file and xml file is as follows: services.xml http://localhost:8080/axis2/services/nameservice"; /> nameservice.NameService services.wsdl http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://tempuri.org/"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; targetNamespace="http://tempuri.org/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";> http://tempuri.org/";> http://schemas.xmlsoap.org/soap/http"; style="document" /> http://tempuri.org/getName"; style="document" /> http://schemas.xmlsoap.org/wsdl/"; /> http://localhost:8080/axis2/services/nameservice"; /> Regds, Farooq
Problem using wsdl with Axis 2.0
Hi, We are using axis2 v0.92 to deploy webservices, but we are getting some problem while associating .wsdl file with the webservice. One of the solution we saw in axis offical website mailing list, but the reply was little bit confusing. Following is the text of that mailing thread. Hi Gordon; > > It should work , but you need to do some modifications > 1. You need to have services.xml instead of service.xml > 2. There should be a service element in side services.xml similar to > service element in WSDL file > > as an example , say you have a wsdl with following service element > > > > location="http://www.Monson-Haefel.com/jwsbook/MySereviceService"/> > > > > Then the services.xml should look like follows > op 1 : > > > .. > .. > > > > op 2 : there should be a service archive file with the name > MySerevice.aar and its services.xml should look like follows > > .. > > > > > > Thanks, > Deepal The very first point in the solution says "You need to have services.xml instead of service.xml". service.xml is the default xml file which describes webservice operations. Its work fine. When i added my services.wsdl file I got an error. My wsdl file and xml file is as follows: services.xml http://localhost:8080/axis2/services/nameservice"; /> nameservice.NameService services.wsdl http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://tempuri.org/"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; targetNamespace="http://tempuri.org/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";> http://tempuri.org/";> http://schemas.xmlsoap.org/soap/http"; style="document" /> http://tempuri.org/getName"; style="document" /> http://schemas.xmlsoap.org/wsdl/"; /> http://localhost:8080/axis2/services/nameservice"; /> Regds, Farooq