SOAP WebService error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
08-07-19 07:25 AM
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):
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-11-20 10:46 AM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
25-11-20 11:20 AM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
27-11-20 06:26 AM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-11-20 01:02 AM
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
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
30-11-20 02:03 PM
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
------------------------------

- « Previous
- Next »