NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: debzidoodle on August 20, 2014, 05:04:37 PM
-
Hi Bruce
I have a client that is passing the soap request like the following, this pulls back the actual page for mySystem, so it is not executing the SOAPAction. I did some testing using this command and the netDemo example, if I remove the " from around the URL in the soap action everything works fine. How can I make my server accept this request as the client sends it?
POST /mySystem HTTP/1.1
Content-Length: 376
Content-Type: text/xml; charset=utf-8
Accept: */*
Host: 10.211.55.4:88
User-Agent: PC SOFT Framework
Connection: close
SOAPAction: "http://10.211.55.4:88/mySystem/Date"
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:Date xmlns:ns1="mySystem"/></SOAP-ENV:Body></SOAP-ENV:Envelope>
-
Hi Debra,
Try adding the follwing code to netweb.clw;
Search for the
Calc_SOAPAction ROUTINE
in the _ParseRequestHeader method.
Add the following lines to the bottom of the routine;
if Left(self.ShortSOAPAction,1) = '"' and Right(self.ShortSOAPAction,1) = '"'
self.ShortSOAPAction = sub(self.ShortSOAPAction,2,len(clip(self.ShortSOAPAction))-2)
END
Let me know if it works please.
cheers
Bruce
-
Changing the code to be the following worked
if Right(self.ShortSOAPAction,1) = '"'
self.ShortSOAPAction = sub(self.ShortSOAPAction,1,len(clip(self.ShortSOAPAction))-1)
END
-
thanks