Re: XML-RPC
Re: XML-RPC
- Subject: Re: XML-RPC
- From: Gary Lang <email@hidden>
- Date: Mon, 29 Apr 2002 09:34:56 -0700
I used the gSOAP framework found at:
http://www.cs.fsu.edu/~engelen/soap.html
It took me 5 minutes to have my Cocoa code talking to Google after
following the minor steps below (which I have already submitted to the
developer who says they will go into the next release).
-g
1. To get the compiler, i.e. gsoap2.1.3 to build, I changed Makefile to
build as follows:
gcc symbol2.o error2.o y.tab.o lex.yy.o init2.o soapcpp2.o -ly -ll
-o $@
2. To get stdsoap2.c to work on the Mac, I made two small changes.
a) stdsoap2.h
Change
#ifndef WIN32
#include <netinet/tcp.h> /* for TCP_NODELAY */
#include <arpa/inet.h>
#endif
to
#if !defined(WIN32) && !defined(__APPLE__)
#include <netinet/tcp.h> /* for TCP_NODELAY */
#include <arpa/inet.h>
#endif
b) stdsoap2.c
Changed
#ifdef WIN32
strftime(soap->tagbuf, 1024, "%Y-%m-%dT%TZ", localtime(p));
#else
strftime(soap->tagbuf, 1024, "%Y-%m-%dT%TZ", localtime_r(p, &T));
#endif
To
#if defined(WIN32) || defined(__APPLE__)
strftime(soap->tagbuf, 1024, "%Y-%m-%dT%TZ", localtime(p));
#else
strftime(soap->tagbuf, 1024, "%Y-%m-%dT%TZ", localtime_r(p, &T));
#endif
That was all.
Hope this helps.
-g
On Monday, April 29, 2002, at 07:24 AM, Martin Kautz wrote:
Hello list,
I'm playing around with a small XML-RPC skript, written in PHP. Is there
somewhere an example to connect such a web service with Cocoa?
Second question: Anybody knows an example to load a xml-file via HTTP?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >XML-RPC (From: Martin Kautz <email@hidden>) |