xmlns:SOAP-ENC, xmlns:xsd required?

C

chris.stromberger

New to SOAP. I am working on something that uses the paypal web
services. All the examples have this as the first portion of the soap
doc

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Header>
<RequesterCredentials
xmlns="urn:ebay:api:payPalAPI"
SOAP-ENV:mustUnderstand="1">
<Credentials xmlns="urn:ebay:apis:eBLBaseComponents">
<Username>...</Username>
<Password>...</Password>
<Subject/>
</Credentials>
</RequesterCredentials>
</SOAP-ENV:Header>

I'm wondering if the xmlns:SOAP-ENC attribute is needed. "SOAP-ENC:"
is not used anywhere in the document. From my vague understanding of
xml namespaces, the
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" attribute
then serves no purpose (and it seems to be sort of repeated in the
SOAP-ENV:encodingStyle attribute also???). I'm just not sure if it has
to be there for some mysterious SOAP reason.

Ditto for the xmlns:xsd attribute--the xsd prefix is not used anywhere
else in the document. Is it required for some SOAP reason?

Thanks,
Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,001
Messages
2,570,254
Members
46,850
Latest member
VMRKlaus8

Latest Threads

Top