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
  • 1.  SMTP Mail host

    Posted Mon October 12, 2015 10:20 AM

    Hi, i’m creating a service that sends a mail using pub.client:smtp service. It’s been working fine until today by getting the mailhost from extended setting “watt.server.smtpServer”.

    Now it seems to have stopped and I am getting the following error:

    Could not run ‘smtp’
    com.wm.app.b2b.server.ServiceException: [ISC.0068.9110] Invalid MAILHOST field: null

    However the mailhost is still in extended settings.

    Any ideas what could be causing this?


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 2.  RE: SMTP Mail host

    Posted Mon October 12, 2015 11:04 AM

    Hi , May be the server is not running up or you may given wrong hostname in the service .

    OR else you can check the server connection also

    PING the SMTP server by using the command prompt.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: SMTP Mail host

    Posted Mon October 12, 2015 11:13 AM

    The server can be pinged and that seems ok.

    We’ve got a service that will read the value in extended settings, and pull it back which can then be mapped into the SMTP service, but it’s quite weird that it’s not doing this by default as it used to.

    It just seems to be the pub.client:smtp that can’t get the watt.server.smtpServer value by default. Hard coding the values works so it can’t be the mail server.


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: SMTP Mail host

    Posted Mon October 12, 2015 05:36 PM

    Calvin – Error is clearly stating that issue with mail host, you just try to give the mail host details manually ( hardcode it ) without calling a service which pulls data from IS extended setting.

    Thanks.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: SMTP Mail host

    Posted Fri October 16, 2015 11:47 AM

    Or else you can create a global variable for SMTP host and use in your code


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 6.  RE: SMTP Mail host

    Posted Wed October 21, 2015 02:03 PM

    Hi,

    there is a Build-In-Service for this:
    pub.utils:getServerProperty

    Set the input “propertyName” to “watt.server.smtpServer” and use the output as the input for pub.client:smtp.

    See Build-In-Services-Guide for details.

    watt.server.smtpServer is a default property which just needs to be set under “Settings → Ressources” in IS-Admin.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General