cancel
Showing results for 
Search instead for 
Did you mean: 

Can't create .Net web service

Former Member
0 Kudos

I am trying to create a web service in 12.5 but the .Net wizards are all disabled. I guess I need to install some .Net stuff from Microsoft but I don't know what. I have the same issue in 12.6 and earlier versions as well.

Accepted Solutions (1)

Accepted Solutions (1)

ricardojasso
Participant
0 Kudos

You need to create a .NET Web Service target first.

Answers (3)

Answers (3)

Former Member
0 Kudos

Ricardo & Arnd were correct. I had to create a .Net Web Service Target, I had a regular target.

Now I get the following when I click the "Run Web Service" or "View WSDL" buttons on the project.

HTTP Error 404.3 - Not Found

The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Most likely causes:

  • It is possible that a handler mapping is missing. By default, the static file handler processes all content.
  • The feature you are trying to use may not be installed.
  • The appropriate MIME map is not enabled for the Web site or application. (Warning: Do not create a MIME map for content that users should not download, such as .ASPX pages or .config files.)
  • If ASP.NET is not installed.
Former Member
0 Kudos

I fixed this problem, ASP.Net wasn't installed into IIS.

Former Member
0 Kudos

Oh yeah ... I forgot that you were new to PB - LOL!

Former Member
0 Kudos

I have the proof of concept working.

I copied the WSDL url from the webservice project to the proxy project and pasted it in. It worked but the project prefers a file.

How do you save the WSDL to a file?

How does database connections work in the webservice? Do I have to connect in every function that needs to do database work?

Former Member
0 Kudos

Hi Roland;

1) For the WSDL, just place the URL in a web browser and that should display the WSDL syntax. Just copy this to NotePad & save it as an xxxx.WSDL file.

2) You can pool DB connections by using ADO.net. or ODBC. Check the pooling options on these connectivity mechanisms.

  You can also use the Activate / Deactivate vs Constructor / Destructor approach to control your DB connections.

FYI: I have aWS presentation on buikding PB Classic based WS that might be of interest.

FWIW: Check out my STD WebService framework & WS examples for more ways to address this & other challenges.

Regards ... Chris

arnd_schmidt
Active Contributor
0 Kudos

Hi Roland,

you have to create a .NET target first. Within that you can create this new .NET projects.

hth

Arnd

Former Member
0 Kudos

Hi Roland;

   Did the installer ask you about installing the .Net prerequisites?

FYI: I have never seen this situation!

Regards ... Chris