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

Re: fedex tracking



Followin Mike's suggestion it appears we have a winner:

When you do the open in Explorer you will find it halts on the missing 
backslash for the end tag of <TrackNotificationRequest>

Kind regards,

Loek Maartens.


----- Original Message ----- 
From: "Mike Krebs" <mkrebs@xxxxxxxxxxxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, May 26, 2009 9:10 PM
Subject: RE: fedex tracking


> It doesn't appear you XML parses. Make sure all your tags match and all 
> end tags have "/" in them.
>
> A simple test to see if your xml parses correctly is to open it in IE or 
> firefox. Just copy and paste into test.xml (or whatever name you want) and 
> open it. If it parses there, you'll have to dig further in the XML using 
> SOAPui or similar.
>
> Mike Krebs
>
>> -----Original Message-----
>> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
>> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Ron PUTASKI
>> Sent: Friday, May 22, 2009 12:31 PM
>> To: ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>> Subject: fedex tracking
>>
>> I keep getting and  HTTP/1.1 500 Server Error. What I am I doing wrong?
>> I
>> used example19 to create it.
>>
>>  Log
>> Protocol Used: TLS Version 1
>> http_persist_post(): entered
>> http_long_ParseURL(): entered
>> do_post(): entered
>> POST /web-services HTTP/1.1
>> Host: gateway.fedex.com
>> User-Agent: http-api/1.23
>> Content-Type: text/xml;charset=utf-8
>> SOAPAction: https://gateway.fedex.com:443/web-services
>> Expect: 100-continue
>> Content-Length: 964
>>
>>
>> recvresp(): entered
>> HTTP/1.1 100 Continue
>>
>>
>> SetError() #13: HTTP/1.1 100 Continue
>> senddoc(): entered
>> <?xml version="1.0" encoding="UTF-8"?>
>> <SOAP-ENV:Envelope xmlns:SOAP-ENV="
>> http://schemas.xmlsoap.org/soap/envelope/";
>>   xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
>>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>  xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>>  xmlns:m="http://fedex.com/ws/track/v3";>
>> <SOAP-ENV:Body>
>> <TrackNotificationRequest>
>> <WebAuthenticationDetail>
>> <UserCredential>
>> <Key>zzzzzzzzzzzzzz</Key>
>> <Password>zzzzzzzzzzzzzzz</Password>
>> </UserCredential>
>> </WebAuthenticationDetail>
>> <ClientDetail>
>> <AccountNumber>00000000</AccountNumber>
>> <MeterNumber>000000000</MeterNumber>
>> </ClientDetail>
>> <TransactionDetail>
>> <Localization>
>> <LanguageCode>EN</LanguageCode>
>> </Localization>
>> </TransactionDetail>
>> <Version>
>> <ServiceId>trck</ServiceId>
>> <Major>3</Major>
>> <Intermediate>0</Intermediate>
>> <Minor>0</Minor>
>> </Version>
>> <TrackingNumber>9612019029606920145835</TrackingNumber>
>> <TrackNotificationRequest>
>> </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>> recvresp(): entered
>> HTTP/1.1 500 Server Error
>> Server: Sun-ONE-Web-Server/6.1
>> Date: Fri, 22 May 2009 15:54:35 GMT
>> Content-length: 543
>> Content-type: text/xml; charset=utf-8
>> X-Powered-By: Servlet/2.4 JSP/2.0
>>
>>
>> SetError() #13: HTTP/1.1 500 Server Error
>> recvdoc parms: identity 543
>> header_load_cookies() entered
>> recvdoc(): entered
>> SetError() #0:
>> <?xml version="1.0" encoding="UTF-8"?>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
>> ">
>> <soapenv:Header/>
>> <soapenv:Body>
>> <soapenv:Fault><faultcode>soapenv:Client</faultcode>
>> <faultstring>Failure while unmarshalling message: Failed to parse XML
>> text</faultstring>
>> <detail>
>> <con:fault xmlns:con="http://www.bea.com/wli/sb/context";>
>> <con:errorCode>9999</con:errorCode>
>> <con:reason>Failure while unmarshalling message: Failed to parse XML
>> text</con:reason>
>> </con:fault>
>> </detail>
>> </soapenv:Fault>
>> </soapenv:Body>
>> </soapenv:Envelope>
>> SetError() #13: HTTP/1.1 500 Server Error
>> http_close(): entered
>>
>> Soap
>> SOAP =
>>  '<?xml version="1.0" encoding="UTF-8"?>' +
>>  ' <SOAP-ENV:Envelope +
>>    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";  +
>>    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";  +
>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";       +
>>    xmlns:xsd="http://www.w3.org/2001/XMLSchema";                +
>>    xmlns:m="http://fedex.com/ws/track/v3";>'                    +
>>    '<SOAP-ENV:Body>'                                     +
>>    '<TrackNotificationRequest>'                         +
>>    '<WebAuthenticationDetail>'                          +
>>    '<UserCredential>'                                   +
>>        '<Key>' + fedx_key + '</Key>'                    +
>>        '<Password>' + fedx_pass + '</Password>'         +
>>    '</UserCredential>'                                  +
>>    '</WebAuthenticationDetail>'                         +
>>   '<ClientDetail>'                                     +
>>     '<AccountNumber>00000000</AccountNumber>'       +
>>     '<MeterNumber>00000000</MeterNumber>'           +
>> '</ClientDetail>'                                    +
>> '<TransactionDetail>' +
>>     '<Localization>'                                 +
>>         '<LanguageCode>EN</LanguageCode>'            +
>>     '</Localization>'                                +
>> '</TransactionDetail>' +
>> '<Version>'                                          +
>>     '<ServiceId>trck</ServiceId>'                    +
>>         '<Major>3</Major>'                           +
>>         '<Intermediate>0</Intermediate>'             +
>>         '<Minor>0</Minor>'                           +
>> '</Version>'                                         +
>> '<TrackingNumber>' + TrackingNo + '</TrackingNumber>' +
>> '<TrackNotificationRequest>'                         +
>> '</SOAP-ENV:Body>'                                 +
>> '</SOAP-ENV:Envelope>'                                ;
>>
>>
>>
>>
>>
>>
>>
>> Ronald C. Putaski Jr
>> ERP Integrator
>> Coats and Clark
>> 8 Shelter Drive
>> Greer, SC 29650
>> Office phone: 864-848-5608
>> cell phone: 864-906-2184
>>
>> *****************************************************
>> This communication may be confidential and privileged and the views
>> expressed herein may be personal and are not necessarily the views of
>> Coats plc. It is for the exclusive use of the intended recipient(s). If
>> you are not the intended recipient(s), please note that any
>> distribution, copying or use of this communication or the information
>> in it is strictly prohibited. If you have received this communication
>> in error, please notify us by email (Apps.Support@xxxxxxxxx) or
>> telephone our technical support helpdesk at Coats plc. +44 (0)20 8210
>> 5100 (UK 0830H - 1800H, Mon-Fri, GMT) and then delete the email and any
>> copies of it.
>> *****************************************************
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------