[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: http_url_post_stmf error
All, thanks for the help. I found that the extra spaces at the end of the filename was causing my problem.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent: Thursday, April 18, 2013 1:28 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Ftpapi Digest, Vol 78, Issue 31
Send Ftpapi mailing list submissions to
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
You can reach the person managing the list at
ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific than "Re: Contents of Ftpapi digest..."
Today's Topics:
1. Web Service (Mauricio Diaz-Lapham)
2. http_url_post_stmf error (ReneeTaylor@xxxxxxxxx)
3. RE: http_url_post_stmf error (David Huls)
4. Re: http_url_post_stmf error (Scott Klement)
5. Access HTTP DELETE method using LIBHTTP (Dhanushka Manjula)
----------------------------------------------------------------------
Message: 1
Date: Wed, 17 Apr 2013 13:17:28 -0500
From: Mauricio Diaz-Lapham <MDiaz-Lapham@xxxxxxxxxxx>
To: "ftpapi@xxxxxxxxxxxxxxxxxxxxxx" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Web Service
Message-ID:
<C57EB3C22F3F2F448117320F4CD46C9236431C201C@xxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
Thanks Mike.
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
Sent: Wednesday, April 17, 2013 12:00 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Ftpapi Digest, Vol 78, Issue 30
Send Ftpapi mailing list submissions to
ftpapi@xxxxxxxxxxxxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
http://scottklement.com/mailman/listinfo/ftpapi
or, via email, send a message with subject or body 'help' to
ftpapi-request@xxxxxxxxxxxxxxxxxxxxxx
You can reach the person managing the list at
ftpapi-owner@xxxxxxxxxxxxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific than "Re: Contents of Ftpapi digest..."
Today's Topics:
1. Web Service (Mauricio Diaz-Lapham)
2. RE: Web Service (Mike Krebs)
----------------------------------------------------------------------
Message: 1
Date: Wed, 17 Apr 2013 08:54:30 -0500
From: Mauricio Diaz-Lapham <MDiaz-Lapham@xxxxxxxxxxx>
To: "ftpapi@xxxxxxxxxxxxxxxxxxxxxx" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Web Service
Message-ID:
<C57EB3C22F3F2F448117320F4CD46C9236431C2011@xxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
Hi all,
Please ignore my last message I found in the code where the Debug log file is. But I do have another problem.
I am trying to consume a web service that gets the client ID. I got a 500 Internal Server Error. Here is the log
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.
<p><small>(If you're the administrator of this website, then please read
the log file "<%=h RAILS_ENV %>.log"
to find out what went wrong.)</small></p>
</div>
</body>
</html>
Does this mean the error is on the web site or on how I am building the XML?
Thanks,
Mauricio
[cid:image001.jpg@01CE3B49.2C81F990]
iSeries Software Engineer
563 468 4806
mdiazlapham@xxxxxxxxxxx
-------------- next part --------------
Hi all,
Please ignore my last message I found in the code where the Debug log
file is. But I do have another problem.
I am trying to consume a web service that gets the client ID. I got a
500 Internal Server Error. Here is the log
<body>
<!-- This file lives in public/500.html
-->
<div
class="dialog">
<h1>We're sorry, but something went
wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it
shortly.
<p><small>(If you're the administrator of this website, then please
read
the log file "<%=h RAILS_ENV
%>.log"
to find out what went
wrong.)</small></p>
</div>
</body>
</html>
Does this mean the error is on the web site or on how I am building the
XML?
Thanks,
Mauricio
Description: cid:image001.jpg@01CDBD01.7D305970
iSeries Software Engineer
563 468 4806
mdiazlapham@xxxxxxxxxxx
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 2650 bytes
Desc: image001.jpg
URL: <http://scottklement.com/pipermail/ftpapi/attachments/20130417/82ba319b/attachment.jpg>
------------------------------
Message: 2
Date: Wed, 17 Apr 2013 10:49:40 -0500
From: Mike Krebs <mkrebs@xxxxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Web Service
Message-ID: <3DF08BA25872B644A1421B9F085B18299F48A8907A@xxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
500 errors are generated for any number of reasons and often are rather generic. So much reading between the lines is needed.
This looks like a problem on the web server side for a couple of reasons. One, you got back html style xml. That is usually not coming from a web service but from the web server behind the web service. Normally, one would expect to get back xml style error (<error>500</error>. It could but probably not. Two, it is saying to check the log file on the server to see what is wrong.
Other possibilities. This could be generated because of an invalid URL for the web service. It could be generated because of invalid XML.
Is this a simple "GET" type web service and you can use a browser to invoke this web service? Does it work there? Is there a test on the web server you can run to make sure the service is active?
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mauricio Diaz-Lapham
Sent: Wednesday, April 17, 2013 8:55 AM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: Web Service
Hi all,
Please ignore my last message I found in the code where the Debug log file is. But I do have another problem.
I am trying to consume a web service that gets the client ID. I got a 500 Internal Server Error. Here is the log
<body>
<!-- This file lives in public/500.html -->
<div class="dialog">
<h1>We're sorry, but something went wrong.</h1>
<p>We've been notified about this issue and we'll take a look at it shortly.
<p><small>(If you're the administrator of this website, then please read
the log file "<%=h RAILS_ENV %>.log"
to find out what went wrong.)</small></p>
</div>
</body>
</html>
Does this mean the error is on the web site or on how I am building the XML?
Thanks,
Mauricio
[cid:image001.jpg@01CE3B49.2C81F990]
iSeries Software Engineer
563 468 4806
mdiazlapham@xxxxxxxxxxx
------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list digest. To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
End of Ftpapi Digest, Vol 78, Issue 30
**************************************
------------------------------
Message: 2
Date: Wed, 17 Apr 2013 19:18:53 +0000
From: <ReneeTaylor@xxxxxxxxx>
To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: http_url_post_stmf error
Message-ID:
<AE296DDD5C63AD46A39AB46AD54AEF5F0CD1F1@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="us-ascii"
I am getting the following error when doing a http_url_post_stmf:
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post_stmf(): entered
getting post file size...
SetError() #65: stat(): A path name is too long.
What path is it referring to?
This is my statement:
rc = http_url_post_stmf('http://SIMTCSUPSWMSD01/Progistics/XML'
+ '_Processor/Server/XMLProcDLL.asp'
: filname
: RtnName
: HTTP_TIMEOUT
: HTTP_USERAGENT
: ContentType );
Filname = '/mapicsmail/UPSShipRqst7.xml '
RtnName = '/mapicsmail/somefile.txt '
Any help would be greatly appreciated!
Renee Taylor
Lead Analyst IT
Eaton Corporation
Electrical Sector
tel: 918-490-3208
reneetaylor@xxxxxxxxx<mailto:reneetaylor@xxxxxxxxx>
www.eaton.com<http://www.eaton.com/>
-------------- next part --------------
I am getting the following error when doing a http_url_post_stmf:
HTTPAPI Ver 1.24 released
2012-01-23
OS/400 Ver
V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
ProtLoc=0
http_url_post_stmf(): entered
getting post file
size...
SetError() #65: stat(): A path name is too
long.
What path is it referring to?
This is my statement:
rc = http_url_post_stmf('http://SIMTCSUPSWMSD01/Progistics/XML'
+ '_Processor/Server/XMLProcDLL.asp'
: filname
: RtnName
: HTTP_TIMEOUT
: HTTP_USERAGENT
: ContentType );
Filname = `/mapicsmail/UPSShipRqst7.xml '
RtnName = `/mapicsmail/somefile.txt '
Any help would be greatly appreciated!
Renee Taylor
Lead Analyst IT
Eaton Corporation
Electrical Sector
tel: 918-490-3208
[1]reneetaylor@xxxxxxxxx
[2]www.eaton.com
References
1. mailto:reneetaylor@xxxxxxxxx
2. http://www.eaton.com/
------------------------------
Message: 3
Date: Wed, 17 Apr 2013 20:34:17 +0000
From: David Huls <DHuls@xxxxxxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: http_url_post_stmf error
Message-ID:
<648D62898597CA49AD65F8A0970C71022444BE@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"
Probably need %trim around filname and RtnName
David Huls
Lead Programmer
4660 W College Ave
Appleton, WI 54913
D 920.738.8595
E dhuls@xxxxxxxxxxxxxxxxxxxx
dentalassociates.com
CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain privileged and/or confidential information. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that reading, copying, disclosing, distributing, disseminating or taking any action in relation to the contents of this e-mail and any of its attachments is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original e-mail and destroy any copies or printouts of this e-mail as well as any attachments.
________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] on behalf of ReneeTaylor@xxxxxxxxx [ReneeTaylor@xxxxxxxxx]
Sent: Wednesday, April 17, 2013 2:18 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: http_url_post_stmf error
I am getting the following error when doing a http_url_post_stmf:
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post_stmf(): entered
getting post file size...
SetError() #65: stat(): A path name is too long.
What path is it referring to?
This is my statement:
rc = http_url_post_stmf('http://SIMTCSUPSWMSD01/Progistics/XML<http://simtcsupswmsd01/Progistics/XML>'
+ '_Processor/Server/XMLProcDLL.asp'
: filname
: RtnName
: HTTP_TIMEOUT
: HTTP_USERAGENT
: ContentType );
Filname = '/mapicsmail/UPSShipRqst7.xml '
RtnName = '/mapicsmail/somefile.txt '
Any help would be greatly appreciated!
Renee Taylor
Lead Analyst IT
Eaton Corporation
Electrical Sector
tel: 918-490-3208
reneetaylor@xxxxxxxxx<mailto:reneetaylor@xxxxxxxxx>
www.eaton.com<http://www.eaton.com/>
CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain privileged and/or confidential information. This e-mail is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient of this e-mail, you are hereby notified that reading, copying, disclosing, distributing, disseminating or taking any action in relation to the contents of this e-mail and any of its attachments is strictly prohibited and may be unlawful. If you have received this e-mail in error, please notify the sender immediately and permanently delete the original e-mail and destroy any copies or printouts of this e-mail as well as any attachments.
-------------- next part --------------
Probably need %trim around filname and RtnName
David Huls
Lead Programmer
4660 W College Ave
Appleton, WI 54913
D 920.738.8595
E dhuls@xxxxxxxxxxxxxxxxxxxx
dentalassociates.com
CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain
privileged and/or confidential information. This e-mail is intended
solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient of this e-mail, you
are hereby notified that reading, copying, disclosing, distributing,
disseminating or taking any action in relation to the contents of this
e-mail and any of its attachments is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify the
sender immediately and permanently delete the original e-mail and
destroy any copies or printouts of this e-mail as well as any
attachments.
__________________________________________________________________
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] on behalf of
ReneeTaylor@xxxxxxxxx [ReneeTaylor@xxxxxxxxx]
Sent: Wednesday, April 17, 2013 2:18 PM
To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
Subject: http_url_post_stmf error
I am getting the following error when doing a http_url_post_stmf:
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post_stmf(): entered
getting post file size...
SetError() #65: stat(): A path name is too long.
What path is it referring to?
This is my statement:
rc = http_url_post_stmf('[1]http://SIMTCSUPSWMSD01/Progistics/XML'
+ '_Processor/Server/XMLProcDLL.asp'
: filname
: RtnName
: HTTP_TIMEOUT
: HTTP_USERAGENT
: ContentType );
Filname = '/mapicsmail/UPSShipRqst7.xml '
RtnName = '/mapicsmail/somefile.txt '
Any help would be greatly appreciated!
Renee Taylor
Lead Analyst IT
Eaton Corporation
Electrical Sector
tel: 918-490-3208
reneetaylor@xxxxxxxxx<mailto:reneetaylor@xxxxxxxxx>
www.eaton.com<[2]http://www.eaton.com/>
CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain
privileged and/or confidential information. This e-mail is intended
solely for the use of the individual or entity to which it is
addressed. If you are not the intended recipient of this e-mail, you
are hereby notified that reading, copying, disclosing, distributing,
disseminating or taking any action in relation to the contents of this
e-mail and any of its attachments is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify the
sender immediately and permanently delete the original e-mail and
destroy any copies or printouts of this e-mail as well as any
attachments.
References
1. http://simtcsupswmsd01/Progistics/XML
2. http://www.eaton.com/
------------------------------
Message: 4
Date: Wed, 17 Apr 2013 15:39:23 -0500
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: http_url_post_stmf error
Message-ID: <516F087B.4050703@xxxxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Hi Renee,
This means that the pathname of the file that HTTPAPI is trying to send (called 'filname' in the example you sent) is too long for the IFS file system that it's reported to be in.
Normally, the cause that I see for this error is when someone passes their filename as a parameter from the command-line, and doesn't understand about the 32-character rule with command-line literals. Is it possible that you are sending this path name from the command-line?
The other possibility that occurs to me is that maybe you're using a fixed-length field, and are not trimming the blanks from the end? that could easily result in a larger filename than you meant to supply.
At any rate, if you could give us more clues as to how the 'filname'
field is defined, and how a value is assigned to it, that would help us understand what's happening.
Thanks!
On 4/17/2013 2:18 PM, ReneeTaylor@xxxxxxxxx wrote:
> I am getting the following error when doing a http_url_post_stmf:
>
>
> HTTPAPI Ver 1.24 released
> 2012-01-23
>
> OS/400 Ver
> V5R4M0
>
>
>
> New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
> ProtLoc=0
>
> http_url_post_stmf(): entered
>
> getting post file
> size...
>
> SetError() #65: stat(): A path name is too
> long.
>
>
> What path is it referring to?
>
>
> This is my statement:
>
>
> rc = http_url_post_stmf('http://SIMTCSUPSWMSD01/Progistics/XML'
>
> + '_Processor/Server/XMLProcDLL.asp'
>
> : filname
>
> : RtnName
>
> : HTTP_TIMEOUT
>
> : HTTP_USERAGENT
>
> : ContentType );
>
>
> Filname = `/mapicsmail/UPSShipRqst7.xml '
>
> RtnName = `/mapicsmail/somefile.txt '
>
>
> Any help would be greatly appreciated!
>
>
> Renee Taylor
>
> Lead Analyst IT
>
> Eaton Corporation
>
> Electrical Sector
>
> tel: 918-490-3208
>
> [1]reneetaylor@xxxxxxxxx
>
> [2]www.eaton.com
>
> References
>
> 1. mailto:reneetaylor@xxxxxxxxx
> 2. http://www.eaton.com/
>
>
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
-------------- next part --------------
Hi Renee,
This means that the pathname of the file that HTTPAPI is trying to send
(called 'filname' in the example you sent) is too long for the IFS file
system that it's reported to be in.
Normally, the cause that I see for this error is when someone passes
their filename as a parameter from the command-line, and doesn't
understand about the 32-character rule with command-line literals. Is
it possible that you are sending this path name from the command-line?
The other possibility that occurs to me is that maybe you're using a
fixed-length field, and are not trimming the blanks from the end? that
could easily result in a larger filename than you meant to supply.
At any rate, if you could give us more clues as to how the 'filname'
field is defined, and how a value is assigned to it, that would help us
understand what's happening.
Thanks!
On 4/17/2013 2:18 PM, [1]ReneeTaylor@xxxxxxxxx wrote:
I am getting the following error when doing a http_url_post_stmf:
HTTPAPI Ver 1.24 released
2012-01-23
OS/400 Ver
V5R4M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
ProtLoc=0
http_url_post_stmf(): entered
getting post file
size...
SetError() #65: stat(): A path name is too
long.
What path is it referring to?
This is my statement:
rc = http_url_post_stmf('[2]http://SIMTCSUPSWMSD01/Progistics/XML'
+ '_Processor/Server/XMLProcDLL.asp'
: filname
: RtnName
: HTTP_TIMEOUT
: HTTP_USERAGENT
: ContentType );
Filname = `/mapicsmail/UPSShipRqst7.xml '
RtnName = `/mapicsmail/somefile.txt '
Any help would be greatly appreciated!
Renee Taylor
Lead Analyst IT
Eaton Corporation
Electrical Sector
tel: 918-490-3208
[[3]1]reneetaylor@xxxxxxxxx
[2]www.eaton.com
References
1. [4]mailto:reneetaylor@xxxxxxxxx
2. [5]http://www.eaton.com/
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[6]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
References
1. mailto:ReneeTaylor@xxxxxxxxx
2. http://SIMTCSUPSWMSD01/Progistics/XML
3. mailto:1]reneetaylor@xxxxxxxxx
4. mailto:reneetaylor@xxxxxxxxx
5. http://www.eaton.com/
6. http://www.scottklement.com/mailman/listinfo/ftpapi
------------------------------
Message: 5
Date: Thu, 18 Apr 2013 10:57:35 +0530
From: Dhanushka Manjula <dhanushkamanjula@xxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Access HTTP DELETE method using LIBHTTP
Message-ID:
<CANAzD1=wTj5K62cfTDND+aVG93UM1nvwn7jD3WrRS3s4FrTN-Q@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="iso-8859-1"
Hi all,
Both GET & DELETE methods of restful webservice is using same URL pattern but doing different operation based on http access methods (GET / DELETE )
The URL pattern for both operation is similar to this..
http:...../rest/categoryservice/category/001/
I could access the GET using http_url_get_xml and do what i want.
but what method should I use to access DELETE method ?
Thanks
Dhanushka
-------------- next part --------------
Hi all,
Both GET & DELETE methods of restful webservice is using same URL
pattern
but doing different operation based on http access methods (GET /
DELETE )
The URL pattern for both operation is similar to this..
http:...../rest/categoryservice/category/001/
I could access the GET using http_url_get_xml and do what i want.
but what method should I use to access DELETE method ?
Thanks
Dhanushka
------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list digest. To unsubscribe, go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
End of Ftpapi Digest, Vol 78, Issue 31
**************************************
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------