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

RE: Fw: HTTPAPI ver 1.13.1




Thanks German,

I'm sort of at a loss right now.  It seems to me to be something to do with encoding.

Dana Anderson


Most Recent Debug Listing



Program Source Code
/Free                                                                    
  SOAPMsg =                                                              
   '<?xml version="1.0" encoding="UTF-8" ?>'                            +
      '<soap:Envelope'                                                  +
             ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'   +
             ' xmlns:xsd="http://www.w3.org/2001/XMLSchema"'            +
             ' xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">' +
         '<soap:Body>'                                                  +
           '<AnalyseDocument xmlns="http://tempuri.org/">'              +
             '<document>'                                               +
                XMLStr                                                  +
             '</document>'                                              +
           '</AnalyseDocument>'                                         +
         '</soap:Body>'                                                 +
       '</soap:Envelope>';                                                
                                                                         
  http_debug(*ON);                                                        

  rc = http_url_post_xml(                                            
        'http://nt124a131/ivatengineservice/engineservice.asmx'      
         : %addr(SOAPMsg) + 2                                        
         : %len(SOAPMsg)                                              
         : %paddr(StartOfElement)                                    
         : %paddr(EndOfElement)                                      
         : %addr(Response)                                            
         : HTTP_TIMEOUT                                              
         : HTTP_USERAGENT                                            
         : 'text/xml; charset=utf-8'                                  
         : 'http://tempuri.org/AnalyseDocument');                    
                                                                     
/End-Free                                                            


Instuctions given us by the web service:
================================================================================
POST /ivatengineservice/engineservice.asmx HTTP/1.1
Host: nt124a131
Content-Type: text/xml; charset=utf-8
Content-Length:
length
SOAPAction: "http://tempuri.org/AnalyseDocument"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
 <soap:Body>
   <AnalyseDocument xmlns="http://tempuri.org/">
     <document>
string</document>
   </AnalyseDocument>
 </soap:Body>
</soap:Envelope>





"Mendoza, German   \(RCIS\)" <German.Mendoza@xxxxxxxx>
Sent by: owner-ftpapi@xxxxxxxxxxxxx

04/07/2006 01:42 PM

Please respond to
ftpapi@xxxxxxxxxxxxx

To
<ftpapi@xxxxxxxxxxxxx>
cc
Subject
RE: Fw: HTTPAPI ver 1.13.1





Sender: "Mendoza, German   \(RCIS\)" <German.Mendoza@xxxxxxxx>

Dana,
Can you please repost the source to your program?  I'll try to see if I
can find anything in there (along with the most recent httpapi_debug.txt
you sent earlier today).

-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx] On
Behalf Of Scott Klement
Sent: Friday, April 07, 2006 12:33 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: RE: Fw: HTTPAPI ver 1.13.1

Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


iconv() is indeed a system API.  Also, there was nothing in the debug
log
to indicate that it was having translation problems.  I don't think Dana

is on the right track.


On Fri, 7 Apr 2006, Mendoza, German   (RCIS) wrote:
>
> Iconv() is a system API so there's no way to step through the
source...
> somebody please correct me if I'm wrong!
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------

HTTPAPI Ver 1.15 released 2006-03-30

New iconv() objects set, ASCII=819. EBCDIC=0
http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /ivatengineservice/engineservice.asmx HTTP/1.1
Host: nt124a131
User-Agent: http-api/1.15
Content-Type: text/xml; charset=utf-8
SOAPAction: http://tempuri.org/AnalyseDocument
Expect: 100-continue
Content-Length: 2871


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
<?xml version="1.0" encoding="UTF-8" ?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Body><AnalyseDocument xmlns="http://tempuri.org/";><document><iVATEngineInput><Supplier><ID>    80147</ID><Name>POSTURE PRODUCTS LTD</Name><Address>PO BOX 31 EXMOUTH</Address><Zip>EX8 2YT</Zip><City>DEVON </City><Country>GB</Country><VATNumberSupplier Country="GB"><VATNumber>GB 1234567    </VATNumber><VATNumberType> 1</VATNumberType><TaxNumber/></VATNumberSupplier></Supplier><Customer><ID>072</ID><Name>HomeCraft</Name><Address>Lowmoore Business Park, Kirkby in Ashfield</Address><City>Nottinghamshire</City><ZIP>NG17 7ET</ZIP><Country>GB</Country><CountryChosenVATNumber/><SupplierUserInfo/><VATNumberCustomer Country="GB"><VATNumber>GB 870418425</VATNumber><VATNumberType>1</VATNumberType><Name>HomeCraft</Name><Address1>Nunn Brook Road, Huthwaite</Address1><Address2>Sutton-in-Ashfield</Address2><Address3>Nottinghamshire, NG17 2HU</Address3><TaxNumber/></VATNumberCustomer><TypeOfGoods>0</TypeOfGoods></Customer><InvoiceProperties><DocumentType>1</DocumentType><Disconto>.00</Disconto><Currency1>GBP</Currency1><Currency2/><InvoiceNumber>SDLKASDLKFJ</InvoiceNumber><InvoiceDate>2006-04-03</InvoiceDate><NotationProperties><DecimalSeparator>.</DecimalSeparator><ThousandSeparator>,</ThousandSeparator></NotationProperties></InvoiceProperties><Item><Properties><Description>PANTS POUCH LADIES READI SMALL</Description><ItemClassificationCode>100       </ItemClassificationCode><Number>1</Number><VATRate>.000</VATRate><Unit>EA</Unit><Reduction>0</Reduction><Amounts><UnitPriceExclVAT>3.55</UnitPriceExclVAT><TotalAmountExclVAT>3.55</TotalAmountExclVAT></Amounts><AdditionalProperties><PropertiesPerCountry Country="GB"><VATRateCode>F</VATRateCode><VATWarehouse>1</VATWarehouse><ExciseProductType>0</ExciseProductType></PropertiesPerCountry></AdditionalProperties><OutOfVAT>0</OutOfVAT><ReportingProperties><EngineParameters1/><EngineParameters2/><EngineParameters3/><CommodityCode>AA2741B</CommodityCode><IntrastatQuantity1>1.000</IntrastatQuantity1><IntrastatUnit1>KG</IntrastatUnit1><IntrastatQuantity2/><IntrastatUnit2/><StatisticalValue/><ModeOfTransport>3  </ModeOfTransport><DeliveryConditions>FOB</DeliveryConditions></ReportingProperties></Properties><Conditions><ShipFrom><CountryDeparture>GB</CountryDeparture></ShipFrom><ShipTo><Name>Meridian IQ (UK) Ltd</Name><Address>Unit 1 2,  aybro k R</Address><Zip>B76 1AL</Zip><City>Birmingham</City><CountryArrival>UK</CountryArrival></ShipTo><SupplyIn>1</SupplyIn><Transporter>1</Transporter></Conditions><OwnItemReference>1</OwnItemReference></Item><SendToReporting>0</SendToReporting><OwnReference>C10012514</OwnReference></iVATEngineInput></document></AnalyseDocument></soap:Body></soap:Envelope>

recvresp(): entered
HTTP/1.1 400 Bad Request
Date: Fri, 07 Apr 2006 18:57:00 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Length: 0


SetError() #13: HTTP/1.1 400 Bad Request
recvdoc parms: identity 0
recvdoc(): entered
SetError() #0:
SetError() #13: HTTP/1.1 400 Bad Request
http_close(): entered