简体   繁体   中英

Any difference between a ?WSDL and ?wsdl parameter?

Is there any difference between suffixing a webservice endpoint with uppercase ?WSDL or lowercase ?wsdl ?

I'm using PHP's SoapClient. When I set the URL with uppercase ?WSDL like http://example.com/Foo.asmx?WSDL I reach a memory limit error or a no content error. But when I use lowercase ?wsdl like http://example.com/Foo.asmx?wsdl , it works!

What's the difference? Something on the SOAP server or what?

EDITED

I've got the real problem. It was about cache and storage, the SOAP was unable to store cache files because the server was quite full. Don't know if wsdl cache happens in all languages, but at least in PHP this thread saved me: In PHP how can you clear a WSDL cache?

There shouldn't be any difference between ?wsdl and ?WSDL or any combination of case letters. See these examples:

http://www.dneonline.com/calculator.asmx?WSDL
http://www.dneonline.com/calculator.asmx?wsdl
http://www.dneonline.com/calculator.asmx?Wsdl
http://www.dneonline.com/calculator.asmx?WsDl

This particular web service does not care, and should not care, as long as it's clear I'm asking for the WSDL.

But this might not be always the case depending on the technology used to build the web service and what the code does to check for the presence of the parameter. If inside the code there is a case insensitive comparison with the wsdl string then any combination will work. If the compare is case sensitive then only the exact match will be valid (it would be sloppy programming but stuff like that happens).

Yours is a dot.NET service so it should not care. But maybe there is a firewall in front of it, or a reverse proxy, and that is misconfigured to only accept an exact match. Request for the WSDL in you browser using different case combinations and see what status code you get.

Bottom line is it should not matter, but sometimes that's what you have to work with.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM