Guest User

Untitled

a guest
Feb 9th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. use BeSimpleSoapClientSoapClient;
  2. function get_states_cities()
  3. {
  4.  
  5. //Vendor's Username and Password
  6. $username = 'demo';
  7. $password = 'demo';
  8.  
  9. //Create a web service proxy using SoapClient
  10. $client = new SoapClient('http://svc.ebazaar-post.ir/EshopService.svc?WSDL');
  11. $client->soap_defencoding = 'UTF-8';
  12. $client->decode_utf8 = false;
  13.  
  14.  
  15. //Get list of states
  16. $states=$client->GetStates(['username' => $username,'password'=>$password]);
  17. }
Add Comment
Please, Sign In to add comment