Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
no wsdl generated
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
deadguy  
View profile   Translate to Translated (View Original)
 More options 31 July, 02:43
From: deadguy <deadguysf...@gmail.com>
Date: Thu, 30 Jul 2009 18:43:42 -0700 (PDT)
Local: Fri 31 July 2009 02:43
Subject: no wsdl generated
Hello all,

I've seen some very similar posts to my problem, but have not yet
found a solution for me.  I'm trying to generate the wsdl for the
following sample from the php manual:

<?php

include "SCA/SCA.php";

/**
 * Scaffold implementation for a remote StockQuote Web service.
 *
 * @service
 * @binding.soap
 *
 */
class StockQuote {

    /**
     * Get a stock quote for a given ticker symbol.
     *
     * @param string $ticker The ticker symbol.
     * @return float The stock quote.
     */
    function getQuote($ticker) {
        return 80.9;
  }

}

?>

I go to the correct location, with ?wsdl, but I get a blank page.  No
error.  I check my apache logs, and see no error, though it does
report the request in the access log.  I have the sdo extension
loaded, and phpinfo() reports the SOAP extension is loaded.  I'm
running the apache and php from ubuntu's 9.04 repo, and sca_sdo from
PECL.  Any ideas why it's not working?  Could there be some phantom
logs somewhere I don't see?  Is there some way to see more logs?

thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Brown  
View profile   Translate to Translated (View Original)
 More options 31 July, 17:22
From: Matt Brown <deadguysf...@gmail.com>
Date: Fri, 31 Jul 2009 12:22:20 -0400
Local: Fri 31 July 2009 17:22
Subject: Re: no wsdl generated
From phpinfo():

PHP Version 5.2.6-3ubuntu4.1

soap

Soap Client     enabled
Soap Server     enabled

Directive       Local Value     Master Value
soap.wsdl_cache 1       1
soap.wsdl_cache_dir     /tmp    /tmp
soap.wsdl_cache_enabled 0       1
soap.wsdl_cache_limit   5       5
soap.wsdl_cache_ttl     86400   86400

I changed the PHP log setting to E_ALL.  Still no messages.

Any ideas?

thanks


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Brown  
View profile   Translate to Translated (View Original)
 More options 31 July, 18:14
From: Matt Brown <deadguysf...@gmail.com>
Date: Fri, 31 Jul 2009 13:14:00 -0400
Subject: Re: no wsdl generated
Finally able to get SCA logs going.  I must it's ridiculous that doing
so isn't documented anywhere;  you have to go through the log code to
figure it out.

For future reference:
SCA.php: SCA::initComponent() (line 128)
uncomment self::$logger->startLog();

SCA_Logger.php: SCA_Logger::startLog() (line 273)
uncomment  trigger_error("SCA logging started; logging to $this->logfile");

For me, on ubuntu 9.04, it was logging to /tmp/log/SCA.log

Anyway, once I managed to get some logs, I got the following:

Finally able to get SCA logs going.  I must it's ridiculous that doing
so isn't documented anywhere;  you have to go through the log code to
figure it out.

For future reference:
SCA.php: SCA::initComponent() (line 128)
uncomment self::$logger->startLog();

SCA_Logger.php: SCA_Logger::startLog() (line 273)
uncomment  trigger_error("SCA logging started; logging to $this->logfile");

For me, on ubuntu 9.04, it was logging to /tmp/log/SCA.log

Anyway, once I managed to get some logs, I got the following:

[  1] Info 31/07/2009 16:12:38::550 ....SCA::initComponent - Entering
[  2] Info 31/07/2009 16:12:38::550 ....SCA::initComponent - Called
from /var/www/temp/sca2.php
[  3] Info 31/07/2009 16:12:38::550 ....SCA::initComponent -
$_SERVER['HTTP_HOST'] = localhost
[  4] Info 31/07/2009 16:12:38::550 ....SCA::initComponent -
$_SERVER['REQUEST_METHOD'] = GET
[  5] Info 31/07/2009 16:12:38::550 ....SCA::initComponent -
$_SERVER['PHP_SELF'] = /temp/sca2.php
[  6] Info 31/07/2009 16:12:38::550 ....SCA::initComponent -
$_SERVER['REQUEST_URI'] = /temp/sca2.php?wsdl
[  7] Info 31/07/2009 16:12:38::550 ....SCA::initComponent - $_GET['wsdl'] =
[  8] Info 31/07/2009 16:12:38::551 ....SCA::initComponent - included
by a client script that is not a component

After digging through the code some more, it turns out SCA didn't
recognize my script because the file name didn't match the name of the
@service class. So renaming sca2.php to StockQuote.php got me going.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google