[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.

The Content-Type: text/xml is actually only once in the sent request and in
the httpapi_debug.txt.
I got confused by DSPF paging when copy/paste this file to the mail. Sorry
about that.

The actual part of this looks:

	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
[4]	SOAPAction: http://www.webserviceX.NET/ConversionRate


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

The spaces after [4] are as in httpapi_debug.txt.
I can see the SOAPAction:.... is listed twice, be have no idea if this is
right or wrong.

When running example18 I have the following variables for the request:

	EVAL SOAP
 	SOAP =
	           ....5...10...15...20...25...30...35...40...45...50...55...60
	      1   '<?xml version="1.0" encoding="iso-8859-1" standalone="no"?><'
	     61   'SOAP:Envelope    xmlns:SOAP="http://schemas.xmlsoap.org/soap'
	    121   '/envelope/"    xmlns:tns="http://www.webserviceX.NET/";><SOAP'
	    181   ':Body>  <tns:ConversionRate>      <tns:FromCurrency>USD</tns'
	    241   ':FromCurrency>      <tns:ToCurrency>JPY</tns:ToCurrency>  </'
	    301   'tns:ConversionRate></SOAP:Body></SOAP:Envelope>             '

and the request is:

	2029  rc = http_url_post_xml(
	2030             'http://www.webservicex.net/CurrencyConvertor.asmx'
	2031                    : %addr(SOAP) + 2
	2032                    : %len(SOAP)
	2033                    : *NULL
	2034                    : %paddr(Incoming)
	2035                    : %addr(rate)
	2036                    : HTTP_TIMEOUT
	2037                    : HTTP_USERAGENT
	2038                    : 'text/xml'
	2039                    : 'http://www.webserviceX.NET/ConversionRate');


Best regards

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
-----------------------------------------------------------------------