NetTalk Central

Author Topic: SOAP client as part of a NTWS app  (Read 2573 times)

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
SOAP client as part of a NTWS app
« on: February 23, 2012, 03:49:52 AM »
Hi,

I'm trying to use a soap client from within my NTWS app, but I think I may be missing some basic understanding of how things work.

1. The soap client itself works (I've moved it from a clarion desktop app that's working just fine).
2. I'm using a regular clarion window procedure as the soap client since I need a window for the client to work. Is that correct?
3. I'm calling the windows proc from a netwebform with some parameters and they get passed ok.
4. The problem is that I'm returning to the netwebform _before_ the response from the soap server is received by the client and thus I don't get anything back to work with.

What am I doing wrong here?

Peter

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: SOAP client as part of a NTWS app
« Reply #1 on: February 23, 2012, 05:47:10 AM »
1. ok.

2. yes

3. ok

4. If you are calling your procedure (say, bob()) then bob should only return when it is finished. Typically when it either goes through the .PageReceived method, or the .ErrorTrap method it posts an Event:Closewindow.

Now if you are doing a CALL(bob,20000) - that's a whole different ballgame.
so how are you calling Bob?

cheers
Bruce

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: SOAP client as part of a NTWS app
« Reply #2 on: February 23, 2012, 06:40:24 AM »
Hi Bruce,

I'm not calling - just bob()-ing  ;)
And it turned out that my problem was something trivial, sorry.

I was just not sure that I'd got it right but it works fine now.

Thanks
Peter