tag:blogger.com,1999:blog-6245476510271728435.post2620503206096002700..comments2023-09-05T14:55:50.003+02:00Comments on Padcom's blog: Grails,CXF plugin and .NETMatthias Hryniszakhttp://www.blogger.com/profile/11432592442831476478noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-6245476510271728435.post-77279197803304425102012-11-01T19:25:01.811+01:002012-11-01T19:25:01.811+01:00Bond? Lucky. Unless... can I time travel to Novem...Bond? Lucky. Unless... can I time travel to November 9, 2012 here in the US?! hmm.Christianhttps://www.blogger.com/profile/05513931813929278030noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-31504543635886531602012-11-01T19:22:42.830+01:002012-11-01T19:22:42.830+01:00Oops I forgot to check in the other project's ...Oops I forgot to check in the other project's additional map method :). In Now.<br /><br />I Given that you did get output from the list response, I would think that any issues are getting have to do with core cxf. It can be a bit tricky to get all the annotations correct for JAXB, service, etc. to handle your responses. I call out a few of the gotchas in the plugin source readme page.Christianhttps://www.blogger.com/profile/05513931813929278030noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-3699282962648409472012-11-01T19:07:55.543+01:002012-11-01T19:07:55.543+01:00Anyways, I think I'm going to check pure CXF i...Anyways, I think I'm going to check pure CXF in a Spring application to verify if the actual issue lies with CXF itself or with the CXF-Grails integration. I'll let you know what I found out. But first - the new James Bond awaits!Matthias Hryniszakhttps://www.blogger.com/profile/11432592442831476478noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-2123523171734781222012-11-01T19:05:23.736+01:002012-11-01T19:05:23.736+01:00@Christian I ended up with the following output
1 ...@Christian I ended up with the following output<br />1 :: 1 Binders full of women.<br>2 :: 1 Binder?! I hardly know her!<br><br>Unhandled Exception: System.Web.Services.Protocols.SoapException: Message part {http://test/}getMaps was not recognized. (Does it exist in service WSDL?)<br> at System.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse (System.Net.WebResponse response, System.Web.Services.Protocols.SoapClientMessage message, System.Web.Services.Protocols.SoapExtension[] extensions) [0x00000] in <filename unknown>:0 <br> at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00000] in <filename unknown>:0 <br> at RemoteReportServiceService.getMaps () [0x00000] in <filename unknown>:0 <br> at (wrapper remoting-invoke-with-check) RemoteReportServiceService:getMaps ()<br> at cxf.TestService.testMaps () [0x00000] in <filename unknown>:0 <br> at cxf.TestService.Main (System.String[] args) [0x00000] in <filename unknown>:0 <br>[ERROR] FATAL UNHANDLED EXCEPTION: System.Web.Services.Protocols.SoapException: Message part {http://test/}getMaps was not recognized. (Does it exist in service WSDL?)<br> at System.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse (System.Net.WebResponse response, System.Web.Services.Protocols.SoapClientMessage message, System.Web.Services.Protocols.SoapExtension[] extensions) [0x00000] in <filename unknown>:0 <br> at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke (System.String method_name, System.Object[] parameters) [0x00000] in <filename unknown>:0 <br> at RemoteReportServiceService.getMaps () [0x00000] in <filename unknown>:0 <br> at (wrapper remoting-invoke-with-check) RemoteReportServiceService:getMaps ()<br> at cxf.TestService.testMaps () [0x00000] in <filename unknown>:0 <br> at cxf.TestService.Main (System.String[] args) [0x00000] in <filename unknown>:0 <br><br /><br />Any idea what that might be?Matthias Hryniszakhttps://www.blogger.com/profile/11432592442831476478noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-45396832973126455182012-11-01T16:10:35.188+01:002012-11-01T16:10:35.188+01:00I did a test of my own and was able to get the plu...I did a test of my own and was able to get the plugin working great with list and map type responses. Please see the project:<br /><br />https://github.com/ctoestreich/cxf-mono-test<br /><br />Let me know if there was some other scenario that you were having trouble with.Christianhttps://www.blogger.com/profile/05513931813929278030noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-56347987125483176042012-11-01T13:49:40.070+01:002012-11-01T13:49:40.070+01:00I will give it a whirl myself and see if I can pie...I will give it a whirl myself and see if I can piece it together. Thanks for checking.Christianhttps://www.blogger.com/profile/05513931813929278030noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-29714516442130274732012-10-31T17:16:39.513+01:002012-10-31T17:16:39.513+01:00@Christian I tried it out with Mono 2.10 but no ci...@Christian I tried it out with Mono 2.10 but no cigar. I couldn't create a service that returns an array (or List) of objects other than primitives.Matthias Hryniszakhttps://www.blogger.com/profile/11432592442831476478noreply@blogger.comtag:blogger.com,1999:blog-6245476510271728435.post-20850822772136465742012-10-30T21:36:58.852+01:002012-10-30T21:36:58.852+01:00If you get the time, you might want to attempt thi...If you get the time, you might want to attempt this scenario again with the new 1.x cxf plugin. Support should be available for lists and maps now. I am curious how this works with .net anywho.<br /><br />http://grails.org/plugin/cxfChristianhttps://www.blogger.com/profile/05513931813929278030noreply@blogger.com