Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 14 Pomógł: 0 Dołączył: 4.03.2009 Ostrzeżenie: (0%)
|
Witam i pozdrawiam
Mam pewną książkę jest w niej opisany dostęp do serwisu Łebowego Amazon.W książce jest między innymi taki tekst: Cytat Web services are getting a lot of hype. In the end, however, they are simply an HTTP request and response whereby each may be carrying XML data. So using a Web service from Cocoa is simply a matter of being able to send HTTP requests and receive responses. It also may require generating and parsing XML. i jest kawałek programu: Kod // Get the string and percent-escape for insertion into URL NSString *input = [searchField stringValue]; NSString *searchString = [input stringByAddingPercentEscapesUsingEncoding: NSUTF8StringEncoding]; NSLog(@"searchString = %@", searchString); // Create the URL (Long string broken into several lines is OK) NSString *urlString = [NSString stringWithFormat: @"http://ecs.amazonaws.com/onca/xml?" @"Service=AWSECommerceService&" @"AWSAccessKeyID=%@&" @"Operation=ItemSearch&" @"SearchIndex=Books&" @"Keywords=%@&" @"Version=2007-07-16", AWS_ID, searchString]; NSURL *url = [NSURL URLWithString:urlString]; NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReturnCacheDataElseLoad timeoutInterval:30]; Teraz moje pytanie: Czy w ten sposób można wywołać odpowiedź kaźdego serwisu, przy pomocy tego przydługiego adresu URL wpisanego np. w przeglądarce? |
|
|
|
hop [inne][XML]Serwisy Łebowe SOAP.Jak napisać klienta ? 1.12.2009, 20:08:23
Spawnm nie, musi być napisany soap server u danej strony ... 1.12.2009, 21:09:15
korro Nie można.
Serwis internetowy musi udostępniać tak... 1.12.2009, 21:10:18
hop Dziękuję za posty
CytatNie można.
Serwis internet... 1.12.2009, 21:35:45 
korro Cytat(hop @ 1.12.2009, 22:32:16 ) No ... 1.12.2009, 21:36:55
hop Ale serwisy łebowe obsługują wywołania przez HTTP ... 1.12.2009, 22:07:44
thek Skoro znasz API to niby co za problem odpowiednio ... 1.12.2009, 22:17:33
korro @thek: jednak jest coś z filozofa :]
Wracając do ... 1.12.2009, 23:37:29
hop Witam. Mam nowe pytanie.Z tamtym się już uporałem.... 3.12.2009, 15:07:51 ![]() ![]() |
|
Aktualny czas: 25.12.2025 - 02:28 |