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

Re: Ftpapi Digest, Vol 35, Issue 43



   Hello Loek,
   Tried your suggestion. Got same error. Here is my soap statement from
   the RPG program.
   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>'                                ;


     callp http_setproxy('proxy-01.cnacorp.coats.com':80);
     rc = http_url_post_xml(
                      'https://gateway.fedex.com/web-services'
                      : %addr(SOAP) + 2
                      : %len(SOAP)
                      : *NULL
                      : %paddr(Incoming)
                      : %addr(String)
                      : HTTP_TIMEOUT
                      : HTTP_USERAGENT
                      : 'text/xml;charset=utf-8'
                      : 'https://gateway.fedex.com:443/web-services');
   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
   Date: Sat, 23 May 2009 00:26:45 +0200
   From: "Loek Maartens" <l.maartens@xxxxxxxxx>
   Subject: Re: fedex tracking
   To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   Message-ID: <FC4A5C910C084C4BA4A59C6F9AB352A1@HLD02>
   Content-Type: text/plain; format=flowed; charset="iso-8859-1";
                   reply-type=original
   Hello Ron,
   I might be wrong about this but I think you should be separating the
   xmlns
   namespace strings with a blank.
   Kind regards,
   Loek Maartens.
   ----- Original Message -----
   From: "Ron PUTASKI" <Ron.PUTASKI@xxxxxxxxx>
   To: <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
   Sent: Friday, May 22, 2009 7:31 PM
   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 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
-----------------------------------------------------------------------