NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: GFasolt on November 20, 2008, 10:16:47 AM

Title: SOAPServer example without xFiles
Post by: GFasolt 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 (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()?
Title: Re: SOAPServer example without xFiles
Post by: Bruce on November 21, 2008, 12:28:02 AM
GetInfo should be a NetWebPage procedure.

Cheers
Bruce
Title: Re: SOAPServer example without xFiles
Post by: GFasolt 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
Title: Re: SOAPServer example without xFiles
Post by: Graham 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
Title: Re: SOAPServer example without xFiles
Post by: GFasolt on November 22, 2008, 05:58:54 AM
Graham,

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

Greg
Title: Re: SOAPServer example without xFiles
Post by: Bruce 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
Title: Re: SOAPServer example without xFiles
Post by: GFasolt 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]
Title: Re: SOAPServer example without xFiles
Post by: Bruce 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
Title: Re: SOAPServer example without xFiles
Post by: GFasolt on November 25, 2008, 10:12:29 AM
It's usually something simple, but this is embarassing.

Thanks!