Daniel Rikowski
Daniel Rikowski

Reputation: 72514

What does this line in a WSDL file mean?

In a Magento forum someone wrote that removing this line from the WSDL file has a huge impact on the performance of the SOAP server:

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"   
     schemaLocation="http://schemas.xmlsoap.org/soap/encoding/" />

Upvotes: 2

Views: 331

Answers (1)

Peter Lindqvist
Peter Lindqvist

Reputation: 10200

It links the namespace URI (namespace="http://schemas.xmlsoap.org/soap/encoding/) with the location URL (schemaLocation="http://schemas.xmlsoap.org/soap/encoding/)

I cannot see any point in having this if it creates a serious performance hit. And if it works, it works!

As it links to a URL it is safe to assume that some performance can be gained by removing it. It depends on the implementation of course how much.

Upvotes: 3

Related Questions