Я получил новый проект веб-службы, и я пытаюсь понять использование целевого пространства имен в том же.
Ниже приведены определение wsdl и тег схемы:
<wsdl:definitions name="RaveServicesService" targetNamespace="http://service.bergemal.is/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://service.bergemal.is/" <----- What is purpose of this? xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <xs:schema xmlns:tns="http://service.bergemal.is/" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" targetNamespace="http://service.bergemal.is/" version="1.0">
В клиенте веб-службы я могусм. следующий пакет Java в сгенерированной папке:
is.bergemal.service |> Class1 |> Class2 |> Class3
В классе веб-служб я вижу следующее:
@Service("raveServicesImpl") @WebService(portName = "RaveServicesPort", targetNamespace = "http://service.bergemal.is/", serviceName = "RaveServicesService", endpointInterface = "is.bergemal.service.RaveServices")
Вопрос 1 : Целевое пространство имен означает толькосгенерировать имя пакета или есть другое использование (в терминах непрофессионала)?