Subject: Web Services Reference
Prev Next
You are not authorized to post a reply.

AuthorMessages
RichardUser is Offline
New Poster
New Poster
Posts:8

05/06/2008 11:24 AM  

I have created a new module on my local machine that gets all its data via a web service.

Can anyone epxlain how I can package up this module so that I can install it on a number of different portals?

How does each hosted portal reference the web service?

I have been pulling my hair out over this, searching everywhere on www for an answer.

It can't be a difficult thing to do can it?

I can't be the first one to want to do this ?

Please be careful with me though as I am a DNN rookie  !!!

Many thanks in advance.

Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

05/07/2008 10:11 AM  
If you have the references to the web service inside your application, it can just be installed on a new location and the reference is retained inside of the code.

The big thing with DNN is to make it easier you should NOT allow .NET to store the service URL in the web.config as it is too complicated to have users edit that for a module installation.

I do this with my Weather Conditions Service module.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
RichardUser is Offline
New Poster
New Poster
Posts:8

05/07/2008 10:31 AM  
That is good to know, but how do I do this.

Can I view the source for your Weather Conditions Service module (and dnn install file) so that I can understand how to do this?
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

05/07/2008 10:36 AM  
You sure can! You can download the source package from the product page!

http://www.mitchelsellers.com/Software/WeatherConditionsService/tabid/200/Default.aspx

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
RichardUser is Offline
New Poster
New Poster
Posts:8

05/07/2008 10:53 AM  
Thanks.

Now please bear with me here as I am still a rookie.

When I add a web service to my module project I get a folder created automatically (WSTravelAlert - the name I give the web service) and then 3 files inside the folder - ExternalProxy.disco, ExternalProxy.discomap & ExternalProxy.wsdl.

However when I look in the source code of your project all I see under web references is XmlWeatherService.

Am I doing something wrong?
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

05/07/2008 10:58 AM  
Are you using the WAP module template, or the WSP template? IE: are you using the app_code folder for your module code?

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
RichardUser is Offline
New Poster
New Poster
Posts:8

05/07/2008 11:41 AM  
Yes I am using the App_Code folder

Sorry is that WAP or WSP, I don't know the difference I'm afraid?
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

05/09/2008 8:51 AM  
That is the WSP (Web Site Project) model.

You can try just deploying those files with your module, which I'm guessing is what is needed.

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
Don StuberUser is Offline
New Poster
New Poster
Posts:2

07/29/2010 5:45 PM  
I am in the last throws of trying to convert a module that has a Web Reference from a WSP to a WAP. VS 2010 seems to generate a more extensive set of files for a Web Reference or a Service Reference. The .vb file was compiled into the .dll as expected. However, I can't tell is the .map and all the .datasource need to go into the module.zip file. If you know or could redirect me, I would appreciate it.

In case it helps, could you also make this link available again?

http://www.mitchelsellers.com/Software/WeatherConditionsService/tabid/200/Default.aspx

Don Stuber
Mitchel SellersUser is Offline
Site Admin/Owner
Guru
Guru
Posts:6089

07/29/2010 8:47 PM  
Don,

If you have a WAP module, you don't need ANYTHING extra for a web service.

The "WeatherConditionsService" module is available at http://www.iowacomputergurus.com under "Free Modules"

-Mitchel Sellers
Microsoft C# MVP, MCITP
Director of Development
IowaComputerGurus Inc.

View Mitchel Sellers's profile on LinkedIn

For shared hosting I recommend PowerDNN

This site is hosted on a Dedicated Server from PowerDNN.com

To get Guaranteed DNN Support check out our affordable DNN Technical Support Programs
chrisadamUser is Offline
New Poster
New Poster
Posts:3

08/30/2010 1:09 AM  

 A Web reference is a generated proxy class that locally represents the exposed functionality of an XML web service. The proxy class defines methods that represent the actual methods exposed by an XML web service. When the client application creates an instance of the proxy class, it is capable of calling the XML Web service methods as if the XML Web service were a locally available component. The programming language the proxy class is generated, is dependent upon the programming language of the active project to which the Web reference is added. However if you created a proxy using the tool wsdl.exe, you have the option to provide the program language.

At design time, the added reference enables the developer use the statement completion in the code editor using the IntelliSense. The actual implementation of the methods in the proxy class is comprised of code to package and send SOAP request message and to receive and un package any returned SOAP response message.

 

________________________________________________________________________

 

Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from SKG Technologies [url=http://www.skgtechnologies.com/]seo pecialist [/url]

You are not authorized to post a reply.
Forums >Development Discussion >DotNetNuke > Web Services Reference



ActiveForums 3.7