WSMethodInvocationRefAndSOAPActionHTTPHeader
last edited September 1, 2004 09:50:35 (206.195.77.1)
| |
|---|---|
| Edit / New / Search | Quick Links: Home / Recent Changes / Glossary / Jobs / Forums / Help |
|
I've discovered how to make SOAP calls with the WSMethodInvocationRef and related functions, but I cannot make a SOAPAction? appear in the outgoing HTTP header. Does anyone know how to do this?
It seems like it ought to be
but there is no such constant as kWSSOAPMethodSOAPAction. -Rob
You can create a kWSHTTPExtraHeaders property for the invocation which is a CFDictionary of { key (CFString), val (CFString) } pairs. See: http://developer.apple.com/documentation/Networking/Conceptual/WebServices/3_ref_folder/chapter_3_section_33.html for details. The snippet below should be enough to get you going.
The headers dictionary could also contain @"MyFunkyApp? 1.0 (Macintosh; Mac OS X)" with key @"User-Agent" if you want fame in server logs :) -- Merman
I still have troubles getting soap to work, keep getting exception from my call. It seem's that something is missing but i had several sleepless nights because of this anyone please help, i would be very gratefull. --JJ
These examples are great and I've been able to use these as a model to call my .NET web services, so thanks to everyone for contributing. I need to take things a little further, now. So far all the examples are sending parameters objects as strings. Can someone post a sample that sends an array of strings (or even better a structure of some sort that includes an array of strings) as one of the parameters? I've tried a few things but I'm failing miserably. Thanks, PH | |
| Edit / New / Search | Quick Links: Home / Recent Changes / Glossary / Jobs / Forums / Help |