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

RE: Exanple18 and HTTP/1.1 500 Internal Server Error



Dear Scott Klement.

Regarding my previous response on this issue:

I have just tried example18 once more and now found the following in
httpapi_debug.txt:

	do_post(): entered
	POST /CurrencyConvertor.asmx HTTP/1.1
	Host: www.webservicex.net
	User-Agent: http-api/1.22
	Content-Type: text/xml
	SOAPAction: http://www.webserviceX.NET/ConversionRate
	Expect: 100-continue
	Content-Length: 347


	recvresp(): entered
	SetError() #43: CommTCP_read: No 100-Continue (error ignored)
	senddoc(): entered

I see the SOAPActiuon only once, seems to be more correct, but the result
and other
error messages about an invalid soapaction are the same.

Brgds

Helge




-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Scott Klement
Sent: Tuesday, April 01, 2008 5:52 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Exanple18 and HTTP/1.1 500 Internal Server Error


Hello Helge,

>    returns HTTP/1.1 500 Internal Server Error. Example19 and 20 gives the
>    same result.
[SNIP]
>    and error '<faultstring>System.Web.Services.Protocols.SoapException:
>    Unable to handle request without a valid action parameter. Please
>    supply a valid soap action. '

This means that there's an error in the "SOAPAction:" keyword that's
sent to the HTTP server.  Here's the relevant part of your log file:

>    User-Agent: http-api/1.22
>    Content-Type: text/xml
>
>    Content-Type:
>    text/xml
>    SOAPAction:
>    [3]http://www.webserviceX.NET/ConversionRate
>    Expect:
>    100-continue
>    Content-Length:
>    347
>    SOAPAction:
>    [4]http://www.webserviceX.NET/ConversionRate

I'm a bit confused by this.  I'm guessing that the extra linefeeds and
the [4] were inserted by your e-mail software.

But why are Content-Type and SOAPAction listed twice?  Clearly, that
will cause confusion.  You aren't supposed to list these HTTP keywords
twice.  I can't think of any code in HTTPAPI that would do that, and it
doesn't happen to me when I run EXAMPLE18-20...

So I'm not exactly sure what it could be?  Why would those keywords be
repeated?   Also, it looks like there's a blank line after your first
Content-type....  this would cause major problems as blank lines are
supposed to indicate the end of the list of headers.

Is anyone else having this problem?   I'm not sure what to look for...
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------


-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------