Solved

Error invoking webserice: Exception has been thrown by the target of an invocation

I have tried start webservice from bizagi and recived this error message:

  1. Error Invoking Web Service. Url: http://xxxxx/SUD.1cws?wsdl, Method: PoluchData Error: Exception has been thrown by the target of an invocation. There was an error while trying to serialize parameter SUD:DataStructure. The InnerException message was 'Member NomerReshen in type Proxy_DE31B1D22A7A12B72CB975EA3764ECDC.DataStructure cannot be serialized. This exception is usually caused by trying to use a null value where a null value is not allowed. The 'NomerReshen' member is set to its default value (usually null or zero). The member's EmitDefault setting is 'false', indicating that the member should not be serialized. However, the member's IsRequired setting is 'true', indicating that it must be serialized. This conflict cannot be resolved. Consider setting 'NomerReshen' to a non-default value. Alternatively, you can change the EmitDefaultValue property on the DataMemberAttribute attribute to true, or changing the IsRequired property to false.'. Please see InnerException for more details. Member NomerReshen in type Proxy_DE31B1D22A7A12B72CB975EA3764ECDC.DataStructure cannot be serialized. This exception is usually caused by trying to use a null value where a null value is not allowed. The 'NomerReshen' member is set to its default value (usually null or zero). The member's EmitDefault setting is 'false', indicating that the member should not be serialized. However, the member's IsRequired setting is 'true', indicating that it must be serialized. This conflict cannot be resolved. Consider setting 'NomerReshen' to a non-default value. Alternatively, you can change the EmitDefaultValue property on the DataMemberAttribute attribute to true, or changing the IsRequired property to false.


I think that is a problem of web service. But the developer of webservice says that this service works good from other program. Who is right? Probably I must do something in Bizagi?
Trace:

  1. 2017-09-14 11:02:37.657 None INFO CONNECTORS---------- INTERFACES---------- Bizagi SOA Request Mapping
  2. 2017-09-14 11:02:37.688 None INFO CONNECTORS---------- INTERFACES---------- Bizagi SOA Request
  3. 2017-09-14 11:02:37.735 None INFO CONNECTORS---------- INTERFACES---------- Bizagi SOA Request Transformed



Comments (1)

photo
1

Dear Anton,

When configuring Web service invocations in Bizagi, you may rely on several features for error control and diagnostics.

One of these features is the use of Traces whenever you detect there is an issue with the Web service invocation, and you wish to retrieve further detail.

Web service traces

Whenever you are debugging a Web service invocation (in Development environments) or whenever you wish to retrieve further detail about a failed invocation, you may choose to turn on the WS Connector traces.

wstrace_all

For further information: http://help.bizagi.com/bpm-suite/en/index.html?studio_wstracing.htm

Check the results and resolve the problem. This problem usually happens because of WS settings.

Regards