Google 網上論壇首頁
說明 | 登入
soap on cake 1.2
目前本群組有太多主題設為優先顯示。 要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。 請再試一次。
標幟
  10 個訊息 - 全部摺疊
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
.  
檢視個人資料
 更多選項 9月8日, 下午3時22分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 00:22:31 -0700
當地時間: 2008年9月8日(星期一) 下午3時22分
主旨: soap on cake 1.2

has anyone gotten soap or nusoap to work with cake 1.2?

I've been trying to follow this tutorial, but haven't gotten it to work yet.

http://bakery.cakephp.org/articles/view/a-component-to-help-creating-...


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
David C. Zentgraf  
檢視個人資料
 更多選項 9月8日, 下午4時28分
寄件者: "David C. Zentgraf" <dec...@gmail.com>
日期: Mon, 8 Sep 2008 17:28:42 +0900
當地時間: 2008年9月8日(星期一) 下午4時28分
主旨: Re: soap on cake 1.2
What's the problem with SOAP in Cake?
I'm asking because I'll soon have to pull through a project with a  
tight schedule and I'll be needing SOAP in it.
And as people like to say a lot here, there's still PHP in CakePHP, so  
I was counting on using the PHP SOAP functions without thinking too  
much. Any problems with them one needs to be aware of?

Chrs,
Dav

On 8 Sep 2008, at 16:22, . wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
.  
檢視個人資料
 更多選項 9月8日, 下午4時40分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 01:40:26 -0700
當地時間: 2008年9月8日(星期一) 下午4時40分
主旨: Re: soap on cake 1.2

I've also been trying to follow this tutorial and integrate with cake, but
without success. All I see is a blank page. Any ideas? Here is my code:

<?
class TestController extends AppController
{
    var $components=array("RequestHandler");
    var $uses=array();

 function c()
 {
     Configure::write('debug',0);
     $this->autoRender = FALSE;
     App::import('Vendor','test',array('file'=>'nusoap/lib/nusoap.php'));

     // This is location of the remote service
     $client = new soapclient('http://localhost/test/server');

     // Check for any errors from the remote service
     $err = $client->getError();
     if ($err) {
        echo '<p><b>Error: ' . $err . '</b></p>';
     }

     // Call the SOAP method on the remote service
     $person = array('firstname' => 'Fred', 'age' => 22);
     $result = $client->call(
         'hello', array('message' => new
soapval('id','Person',$person,false,'urn:AnyURN'))
     );

     // Check for any faults reported by the remote service
     if ($client->fault) {
        echo '<p><b>Fault: ';
        print_r($result);
        echo '</b></p>';
     } else {
        // Check for any errors from the remote service
        $err = $client->getError();
        if ($err) {
        echo '<p><b>Error: ' . $err . '</b></p>';
      } else {
         // If everything is OK display the result
         print $result['output_string'] . ' ';
         if ( $result['allow'] == 1 ) {
            print "You may continue...";
         } else {
            print "You are too young!";
         }
      }
   }
 }

 function s()
 {
  Configure::write('debug',0);
  $this->autoRender = FALSE;
  App::import('Vendor','test',array('file'=>'nusoap/lib/nusoap.php'));
  $server = new soap_server;
  // This states the method which can be accessed.
  $server->register('hello');
  // This returns the result
  $server->service($HTTP_RAW_POST_DATA);
 }

 // This is the method
 function hello($input)
 {
    $output_string = 'Hello ' . $input['firstname'] .
    '. You are ' . $input['age'] . ' years old.';

     if ($input['age'] >= 18)
     {
        $allow = 1;
     }

     $output = array(
        'output_string' => $output_string,
        'allow' => $allow
     );

    return new soapval('return', 'HelloInfo', $output, false, 'urn:AnyURN');
 }

 }

?>

On Mon, Sep 8, 2008 at 1:28 AM, David C. Zentgraf <dec...@gmail.com> wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
.  
檢視個人資料
 更多選項 9月8日, 下午4時40分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 01:40:50 -0700
當地時間: 2008年9月8日(星期一) 下午4時40分
主旨: Re: soap on cake 1.2

reference: http://www.oclipa.com/university/nusoap/3.php


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
.  
檢視個人資料
 更多選項 9月8日, 下午4時52分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 01:52:34 -0700
當地時間: 2008年9月8日(星期一) 下午4時52分
主旨: Re: soap on cake 1.2

david, theoretically there is no problem with soap on cakephp. it's just
that i am having trouble integrating it into cake. any help would be
appreciated.


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Marcelius  
檢視個人資料
 更多選項 9月8日, 下午5時56分
寄件者: Marcelius <mraaijmak...@gmail.com>
日期: Mon, 8 Sep 2008 02:56:02 -0700 (PDT)
當地時間: 2008年9月8日(星期一) 下午5時56分
主旨: Re: soap on cake 1.2
Hi

Don't know the exact problems you have but here's a piece of my soap
implementation. Please note that this is done with php5's sope
extension, not nusoap.

In my site:
domain.com/soapcontroller/wsdl
renderes a wsdl file like so:

                public function wsdl(){
                        $this->ext = ".wsdl";
                        $this->layout = false;
                        Configure::write('debug', 0); //else renders debug info
                        $this->RequestHandler->respondAs('xml');
                }

//and the main method that handles any soap request
domain.com/soapcontroller/service
                public function service(){
                        //turn of rendering
                        $this->layout = false;
                        $this->autoRender = false;
                        Configure::write('debug', 0);

                        $server = $this->getSoapServer(); //return new SoapServer();
                        $server->setObject($this); //every soap method is defined in this
controller

                        $server->handle();
                }

maybe you could check the xml input/output if cake hasn't put any
(debug) html in it.

Also: I used soapUI for debugging, pretty handy :-)

On 8 sep, 10:52, . <lun...@gmail.com> wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
.  
檢視個人資料
 更多選項 9月8日, 下午6時42分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 03:42:11 -0700
當地時間: 2008年9月8日(星期一) 下午6時42分
主旨: Re: soap on cake 1.2

Marcelius, how do you generate the wsdl files? do you use jool.nl's wsdl
component, or does php's soap extension generate the wsdl files for you?
thanks


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Marcin Domanski  
檢視個人資料
 更多選項 9月8日, 下午8時17分
寄件者: "Marcin Domanski" <tram...@gmail.com>
日期: Mon, 8 Sep 2008 14:17:30 +0200
當地時間: 2008年9月8日(星期一) 下午8時17分
主旨: Re: soap on cake 1.2
it's rather hard to see any error(whats going on) with debug set to 0...

--
Marcin Domanski
http://kabturek.info


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Marcelius  
檢視個人資料
 更多選項 9月8日, 下午8時24分
寄件者: Marcelius <mraaijmak...@gmail.com>
日期: Mon, 8 Sep 2008 05:24:38 -0700 (PDT)
當地時間: 2008年9月8日(星期一) 下午8時24分