Answered

Invalid Cast on Integration

I am trying to execute an integration with a C# based web service that has an input type of System.Guid and when I try to pass a Constant defined as a String to the I get an

Invalid Cast from System.String to System.Guid

Is there anyway to define my input as type Guid

Cheers

Comments (9)

photo
0

Dear Robin,

In order to solve this issue, please send us:

  • Bizagi version
  • Screenshots of the problem

Thank you in advance

photo
0

I have included the attached document that shows the mapping within studio, the error that I get in the process and the SOAP UI XML/RAW based versions of the post.

The version of Bizagi Studio I am running is 10.6.1.2075

photo
0

Dear Robin,

We can see that you need to install the IIS correctly according this article: http://help.bizagi.com/bpmsuite/en/index.html?prerequisites_iis.htm

Regards

photo
0

Can you explain why this is, as the call to all other web services works and the call to the one that wraps the web service works.

I can't see how the configuration of IIS would change a String to a Guid.

photo
0

I still need an answer/resolution to the above problem.

IIS is configured correctly and as stated would have no bearing on an invalid cast error as that is a translation/conversion issue.

For reference the web services in question are our core web services for interaction with our Customer Information Database, and if I can't initiate a GetCus or UpdateCus service, then it makes Bizagi pretty well redundant as all processes we want to implement are customer specific.

photo
0

Dear Robin,

In order to reproduce this issue in our labs, please send us an example of the Guid.

Thank you in advance

photo
0

The following is an example of the Guid that I need to pass to the web service.

This can be passed with or without the "-"s

D8E009A0-E090-4816-A892-035A327B6943

This is the unique id that identifies my application to the web service.

photo
0

Just to add to this I can confirm that having run Fiddler on my machine, I can communicate with the Web Service when I execute a GetPulse to this Web Service, that does not require a GUID as it is just providing me with a status response of Success. Treat this as a IsItRunning type test.

However when I try and run the service using my Identifier as a Constant defined as a string then there is no outbound message trapped by Fiddler to the web service, and therefore this is failing prior to making the request.

I did this test as I noticed the response I get also had a GUID and wanted to check whether it errored on the outbound request, or errored on the inbound translation.

photo
0

Dear Robin,

A member of our support team will contact you

Regards