|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
SOAP errorI am working with the SOAP interface using PHP and it's working well.
From time to time, however, the server crashes with the following error: <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault exception: [soapenv:Server.userException] java.rmi.RemoteException: index 1 out of bounds (0); nested exception is: java.lang.RuntimeException: index 1 out of bounds (0) in D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack trace: #0 [internal function]: SoapClient->__call('retrieve', Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): SoapClient->retrieve(Array) #2 D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): doQuery('for $doc in col...') #3 {main} thrown in <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> on line <strong>27</strong></p> It seems to be associated with querying a collection after documents have been deleted but I'm not certain about that. -- Roy ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorOn Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote:
> I am working with the SOAP interface using PHP and it's working well. > From time to time, however, the server crashes with the following error: > > <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault > exception: [soapenv:Server.userException] java.rmi.RemoteException: > index 1 out of bounds (0); nested exception is: > java.lang.RuntimeException: index 1 out of bounds (0) in > D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack > trace: #0 [internal function]: SoapClient->__call('retrieve', > Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): > SoapClient->retrieve(Array) #2 > D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): > doQuery('for $doc in col...') #3 {main} thrown in > <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> > on line <strong>27</strong></p> > > It seems to be associated with querying a collection after documents > have been deleted but I'm not certain about that. Can you provide eXist's logs? -- Cheers, Dmitriy Shabanov ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorsorry about offtop - why you use PHP when you have eXist - much more
powerful tool? this is not rhetorical question - just trying to understand On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> wrote: > On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >> I am working with the SOAP interface using PHP and it's working well. >> From time to time, however, the server crashes with the following error: >> >> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >> exception: [soapenv:Server.userException] java.rmi.RemoteException: >> index 1 out of bounds (0); nested exception is: >> java.lang.RuntimeException: index 1 out of bounds (0) in >> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >> trace: #0 [internal function]: SoapClient->__call('retrieve', >> Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >> SoapClient->retrieve(Array) #2 >> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >> doQuery('for $doc in col...') #3 {main} thrown in >> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >> on line <strong>27</strong></p> >> >> It seems to be associated with querying a collection after documents >> have been deleted but I'm not certain about that. > > Can you provide eXist's logs? > > -- > Cheers, > > Dmitriy Shabanov > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Exist-open mailing list > Exist-open@... > https://lists.sourceforge.net/lists/listinfo/exist-open > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorHi Vyacheslav
In which case why have a SOAP interface? :) My application needs to retrieve XML documents and compose HTML emails around them. The number of emails could be quite large. I have a few problems with eXist's email module and I am not certain it is suitable for larger volumes of email in a loop. Does it open an SMTP socket for each mail, for example? So, at the moment eXist does everything I need except handle email in a reliable way. Also, there are one or two functions in PHP that are great timesavers, date() for example; and for me, being fairly new to XQuery, it is sometimes quicker to prototype in PHP. But hey, I hardly bother writing SQL queries any more ;) -- Roy Vyacheslav Sedov wrote: > sorry about offtop - why you use PHP when you have eXist - much more > powerful tool? this is not rhetorical question - just trying to > understand > > On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> wrote: > >> On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >> >>> I am working with the SOAP interface using PHP and it's working well. >>> From time to time, however, the server crashes with the following error: >>> >>> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >>> exception: [soapenv:Server.userException] java.rmi.RemoteException: >>> index 1 out of bounds (0); nested exception is: >>> java.lang.RuntimeException: index 1 out of bounds (0) in >>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >>> trace: #0 [internal function]: SoapClient->__call('retrieve', >>> Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >>> SoapClient->retrieve(Array) #2 >>> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >>> doQuery('for $doc in col...') #3 {main} thrown in >>> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >>> on line <strong>27</strong></p> >>> >>> It seems to be associated with querying a collection after documents >>> have been deleted but I'm not certain about that. >>> >> Can you provide eXist's logs? >> >> -- >> Cheers, >> >> Dmitriy Shabanov >> >> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Exist-open mailing list >> Exist-open@... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: 10/22/09 18:44:00 > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP error> In which case why have a SOAP interface? :)
For integration ;-) > My application needs to retrieve XML documents and compose HTML emails > around them. The number of emails could be quite large. I have a few > problems with eXist's email module and I am not certain it is suitable > for larger volumes of email in a loop. Does it open an SMTP socket for > each mail, for example? At the moment you send an XML representation of an individual message to the send-mail function and yes it deals with opening a connection to the SMTP server, sending the message and closing the connection. However you can also opt to use the Sendmail binary on the local box (Unix/Linux) in which case it doesnt use a Socket at all and I would assume that Sendmail itself will have an efficient server to server transfer mechanism of delivering messages in bulk. If you do need SMTP though, it would be very very easy to change the send-mail function so that it takes one-or-more XML representations of a message and bulk sends them through a single socket invocation via. SMTP. I would even consider making these changes if it helps you immediately? > So, at the moment eXist does everything I need except handle email in a > reliable way. Also, there are one or two functions in PHP that are great > timesavers, date() for example; and for me, being fairly new to XQuery, > it is sometimes quicker to prototype in PHP. There are a lot of good date functions in XQuery and for additional ones checkout the datetime extension module. > But hey, I hardly bother writing SQL queries any more ;) > > -- Roy > > Vyacheslav Sedov wrote: >> sorry about offtop - why you use PHP when you have eXist - much more >> powerful tool? this is not rhetorical question - just trying to >> understand >> >> On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> wrote: >> >>> On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >>> >>>> I am working with the SOAP interface using PHP and it's working well. >>>> From time to time, however, the server crashes with the following error: >>>> >>>> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >>>> exception: [soapenv:Server.userException] java.rmi.RemoteException: >>>> index 1 out of bounds (0); nested exception is: >>>> java.lang.RuntimeException: index 1 out of bounds (0) in >>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >>>> trace: #0 [internal function]: SoapClient->__call('retrieve', >>>> Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >>>> SoapClient->retrieve(Array) #2 >>>> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >>>> doQuery('for $doc in col...') #3 {main} thrown in >>>> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >>>> on line <strong>27</strong></p> >>>> >>>> It seems to be associated with querying a collection after documents >>>> have been deleted but I'm not certain about that. >>>> >>> Can you provide eXist's logs? >>> >>> -- >>> Cheers, >>> >>> Dmitriy Shabanov >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Exist-open mailing list >>> Exist-open@... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >> > >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com >> Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: 10/22/09 18:44:00 >> >> > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > Exist-open mailing list > Exist-open@... > https://lists.sourceforge.net/lists/listinfo/exist-open > -- Adam Retter eXist Developer { United Kingdom } adam@... irc://irc.freenode.net/existdb ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorAdam Retter wrote:
>> In which case why have a SOAP interface? :) >> > > For integration ;-) > :-) >> My application needs to retrieve XML documents and compose HTML emails >> around them. The number of emails could be quite large. I have a few >> problems with eXist's email module and I am not certain it is suitable >> for larger volumes of email in a loop. Does it open an SMTP socket for >> each mail, for example? >> > > At the moment you send an XML representation of an individual message > to the send-mail function and yes it deals with opening a connection > to the SMTP server, sending the message and closing the connection. > However you can also opt to use the Sendmail binary on the local box > (Unix/Linux) in which case it doesnt use a Socket at all and I would > assume that Sendmail itself will have an efficient server to server > transfer mechanism of delivering messages in bulk. > > If you do need SMTP though, it would be very very easy to change the > send-mail function so that it takes one-or-more XML representations of > a message and bulk sends them through a single socket invocation via. > SMTP. I would even consider making these changes if it helps you > immediately? > that way. So Sendmail is not really an option. If you can make that mod' if would indeed help me right now. Thank you. I have a couple of specific mail issues that I will raise in another thread. >> So, at the moment eXist does everything I need except handle email in a >> reliable way. Also, there are one or two functions in PHP that are great >> timesavers, date() for example; and for me, being fairly new to XQuery, >> it is sometimes quicker to prototype in PHP. >> > > There are a lot of good date functions in XQuery and for additional > ones checkout the datetime extension module. > Will do. >> But hey, I hardly bother writing SQL queries any more ;) >> >> -- Roy >> >> Vyacheslav Sedov wrote: >> >>> sorry about offtop - why you use PHP when you have eXist - much more >>> powerful tool? this is not rhetorical question - just trying to >>> understand >>> >>> On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> wrote: >>> >>> >>>> On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >>>> >>>> >>>>> I am working with the SOAP interface using PHP and it's working well. >>>>> From time to time, however, the server crashes with the following error: >>>>> >>>>> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >>>>> exception: [soapenv:Server.userException] java.rmi.RemoteException: >>>>> index 1 out of bounds (0); nested exception is: >>>>> java.lang.RuntimeException: index 1 out of bounds (0) in >>>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >>>>> trace: #0 [internal function]: SoapClient->__call('retrieve', >>>>> Array) #1 D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >>>>> SoapClient->retrieve(Array) #2 >>>>> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >>>>> doQuery('for $doc in col...') #3 {main} thrown in >>>>> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >>>>> on line <strong>27</strong></p> >>>>> >>>>> It seems to be associated with querying a collection after documents >>>>> have been deleted but I'm not certain about that. >>>>> >>>>> >>>> Can you provide eXist's logs? >>>> >>>> -- >>>> Cheers, >>>> >>>> Dmitriy Shabanov >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>> is the only developer event you need to attend this year. Jumpstart your >>>> developing skills, take BlackBerry mobile applications to market and stay >>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>> http://p.sf.net/sfu/devconference >>>> _______________________________________________ >>>> Exist-open mailing list >>>> Exist-open@... >>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>> >>>> >>>> >>> ------------------------------------------------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com >>> Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: 10/22/09 18:44:00 >>> >>> >>> >> ------------------------------------------------------------------------------ >> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >> is the only developer event you need to attend this year. Jumpstart your >> developing skills, take BlackBerry mobile applications to market and stay >> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >> http://p.sf.net/sfu/devconference >> _______________________________________________ >> Exist-open mailing list >> Exist-open@... >> https://lists.sourceforge.net/lists/listinfo/exist-open >> >> > > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: 10/22/09 18:44:00 > > ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorRoy,
I have made the changes to the mail:send-email() function so that you can now send one or more messages at a time through a single SMTP session. It has been committed to trunk as revision 10361 and as such it should appear in the imminent 1.4 release. The function now also returns a sequence of boolean results (one of each message given to it) indicating the success or failure of sending each message. Cheers Adam. 2009/10/23 Roy Walter <garliestonhouse@...>: > Adam Retter wrote: >>> >>> In which case why have a SOAP interface? :) >>> >> >> For integration ;-) >> > > :-) >>> >>> My application needs to retrieve XML documents and compose HTML emails >>> around them. The number of emails could be quite large. I have a few >>> problems with eXist's email module and I am not certain it is suitable >>> for larger volumes of email in a loop. Does it open an SMTP socket for >>> each mail, for example? >>> >> >> At the moment you send an XML representation of an individual message >> to the send-mail function and yes it deals with opening a connection >> to the SMTP server, sending the message and closing the connection. >> However you can also opt to use the Sendmail binary on the local box >> (Unix/Linux) in which case it doesnt use a Socket at all and I would >> assume that Sendmail itself will have an efficient server to server >> transfer mechanism of delivering messages in bulk. >> >> If you do need SMTP though, it would be very very easy to change the >> send-mail function so that it takes one-or-more XML representations of >> a message and bulk sends them through a single socket invocation via. >> SMTP. I would even consider making these changes if it helps you >> immediately? >> > > I'm running eXist on a Windows box and it will probably have to stay that > way. So Sendmail is not really an option. If you can make that mod' if would > indeed help me right now. Thank you. I have a couple of specific mail issues > that I will raise in another thread. >>> >>> So, at the moment eXist does everything I need except handle email in a >>> reliable way. Also, there are one or two functions in PHP that are great >>> timesavers, date() for example; and for me, being fairly new to XQuery, >>> it is sometimes quicker to prototype in PHP. >>> >> >> There are a lot of good date functions in XQuery and for additional >> ones checkout the datetime extension module. >> > > Will do. >>> >>> But hey, I hardly bother writing SQL queries any more ;) >>> >>> -- Roy >>> >>> Vyacheslav Sedov wrote: >>> >>>> >>>> sorry about offtop - why you use PHP when you have eXist - much more >>>> powerful tool? this is not rhetorical question - just trying to >>>> understand >>>> >>>> On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> >>>> wrote: >>>> >>>> >>>>> >>>>> On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >>>>> >>>>> >>>>>> >>>>>> I am working with the SOAP interface using PHP and it's working well. >>>>>> From time to time, however, the server crashes with the following >>>>>> error: >>>>>> >>>>>> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >>>>>> exception: [soapenv:Server.userException] java.rmi.RemoteException: >>>>>> index 1 out of bounds (0); nested exception is: >>>>>> java.lang.RuntimeException: index 1 out of bounds (0) in >>>>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >>>>>> trace: #0 [internal function]: SoapClient->__call('retrieve', >>>>>> Array) #1 >>>>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >>>>>> SoapClient->retrieve(Array) #2 >>>>>> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >>>>>> doQuery('for $doc in col...') #3 {main} thrown in >>>>>> >>>>>> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >>>>>> on line <strong>27</strong></p> >>>>>> >>>>>> It seems to be associated with querying a collection after documents >>>>>> have been deleted but I'm not certain about that. >>>>>> >>>>>> >>>>> >>>>> Can you provide eXist's logs? >>>>> >>>>> -- >>>>> Cheers, >>>>> >>>>> Dmitriy Shabanov >>>>> >>>>> >>>>> >>>>> ------------------------------------------------------------------------------ >>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>>> is the only developer event you need to attend this year. Jumpstart >>>>> your >>>>> developing skills, take BlackBerry mobile applications to market and >>>>> stay >>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>>> http://p.sf.net/sfu/devconference >>>>> _______________________________________________ >>>>> Exist-open mailing list >>>>> Exist-open@... >>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>> >>>>> >>>>> >>>> >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG - www.avg.com >>>> Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: >>>> 10/22/09 18:44:00 >>>> >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>> is the only developer event you need to attend this year. Jumpstart your >>> developing skills, take BlackBerry mobile applications to market and stay >>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>> http://p.sf.net/sfu/devconference >>> _______________________________________________ >>> Exist-open mailing list >>> Exist-open@... >>> https://lists.sourceforge.net/lists/listinfo/exist-open >>> >>> >> >> >> >> ------------------------------------------------------------------------ >> >> >> No virus found in this incoming message. >> Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: >> 270.14.27/2452 - Release Date: 10/22/09 18:44:00 >> >> > -- Adam Retter eXist Developer { United Kingdom } adam@... irc://irc.freenode.net/existdb ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
|
|
Re: SOAP errorHey Adam fast work. That's really great news. Many thanks.
-- Roy Adam Retter wrote: > Roy, > > I have made the changes to the mail:send-email() function so that you > can now send one or more messages at a time through a single SMTP > session. It has been committed to trunk as revision 10361 and as such > it should appear in the imminent 1.4 release. > > The function now also returns a sequence of boolean results (one of > each message given to it) indicating the success or failure of > sending each message. > > Cheers Adam. > > > > 2009/10/23 Roy Walter <garliestonhouse@...>: > >> Adam Retter wrote: >> >>>> In which case why have a SOAP interface? :) >>>> >>>> >>> For integration ;-) >>> >>> >> :-) >> >>>> My application needs to retrieve XML documents and compose HTML emails >>>> around them. The number of emails could be quite large. I have a few >>>> problems with eXist's email module and I am not certain it is suitable >>>> for larger volumes of email in a loop. Does it open an SMTP socket for >>>> each mail, for example? >>>> >>>> >>> At the moment you send an XML representation of an individual message >>> to the send-mail function and yes it deals with opening a connection >>> to the SMTP server, sending the message and closing the connection. >>> However you can also opt to use the Sendmail binary on the local box >>> (Unix/Linux) in which case it doesnt use a Socket at all and I would >>> assume that Sendmail itself will have an efficient server to server >>> transfer mechanism of delivering messages in bulk. >>> >>> If you do need SMTP though, it would be very very easy to change the >>> send-mail function so that it takes one-or-more XML representations of >>> a message and bulk sends them through a single socket invocation via. >>> SMTP. I would even consider making these changes if it helps you >>> immediately? >>> >>> >> I'm running eXist on a Windows box and it will probably have to stay that >> way. So Sendmail is not really an option. If you can make that mod' if would >> indeed help me right now. Thank you. I have a couple of specific mail issues >> that I will raise in another thread. >> >>>> So, at the moment eXist does everything I need except handle email in a >>>> reliable way. Also, there are one or two functions in PHP that are great >>>> timesavers, date() for example; and for me, being fairly new to XQuery, >>>> it is sometimes quicker to prototype in PHP. >>>> >>>> >>> There are a lot of good date functions in XQuery and for additional >>> ones checkout the datetime extension module. >>> >>> >> Will do. >> >>>> But hey, I hardly bother writing SQL queries any more ;) >>>> >>>> -- Roy >>>> >>>> Vyacheslav Sedov wrote: >>>> >>>> >>>>> sorry about offtop - why you use PHP when you have eXist - much more >>>>> powerful tool? this is not rhetorical question - just trying to >>>>> understand >>>>> >>>>> On Fri, Oct 23, 2009 at 3:13 PM, Dmitriy Shabanov <shabanovd@...> >>>>> wrote: >>>>> >>>>> >>>>> >>>>>> On Fri, 2009-10-23 at 11:58 +0100, Roy Walter wrote: >>>>>> >>>>>> >>>>>> >>>>>>> I am working with the SOAP interface using PHP and it's working well. >>>>>>> From time to time, however, the server crashes with the following >>>>>>> error: >>>>>>> >>>>>>> <p><br /> <strong>Fatal error</strong>: Uncaught SoapFault >>>>>>> exception: [soapenv:Server.userException] java.rmi.RemoteException: >>>>>>> index 1 out of bounds (0); nested exception is: >>>>>>> java.lang.RuntimeException: index 1 out of bounds (0) in >>>>>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php:27 Stack >>>>>>> trace: #0 [internal function]: SoapClient->__call('retrieve', >>>>>>> Array) #1 >>>>>>> D:\webs\dev.govmonitor.com\tools\exist_soap_query.php(27): >>>>>>> SoapClient->retrieve(Array) #2 >>>>>>> D:\webs\dev.govmonitor.com\mediabrief\compilepub.php(21): >>>>>>> doQuery('for $doc in col...') #3 {main} thrown in >>>>>>> >>>>>>> <strong>D:\webs\dev.govmonitor.com\tools\exist_soap_query.php</strong> >>>>>>> on line <strong>27</strong></p> >>>>>>> >>>>>>> It seems to be associated with querying a collection after documents >>>>>>> have been deleted but I'm not certain about that. >>>>>>> >>>>>>> >>>>>>> >>>>>> Can you provide eXist's logs? >>>>>> >>>>>> -- >>>>>> Cheers, >>>>>> >>>>>> Dmitriy Shabanov >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------------------------ >>>>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>>>> is the only developer event you need to attend this year. Jumpstart >>>>>> your >>>>>> developing skills, take BlackBerry mobile applications to market and >>>>>> stay >>>>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>>>> http://p.sf.net/sfu/devconference >>>>>> _______________________________________________ >>>>>> Exist-open mailing list >>>>>> Exist-open@... >>>>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>>>> >>>>>> >>>>>> >>>>>> >>>>> ------------------------------------------------------------------------ >>>>> >>>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG - www.avg.com >>>>> Version: 8.5.423 / Virus Database: 270.14.27/2452 - Release Date: >>>>> 10/22/09 18:44:00 >>>>> >>>>> >>>>> >>>>> >>>> ------------------------------------------------------------------------------ >>>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA >>>> is the only developer event you need to attend this year. Jumpstart your >>>> developing skills, take BlackBerry mobile applications to market and stay >>>> ahead of the curve. Join us from November 9 - 12, 2009. Register now! >>>> http://p.sf.net/sfu/devconference >>>> _______________________________________________ >>>> Exist-open mailing list >>>> Exist-open@... >>>> https://lists.sourceforge.net/lists/listinfo/exist-open >>>> >>>> >>>> >>> >>> ------------------------------------------------------------------------ >>> >>> >>> No virus found in this incoming message. >>> Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: >>> 270.14.27/2452 - Release Date: 10/22/09 18:44:00 >>> >>> >>> > > > > > ------------------------------------------------------------------------ > > > No virus found in this incoming message. > Checked by AVG - www.avg.com > Version: 8.5.424 / Virus Database: 270.14.49/2480 - Release Date: 11/04/09 07:37:00 > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open |
| Free embeddable forum powered by Nabble | Forum Help |