简体   繁体   中英

convert wsdl file to a usable library for php

Objective: To consume the WSDL file by a php web service client.

Additional info: I have a WSDL (SOAP) file that is being generated by a third-party software. In introduction, I am using a .asp web service client and my method on how to consume the WSDL file (or invoke one of it's web service operation) is by means of converting the WSDL file into a library which can be referenced on my .asp project (I am using the wsdl.exe on Microsoft SDKs) and it works perfectly fine.

Now, what I am trying to achieve is to proceed with this kind of method for PHP. Is this achievable in PHP? I've looked over the internet for a few days but I am still unable to find any relevant information about this. Can you guys help me out?

Thanks.

You can consume WSDL via PHP's native SOAP client . If you are using PHP 4 , you have to use third party software such as NuSOAP .

sidenote: For performance & stability, please use native functions as much as you can .

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