Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between wsdl mode and non-wsdl mode web service?

Tags:

php

soap

wsdl

i think most of the soap servers offer web services in both wsdl and non-wsdl mode (like Amazon does) for a client to make request. we know in wsdl mode client has to download the wsdl file to determine how to make a request for the service. but in non-wsdl mode, how the client learns to make a request for the service?

like image 263
user3090967 Avatar asked Dec 11 '13 12:12

user3090967


People also ask

What is non WSDL mode?

In non-wsdl mode the client cannot learn how to utilize the remote soap server. This is up to you as developer. You will have to make sure that your client delivers what the server expects - especially parameter and response types have to have the correct types and formats.

What is WSDL mode?

An WSDL document describes a web service. It specifies the location of the service, and the methods of the service, using these major elements: Element. Description. <types>

Do we need WSDL for SOAP?

The WSDL Generator component is not essential for using SOAP. Administrators can still write service calls to Content Server in SOAP if needed. The WSDL Generator provides flexibility in altering existing client applications.

Why do I need a WSDL?

A WSDL document is used to describe a web service. This description is required, so that client applications are able to understand what the web service actually does. The methods which are exposed by the web service.


1 Answers

In non-wsdl mode the client cannot learn how to utilize the remote soap server. This is up to you as developer. You will have to make sure that your client delivers what the server expects - especially parameter and response types have to have the correct types and formats.

In wsdl mode your client (i. e. Zend Soap Client) knowns which soap actions exist, how complex types etc. are defined and what responses are expected.

Personally I advice never to use non-wsdl mode, as there is imho no reason to do so.

like image 74
l-x Avatar answered Oct 03 '22 20:10

l-x