none
WCF: DataContract to External webservice RRS feed

  • Question

  • Hi!

    I have a WCF service. It's connect to external Java web service. That service's xsd have some types. But I don't see its on my client side and in xsd my WCF service.

    [DataContract] attribute on types external service doesn't work.


    • Edited by S.Lakhvich Tuesday, September 17, 2013 1:13 PM
    Tuesday, September 17, 2013 1:11 PM

Answers

  • Hi S.Lakhvich,

    So your WCF service is the client-side which consumes the external java webservice, correct?

    how did you generate the WCF service client? Are you using "Add Service Reference" dialog or "svcutil.exe" tool?

    #Add Service Reference Dialog Box
    http://msdn.microsoft.com/en-us/library/bb386382.aspx

    #ServiceModel Metadata Utility Tool (Svcutil.exe)
    http://msdn.microsoft.com/en-us/library/aa347733.aspx

    After the WCF client proxy is generated, we can manually change the code it generated. for your case, would you provide more information about what kind of XSD types that are not generated as .NET class?  Also, for troubleshooting such issue, one common approach is to get a working java servie client and running it together with the .NET client. Then, use fiddler or other HTTP debugging tools to capture the HTTP request messages to see the difference between them. Then, we can try adjusting the .NET client proxy code (generated contract classes) accordingly.

    #Fiddler
    http://fiddler2.com/home


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Thursday, September 19, 2013 3:28 AM
    Moderator