Hi, On Fri, Apr 20, 2012 at 12:14 AM, Philippe A. <futhar...@gmail.com> wrote:
> Hello, > > Can someone explain the purpose of the targetNamespace attribute in > services.xml? > > My webservice namespace appears to be actually set by the ServiceClass > parameter "project.webservices.svc.Class". If I set targetNamespace="bozo", > then the wsdl will show <wsdl:definitions targetNamespace="bozo">. However, > my client requests won't be accepted unless I set my target namespace to " > http://svc.webservices.project". > This attribute is used in setting the tagetNamespace for the service. If this is not set, it will be calculated form the package name. If you have your own WSDL file in the service archive, then this attribute can be used in overriding the targetNamespace value in that wsdl file. But if you want to have a custom target namespace for the requests then you can make use of the schema element that can be defined in services.xml. You can get more info from this tutorial [1] on this. Thanks, Kishanthan. [1] http://wso2.org/library/2060 > > Thanks, > > -- > Philippe > >