Workflow and ServiceDesk Community

 View Only
Expand all | Collapse all

How to create webservice component when certificate is involved ?

  • 1.  How to create webservice component when certificate is involved ?

    Posted Dec 06, 2017 04:55 AM

    Hi

    I don't know how start on creating this webservice component, due to the involvement of a certificate.

    I have a URL for the service on the internet, but I don't know how to the certificate part on creation of the webservice component in the generator part.

    Next step is to publish the project and get the proper validation by the certificate there also.

    Anyone tried this scenario and maybe can enlight me on how to proceed ?

    Best Regards Bo



  • 2.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 06, 2017 02:25 PM
    Have your tried with the Generator and you're getting an error? What is the error? You can generate against a static ?WSDL file too.


  • 3.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 05:41 AM

    Hi Alex

    We have imported the certficate in the Windows Cert store, so that should be in place.

    You are proberly right about the static WSDL file, the service have hierachi of XML and XSD files that defines the service.

    If I try to use the WSDL file provided from the company that provide the service, it just returns, that the service can't be found and alot of XML references missing.

    Can you just recieve all that info from the webservice itself, by calling https://service.com/xxxx/yyy/1?wsdl , if you have the right permissions ?

    BR Bo

     



  • 4.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 05:49 AM
    You should be able to, Can you browse the service in IE? What message do you get in the generator if you use the URL?


  • 5.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 05:59 AM
    About the Web Service Caller generator https://support.symantec.com/en_US/article.HOWTO62257.html Web Service Generator https://www.symantec.com/connect/videos/web-service-generator Video - Web Service Generator https://www.symantec.com/connect/forums/video-web-service-generator - http://www.screencast.com/t/HyfrVZ0heER


  • 6.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 06:24 AM

    Hi Alex

     

    Error : Cannot get request from URL: Logicbase.Components.WebserviceCaller.URLReference There is an error in XML document(0,0)

     

    BR Bo



  • 7.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 06:42 AM

    Thx Alex for the videos

    I have implemented webservices before, which was easy, due to URL was working with a standard UserID/password validation.

    In this case I have certificate, invokation text and URL.

     



  • 8.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 11, 2017 05:27 PM
    Can you test it outside of Workflow, i.e. using another tool like SOAP UI (https://www.soapui.org/), make sure it works on the WF Server with that first to rule out any other issues like firewalls, closed ports etc You could use Fiddler (https://www.telerik.com/fiddler/) or Wireshark (https://www.wireshark.org/) to see exactly what is happening.


  • 9.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 13, 2017 05:45 AM

    Hi

     

    I have been talking to the serviceprovider's support, they do not support WSDL retreival for the webservice.

    I been given a SOAP envelop example as where URL is inside and invokation context.

    Does any component in WF support such call, I have no experience with that SOAP stuff.

    Example.

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:kom="http://serviceplatformen.dk/xml/wsdl/soap11/CprService/2/" xmlns:invctx="http://serviceplatformen.dk/xml/schemas/InvocationContext/1/">

    <soapenv:Header/>

    <soapenv:Body>

    <kom:callGCTPCheckServiceRequest>

    <invctx:InvocationContext>

    <invctx:ServiceAgreementUUID>ServiceAgreementUUID</invctx:ServiceAgreementUUID>

    <invctx:UserSystemUUID>UserSystemUUID</invctx:UserSystemUUID>

    <invctx:UserUUID>UserUUID</invctx:UserUUID>

    <invctx:ServiceUUID>e3f26293-803e-4b8f-8a15-674a4f8abaad</invctx:ServiceUUID>

    <invctx:AccountingInfo></invctx:AccountingInfo>

    </invctx:InvocationContext>

    <kom:gctpMessage><![CDATA[

    <Gctp v="1.0">

    <System r="CprSoeg">

    <Service r="navne3">

    <CprServiceHeader r="navne3">

    <Key>

    <Field r="PNR" v="0000000000"/>

    </Key>

    </CprServiceHeader>

    </Service>

    </System>

    </Gctp>

    ]]>

    </kom:gctpMessage>

    </kom:callGCTPCheckServiceRequest>

    </soapenv:Body>

    </soapenv:Envelope>



  • 10.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 13, 2017 07:35 AM

    What do they support?

    Do they have a REST API?

    Workflow - REST Generator



  • 11.  RE: How to create webservice component when certificate is involved ?

    Posted Dec 14, 2017 05:59 AM

    No rest api