• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: XML-RPC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: XML-RPC
  • Next by Date: Memory management question
  • Previous by thread: Re: XML-RPC
  • Next by thread: using IB views as templates to be inserted in other views
  • Index(es):
    • Date
    • Thread