Re: Code generation from WSDL?
Re: Code generation from WSDL?
- Subject: Re: Code generation from WSDL?
- From: Byron Wright <email@hidden>
- Date: Mon, 27 Mar 2006 18:04:02 -0800
Web Services on Mac using Objective-C are a PITA. WSMakeStub does not
generate classes for complex types and I also found myself manually
creating interfaces and WSMethodInvocations. Because WSMakeStub does
not generate classes for complex types you'll also find yourself
writing your own decode/encode from/to NSDictionary/CFDictionary
routines, this can get really complicated if your SOAP messages do
not have some sort of type identification values because
CoreWebServices doesn't support namespaces. You could alternatively
go with something like gSoap that will generate C/C++ which you can
wrap in ObjC. Also, if you have control of both ends of the service
you could use an alternative to SOAP / XML-RPC like Hessian
(www.caucho.com/hessian). There is an Objective-C implementation
(which I am the author of) at http://www.bluebearstudio.com/
hessianobjc. It's free under the Apache 2.0 license. If you don't
have control of both ends or have to use SOAP and are doing more than
a simple Hello World then I'll say, good luck with that!
-Byron
On Mar 27, 2006, at 3:50 PM, Joseph Heck wrote:
I haven't seen the original message for this yet, but I expect I
know what you've run into.
Unfortunately, WSMakeStubs generates code with at least one little
bug that bites you when working against your typical win32 web
service generated from Visual Studio. I have sort of an overview of
the issue posted in my blog archives at http://www.rhonabwy.com/mt/
archives/2005_06.html#002583
I have not, unfortunately, ever found a reasonable way around these
issues short of diving down directly to manipulating the
WSMethodInvocation method or just digging around directly in my own
XML generation. For working with a web service that requires SAML
tokens and the lot, I ended up generating my own stuff directly
from XML. Not ideal, but it was more efficient than attempting to
cram the frameworks into doing what I needed.
-joe
On Monday, March 27, 2006, at 01:30PM, Robert Walker
<email@hidden> wrote:
I don't know about the "complex types," but there is a tool that
generates "stub" files by reading WSDL. I use this tool for my Cocoa
application that communicates with web-services provided by my
WebObjects application.
This is a command line tool located in /Developer/Tools named
WSMakeStubs.
Run this from a terminal with:
./WSMakeStubs ?
to see usage details.
On Mar 26, 2006, at 9:09 PM, Scott Lehman wrote:
Hi,
I'm looking to make a client-side app that
communicates to the server via web services, and I'm
hoping there's a tool out there that will take a WSDL
file and generate classes for complex types to save
some development.
I did come across some tools for Java, but I'm looking
for any non-Java options that may be available.
Anyone have some pointers?
--
Robert Walker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40bluebearstudio.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden