-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to retrieve an array of result #4
Comments
Hi there! I've been using SudzC with arrays extensively, and it works. If you want help with your problem, you'll need to be much more specific. When doesn't it work? Is it SOAP 1.1 or 1.2 you're working with? Do you have a test case you could upload? Also, are you sure that the array in question contains more than one element? |
Hi , I have the same problem with buptstehc. I used sudzc several times with .net web service and its perfect. But now I try to use with java web service and got error. The error is sudzc can't deserialize the list object and return nil. If I log the result it shows only first element. I tried the solutions of this page but it doesn't work. http://code.google.com/p/sudzc/issues/detail?id=19 Thanks |
Fixed that on https://github.com/teonivalois/sudzc and already asked for a Pull Request. :) |
Hi teonivalois, Thanks for your reply , I generated the objective c codes from your repository but result is same. You can see the result screen shot at http://b1205.hizliresim.com/x/b/5lngx.png . And response xml is : http://b1205.hizliresim.com/x/b/5lnx1.png I think the problem is there isn't a root tag for array. |
Hi, Are you using ARC? Can you post the URL here? Regards, Teoni Valois On Wed, May 9, 2012 at 6:22 PM, yeteryayeter <
|
Hi, uvesten! I am using objective-c with ARC. I found the weird thing in the generated SoapRequest.m:
if([deserializeTo respondsToSelector: @selector(initWithNode:)]) { So I think this is the problem where it is. |
It was solved in my version: http://github.com/teonivalois/sudzc PS.: Desculpe a brevidade. Esta mensagem foi enviada através do meu dispositivo móvel.Atenciosamente, Em 09/05/2012, às 22:16, [email protected] escreveu:
|
Hi teonivalois, sorry for late response I tried some changes on service side but I had no success and I don't use Arc You can find the service information and sample project on below. service url : http://deneme-ws.btopcu.cloudfoundry.com/JAX-WS/Gateway I call method in deailViewControllers viewDidload method. ProjectLink: https://rapidshare.com/files/285801436/ChopTest.zip Additional info: 1- self.serviceUrl = @"http://deneme-ws.btopcu.cloudfoundry.com/JAX-WS/Gateway"; 2- change xmlns="%@">", ns]; to xmlns:ws="%@">", ns]; [s appendFormat: @"ws:%@%@/ws:%@", method,[params stringByReplacingOccurrencesOfString:@"&" withString:@"&"], method]; Thanks |
Hi, Simply go to your CH_TestWSImplService.m line 60 and change the [... desserializeTo: nil] parameter to [... desserializeTo: [CH_responseBean alloc]] and it will work! :) |
Hi , Thanks for answer , you solved my problem. And yes it is really too simple. Last question how can i fix this issue in sudzc source code. |
Hi yeteryayeter, This issue is not occurring with my services. |
teonivalois,
< soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:rfc:functions"> Thank you for your time! |
Dear teonivalois |
Hi, I noticed that sudzc only retrieve the first element in the returned array result. so how can i did it for all? thanks!
The text was updated successfully, but these errors were encountered: