[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: HTTP/1.1 500 Internal Server Error



Hi Kathy,

Your XML appears to be invalid. Please copy it to a temporary file and open in IE or even better...use a real tool like SOAPUI to create it.

The 500 Internal Server Error is returned from IIS when something pukes while it is doing the requested action (in this case the web service was trying to parse the XML and didn't like it). It sometimes means the server is broken, but most often means the XML is broken.


Mike Krebs 

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of wardkl@xxxxxxxxxxxxxxxxxxx
> Sent: Thursday, October 22, 2009 3:30 PM
> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
> Subject: FW: HTTP/1.1 500 Internal Server Error
> 
> I am trying my first HPPTAPI with no success, below is the debug log,
> any
> help would be appreciated.
> 
> 
> 
> Kathy L. Ward
> 
> Century 21 Thomas
> 
> 
> 
> HTTPAPI Ver 1.23 released 2008-04-24
> 
> OS/400 Ver V5R4M0
> 
> 
> 
> New iconv() objects set, PostRem=1208. PostLoc=0. ProtRem=819.
> ProtLoc=0
> 
> http_persist_open(): entered
> 
> http_long_ParseURL(): entered
> 
> DNS resolver retrans: 2
> 
> DNS resolver retry  : 30
> 
> DNS resolver options: x'00000136'
> 
> DNS default domain: century21thomas.local
> 
> DNS server found: 10.10.10.2
> 
> DNS server found: 24.25.5.60
> 
> DNS server found: 24.25.5.61
> 
> http_persist_post(): entered
> 
> http_long_ParseURL(): entered
> 
> do_post(): entered
> 
> POST /webservices/narrowcast/narrowcast.asmx HTTP/1.1
> 
> Host: www.navistechnologies.com
> 
> User-Agent: http-api/1.23
> 
> Content-Type: text/xml; charset=utf-8
> 
> SOAPAction: "http://tempuri.org/AddGuest";
> 
> Expect: 100-continue
> 
> Content-Length: 1242
> 
> 
> 
> 
> 
> recvresp(): entered
> 
> HTTP/1.1 100 Continue
> 
> 
> 
> 
> 
> SetError() #13: HTTP/1.1 100 Continue
> 
> senddoc(): entered
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:tem="http://tempuri.org/";> <soapenv:Header/> <soapenv:Body>
> <tem:AddGuest> <tem:Account>1####</tem:Account>
> <tem:Password>####################</tem:Password> <tem:ResAccount>
> </tem:ResAccount> <tem:ResGuestID>123456</tem:ResGuestID>
> <tem:UnitID>AANZEE</tem:UnitID> <tem:FirstName>Kathy</tem:FirstName>
> <tem:LastName>Ward</tem:LastName> <tem:Address1>865 West Cox Ferry
> Rd</tem:Address1> <tem:Address2></tem:Address2>
> <tem:City>Conway</tem:City>
> <tem:State>SC</tem:State> <tem:Zip>29577</tem:Zip>
> <tem:HomePhone>8432343122</tem:HomePhone>
> <tem:WorkPhone>8432492100</tem:WorkPhone>
> <tem:CellPhone>8435040028</tem:CellPhone>
> <tem:Email>wardkl@xxxxxxxxxxxxxxxxxxx</tem:Email>
> <tem:GuestType>Guest</tem:GuestType>
> <tem:CheckinDate>12/01/2009</tem:CheckinDate>
> <tem:CheckOutDate>12/08/2009</tem:CheckOutDate>
> <tem:Adults></tem:Adults>
> <tem:Children><tem:Children> <tem:AmountPaid></tem:AmountPaid>
> <tem:ResNum>123456</tem:ResNum> <tem:StayStatus></tem:StayStatus>
> <tem:ReasonForStay></tem:ReasonForStay> <tem:Notes></tem:Notes>
> <tem:ResMadeDate>10/21/2009</tem:ResMadeDate> <tem:ResAgent>Rosalind
> S</tem:ResAgent> </tem:AddGuest> </soapenv:Body> </soapenv:Envelope>
> 
> recvresp(): entered
> 
> HTTP/1.1 500 Internal Server Error
> 
> Date: Thu, 22 Oct 2009 20:09:17 GMT
> 
> Server: Microsoft-IIS/6.0
> 
> MicrosoftOfficeWebServer: 5.0_Pub
> 
> X-Powered-By: ASP.NET
> 
> X-AspNet-Version: 2.0.50727
> 
> Cache-Control: private
> 
> Content-Type: text/xml; charset=utf-8
> 
> Content-Length: 478
> 
> 
> 
> 
> 
> SetError() #13: HTTP/1.1 500 Internal Server Error
> 
> recvdoc parms: identity 478
> 
> header_load_cookies() entered
> 
> recvdoc(): entered
> 
> SetError() #0:
> 
> <?xml version="1.0" encoding="utf-8"?><soap:Envelope
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";><soap:Body><soap:Fault><fa
> ultco
> de>soap:Client</faultcode><faultstring>Server was unable to read
> request.
> ---&gt; There is an error in XML document (1, 911). ---&gt; Input
> string was
> not in a correct format.</faultstring><detail
> /></soap:Fault></soap:Body></soap:Envelope>
> 
> SetError() #13: HTTP/1.1 500 Internal Server Error
> 
> http_close(): entered
> 
> 
> 
> This message may contain information that is confidential or
> privileged. It is intended solely for the
> individual(s) or entity to which it is addressed.  Dissemination,
> duplication or distribution of this transmission
> by someone other than the intended addressee or its designated agent is
> strictly prohibited and may be
> illegal under federal or state law.  Any views or opinions presented in
> this email are those of the author and
> not necessarily those of Century 21 Thomas.  The sender and Century 21
> Thomas accept no liability for any
> damage caused by any email related virus. If you have received this
> communication in error, please notify
> us immediately by replying to this email and by deleting the original
> message and any copies.  Thank you.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------