Hi folks,
I'm doing a custom project that uses MvCALL to make requests to a server using the SOAP protocol. I always find SOAP hookups a little tricky; and in this case, the problems are exacerbated by a support staff that doesn't seem very supportive :^.
After working thru a couple of other problems, I'm getting a reply that states, "413 Request Entity Too Large. The requested resource /index.php does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit." I'm using MvCALL with METHOD="XML," so it certainly should be sending POSTs. Is there anything else I could have done wrong, that would cause MvCALL to send a garbled request? In case it matters, I should mention that the URL includes a "?name=value" parameter.
I'm thinking that what I need is some sort of debugging tool or script that I can use by having my module send requests to this script, instead of to the server. The script's job would be simply to write into a log file, or perhaps send back in the reply, a complete description of the request that it received: the HTTP method, all the headers, and all the data. That way, I can see exactly what my module is sending.
I don't think I can write this in Miva Script, because Miva Script doesn't provide a way to read the body of an incoming POST request that consists of pure data instead of name-value pairs. I could write this in PHP, but it would probably take me a couple of hours of fiddling; I don't use PHP that often. I'm hoping someone here can point me to an off-the-shelf tool, or maybe you already have a script that does this?
Thanks --
I'm doing a custom project that uses MvCALL to make requests to a server using the SOAP protocol. I always find SOAP hookups a little tricky; and in this case, the problems are exacerbated by a support staff that doesn't seem very supportive :^.
After working thru a couple of other problems, I'm getting a reply that states, "413 Request Entity Too Large. The requested resource /index.php does not allow request data with POST requests, or the amount of data provided in the request exceeds the capacity limit." I'm using MvCALL with METHOD="XML," so it certainly should be sending POSTs. Is there anything else I could have done wrong, that would cause MvCALL to send a garbled request? In case it matters, I should mention that the URL includes a "?name=value" parameter.
I'm thinking that what I need is some sort of debugging tool or script that I can use by having my module send requests to this script, instead of to the server. The script's job would be simply to write into a log file, or perhaps send back in the reply, a complete description of the request that it received: the HTTP method, all the headers, and all the data. That way, I can see exactly what my module is sending.
I don't think I can write this in Miva Script, because Miva Script doesn't provide a way to read the body of an incoming POST request that consists of pure data instead of name-value pairs. I could write this in PHP, but it would probably take me a couple of hours of fiddling; I don't use PHP that often. I'm hoping someone here can point me to an off-the-shelf tool, or maybe you already have a script that does this?
Thanks --
Comment