Consultor Eletrônico



Kbase P142189: Are namespaces declared in the SOAP Envelope accessible from the Request/Response SOAP Header callba
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   02/03/2009
Status: Unverified

GOAL:

Are namespaces declared in the SOAP Envelope accessible from the Request/Response SOAP Header callback procedures ?

GOAL:

Is it required to declare namespaces in the SOAP Header when these namespaces are referenced inside the SOAP Header ?

GOAL:

Can namespaces be declared in the SOAP Envelope if they are referenced in the SOAP Header ?

FACT(s) (Environment):

OpenEdge 10.x
All Supported Operating Systems

FIX:

Namespaces that are being referenced in the SOAP Header can be declared in either the SOAP Header or the SOAP Envelope. In both cases the ABL SOAP processor will provide access to the namespaces through the SOAP Header callback procedures.
For example, the ABL will return the following content ...
-------------------------------------
<?xml version="1.0" ?>
<SessionId xmlns="http://webservices.progress.com/whatever">Testing</SessionId>
-------------------------------------


... for both these SOAP Responses:
-------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://webservices.progress.com/whatever">
<SOAP-ENV:Header>
<m:SessionId>Testing</m:SessionId>
</SOAP-ENV:Header>

<SOAP-ENV:Body>
...
</SOAP-ENV:Body>

</SOAP-ENV:Envelope>
-------------------------------------
-------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">

<SOAP-ENV:Header xmlns:m="http://webservices.progress.com/whatever">>
<m:SessionId>Testing</m:SessionId>
</SOAP-ENV:Header>

<SOAP-ENV:Body>
...
</SOAP-ENV:Body>

</SOAP-ENV:Envelope>
-------------------------------------