Why we use the targetNamespace in a wsdl file in web service, what is the actual purpose of targetNamespace ? I have a web service on http://example.com/webservice/catalog.php, I want to access the web service through a wordpress plugin. My plugins wsdl file is like below
<definitions name='shop'
targetNamespace='http://example.com/soap/'
xmlns:tns='http://example.com/soap/'
.
.
.
.
<service name='CatalogService'>
<port name='CatalogPort' binding='CatalogBinding'>
<soap:address location='http://example.com/webservice/soap-server.php'/>
</port>
</service>
I wrote to see some example below two lines, is it ok?
targetNamespace='http://example.com/soap/'
xmlns:tns='http://example.com/soap/'
I can not understand what is the actual purpose of targetNamespace in wsdl file.