dbTalk Databases Forums  

Call a SUB from SOAP

comp.databases.pick comp.databases.pick


Discuss Call a SUB from SOAP in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dharry
 
Posts: n/a

Default Call a SUB from SOAP - 05-28-2010 , 02:47 AM






Hi All,

I am confused about a little problem... I have set up a SOAP server
and it all works fine. I wrote a very simple subroutine in BASIC and
can call that from the SOAP server no problems.

Where the problem lies is that if I try to call another subroutine
from within my first sub it screws up the SOAP server and I get an
'INTERAL SOAP SERVER ERROR'.

I'm trying to create a check password function, so I pass in username
and password to my subroutine, which it in turn passes to another
subroutine to check the details and return a result, which I pass back
to the SOAP server.

If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).

Any ideas anyone?

Regards,
Dean

Reply With Quote
  #2  
Old   
tpc
 
Posts: n/a

Default Re: Call a SUB from SOAP - 05-28-2010 , 04:37 AM






On May 28, 3:47*am, dharry <dean.ha... (AT) gmail (DOT) com> wrote:
Quote:
Hi All,

I am confused about a little problem... I have set up a SOAP server
and it all works fine. I wrote a very simple subroutine in BASIC and
can call that from the SOAP server no problems.

Where the problem lies is that if I try to call another subroutine
from within my first sub it screws up the SOAP server and I get an
'INTERAL SOAP SERVER ERROR'.

I'm trying to create a check password function, so I pass in username
and password to my subroutine, which it in turn passes to another
subroutine to check the details and return a result, which I pass back
to the SOAP server.

If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).

Any ideas anyone?

Regards,
Dean
Try making the check password function a program and execute it,
passing the username and password on the command line or via a named
common and getting the result via a named common or from a file.

Tom

Reply With Quote
  #3  
Old   
Kevin Powick
 
Posts: n/a

Default Re: Call a SUB from SOAP - 05-28-2010 , 08:23 AM



On 2010-05-28 03:47:01 -0400, dharry <dean.harry (AT) gmail (DOT) com> said:
Quote:
If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).
I don't know Universe, so this is a shot in the dark, but in D3, if you
call a sub from within a sub via their ODBC interface, the second sub
must be called using an explicit path.

Example:

MySub = 'Account,bp,subname'
call @MySub(p1,p2,p3...)

--
Kevin Powick

Reply With Quote
  #4  
Old   
Tony Gravagno
 
Posts: n/a

Default Re: Call a SUB from SOAP - 05-28-2010 , 12:23 PM



You could be dealing with a simple case of setting some esoteric flag.
It could be a release-specific bug. It could be a design flaw that
will prevent you from doing what should be easy and obvious. It's
tough to tell.

The U2 forum is a better place to get an answer about specific U2
subsystems. That forum and others are listed here:
http://www.pickwiki.com/cgi-bin/wiki.pl?Community

As usual, many years ago I chose not to struggle with a lot of
half-baked platform-specific functionality added by DBMS vendors who
want to claim they're responding to consumer demand. Most of them
seem to screw it up most of the time. Seeing forum notes about issues
in those addins on an almost daily basis, I have never regretted that
decision. I wish they'd dedicate their efforts (like all other non-MV
DBMS providers) to making the platform more extensible to specialty
tools from outside, rather than feeling a need to build proprietary
tools into the core. But I'm sure that's just me...

T

Reply With Quote
  #5  
Old   
dharry
 
Posts: n/a

Default Re: Call a SUB from SOAP - 05-29-2010 , 08:58 AM



On May 28, 7:37*pm, tpc <gfmri... (AT) gmail (DOT) com> wrote:
Quote:
On May 28, 3:47*am, dharry <dean.ha... (AT) gmail (DOT) com> wrote:





Hi All,

I am confused about a little problem... I have set up a SOAP server
and it all works fine. I wrote a very simple subroutine in BASIC and
can call that from the SOAP server no problems.

Where the problem lies is that if I try to call another subroutine
from within my first sub it screws up the SOAP server and I get an
'INTERAL SOAP SERVER ERROR'.

I'm trying to create a check password function, so I pass in username
and password to my subroutine, which it in turn passes to another
subroutine to check the details and return a result, which I pass back
to the SOAP server.

If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).

Any ideas anyone?

Regards,
Dean

Try making the check password function a program and execute it,
passing the username and password on the command line or via a named
common and getting the result via a named common or from a file.

Tom- Hide quoted text -

- Show quoted text -
Hi Tom,

It works fine via a program executed from a comand prompt. I have
worked around it partly for now. It seems strange though, I tried a
couple of different things and it seems that any call from a
subroutine seems to cause the SOAP server some trouble.

Dean

Reply With Quote
  #6  
Old   
dharry
 
Posts: n/a

Default Re: Call a SUB from SOAP - 05-29-2010 , 09:00 AM



On May 28, 11:23*pm, Kevin Powick <nos... (AT) spamless (DOT) com> wrote:
Quote:
On 2010-05-28 03:47:01 -0400, dharry <dean.ha... (AT) gmail (DOT) com> said:

If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).

I don't know Universe, so this is a shot in the dark, but in D3, if you
call a sub from within a sub via their ODBC interface, the second sub
must be called using an explicit path.

Example:

MySub = 'Account,bp,subname'
call @MySub(p1,p2,p3...)

--
Kevin Powick
Hi Kevin,

Tried that as well, doesn't quite work the same with Universe, in any
case, after trying a few different things the problem is the call
statement seems to cause problems with the SOAP server. A bit strange
but i'll keep trying

Cheers,
Dean

Reply With Quote
  #7  
Old   
Colin
 
Posts: n/a

Default Re: Call a SUB from SOAP - 06-01-2010 , 03:18 PM



Dean

Anything as silly as a common block or include that depends on
something that's not getting initialized? This is a common problem
with UniObjects connections in UniData as they login through the
UO.LOGIN VOC item instead of the LOGIN item most are accustomed to.
Not sure exactly how it works with UniVerse.

hth
Colin Alfke
Calgary, Canada

dharry wrote:
Quote:
Hi All,

I am confused about a little problem... I have set up a SOAP server
and it all works fine. I wrote a very simple subroutine in BASIC and
can call that from the SOAP server no problems.

Where the problem lies is that if I try to call another subroutine
from within my first sub it screws up the SOAP server and I get an
'INTERAL SOAP SERVER ERROR'.

I'm trying to create a check password function, so I pass in username
and password to my subroutine, which it in turn passes to another
subroutine to check the details and return a result, which I pass back
to the SOAP server.

If I call the program from within Universe it works fine, if I comment
out the second CALL, it works fine (obviously without actually
checking the details).

Any ideas anyone?

Regards,
Dean

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.