Http Error Unsupported Http Response Status 400 Bad Request
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up XML request in PHP NuSoap - “HTTP/1.1 400 Bad Request” up vote 2 down vote favorite I'm using NuSoap within PHP to connect to an API. At the minute, I'm just simple trying to send over an example XML string provided by the company who provides the API, however I'm receiving a HTTP/1.1 400 Bad Request error. I've queried this directly with the company but they've said that when they use the XML they've provided, as well as other clients, they aren't having any problems. The XML I'm trying to send is: ![CDATA[
Posted: Mon Sep 21, 2009 9:13 am Hi all, I have a NuSoap client which connects to a .NET webservice. The connection is established and the requested method is found, however the response gives an http://stackoverflow.com/questions/21337162/xml-request-in-php-nusoap-http-1-1-400-bad-request error: "HTTP Error: Unsupported HTTP response status 400 Bad Request (soapclient->response has contents of the response)". My guess is that the Bad Request is caused by the following issue: "entered send() with data of length: 0". But http://forum.nusphere.com/nusoap-with-net-webservice-connects-but-gives-http-400-error-t6492.html I do give some data to de sent. What am I doing wrong? Here the complete NuSoap debug data: Code: Error HTTP Error: Unsupported HTTP response status 400 Bad Request (soapclient->response has contents of the response) Request POST /webservices/Milieubelasting/milieubelasting.asmx HTTP/1.0 Host: myserver User-Agent: NuSOAP/0.7.3 (1.114) Content-Type: text/xml; charset=UTF-8 SOAPAction: "http://myserver/Milieubelasting/GetMilieubelasting" Content-Length: 711 20100102
20100506
downloadedPHP sample to use Mappoint WS from MSFT website. I was trying to callFindAddress after user enters the address. Looks like authentication isworking well but http error when it sends request for FindAddress, I was getting backthe following message:Fault occured while trying to geocode against MapPoint:\nHTTP Error:Unsupported HTTP response status 400 Bad Request (soapclient->response hascontents http error unsupported of the response)Here is my Request and Response SOAP ebvelopes. I need help very badly here.Appreciate some tips.RequestPOST /Find-30/FindService.asmx HTTP/1.0Host: findv3.staging.mappoint.netUser-Agent: NuSOAP/0.7.2 (1.94)Content-Type: text/xml; charset=ISO-8859-1SOAPAction: "http://s.mappoint.net/mappoint-30/FindAddress"Content-Length: 827Authorization: Digest username="Partnerspaila118997", realm="MapPoint",nonce="733acac1cc3b061d407519551100e650ee9c55e050083b6df34d16ae05d8",uri="/Find-30/FindService.asmx",cnonce="733acac1cc3b061d407519551100e650ee9c55e050083b6df34d16ae05d8",nc=00000001, qop="auth", response="726cbfa68f636e6079c3841447b10c96"Bad Request (Invalid Header Name)
Kevin 2006-08-31 03:23:01 UTC PermalinkRaw Message No help for you, but I am seeing this same response tonight when I attemptthe FindAddress call, too.Post by NarasimhaHi,I am new to Mappoi