[Ves] Accessing a SOAP web service on iOS
Belsey, Daniel (UK)
Daniel.Belsey at baesystems.com
Wed Apr 25 11:05:38 EDT 2012
Hi again,
Thanks for the help earlier - unfortunately I've run into another problem I don't fully understand!
Having got the message box appearing correctly, I've now been asked to call a simple method from a web service; it's written in .NET, and the wsdl is converted to object-C source code using a tool called Sudzc ( http://sudzc.com/ ). Sudzc works fine with a simple, blank test program, but when following the tutorial to merge it into the Kiwiviewer xcode project, the problems begin.
I believe - though I'm honestly not sure - that the problem is because the generated source, which calls a library called TouchXML, uses libxml2; as does VTK. When the Sudzc tutorial says "the code should now compile", instead I get >150 errors all along the lines of
Lexical or Preprocessor Issue
Invalid token at start of a preprocessor expression
Pointing at the line
#include "xmlversion.h"
In a file
.../vtkmodular/Utilities/vtklibxml2/include/libxml/tree.h
I'm guessing that this tree.h shouldn't be being called, as it's a different version of libxml2 to what TouchXML (presumably) uses. If this seems likely, are there any workarounds for this? I'm completely new to xcode, and although it includes /usr/include/libxml2 it doesn't seem to be using only files from there if it's reaching the tree.h above. Or, if this isn't likely to be the case, could you offer any advice to fix this?
Alternatively - and I suspect this is the more likely route of action - are there other methods of 'consuming' a SOAP server that are known to be compatible with VES/VTK? Again, this isn't an area of expertise, and no-one in the building seems to know much about it either, so I apologise if this is obvious! I've seen mention of things like wsdl2objc, but it looks as if there've been more problems than successes with it.
Thanks in advance (again!)
Dan
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20120425/b0db0f11/attachment-0001.html>
More information about the Ves
mailing list