webMethods

 View Only
  • 1.  Automate MWS partner certificate update

    Posted Fri December 08, 2023 10:12 AM

    In webMethods version : 10.7, I would like to update client certs for a TN partner profile in mws, I have some 100’s of partner profiles. Is there any way we can automate it. Like calling some wm built in service to add or delete or update TN partner certificate or any MWS API’s that can be invoked to perform add or delete or update TN partner certificate ?


    #webMethods
    #MWS-CAF-Task-Engine
    #Integration-Server-and-ESB
    #Trading-Networks


  • 2.  RE: Automate MWS partner certificate update

    Posted Fri December 08, 2023 10:28 AM

    Hi Sandeep,

    please have a look at the TradingNetworks- Built-In-Services Reference.

    You will find a folder wm.tn.security documented there which might be related to your use case.
    The services are located under the WmTN package.

    Regards,
    Holger


    #MWS-CAF-Task-Engine
    #Trading-Networks
    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Automate MWS partner certificate update

    Posted Fri December 08, 2023 04:08 PM

    I have tried to build a service, that gets a (cer/p7b format) cert file from wM installation path and update the existing partner certficate.
    Below is the flow and error I am receiving any thoughts what might be reason for the error?

    image

    0006.1169 Error encountered in wm.tn.security:updateCertificateData. java.lang.ClassCastException [Ljava.lang.Object; cannot be cast to [[B <![CDATA[java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [[B at wm.tn.security.updateCertificateData(security.java:2405) at sun.reflect.GeneratedMethodAccessor351.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:404) at com.wm.app.b2b.server.invoke.InvokeManager.process(InvokeManager.java:759) at com.wm.app.b2b.server.util.tspace.ReservationProcessor.process(ReservationProcessor.java:39) at com.wm.app.b2b.server.invoke.StatisticsProcessor.process(StatisticsProcessor.java:53) at com.wm.app.b2b.server.inv...
    #Integration-Server-and-ESB
    #Trading-Networks
    #MWS-CAF-Task-Engine
    #webMethods


  • 4.  RE: Automate MWS partner certificate update

    Posted Mon December 11, 2023 03:36 AM

    Looking solely at the stacktrace, it looks like a data type compatibility issue. I would suggest you check the LOOP step i.e, the getFile and the utils:appendObjectList service .
    Check the outputs are and check if it matches the type that the updateCertificateData is expecting.
    -NP


    #MWS-CAF-Task-Engine
    #webMethods
    #Integration-Server-and-ESB
    #Trading-Networks


  • 5.  RE: Automate MWS partner certificate update

    Posted Mon December 11, 2023 07:22 AM

    Agree with @Holger_von_Thomsen , and from the error it does look like an Object Array is being sent to the tn updateCertificateData service when an array of byte arrays is being expected.

    -NP


    #webMethods
    #Integration-Server-and-ESB
    #MWS-CAF-Task-Engine
    #Trading-Networks


  • 6.  RE: Automate MWS partner certificate update

    Posted Mon December 11, 2023 11:46 AM

    It worked using “Service wm.EDIINT.util.mime:bytesToBytesList”:


    #webMethods
    #MWS-CAF-Task-Engine
    #Integration-Server-and-ESB
    #Trading-Networks


  • 7.  RE: Automate MWS partner certificate update

    Posted Mon December 11, 2023 06:41 AM

    Hi Sandeep,

    which service is behind utils:appendObjectList?
    I would prefer using services from the pub.list-folder in the WmPublic-package for this task.

    Regards,
    Holger


    #Integration-Server-and-ESB
    #webMethods
    #MWS-CAF-Task-Engine
    #Trading-Networks


  • 8.  RE: Automate MWS partner certificate update

    Posted Wed December 13, 2023 08:59 AM

    Can we Install self signed certificate, using wm.tn.security.addCertificateData ?


    #Integration-Server-and-ESB
    #Trading-Networks
    #webMethods
    #MWS-CAF-Task-Engine