Webservice with MojoPortal?

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
9/7/2011 1:53:09 PM
Gravatar
Total Posts 6

Webservice with MojoPortal?

I'm working on a project that requires calls to a web service that returns XML. I then transform that XML using the Transform class with XSLT and place the string of contents into a <div> content holder in the aspx file.

With mojoPortal, do I just add the Webservice reference inside the entire solution project or do I create a C# class and add the Webservice reference there?

Second question is then how do I place that XSLT content into a div tag of a page so that when the user clicks on the page navigation, the OnLoad function will grab the XSLT and display the content?

Thank you!

9/7/2011 2:36:24 PM
Gravatar
Total Posts 550

Re: Webservice with MojoPortal?

Hi,

It is better that create a separated project and add web references to it. The client proxy codes that generate by VS.NET will be compiled in you project and you can copy your project dlls to bin folder of the mojoportal.web project. 

Hope Helps,

Asad

9/7/2011 3:28:51 PM
Gravatar
Total Posts 6

Re: Webservice with MojoPortal?

Thank you for the reply. I'm a bit new to all of this. Please help me better understand w/ maybe a little step by step type of instructions.

Are you saying I should create a C# Class project, and in there, I reference the webservice as I would in my regular project now?  Then I compile and move the DLL to mojoPortal?

What's next and how to utilize that DLL to place the content in the page?

My other question is: in my C# Class project, do I put my XSLT there or do I put my XSLT in the mojoPortal project?

Thank you and I know that's a lot to ask. :)

You must sign in to post in the forums. This thread is closed to new posts.