Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert/Use API written for C#/Java with PHP

Tags:

java

c#

php

wsdl

I have access to an API that I would like to use, but it only has documentation in C#/Java. I know neither of these languages and would love to use the API in PHP. I do have access to the API's WSDL and was wondering how I might go about this?

I've heard various other ways such as SOAP calls or converting the WSDL into PHP Classes. Any information is very helpful. Thanks!

like image 721
Fillip Peyton Avatar asked Dec 06 '25 12:12

Fillip Peyton


1 Answers

While I haven't used Soap's native functions, I have used NuSoap with a WSDL document that's generated from a Java system. Overall its worked pretty flawlessly; the only problem has been when they've changed how they do authentication and I've had to make some manual changes. Other than that, I've just had to update the WSDL when they do upgrades.

If I had a newer version, I probably would have just used php's native functions.

like image 110
W3t Tr3y Avatar answered Dec 09 '25 01:12

W3t Tr3y



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!