tsprague
Posts: 3
|
Posted: 06/19/2007, 1:32 PM |
|
Has any one added code that referenced web services outside of Codecharge?
I am trying to add a web reference. Code charge recognises the object and the namespace it gived me errors when I publish.
|
|
|
andrefogelman
Posts: 117
|
Posted: 06/20/2007, 2:38 PM |
|
Did you register the assembly?
|
|
|
tsprague
Posts: 3
|
Posted: 06/21/2007, 1:22 AM |
|
its not actually a complied assembly. its a wsdl file.
I managed to do it in the following way:
1. I opened an ASP.NET web application project in Visual studio.
2. Created a Web Reference using the Add Web Reference... option. This lets you point to a wsdl file and auto generates the code to allow you to reference it.
3. Tested in Visual studio
4. Copied the resulting auto generated file (called Reference.cs) in the Web Reference folder into the App_Code folder on my Codecharge project.
I was then able to successfully refererence the web services objects.
I presume that the problem is something to do with the .NET JIT compiler. It doesn't auto compile things in the Web Reference folder.
If there is a better way of doing it let me know. I am happy to learn from those who are more experienced in these things...
|
|
|
|