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

RE: Antwort: Attempting to call a web service with a 500 error



Thanks 

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Walker
Powell
Sent: 19 June 2008 15:46
To: HTTPAPI and FTPAPI Projects
Subject: RE: Antwort: Attempting to call a web service with a 500 error

The log should be in the IFS in /tmp dir


Walker Powell
Pacer International IT
6805 Perimeter Dr.
Dublin, OH 43016
walker.powell@xxxxxxxxx
614.356.1257 office
614.923.1442 fax

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Carey,
Declan
Sent: Thu, June 19, 2008 10:32 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: Antwort: Attempting to call a web service with a 500 error

Hi Lance

Thanks for the reply.

Let me review a few of the things that you have mentioned.

I don't see a tag for soap:Header

We have called webservices without soap:header before as per Scott's
examples and they have worked.


I have http_debug set *on. How do I review the httpapi_debug file, where
does it reside?

The webservice is not on the Iseries it is another server. (Windows
Desktop)


Do you have http_error set for the error number? You can check this
against the header copybook to see what the error is

 We have used http_error() and get the HTTP/1.1 500 Internal Server
Error


Still confused.

Regards

Declan




-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Kastel,
Lance
Sent: 19 June 2008 14:37
To: HTTPAPI and FTPAPI Projects
Subject: RE: Antwort: Attempting to call a web service with a 500 error

I few things I can think of checking:

I don't see a tag for soap:Header

Do you have http_debug set? It would help to see if/what your xml brings
back in httpapi_debug text file

Do you have http_error set for the error number? You can check this
against the header copybook to see what the error is

Where does the webservice reside? Is it on the iSeries or another
server?

Lance Kastel
CSK Auto
Senior Programmer Analyst
602-631-7166

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Carey,
Declan
Sent: Thursday, June 19, 2008 3:50 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: Antwort: Attempting to call a web service with a 500 error



Hi,

I am attempting to access a web service we have setup. We can access via
PC etc so the Soap/XML looks right. I know this is a bit of a long shot
but I am new to this web service area so if anyone has time to cast an
eye over the detail below and spots anything untoward I would be most
grateful please let me know. I have called a couple of web services via
Scott's examples and one of our own and they worked just fine. This one
returns the vague 500 internal error.

Any help appreciated.

Regards
Declan



/free

 webService ='http://uk01wrks260/iSeriesWS/iSeriesWS_Orchestration_1'+
           '_prtDocProd.asmx';
 soapAction ='http://tempuri.org/iSeriesWS_Orchestration_1_prtDocProd/'
             'LetterProduction';

 SOAP =
  '<?xml version="1.0" encoding="utf-8" ?>'
 +'<soap:Envelope '
 +'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"; '
 +'xmlns:tem="http://tempuri.org/";                      '
 +'xmlns:doc="http://DocProdPoC.LetterContent";>         '
 +'<soap:Body>                                          '

 +' <tem:LetterProduction>                              '
 +'  <doc:LetterContent>                                           '
 +'          <doc:PolicyNumber>UKDAOO12345108</doc:PolicyNumber> '
 +'          <doc:PACLine>A</doc:PACLine>                        '
 +'          <doc:SubAccountCode>01234</doc:SubAccountCode>      '
 +'          <doc:Currency>EUR</doc:Currency>                    '
 +'<doc:UnpaidEffectiveDate>2008-12-20</doc:UnpaidEffectiveDate> '
 +'           <doc:UnpaidAmount>1500.00</doc:UnpaidAmount>       '
 +'         <doc:BrokerDetails>                                 '
 +'             <doc:BrokerName1>Marsh</doc:BrokerName1>         '
 +'             <doc:BrokerName1>Marsh</doc:BrokerName1>         '
 +'             <doc:BrokerName2></doc:BrokerName2>              '
 +'             <doc:Address1>Ashdown House</doc:Address1>       '
 +'             <doc:Address2>125 High Street</doc:Address2>     '
 +'             <doc:City>Crawley</doc:City>                     '
 +'             <doc:PostCode>RH10 1DQ</doc:PostCode>            '
 +'          </doc:BrokerDetails>                                '
 +'        <doc:UserDetails>               '
 +'         <doc:UserName>Alex Dawson</doc:UserName> '
 +'          <doc:UserPhone>+44 (0) 1293 726 000</doc:UserPhone>'
 +'         </doc:UserDetails>     '
 +'     </doc:LetterContent>                                '
 + '    </tem:LetterProduction>                 '
 +'</soap:Body>'
 +'</soap:Envelope>';

rc = http_url_post_xml(
                  webService
                  : %addr(SOAP) + 2
                  : %len(SOAP)
                  : *NULL
                  : %paddr(Incoming)
                  : %addr(response)
                  : HTTP_TIMEOUT
                  : HTTP_USERAGENT
                  : 'text/xml'
                  : soapAction);

____________________________________________________________________
This email is intended for the designated recipient(s) only, and may be
confidential, non-public, proprietary, protected by the attorney/client
or other privilege. Unauthorized reading, distribution, copying or other
use of this communication is prohibited and may be unlawful. Receipt by
anyone other than the intended recipient(s) should not be deemed a
waiver of any privilege or protection. If you are not the intended
recipient or if you believe that you have received this email in error,
please notify the sender immediately and delete all copies from your
computer system without reading, saving, or using it in any manner.
Although it has been checked for viruses and other malicious software
("malware"), we do not warrant, represent or guarantee in any way that
this communication is free of malware or potentially damaging defects.
All liability for any actual or alleged loss, damage, or injury arising
out of or resulting in any way from the receipt, opening or use of this
email is expressly disclaimed.
______________________________________________________________________

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

____________________________________________________________________
This email is intended for the designated recipient(s) only, and may be
confidential, non-public, proprietary, protected by the attorney/client
or other privilege. Unauthorized reading, distribution, copying or other
use of this communication is prohibited and may be unlawful. Receipt by
anyone other than the intended recipient(s) should not be deemed a
waiver of any privilege or protection. If you are not the intended
recipient or if you believe that you have received this email in error,
please notify the sender immediately and delete all copies from your
computer system without reading, saving, or using it in any manner.
Although it has been checked for viruses and other malicious software
(?malware?), we do not warrant, represent or guarantee in any way that
this communication is free of malware or potentially damaging defects.
All liability for any actual or alleged loss, damage, or injury arising
out of or resulting in any way from the receipt, opening or use of this
e!
 mail is expressly disclaimed.
______________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

____________________________________________________________________
This email is intended for the designated recipient(s) only, and may be confidential, non-public, proprietary, protected by the attorney/client or other privilege. Unauthorized reading, distribution, copying or other use of this communication is prohibited and may be unlawful. Receipt by anyone other than the intended recipient(s) should not be deemed a waiver of any privilege or protection. If you are not the intended recipient or if you believe that you have received this email in error, please notify the sender immediately and delete all copies from your computer system without reading, saving, or using it in any manner. Although it has been checked for viruses and other malicious software (?malware?), we do not warrant, represent or guarantee in any way that this communication is free of malware or potentially damaging defects. All liability for any actual or alleged loss, damage, or injury arising out of or resulting in any way from the receipt, opening or use of this email is expressly disclaimed.
______________________________________________________________________
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------