Parameters and Keywords That Control Namespace Assignment
Parameters and Keywords That Control Namespace Assignment
The generated classes contain parameters and keywords to control namespace assignments. The following subsections discuss namespaces for messages and namespaces for types.
You should not modify these values, because the web client or web service would no longer obey the WSDL. For details on SoapNameSpace and SoapTypeNameSpace, see the Class Definition Reference.
Namespaces for the Messages
The following values control the namespaces used for the SOAP messages:
Item | Value Given by %SOAP.WSDL.ReaderOpens in a new tab |
---|---|
NAMESPACE (class parameter) | Namespace of the request messages, if all request messages use the same namespace. |
SoapNameSpace (method keyword) | Namespace of a given request message, if request messages use different namespaces. |
RESPONSENAMESPACE (class parameter) | Namespace of the response messages. If this is not specified, the response messages are in the namespace given by the NAMESPACE parameter. Note that the SoapNameSpace keyword has no effect on the namespaces of the response messages. |
Namespaces for the Types
The message types are assigned to namespaces as follows:
Item | Value Given by %SOAP.WSDL.ReaderOpens in a new tab |
---|---|
TYPENAMESPACE (class parameter) | %SOAP.WSDL.ReaderOpens in a new tab sets this parameter if all methods refer to types in the same namespace. |
RESPONSETYPENAMESPACE (class parameter) | %SOAP.WSDL.ReaderOpens in a new tab sets this parameter if the WSDL uses document-style binding and the response messages use types in a different namespace than the request messages. This parameter applies to all methods in the class. Note that all response types are assumed to be in the same namespace as each other. |
SoapTypeNameSpace (method keyword) | Value of the targetNamespace attribute of the <s:schema> element. %SOAP.WSDL.ReaderOpens in a new tab sets this keyword per method if methods use types from different namespaces.
This keyword does not override the RESPONSETYPENAMESPACE parameter. |