WCF Serialization problems with WSDL file created by Java tools

前端 未结 5 1245
甜味超标
甜味超标 2021-02-05 12:15

My team is tasked with getting several in-house developed .NET client applications to connect to some new Java web services. The Java web service is a third party, vendor suppli

5条回答
  •  无人共我
    2021-02-05 12:45

    Use svcutil.exe utility with the /wrapped option on to generate proxy classes.

    This will create slightly different classes then those created though Visual Studio in a way described by Ladislav Mrnka here. Resulting proxies should be free from the XmlAttribute issue when using on the client side.

    Example:

    svcutil /t:code wsdl.xml /out:wsdl.cs /serializer:XmlSerializer /wrapped
    

提交回复
热议问题