NetTalk Central

Author Topic: SOAPServer example without xFiles  (Read 6014 times)

GFasolt

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • GFasolt.com
    • Email
SOAPServer example without xFiles
« on: November 20, 2008, 10:16:47 AM »
I am attempting to use the SOAPServer (42) example, but without xFiles. I believe I am forming the request correctly(http://ecomcon.dnsalias.com/soap.htm).

The server indicates receipt:

Code: [Select]
POST /GetInfo HTTP/1.0
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
Host: 127.0.0.1:88
Content-Length: 305
Pragma: No-Cache
Cache-Control: No-Cache
Connection: Keep-Alive
SOAPAction: "http://127.0.0.1:88/GetInfo"

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><GetInfo/"><Role>Student</Role><Number>1</Number></GetInfo></soap:Body></soap:Envelope>


Placing a MESSAGE embed in the server GetInfo() procedure immediately after CODE indicates the GetInfo() is not being called, hence the client displays 404, Page cannot be found.

What should I be doing to cause the server to call GetInfo()?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: SOAPServer example without xFiles
« Reply #1 on: November 21, 2008, 12:28:02 AM »
GetInfo should be a NetWebPage procedure.

Cheers
Bruce

GFasolt

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • GFasolt.com
    • Email
Re: SOAPServer example without xFiles
« Reply #2 on: November 21, 2008, 05:37:17 AM »
Hi Bruce,

Thanks for your reply.

The GetInfo procedure is the NetWebPage from the example, it's just not being called.

I backed up to the WebHandler procedure and added a MESSAGE('loc:filename='&loc:filename, 'WebHandler') at the end of the Case:GetInfo Routine. This indicates that the value of loc:filename is "login.htm".

I've searched the template fields and generated code and there are no instances of "login.htm".

Still stumped,
Greg

Graham

  • Jr. Member
  • **
  • Posts: 57
    • View Profile
Re: SOAPServer example without xFiles
« Reply #3 on: November 21, 2008, 11:22:48 PM »
Hi Greg,

Maybe you have "User must be logged in" enabled on the NetWebPage settings under advanced tab?

Cheers
Graham

GFasolt

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • GFasolt.com
    • Email
Re: SOAPServer example without xFiles
« Reply #4 on: November 22, 2008, 05:58:54 AM »
Graham,

Unfortunately it is unchecked, but thanks for offering the suggestion.

Greg

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: SOAPServer example without xFiles
« Reply #5 on: November 24, 2008, 05:15:25 AM »
Hi Greg,

The WebHandler procedure settings are the other place where you can set that a page requires a login. The login.htm is coming from the setting on the web server procedure.

Have you tried compiling the web server example to see if that procedure gets called?

If you're still struggeling perhaps you need to post your app here so others can take a look at what you've done.

Cheers
Bruce

GFasolt

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • GFasolt.com
    • Email
Re: SOAPServer example without xFiles
« Reply #6 on: November 25, 2008, 04:35:49 AM »
Hi Bruce,

No luck; thanks.

As suggested, I've attached the SOAP server .app file.

Greg

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: SOAPServer example without xFiles
« Reply #7 on: November 25, 2008, 07:58:04 AM »
Hi Greg,

>> The WebHandler procedure settings are the other place where you can set that a page requires a login.

Go to the WebHandler procedure.
WebHandler Settings button
Login Rqd tab
Notice that GetInfo is highlighted.
Click on it.
Now it's not highlighted.

Compile & run.

Cheers
Bruce

GFasolt

  • Newbie
  • *
  • Posts: 30
    • View Profile
    • GFasolt.com
    • Email
Re: SOAPServer example without xFiles
« Reply #8 on: November 25, 2008, 10:12:29 AM »
It's usually something simple, but this is embarassing.

Thanks!