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

Re: URL posting



   Yes. Its proving to be convincing more and more.
   I get the posting done successfully and does everything i want.
   But get below error for some reason. I could ignore it as its working
   the way i want it to be
   HTTP/1.1 201 Created
   Thanks,
   Musthafa

   On Mon, Aug 31, 2009 at 11:31 AM, Scott Klement
   <[1]sk@xxxxxxxxxxxxxxxx> wrote:

     Here is the message that your web service is sending back to you
     (from
     the debug file):
        <message>failed to convert file WEWEWEW</message>
     I don't know what that means, as I'm not familiar with your
     particular
     web service.  However, it's clearly receiving your request, it just
     doesn't like something about it (maybe something is wrong with your
     XML?
       hard to say.  I suggest talking to whomever owns the web
     service.)

   Mohamed Musthafa Safarulla wrote:
   >    Thanks. The time out issue is fixed by the network guy.
   >    Now I am posting a request to the URL

     >    [1][2]http://xx.xxx.xx.xxx/ffws/v1/ofax

   >    the request looks like
   >    <?xml version="1.0" encoding="UTF-8"?>
   >    <schedule_fax>
   >        <cover_page>
   >

     >
     <url>[2][3]http://xx.xxx.xx.xxx/ffws/v1/data/cover_pages/default.pd
     f</url

   >    >
   >            <enabled>false</enabled>
   >            <subject>First Web Service Fax</subject>
   >            <comments>This is our first web service fax.</comments>
   >        </cover_page>
   >        <sender>
   >            <name>musthafa</name>
   >            <organization>my Logistics</organization>
   >            <phone_number>1-730-326-6348</phone_number>
   >            <fax_number>1-730-226-6548</fax_number>

     >            <email_address>[3][4]mo.mo@xxxxxxx</email_address>

   >        </sender>
   >        <recipient>
   >            <name>somebody</name>
   >            <organization>my Logistics</organization>
   >            <fax_number>1-730-276-6573</fax_number>
   >            <phone_number></phone_number>
   >        </recipient>
   >        <attachment>
   >            <location>inline</location>
   >            <name>fax.txt</name>
   >            <content_type>application/pdf</content_type>
   >
   <content_transfer_encoding>base64</content_transfer_encoding>
   >            <content>SGVsbG8gV29ybGQh</content>
   >        </attachment>
   >        <max_tries>3</max_tries>
   >        <priority>3</priority>
   >        <try_interval>30</try_interval>
   >        <receipt>failure</receipt>
   >        <schedule_all_at></schedule_all_at>
   >    </schedule_fax>
   >    But i am getting the error saying that
   >    HTTP/1.1 400 Bad Request
   >    The debug log is attached.
   >    I am trying all possible combination on how i can use this
   product.
   >    Please help. Any pointer would be  of great help.
   >    Thanks,
   >    Musthafa
   >
   >    On Fri, Aug 28, 2009 at 9:43 PM, Scott Klement

   >    <[4][5]sk@xxxxxxxxxxxxxxxx> wrote:
   >
   >      The error message means exactly what it says:  HTTPAPI sent a
   >      connect
   >      request to the remote server, and didn't receive a response.
   >      This usually means that there's a firewall blocking your
   >      connection.
   >      Sometimes it means that you need to configure a proxy.  (Are
   you
   >      specifying a proxy for the other HTTP requests you're doing?)
   >      It could also mean a lot of other things, such as a routing
   error
   >      somewhere between your system and the destination system, or
   that
   >      the
   >      server is down.
   >
   >    Mohamed Musthafa Safarulla wrote:
   >    >    Addition:
   >    >    The is the debug log
   >    >    HTTPAPI Ver 1.23 released
   >    >    2008-04-24
   >    >    OS/400 Ver
   >    >    V5R2M0
   >    >
   >    >
   >    >    New iconv() objects set, PostRem=819. PostLoc=0.
   ProtRem=819.
   >    >    ProtLoc=0
   >    >    http_setauth():
   >    >    entered
   >    >    http_url_post():
   >    >    entered
   >    >    http_persist_open():
   >    >    entered
   >    >    http_long_ParseURL():
   >    >    entered
   >    >    DNS resolver retrans:
   >    >    2
   >    >    DNS resolver retry  :
   >    >    2
   >    >    DNS resolver options:
   >    >    x'00000136'
   >    >    DNS default domain:
   >    >    xxx.COM
   >    >    DNS server found:
   >    >    xxx.xx.x.186
   >    >    DNS server found:
   >    >    xxx.xx.x.126
   >    >    DNS server found:
   >    >    xxx.xx.xx.21
   >    >    SetError() #7: Timeout occurred while trying to connect to
   >    >    server!
   >    >    Thanks,
   >    >    Musthafa
   >    >
   >    >    On Fri, Aug 28, 2009 at 4:31 PM, Mohamed Musthafa Safarulla
   >

   >    >    <[1][5][6]mohamedmusthafa.safarulla@xxxxxxxxx> wrote:
   >    >
   >    >      Addition:
   >    >      I need authentication before post so i do like this
   >    >      Eval      Data = data in the for of XML
   >    >      callp     http_setauth(HTTP_AUTH_BASIC:
   >    >                  'user': 'password')
   >    >
   >    >      eval      rc=http_url_post(
   >

     >      >
     '[2][6][7]http://xx.xxx.xx.xxx/ffws/v1/ofax'

   >
   >    >                     :%addr(data): %len(%trimr(data)):
   >    >                     '/tmp/httptest.html')
   >    >      Here i get  a time out error. But when i try to do the
   same
   >    from
   >    >      Explorer this link works just fine and shows me the
   successful
   >    XML
   >    >      in return. Please help.
   >    >      Thanks,
   >    >      Musthafa
   >    >
   >    >    On Fri, Aug 28, 2009 at 4:13 PM, Mohamed Musthafa Safarulla
   >

   >    >    <[3][7][8]mohamedmusthafa.safarulla@xxxxxxxxx> wrote:
   >    >
   >    >      Hi,
   >    >      I am trying to make a http post using http_url_post.
   Actually
   >    this
   >    >      requires authentication. Also the url posting must be done
   in
   >    >      base64 encoding.
   >    >      I know I can do so much with Skotts API. Just wondering If
   >    could
   >    >      do this with HTTP API! Please share your expertise.
   >    >      --
   >    >      Thanks,
   >    >      Musthafa
   >    >
   >
   >
   ----------------------------------------------------------------------
   >    -
   >    This is the FTPAPI mailing list.  To unsubscribe, please go to:

     >    [8][9]http://www.scottklement.com/mailman/listinfo/ftpapi
     >
     -------------------------------------------------------------------
     ---
     >    -
     >
     >    --
     >    Thanks,
     >    Musthafa
     >
     > References
     >
     >    1. [10]http://xx.xxx.xx.xxx/ffws/v1/ofax
     >    2.
     [11]http://xx.xxx.xx.xxx/ffws/v1/data/cover_pages/default.pdf
     >    3. mailto:[12]mo.mo@xxxxxxx
     >    4. mailto:[13]sk@xxxxxxxxxxxxxxxx

   >    5. mailto:[14]mohamedmusthafa.safarulla@xxxxxxxxx

     >    6. [15]http://xx.xxx.xx.xxx/ffws/v1/ofax

   >    7. mailto:[16]mohamedmusthafa.safarulla@xxxxxxxxx

     >    8. [17]http://www.scottklement.com/mailman/listinfo/ftpapi
     >
     >
     >
     >
     -------------------------------------------------------------------
     -----

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

   --
   Thanks,
   Musthafa

References

   1. mailto:sk@xxxxxxxxxxxxxxxx
   2. http://xx.xxx.xx.xxx/ffws/v1/ofax
   3. http://xx.xxx.xx.xxx/ffws/v1/data/cover_pages/default.pdf
   4. mailto:mo.mo@xxxxxxx
   5. mailto:sk@xxxxxxxxxxxxxxxx
   6. mailto:mohamedmusthafa.safarulla@xxxxxxxxx
   7. http://xx.xxx.xx.xxx/ffws/v1/ofax
   8. mailto:mohamedmusthafa.safarulla@xxxxxxxxx
   9. http://www.scottklement.com/mailman/listinfo/ftpapi
  10. http://xx.xxx.xx.xxx/ffws/v1/ofax
  11. http://xx.xxx.xx.xxx/ffws/v1/data/cover_pages/default.pdf
  12. mailto:mo.mo@xxxxxxx
  13. mailto:sk@xxxxxxxxxxxxxxxx
  14. mailto:mohamedmusthafa.safarulla@xxxxxxxxx
  15. http://xx.xxx.xx.xxx/ffws/v1/ofax
  16. mailto:mohamedmusthafa.safarulla@xxxxxxxxx
  17. http://www.scottklement.com/mailman/listinfo/ftpapi
  18. http://www.scottklement.com/mailman/listinfo/ftpapi
  19. 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
-----------------------------------------------------------------------