Yii Framework Forum: Cwebservice, Wrong Wsdl Address On Soapserver Object - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cwebservice, Wrong Wsdl Address On Soapserver Object Rate Topic: -----

#1 User is offline   shahdoost 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 30-March 12

Posted 17 November 2012 - 03:59 PM

Well I am working on a client/server project, The server side code is on Php(Yii) and client side code is on Java (Android). I have made a Webservice controller on Yii and it's working fine (I have debugged it using SoapClient)
Lets assume the wsdl url is :
http://localhost/foo...rvice/wsdl?ws=1

The problem is when i try to send a soap request to my webservice from the android emulator. since android emulator uses an specific ip address (10.0.2.2) to reach the local machine, and this address doesn't belong to my machine from in side of my computer, when i send a request from the emulator, Host address is 10.0.2.2 CWebService creates the SoapServer object and gives it the wsdlUrl created from Http Host Header, which is http://10.0.2.2/food...rvice/wsdl?ws=1, therefore SoapServer cannot reach that address and throws an exception (SoapServer assignment is on line 165, in CWebService.php)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users