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.

 View Only
Expand all | Collapse all

Unknown Service exception

  • 1.  Unknown Service exception

    Posted Mon June 09, 2014 05:20 AM

    Hi,

    I have written a simple java service which connects to a given list of ISs(given as input) with the username and password provided(also being given as input) and am using

    actionOutput = Service.doInvoke( “wm.server.services”, “serviceDelete”, input ); to delete a service on all the ISs.

    flow service name picked at run time and creating an IData object -
    IData input = IDataFactory.create();
    IDataCursor inputCursor = input.getCursor();
    IDataUtil.put( inputCursor, “service”, actionService ); actionService— service that is to be deleted.

    when i run this service it successfully deletes the flow service on the same IS, but throws unknown service exception while deleting on other IS.

    Can anyone suggest what the problem might be ?

    Thanks,
    Sachin


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: Unknown Service exception

    Posted Mon June 09, 2014 05:36 AM

    Can you share the source code with the error screen shot…

    Also check the error log or server log for error dump if you see anything there…


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Unknown Service exception

    Posted Mon June 09, 2014 12:07 PM

    You have to use pub.remote:invoke (* services) when dealing with another IS (IS to IS) as your code works with current IS session only.

    HTH,
    RMG


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Unknown Service exception



  • 5.  RE: Unknown Service exception

    Posted Tue June 10, 2014 04:43 AM


  • 6.  RE: Unknown Service exception

    Posted Tue June 10, 2014 06:24 AM

    Can you also provide the information as how you are passing the inputs… may be screen shot showing all the inputs


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: Unknown Service exception



  • 8.  RE: Unknown Service exception

    Posted Tue June 10, 2014 07:18 AM

    It worked and am able to make it work for all the servers.

    just changed to

    actionOutput = con.invoke( “wm.server.services”, “serviceDelete”, input );

    from

    actionOutput = Service.doInvoke( “wm.server.services”, “serviceDelete”, input );


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 9.  RE: Unknown Service exception

    Posted Tue June 10, 2014 07:24 AM

    Thanks guys ! for your valuable feedback.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 10.  RE: Unknown Service exception

    Posted Tue June 10, 2014 07:39 AM

    Great… was checking on the same… :slight_smile:

    Last question… can you share the input data for the input fields… you can save the input data and attach the same…


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services