IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

HTTP put error

  • 1.  HTTP put error

    Posted Thu July 17, 2003 12:56 AM

    Hi,
    I am trying to implement uploading a document on the another webMethods server using http put. But I am getting the following error.

    com.wm.app.b2b.server.ServiceException: com.wm.net.NetException: [B2BCORE.0064.9324] Server Error: Not Implemented
    at pub.client.http(client.java:756)

    The HTTP port are enabled on the server and I can download the files on the same server.
    I am using pub.client.http service with method as put.

    Has anyone any idea what is going wrong here.

    Thanks
    RC


    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport
    #webMethods


  • 2.  RE: HTTP put error

    Posted Thu July 17, 2003 03:30 AM

    Looking at the docs for pub.client:http it says that put is a valid method but I suspect that it is not implemented/supported, as indicated by the error you’re seeing. None of the information about the other parameters to http talks about put, though they mention the other methods such as post, get, head, etc.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: HTTP put error

    Posted Thu July 17, 2003 05:00 PM

    Are you sure that the remote server supports the PUT operation?


    #webMethods
    #webmethods-Protocol-and-Transport
    #Integration-Server-and-ESB


  • 4.  RE: HTTP put error

    Posted Thu July 17, 2003 06:14 PM

    Eduardo, The HTTP port is enabled on that server.
    How can I varify if the server supports put operation or not.

    Rob, What difference does it makes if I use Post or Get or Put as a method in http.

    Thanks
    RC


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: HTTP put error

    Posted Thu July 17, 2003 07:00 PM

    [url=“HTTP/1.1: Method Definitions”]http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html[/url] describes all the http methods. Take a look at section 9.6 for a discussion of the fundamental differences between put and post.

    I think the only difference of meaning in this situation, however, is that the exception “Server Error: Not Implemented” indicates that put is not supported by IS.


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 6.  RE: HTTP put error

    Posted Thu July 17, 2003 07:54 PM

    Which type of server are you putting to?

    FYI – The Integration Server only supports HEAD, GET, and POST operations at this time.


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: HTTP put error

    Posted Thu July 17, 2003 08:37 PM

    From the first post:
    “…implement uploading a document on the another webMethods server using http put.” So it sounds like the put is being attempted to an IS box.


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 8.  RE: HTTP put error

    Posted Thu July 17, 2003 10:16 PM

    Sorry, I guess I should of read the message a little closer…

    The error message you’re getting is definitely from the remote IS.


    #webMethods
    #Integration-Server-and-ESB
    #webmethods-Protocol-and-Transport


  • 9.  RE: HTTP put error

    Posted Fri July 18, 2003 12:51 AM

    Thanks Rob and Eduardo,
    Using Post I could able to connect to the remote server.
    But I could not able to submit the data on the remote server.
    I am Posting the message thru data/bytes input to http service.
    Is there any other way I need to give input to the http service.
    Also we are planning to send big files using the same process.
    In that case what is the best way.
    To use stream object or to use bytes.

    Thanks
    RC


    #Integration-Server-and-ESB
    #webMethods
    #webmethods-Protocol-and-Transport


  • 10.  RE: HTTP put error

    Posted Fri July 18, 2003 01:02 AM

    I am trying to invoke a remote service (On IS server B) using the client of IS server A. I am using http invoke to do this from client.
    The remote service accepts body (record) as an input (output of http service).
    Somehow I am not able to post the data to the remote service using the http URL.
    Is there a way we can test out this directly from the browser.
    I need to know how can I submit the data using http URL to a remote server.

    Thanks
    RC


    #webmethods-Protocol-and-Transport
    #webMethods
    #Integration-Server-and-ESB