duplicate request method names in .net proxy class + BizTalk

bala gangadhar vallapu 26 Reputation points
2023-09-22T17:41:31.92+00:00

we have XSD published as service in BizTalk, the end point is getting called by .net technology . When .net team try to consume the service using add service reference it creates the service.cs class library which has all the classes and methods for the fields or elements in the XSD . when they observed in the request and response class the method name is populated twice . Dotnet team have problem while generating request. please let me know how to overcome the issue in .net or in BizTalk to have only one method name populates in request and response classes.

User's image

User's image

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
349 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,438 questions
0 comments No comments
{count} votes

Accepted answer
  1. Krew Noah 500 Reputation points
    2023-09-23T10:16:07.53+00:00

    This issue might arise due to naming conflicts or service metadata misinterpretations. Here's a short way to address the issue:

    1. BizTalk Side: Review the WSDL generated by BizTalk. Ensure that operation names are unique and do not cause any conflicts.
    2. .NET Side: When adding the service reference, try using the "svcutil.exe" tool with the "/messageContract" option to explicitly control the generation of message contracts and avoid duplicate method names.
    3. Custom Naming: If possible, modify the names of the methods in the XSD/WSDL to ensure uniqueness, and then regenerate the proxy class in .NET.

    These steps should help in resolving the duplicate method name issue in the generated proxy class.

    3 people found this answer helpful.

0 additional answers

Sort by: Most helpful