Francesco Geri

Il blog di Francesco Geri
posts - 54, comments - 50, trackbacks - 37

My Links

News



Anch'io metto nel mio blog cose che scrivo così, tanto per fare, tanto per condividere miei appunti, senza prendermi la briga di garantirne l'infallibilità, né l'assoluta correttezza, senza pretese e con grande umilté.

Quanti mi hanno visto dal 25/10/2007:
...dettagli

Che libro leggo in questo periodo?*

L'Affittacamere - Valerio Varesi
* L'immagine è presa da IBS (http://www.ibs.it), spero non me ne vogliano...

Archives

Post Categories

Altre

Blogs

Creating Custom Web Service for Sharepoint 2007 (2)

Come fare a creare un proprio Custom Web Service da far girarare in Sharepoint 2007?


Mi ero cimentato tempo fa nel tentativo di creare un mio Custom Web Service da mettere in Sharepoint 2007 (tutta la storia di quello sfortunato tentativo la trovi qui).

Nel mio nuovo tentativo (accettando un piccolo compromesso) ho trovato un modo per poter otterene (quasi) il risultato.

Il mio desiderio era quello di poter creare un Web Service myWebService raggiungibile ad un indirizzo del tipo:
http://myMoss07Server/_vti_bin/myWebService.asmx

 

Non sono riuscito a fare questo, ma sono comunque riuscito a mettere il mio web service sulla macchina di Shaorepoint e farlo funzionare.

 

I passi sono i seguenti:

  1. Creo il web service myWebService in un web site che voglio, ad esempio nella mia macchina;
  2. Ne faccio il deploy direttamente dentro il web site di Sharepoint, in una virtual directory creata al suo interno (in MOSS07 non ho più bisogno di impostare un path da non intercettare come facevo per il filtro ISAPI di Sharepoint 2003)

In questo modo il mio web service sarà raggiungibile all'indirizzo:
http://myMoss07Server/myVirtualDir/myWebService.asmx

 

Ultimo dettaglio: l'applicazione associata alla virtual directory che ho creato gira con l'application pool "Sharepoint".

Print | posted on giovedì 31 agosto 2006 11.36 | Filed Under [ MOSS07 ]

Feedback

Gravatar

# re: Creating Custom Web Service for Sharepoint 2007 (2)

Hi Francesco,

I had the same problem as you when deploying my custom web service into the _vti_bin folder i.e. 'Could not create type' error message.

I solved this by changing the Class attribute in my .asmx file from

Class="MyWebService"

to

Class="MyWebService, MyWebService" where the first value is the name of the class and the second is the name of the assembly to look for the class (where your .dll is called MyWebService.dll)

Maybe this is also your problem?

Cheers
Claire
02/10/2006 2.55 | Claire
Gravatar

# re: Creating Custom Web Service for Sharepoint 2007 (2)

un'altro sharepointista ;-)
07/01/2007 19.14 | stefan demetz

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 3 and 1 and type the answer here:

Powered by: