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

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