Can I integrate a native webservice in a cuyahoga module?
Like consuming an existing webservice from a Cuyahoga module? That sure is possible. Just let the module controller talk to the webservice proxy.
Sorry,I explained wrong. I want to make this:
I want to offer a webservice from my module that provides data by webservice for use in an external application.
YKS;
Yes you can do this quiote easily.
The asmx of just like the aspx - a manifest to represwent the end point.
TO fidn the web reference hower you may have to change teh modules default page
Also, you may have to check the URL rewriter code and regex to work correctly.
There is a also a redriect that the core does when a new module is loaded. This si required for Castle and is a long story.
So you shoudl test that the rediect does not interfere with whatever client you are thinking of using to access the web service.
Hope that helps.
gedw99
gedw99YKS;
Yes you can do this quiote easily.
The asmx of just like the aspx - a manifest to represwent the end point.
TO fidn the web reference hower you may have to change teh modules default page
Also, you may have to check the URL rewriter code and regex to work correctly.
There is a also a redriect that the core does when a new module is loaded. This si required for Castle and is a long story.
So you shoudl test that the rediect does not interfere with whatever client you are thinking of using to access the web service.
Hope that helps.
gedw99
Does anybody have an example asmx that they can share?
Also, is the asmx already part of cuyahoga so it has access to nhibernate, user info and all the other goodies.
Eli
The .asmx is just an extension to indicate that the file/webservice is a webservice and should be handled as a webservice by ASP.Net. You can just add an .asmx and maybe you should change some stuff gedw99 mentioned above. In an .asmx file (or in fact the codebehind) it is possible to access nHibernate, User info etc. But you should build this yourself.
Thanks Elfie.
I implement a webservice in Cuyahoga_md_forms in contrib.
YKSThanks Elfie.
I implement a webservice in Cuyahoga_md_forms in contrib.
Thank YKS, exactly what I was looking for:
http://cuyahogacontrib.svn.sourceforge.net/viewvc/cuyahogacontrib/Cuyahoga.Modules.Forms/trunk/Web/WebService.asmx.cs?revision=104&view=markup
Very loosely related, these links might come in handy if/when we start getting deeper into webservices with cuyahoga:
http://blogs.msdn.com/astoriateam/ - ms exposing data (ado.net) as webservice
http://astoria.mslivelabs.com/ - ms exposing data (ado.net) as webservice
http://andersnoras.com/blogs/anoras/archive/2007/07/12/the-mean-fiddler-plays-on.aspx
- idea about how to expose nhibernate as a webservice
http://sourceforge.net/projects/meanfiddler/
- implementation (start of atleast) of astoria for nhibernate
(note, I have not looked at the code if that's actually what it does)
Eli
In few days we realese a new version of cuyahoga.modules.form.These realise contain new features and optimize of code.