[Ves] Accessing a SOAP web service on iOS

Belsey, Daniel (UK) Daniel.Belsey at baesystems.com
Wed Apr 25 12:15:29 EDT 2012


Hi Pat,

This worked perfectly, it now compiles and runs as expected. It seems so simple now that you've said it!

Many thanks again,

Dan

From: Pat Marion [mailto:pat.marion at kitware.com]
Sent: 25 April 2012 16:12
To: Belsey, Daniel (UK)
Cc: ves at public.kitware.com
Subject: Re: [Ves] Accessing a SOAP web service on iOS

Hi Dan,

The KiwiViewer xcode project file recursively adds all VTK directories to the header search path.  You could modify the xcode project file so that it only adds the required directories and avoids vtkmodular/Utilities/vtklibxml2.  As an temporary workaround, maybe try moving the vtkmodular/Utilities/vtklibxml2 out of the way so that xcode doesn't add it in the recursive search, and see if you can get things to compile.

Pat


On Wed, Apr 25, 2012 at 11:05 AM, Belsey, Daniel (UK) <Daniel.Belsey at baesystems.com<mailto:Daniel.Belsey at baesystems.com>> wrote:
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.
********************************************************************

_______________________________________________
Ves mailing list
Ves at public.kitware.com<mailto:Ves at public.kitware.com>
http://public.kitware.com/cgi-bin/mailman/listinfo/ves

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20120425/b7fe1b85/attachment-0002.html>


More information about the Ves mailing list