Yii Framework Forum: Webservice And Upload File - Yii Framework Forum

Jump to content

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

Webservice And Upload File Rate Topic: -----

#1 User is offline   Behnaz 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 8
  • Joined: 05-December 12
  • Location:Iran

Posted 06 October 2013 - 05:33 AM

Hi everybody

I want to write a webservice with soap. input data is an image file. I should receive and save it in a folder and database.

I have 2 questions.
1) can I use soap? or POST is better?
2) is there any topic or example to help me?
0

#2 User is offline   nineinchnick 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 622
  • Joined: 12-September 11
  • Location:Bialystok, Poland

Posted 06 October 2013 - 12:48 PM

I've used webservices that require sending files. Usually there are encoded with base64 and just treated as values of arguments when calling methods.
This works but sometimes file size are an issue. In that case, compression could be enabled in SOAP.

In case of problems enable trace in your SOAP client and check out the full request and response, or just sniff the 80 port :-)
Don't be a dick.
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