[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: HTTPAPI Only SOAP 1.1 or SOAP 1.2 messages are supported in the system



Hi Ronnie,

Bear in mind that the namespace prefix (SOAP vs SOAP12 in your example) 
doesn't mean much by itself.  It also has to point to the proper URI for 
SOAP 1.1 or 1.2

The following three XML tags are exactly equivalent:

<SOAP:Envelope xmlns:SOAP="http://www.w3.org/2003/05/soap-envelope";>

<SOAP12:Envelope xmlns:SOAP12="http://www.w3.org/2003/05/soap-envelope";>

<BobsYourUncle:Envelope 
xmlns:BobsYourUncle="http://www.w3.org/2003/05/soap-envelope";>

The part that matters is NOT the "SOAP" or "SOAP12" or "BobsYourUncle". 
The part that matters is the http://www.w3.org/2003/05/soap-envelope. 
The SOAP, SOAP12, and BobsYourUncle in the preceding examples are all 
placeholders for the http://www.w3.org/2003/05/soap-envelope URI.  Since 
they all point to the same URI, they are equivalent.

In fact, if I deliberately wanted to be confusing, I could do this:

<SOAP12:Envelope xmlns:SOAP12="http://schemas.xmlsoap.org/soap/envelope/";>

Notice the URI is the URI for SOAP 1.1.  The preceding example is 
actually SOAP 1.1 (Despite the name 'SOAP12')  Likewise, I could do this:

<SOAP11:Envelope xmlns:SOAP11="http://www.w3.org/2003/05/soap-envelope";>

Despite my use of the deliberately confusing name (SOAP11), it's 
actually SOAP version 1.2. It's the URI that counts, not the prefix.


On 5/3/2011 10:03 AM, ronnie wrote:
> Hi Charles.
>
> I am also a very, very big newbie with HTTPAPI and the SOAP environment myself but I might be able to help.
>
> Change your "xmlns:SOAP-ENV="[1]http" to "xmlns:SOAP="[1]http" for version 1.1 or "xmlns:SOAP12="[1]http" for version 1.2 depending on which one you want to use.
>
> Also similarly change your soap headers accordingly.
> + '<SOAP:Header/>'
> + '<SOAP:Body>'
> +'</SOAP:Body>'
> or
> + '<SOAP12:Header/>'
> + '<SOAP12:Body>'
> +'</SOAP12:Body>'
>
>
> Basically change wherever you have "SOAP-ENV" to "SOAP" or "SOAP12"
>
> Regards
> Ronnie
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------