Web Services Client in Cocoa
Web Services Client in Cocoa
- Subject: Web Services Client in Cocoa
- From: Jeff LaMarche <email@hidden>
- Date: Mon, 10 Feb 2003 13:51:25 -0500
I've been playing around with writing a web services client in Cocoa. I
wrote a very simple web service and installed it on a local copy of
TomCat with Axis. The service is correctly installed and running.
I ran WSMakeStubs on the wsdl and it generated my classes, but now I am
at a loss to actually get a result back from the web service. I read
the Gilmore article at O'Reilly's MacDevCenter, but until part 2 is
released, it isn't much help. It seems that no matter what I do, I
always get a null return value. The first thing I changed was to change
the endpoint from @"(null)" to the URL of my service
- (WSMethodInvocationRef) genCreateInvocationRef
{
return [self createInvocationRef
/*endpoint*/:
@"
http://localhost:8080/axis/services/Test?wsdl"
methodName: @"testService"
protocol: (NSString*) kWSSOAP2001Protocol
// missing encoding style - defaulting to RPC
style: (NSString*) kWSSOAPStyleRPC
soapAction: nil /* No SOAPAction header needed */
methodNamespace: NULL /* No Method Namespace specified */
];
}
I also tried it without the ?wsdl at the end.
I am attempting to invoke it like this:
id rtnval = [serviceTestService testService];
NSLog(@"%@", rtnval);
Has anyone successfully done this and have an idea what I might be
doing wrong?
TIA...
Jeff
_______________________________________________
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.