Handle JAXB @XMLIDRef in .NET

后端 未结 1 1715
不思量自难忘°
不思量自难忘° 2021-02-11 23:26

I\'m writing a web service using jax-ws. One of web service\'s methods returns bean, which contains reference to its parent. To prevent cyclic references I\'m using JAXB @XMLID

1条回答
  •  臣服心动
    2021-02-12 00:07

    Out of the box Microsoft's tools won't do the job for you. You'll have to ask Microsoft to change the

    wsdl generation tools. E.g.:

    • wsdl.exe: http://msdn.microsoft.com/library/7h3ystb6(VS.80).aspx
    • svcutil.exe: http://msdn.microsoft.com/en-us/library/aa347733.aspx

    In a recent project I had to work around the short comings of these tools and modified the generated code using a Basic Script fixing what was not generated the way needed (in our case incompatibilities with the Java side wsdl generation)

    0 讨论(0)
提交回复
热议问题