# RubyCocoa Web Services

**URL:** <https://www.ruby-forum.com/t/rubycocoa-web-services/90281>\
**Category:** Ruby\
**Created:** [March 27, 2007, 10:56am UTC](https://www.ruby-forum.com/t/rubycocoa-web-services/90281 "2007-03-27T10:56:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [March 27, 2007, 10:56am UTC](https://www.ruby-forum.com/t/rubycocoa-web-services/90281/1 "2007-03-27T10:56:55Z")

</div>

Hey all

If I wanted to access a web service within ruby cocoa, would i need to  
do…

OSX::NSBundle.bundleWithPath("/path/to/WebServiceCore.framwork").ocm\_send(:load)

and then use the OOC bridge within that, or is it possible to use the  
nice ruby wrapper SOAP4R? If i wanted to use that wouldnt i need to make  
it a descendant of NSObject?

Thanks

Tim

---

<div class="post-metadata">

**Author:** ![timperrett](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@timperrett](https://www.ruby-forum.com/u/timperrett)\
**Post date:** [March 28, 2007, 2:27am UTC](https://www.ruby-forum.com/t/rubycocoa-web-services/90281/2 "2007-03-28T02:27:37Z")

</div>

On 2007/03/27, at 17:57, Tim P. wrote:

> If I wanted to access a web service within ruby cocoa, would i need to  
> do…
> 
> OSX::NSBundle.bundleWithPath("/path/to/  
> WebServiceCore.framwork").ocm\_send(:load)

You can use require\_framework to load a framework with RubyCocoa 0.10  
or later. Though it may be not worked for WebServieCore:

OSX.require\_framework “CoreGraphics”

> and then use the OOC bridge within that, or is it possible to use the  
> nice ruby wrapper SOAP4R? If i wanted to use that wouldnt i need to  
> make  
> it a descendant of NSObject?

SOAP4R never depend on NSObject/Cocoa/Mac OS. Why do you need to do  
that?  
that is you can just use it regardless of NSObject.
