Blue Prism Product

last person joined: 26 minutes ago 

Chat about Blue Prism products
Expand all | Collapse all

SOAP WebService error

  • 1.  SOAP WebService error

    Posted 07-08-2019 02:25

    Hi everyone,

    I'm having problems with adding a 3rd party webservice to BP. Apparently there are parts in the webservice that BP can't digest. However, when running the webservice on another software (SOAP UI) it seems to work just fine. Here's the link to the api:

    https://swea.riksbank.se/sweaWS/wsdl/sweaWS.wsdl

    And here's the error thrown by BP (6.5):

    'Could not understand the web service described at https://swea.riksbank.se/sweaWS/wsdl/sweaWS.wsdl - please make sure the url you provided refers to a valid WSDL document
    Object reference not set to an instance of an object.'

    The question is what might be wrong with the api? Is this encoding, or some unsupported data types? Or could it be something completely different?

    Thanks in advance for any input


    ------------------------------
    Michal Kowalczyk
    RPA Developer
    Digital Workforce
    Europe/Warsaw
    ------------------------------


  • 2.  RE: SOAP WebService error

    Posted 07-09-2019 00:19
    It could be possible due to the following reasons:

    - The WSDL document contains links that could not be resolved.
    - It contains some links for which the user doesn't have access to.

    I would suggest you create a support ticket with Blue Prism Global Customer Support team (support@blueprism.com) so that this issue can be investigated thoroughly.  


    ------------------------------
    Karan Sareen
    Solution Support Engineer
    Blueprism
    Australia/Sydney
    ------------------------------



  • 3.  RE: SOAP WebService error

    Posted 07-11-2019 03:30

    Thanks Karan, I did contact the support like you suggested.

    Apparently Blue Prism does not yet support SOAP 1.2 bindings if there is only 1.2 binding in the web service.

    Hopefully it will change with future releases.



    ------------------------------
    Michal Kowalczyk
    RPA Developer
    Digital Workforce
    Europe/Warsaw
    ------------------------------



  • 4.  RE: SOAP WebService error

    Posted 02-24-2020 07:51
    ​Hi Michal,

    Did you figure out any workaround for this problem, could you please share with us.

    Thanks

    ------------------------------
    Deepak BV
    ------------------------------



  • 5.  RE: SOAP WebService error

    Posted 03-04-2020 07:49
    Have you guys tried utilizing HTTP VBO ? in one of the we were not able to utilize the Webservice future of BP but HTTP object worked fine, the only thing is, it will not show you available method as an action so you need to configure it manually and use it.

    Try that it works !

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 6.  RE: SOAP WebService error

    Posted 05-18-2020 07:04
    Hi Ishan
    Could you please share some instructions or guide about how to do it?
    thanks in advance.
    Best regards,
    Ayyoub

    ------------------------------
    Ayyoub Benoudina
    Analyst-Sol Development
    Herr
    Europe/Brussels
    ------------------------------



  • 7.  RE: SOAP WebService error

    Posted 05-18-2020 10:17
    Hi Ayyoub,

    Which WebSerive you are trying to utilize ? may be if you can provide more details of your issue i can help.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 8.  RE: SOAP WebService error

    Posted 05-18-2020 10:18
    I'm trying to consume Soap12    which is not supported by Blue prism.
    I really appreciate your help 
    thanks
    Ayyoub

    ------------------------------
    Ayyoub Benoudina
    Analyst-Sol Development
    Herr
    Europe/Brussels
    ------------------------------



  • 9.  RE: SOAP WebService error

    Posted 05-19-2020 01:38
      |   view attached
    Can you refer the attached document and see if that helps you ?
    Basically i want to understand what errors you are facing while you are trying to run the WS from BP HTTP object ?
    Are you able to run them using Postman/SOAP UI ?
    what is the application name  like Salesforce, Google or some internal application ?

    best way to consume a service in BP would be first check them using a third party tool then replicate same in Blueprism.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------

    Attachment(s)

    docx
    API configuration.docx   50 KB 1 version


  • 10.  RE: SOAP WebService error

    Posted 05-19-2020 01:59

    Hi Ishan

    I'm really thankfull for your help and the document, however please allow me to ask you some extra questions since I don't  have experience with Web services.

    1. In soap Web services the method  should always be "Post" right? 
    2. the Address URL here will be the basic url or the one with wsdl
    3. is it normal that I can't see headers in the form WSDL? 
    4. for the body: I have to copy paste the entire envelop or the body only?
    5. could you please tell me where I can find Username and Password (for http request inputs)

    Thanks again and best regards,
    Ayyoub



    ------------------------------
    Ayyoub Benoudina
    Analyst-Sol Development
    Herr
    Europe/Brussels
    ------------------------------



  • 11.  RE: SOAP WebService error

    Posted 05-19-2020 02:25
    Hi Ayyoub,

    i tried to answer your questions, please see below,

    1. In soap Web services the method  should always be "Post" right? - No, depending upon your requirement it would change, if you want to read something from application you will have to utilize Get, if you want to Create or Update something you may have to use POST or PUT. please refer more here https://www.w3schools.com/tags/ref_httpmethods.asp

    2. the Address URL here will be the basic URL or the one with wsdl - No, this would be Endpoint URL, it is not like https://swea.riksbank.se/sweaWS/wsdl/sweaWS.wsdl
    3. is it normal that I can't see headers in the form WSDL? - Yes, identifying Header, URL and method name is bit difficult but you have tools to do that, download Wizdler Chrome extension, that will help you to get Required parameters.
    4. for the body: I have to copy paste the entire envelop or the body only? - Entire envelope
    5. could you please tell me where I can find Username and Password (for http request inputs) - That is something your applcation owner would be able to provide you, in WSDL you can only see how to authenticate user, it will not have actual values of username and password, in many cases application credential and WebService credential can be same, if you have access to application(via User interface) try those credential to authenticate your self.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 12.  RE: SOAP WebService error

    Posted 05-19-2020 04:47

    Hi Ishan 

    Thank you so much for your time and help, it i very kind from you.

    I will consider all the points that you gave me.
    one more question:
    The client could test the request with soap ui without providing a username and password in the request and he got the value "ID" back.
    he also sent me the request form with a header which contains only "to" and "action:....getID" and there were no credentials in there.

    Does it mean that this service doen't require credentials? or it is not necessary?



    ------------------------------
    Ayyoub Benoudina
    Analyst-Sol Development
    Herr
    Europe/Brussels
    ------------------------------



  • 13.  RE: SOAP WebService error

    Posted 05-19-2020 11:31
    it might be possible, some services does not require authentication.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 14.  RE: SOAP WebService error

    Posted 11-19-2020 05:54
    Edited by Niall Murphy 11-19-2020 05:54
    I'm trying to use the SOAP Web Services wizard to open a wsdl I have stored on my local drive.

    It is able to open one service then I get the message:

    Only Soap bindings are supported at this time, this web service does not have any soap bindings

    Looking in the xml I see the following:
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

    Does this mean this wsdl is not currently supported by Blue Prism as indicated above?

    ------------------------------



  • 15.  RE: SOAP WebService error

    Posted 11-23-2020 08:08
    It might be possible Blue prism's SOAP Web Service Wizard does not support this but you can still utilize SOAP services using HTTP object.

    Try to import that WSDL into SOAPUI tool or try to call WebService using Postman tool, and you can do same in Blueprism.


    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 16.  RE: SOAP WebService error

    Posted 11-24-2020 08:28

    Hi, 

    I'm trying to consume SAP HANA Cloud "Journal Entry - Post (Synchronous)"

    I was able to import the WSDL with Blue Prism SOAP Web Service feature, however I'm struggling on how to make the input work in a collection format.

    https://help.sap.com/viewer/b978f98fc5884ff2aeb10c8fdeb8a43b/2011.500/en-US/92fed0579212c525e10000000a4450e5.html

    Any Input would be highly appreciated



    ------------------------------
    Met Vonghiran
    Consultant
    Deloitte
    Asia/Tokyo
    ------------------------------



  • 17.  RE: SOAP WebService error

    Posted 11-25-2020 05:35
    Hi Met,

    When we use collection in WS, your labels would be the fields and field values would be the row in collection, in your case(i took some code from the site u shared),

    i think your Input collection should have 1 field called as JournalEntry of type Collection, this collection would 4 fields, OriginalReferenceDocumentType orf type text, BusinessTransactionType oftype text, item of type collection and CreditorItem of type collection, each text field would have its value like BKPF and RFBU, and each collection will again have 1 row for respective fields. This sounds very confusion but i think this is how you need to implement, or i would say since you have successfully ran this using POSTMAN simply use the same body and utilize the HTTP object, HTTP request.
    <JournalEntry>
                   <OriginalReferenceDocumentType>BKPFF</OriginalReferenceDocumentType>
                   <BusinessTransactionType>RFBU</BusinessTransactionType>
                   <Item>
                      <ReferenceDocumentItem>1</ReferenceDocumentItem>
                   </Item>
                   <CreditorItem>
                      <ReferenceDocumentItem>2</ReferenceDocumentItem>
                   </CreditorItem>
                </JournalEntry>


    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 18.  RE: SOAP WebService error

    Posted 11-29-2020 20:02

    Hi Ishan Mahajan

    Thank you for your reply. I was able to achieve it!.

    I tried the SOAP import feature, but I couldn't get my head around the collection setting. So I went with your second advice.

    Thank you so much!​​



    ------------------------------
    Met Vonghiran
    Consultant
    Deloitte
    Asia/Tokyo
    ------------------------------



  • 19.  RE: SOAP WebService error

    Posted 11-24-2020 10:58
    Hi Ishan, thank you for the reply.

    I've been able to connect to the service via Postman using some supplied headers, Basic encoded authentication and a user name and password. It's POST only.

    Trying to implement that in BP I've got a HTTP Response object here with the data I want to send in the BODY - currently in test format with hard coded values

    Does it look correct?  How would I go about adding parameters to what is currently in the BODY to POST the information I need to send rather than just dummy data?




    ------------------------------
    N M
    Software Developer
    Europe/London
    ------------------------------



  • 20.  RE: SOAP WebService error

    Posted 11-24-2020 14:04
    Hi,

    this is a very interesting discussion for me.
    Would it be possible to use BP HTTP object  for a SOAP web service that uses headers with WS-Security 
    I do not have much experience in VB .NET and C# , so I am looking for some less less technically challenging journey.
    These services are not supported by Blue prism by default as  I found out..
    Thanks
    Jiri


    ------------------------------
    Jiri Hlucil
    Blue Prism Developer
    Sberbank CZ, a. s.
    Europe/Prague
    ------------------------------



  • 21.  RE: SOAP WebService error

    Posted 11-25-2020 05:46
    Hi Jiri,

    Yeah, by default BP does not supports that but i have tried credential based authorization, in that case we need to use HTTP object and HTTp request, enter the credential in username and password section and select "Force Pre Authorization".

    This objects does the the HTTP call, which is happening with postman and other tools, we just need to figure out how to make that call.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 22.  RE: SOAP WebService error

    Posted 11-25-2020 05:39
    HI NM, 

    Since you were able to do that using Postman, i would suggest you to copy entire body from Postman and paste it in Body section of BP, if you used Form data in Post for input, i think try clicking on "Code" link in Postman, understand how Postman is sending this data when you click send button and replicate same to BP.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 23.  RE: SOAP WebService error

    Posted 11-25-2020 06:20
    Hi Ishan,

    I was able to get a successful response using the POST method in a HTTP Request via Blue Prism using test/xml but with hard coded values designed to be successful.

    My problem now is I want to replace the hard coded values with data item values passed from my app. I'm not sure how to get those hard coded items into my BODY to replace the test ones.

    ------------------------------
    N M
    Software Developer
    Europe/London
    ------------------------------



  • 24.  RE: SOAP WebService error

    Posted 11-27-2020 01:26
    Hi NM,

    Did you tried using calculation stage ? i guess that should solve your problem, you need to send input variables from the process/Apps and utilize a calculation stage to prepare body, like below

    "<Item>
                      <ReferenceDocumentItem>" & [This would be your data item] & "</ReferenceDocumentItem>
                   </Item>"
    and this entire body you can save to a data item and utilize that to call Web service.

    ------------------------------
    Ishan Mahajan
    India
    ------------------------------



  • 25.  RE: SOAP WebService error

    Posted 11-30-2020 09:03
    Hi Ishan, thanks, I just got time to look at this again and I may need some more help.

    I have a data item called [Account Number] (text). 

    I used the calculation stage as suggested and it populates Data Item Data3 with a current value of 
    <item><ReferenceDocumentItem=537105</ReferenceDocumentItem></Item>.

    That is the correct Account Number.

    I go to my existing Soap Envelope and replace the hard coded Account Number with the following:

    <RequesterInformation>
    <AccountNumber>[Data3]</AccountNumber>
    <EndUser>
    <CompanyName>Test</CompanyName>
    </EndUser>

    However, I receive a bad formed error message back. What steps am I missing, not understanding?

    ------------------------------
    N M
    Software Developer
    Europe/London
    ------------------------------



Share


FAQ

Blue Prism is intelligent automation — business-developed, no-code automation that pushes the boundaries of robotic process automation (RPA) to deliver value across any business process in a connected enterprise.

A combination of RPA with expanded cognitive and AI capabilities, Blue Prism is different than other automation technology on the market. With one Blue Prism license, you gain instant access to an already AI equipped digital workforce, along with the tools you need to build and delegate automations. Click here for more information on Blue Prism and Intelligent Automation.
To learn more about how Blue Prism can help your organization and how much it will cost to get started, please Contact our Sales department.
Blue Prism can be downloaded from our customer portal. If you would like to consume or download any material it is necessary to create an account on the Portal. Once you have registered, you can access the download options for Blue Prism here.
Yes! Installed on your own machine and supported by our training materials and product documentation, you can use all the features of the full enterprise product for free with our Blue Prism Trial – giving you the opportunity to learn the basics before moving to a full production implementation. Click here for more information and to download the trial.
Yes! You can access our known issue list for Blue Prism from our Support Portal.
Regardless of your industry, Blue Prism’s Digital Workforce can adhere to strict governance and compliance standards without limiting productivity. Click here for more information on how your industry can benefit from Blue Prism.