Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

remotely calling a wcf service which hosted in a sp 2013 server box

$
0
0

hi,

 I have a requirement to insert metadata properties into a doc lib including a file[ upload file operation] on a remote sharepoint 2013 server. this upload file and inserting metadata includes a  managed metadata column . hence when i used Copy.asmx, its fails to insert/fill  taxonomy column in my SP 2013  doc lib. since it does not have the propertytype in the copy.asmx WS method. [ i did not try with RPC approach]

so i tried with another approach :

 Write a WCF service from the SP 2013 server which contains the normal SP Object Model insert an item into the doc lib which includes taxonomy dll and its  sessions/termset/term objects, and deploy the WCF in the SP2013 server's iis within a separate site .

What my thoughtprocess is, if i call this wcf service from my remote appln  [ its  a .net based product ] and if i pass the parameters to this wcf service , this task can be performed instead of depending upon SP web services.

But when i  tested with this approach, i am unable to debug / enter into the using( spsite osite = new spsite() )

which is in the  wcf service code and i am getting error on that line.

so, would like to  get clarification on this, in  order to avoid  copy.asmx /lists.asmx  WS usage, cant we use this approach.

this approach is correct or not ?

help is appreciated.




Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>