2011年3月9日星期三

AW: [fw-webservices] Zend_Soap_AutoDiscover bug

Hi Omar,

can you see the "extra content" by requesting the wsdl file directly?
http://localhost/architecture/applications/security/public/ws/Security.php?wsdl

How do you call the Webservice? Native SoapClient or with Zend_Soap?

Maybe this bugreport describes your problem: http://bugs.php.net/bug.php?id=48216 (Read the user comments).

Like Richard already wrote, we need more info to help.

Regards,
Thorsten Ruf

> -----Ursprüngliche Nachricht-----
> Von: Richard Quadling [mailto:rquadling@gmail.com]
> Gesendet: Mittwoch, 9. März 2011 14:07
> An: Ing. Omar Antonio Díaz Peña
> Cc: fw-webservices@lists.zend.com
> Betreff: Re: [fw-webservices] Zend_Soap_AutoDiscover bug
>
> 2011/3/5 Ing. Omar Antonio Díaz Peña <oadiaz@uci.cu>:
> > Hi:
> >
> >
> >
> > I'm traying to publish a WSDL-based WebService using
> Zend_Soap_AutoDiscover,
> > I've made my own class and managed the requests for making all works
> well
> > but when I'm trying to use this WS from another PHP application I
> receive
> > this error: "SOAP-ERROR: Parsing WSDL: Couldn't load from
> >
> 'http://localhost/architecture/applications/security/public/ws/Security
> .php?
> > wsdl' : Extra content at the end of the document". The most estrange
> part is
> > its only happens in Windows platform because I've tested the same
> code in
> > Ubuntu Server and works as I expect.
> >
> >
> >
> > Excuse me for my English.
> >
> >
> >
> > Regards
> >
> > Omar
> >
> >
> >
> >
>
> Can you provide a link to the live WSDL please? If you don't want to
> do this on list, then off list for me is fine.
>
> You can see from my posts on http://news.php.net/php.soap that I'll
> help. And if I mess up, please be shout about it. Conversely, if I
> help ...
>
> Richard.
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

Re: [fw-webservices] Zend_Soap_AutoDiscover bug

2011/3/5 Ing. Omar Antonio Díaz Peña <oadiaz@uci.cu>:
> Hi:
>
>
>
> I'm traying to publish a WSDL-based WebService using Zend_Soap_AutoDiscover,
> I've made my own class and managed the requests for making all works well
> but when I'm trying to use this WS from another PHP application I receive
> this error: "SOAP-ERROR: Parsing WSDL: Couldn't load from
> 'http://localhost/architecture/applications/security/public/ws/Security.php?
> wsdl' : Extra content at the end of the document". The most estrange part is
> its only happens in Windows platform because I've tested the same code in
> Ubuntu Server and works as I expect.
>
>
>
> Excuse me for my English.
>
>
>
> Regards
>
> Omar
>
>
>
>

Can you provide a link to the live WSDL please? If you don't want to
do this on list, then off list for me is fine.

You can see from my posts on http://news.php.net/php.soap that I'll
help. And if I mess up, please be shout about it. Conversely, if I
help ...

Richard.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

Re: [fw-db] Programmatically Clear Metadata Cache?

> You can save cache to registry or get it from bootstrap as it is the same
> instance as in table if that comes handy for you.

Also consider using Zend_Cache_Manager as a resource bootstrappable via application.ini, as you can retrieve the cache from there, too (especially if you have more than one cache instance).


Says: Andreas.

2011年3月8日星期二

Re: [fw-db] Programmatically Clear Metadata Cache?

You can save cache to registry or get it from bootstrap as it is the same
instance as in table if that comes handy for you.
---
Regards,
Saša Stamenković


On Tue, Mar 8, 2011 at 7:49 PM, JB Christy <jbchristy@pacbell.net> wrote:

> Thanks for your helpful reply. Hopefully I can figure out how to call that
> $table->getDefaultMetadataCache()->clean() at the right time / in the
> right context.
>
> -JB
>
>
> ------------------------------
> *From:* Саша Стаменковић <umpirsky@gmail.com>
>
> *To:* JBChristy <JBChristy@pacbell.net>
> *Cc:* fw-db@lists.zend.com
> *Sent:* Mon, March 7, 2011 10:57:20 PM
>
> *Subject:* Re: [fw-db] Programmatically Clear Metadata Cache?
>
> You can set table metadata cache with
>
> $cache = Zend_Cache::factory(...);
> Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);
>
> and clear cache with
>
> $cache->clean(...);
>
> when the metadata changes.
>
> ---
> Regards,
> Saša Stamenković
>
>
> On Mon, Mar 7, 2011 at 10:40 PM, JBChristy <JBChristy@pacbell.net> wrote:
>
>> I've just up automatic (mem)caching of all Zend_DB_Table's. From time to
>> time, of course, the metadata changes. We do this in our production
>> environment by running sql scripts that add / drop / change columns as
>> necessary. I need some programmatic way to expire the metadata cache after
>> the sql runs, and no later than when updated code goes live, which is a
>> matter of minutes. I can't just wait til it times out.
>>
>> I've dug into Zend 1.11 Zend_Db_Table_Abstract, and the memcache key is an
>> md5 encoding of an optional port, optional host, dbname, schema name and
>> table name. There does not appear to be member function to expire the
>> cache,
>> nor even a function to return the md5 encoded key so I can delete it
>> manually.
>>
>> How are we supposed to clear the metadata cache when the metadata changes?
>>
>> Thanks in advance for your help!
>>
>> --
>> View this message in context:
>> http://zend-framework-community.634137.n4.nabble.com/Programmatically-Clear-Metadata-Cache-tp3340068p3340068.html
>> Sent from the Zend DB mailing list archive at Nabble.com.
>>
>
>

Re: [fw-db] Programmatically Clear Metadata Cache?

Thanks for your helpful reply. Hopefully I can figure out how to call that
$table->getDefaultMetadataCache()->clean() at the right time / in the right
context.

-JB

________________________________
From: Саша Стаменковић <umpirsky@gmail.com>
To: JBChristy <JBChristy@pacbell.net>
Cc: fw-db@lists.zend.com
Sent: Mon, March 7, 2011 10:57:20 PM
Subject: Re: [fw-db] Programmatically Clear Metadata Cache?

You can set table metadata cache with

$cache = Zend_Cache::factory(...);
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);

and clear cache with

$cache->clean(...);

when the metadata changes.

---
Regards,
Saša Stamenković

On Mon, Mar 7, 2011 at 10:40 PM, JBChristy <JBChristy@pacbell.net> wrote:

I've just up automatic (mem)caching of all Zend_DB_Table's. From time to
>time, of course, the metadata changes. We do this in our production
>environment by running sql scripts that add / drop / change columns as
>necessary. I need some programmatic way to expire the metadata cache after
>the sql runs, and no later than when updated code goes live, which is a
>matter of minutes. I can't just wait til it times out.
>
>I've dug into Zend 1.11 Zend_Db_Table_Abstract, and the memcache key is an
>md5 encoding of an optional port, optional host, dbname, schema name and
>table name. There does not appear to be member function to expire the cache,
>nor even a function to return the md5 encoded key so I can delete it
>manually.
>
>How are we supposed to clear the metadata cache when the metadata changes?
>
>Thanks in advance for your help!
>
>--
>View this message in context:
>http://zend-framework-community.634137.n4.nabble.com/Programmatically-Clear-Metadata-Cache-tp3340068p3340068.html
>
>Sent from the Zend DB mailing list archive at Nabble.com.
>

2011年3月7日星期一

Re: [fw-db] Programmatically Clear Metadata Cache?

You can set table metadata cache with

$cache = Zend_Cache::factory(...);
Zend_Db_Table_Abstract::setDefaultMetadataCache($cache);

and clear cache with

$cache->clean(...);

when the metadata changes.

---
Regards,
Saša Stamenković


On Mon, Mar 7, 2011 at 10:40 PM, JBChristy <JBChristy@pacbell.net> wrote:

> I've just up automatic (mem)caching of all Zend_DB_Table's. From time to
> time, of course, the metadata changes. We do this in our production
> environment by running sql scripts that add / drop / change columns as
> necessary. I need some programmatic way to expire the metadata cache after
> the sql runs, and no later than when updated code goes live, which is a
> matter of minutes. I can't just wait til it times out.
>
> I've dug into Zend 1.11 Zend_Db_Table_Abstract, and the memcache key is an
> md5 encoding of an optional port, optional host, dbname, schema name and
> table name. There does not appear to be member function to expire the
> cache,
> nor even a function to return the md5 encoded key so I can delete it
> manually.
>
> How are we supposed to clear the metadata cache when the metadata changes?
>
> Thanks in advance for your help!
>
> --
> View this message in context:
> http://zend-framework-community.634137.n4.nabble.com/Programmatically-Clear-Metadata-Cache-tp3340068p3340068.html
> Sent from the Zend DB mailing list archive at Nabble.com.
>

[fw-db] Programmatically Clear Metadata Cache?

I've just up automatic (mem)caching of all Zend_DB_Table's. From time to
time, of course, the metadata changes. We do this in our production
environment by running sql scripts that add / drop / change columns as
necessary. I need some programmatic way to expire the metadata cache after
the sql runs, and no later than when updated code goes live, which is a
matter of minutes. I can't just wait til it times out.

I've dug into Zend 1.11 Zend_Db_Table_Abstract, and the memcache key is an
md5 encoding of an optional port, optional host, dbname, schema name and
table name. There does not appear to be member function to expire the cache,
nor even a function to return the md5 encoded key so I can delete it
manually.

How are we supposed to clear the metadata cache when the metadata changes?

Thanks in advance for your help!

--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Programmatically-Clear-Metadata-Cache-tp3340068p3340068.html
Sent from the Zend DB mailing list archive at Nabble.com.