Call asmx Web service in PHP using nusoap

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rsingh
Forum Newbie
Posts: 1
Joined: Tue Aug 12, 2008 10:09 pm

Call asmx Web service in PHP using nusoap

Post by rsingh »

I am facing a problem to call a web service (asmx - dotnet) in using nusoap library in PHP.

Could you please help me to sort out this? When I call this in dot net(C#) it is called successfully. I think the problem is in webservice structure but not confirm.

Below is information about WSDL

http://merchantapi.rega-staging.polipay ... erchantAPI Service.asmx?WSDL

Method of webservice: InitiateTransaction

When you would see the WSDL structure you would find that the method would take two parameters one is authentication code and other one is a complextype. This complex type would take a list of parameters and this is my confusion point.

I have attached the code which I used to call webservice.

MerchantCode and Authanticationcode are dummy in this.

I have spent a lot of time on this but no luck. Please help me!!!

Thanks in advance
Attachments
webservice_client.php.zip
(908 Bytes) Downloaded 130 times
wild_PHP
Forum Newbie
Posts: 2
Joined: Tue Nov 25, 2008 3:32 pm

Re: Call asmx Web service in PHP using nusoap

Post by wild_PHP »

Read the article at the

http://heidisoft.com/blog/using-nusoap- ... ice-10-min

This will be more help full to you. :)

Thanks
Post Reply