Http Error Unsupported Http Response Status 400 Bad Request Nusoap
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[
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / http://stackoverflow.com/questions/21337162/xml-request-in-php-nusoap-http-1-1-400-bad-request C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The http://www.codeproject.com/Questions/478006/HTTPplusError-aplusUnsupportedplusHTTPplusrespons Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ HTTP Error: Unsupported HTTP response status 400 Bad Request (soapclient->response has contents of the response) Rate this: Please Sign up or sign in to vote. See more: PHP HTTP SOAP WebService Request Host: rgiclservices.reliancegeneral.co.in User-Agent: NuSOAP/0.9.5 (1.123) Content-Type: text/xml; charset=UTF-8 SOAPAction: "http://tempuri.org/IRGICLTravel_WCF/getTravelPremium" Content-Length: 685
NuSOAP - SOAP Toolkit for PHP Brought to you by: dietricha, snichol Summary Files Reviews Support Wiki News Discussion Code Mailing Lists Create Topic Stats Graph Forums Help 593 https://sourceforge.net/p/nusoap/discussion/193579/thread/e8048321/ Open Discussion 91 Help Formatting Help 400 Bad Request Forum: Help Creator: http://www.sitepoint.com/forums/showthread.php?261093-NuSOAP-Mappoint-driving-me-crazy jdp153 Created: 2011-10-11 Updated: 2013-06-06 jdp153 - 2011-10-11 I'm new to soap in general and am stuck on a problem. I'm hoping someone with more experience can help. I have built a simple php client that is consuming a .NET server. Upon call of the function, I receive a "Unsupported HTTP http error response status 400 Bad Request" error. Here is my code for the client: $mysoapmsg = '
NuSOAP / Mappoint driving me crazy The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You can find out more information about the move and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 2 of 2 Thread: NuSOAP / Mappoint driving me crazy Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 7, 2005,02:21 #1 ShEx View Profile View Forum Posts SitePoint Enthusiast Join Date May 2003 Location UK Posts 50 Mentioned 0 Post(s) Tagged 0 Thread(s) NuSOAP / Mappoint driving me crazy Hey all, I'm using the php class NuSOAP to use a Mappoint web service. It reads the wsdl no problem, and creates the object fine. But when actually making the service call i get a 400 Bad Request. I've checked all the headers and it looks ok to me - although i don't have much experience in this, so... Below is the debug output of the connection; you can see it connect, the server request the digest authentication, the reply, then it goes pear shaped and throws a 400. Can anyone see anything wrong with the request that might be causing this? Thanks in advance Code: soap_transport_http: scheme = http soap_transport_http: host = findv3.staging.mappoint.net soap_transport_http: path = /Find-30/FindService.asmx soap_transport_http: Set credentials for authtype digest soap_transport_http: Authorization header not set soap_transport_http: entered send() with data of length: 836 soap_transport_http: connect connection_timeout 0, response_timeout 30, scheme http, host findv3.staging.mappoint.net, port 80 soap_transport_http: calling fsockopen with host findv3.staging.mappoint.net connection_timeout 0 soap_transport_http: set response timeout to 30 soap_transport_http: socket connected soap_transport_http: HTTP request: POST /Find-30/FindService.asmx HTTP/1.0 soap_transport_http: HTTP header: Host: findv3.staging.mappoint.net soap_transport_http: HTTP header: User-Agent: NuSOAP/0.6.9 (1.88) soap_transport_http: HTTP header: Content-Type: text/xml; charset=ISO-8859-1 soap_transport