Error in custom Web Service: DATREF_NOT_ASSIGNED
I have created a new BO and Web Service. There is only one required element in the BO, but unless I make the Create call with all elements populated with a value, I get a DATREF_NOT_ASSIGNED error.
Ideas?
Got it figured out. Was missing an association check in BeforeSave
Similar Messages
-
Custom web service in SharePoint 2010
Hi,
I have developed one custom web service and deployed in inside 14 hive Layout folder. I have to consume this custom web service in WCF REST services. This WCF REST service will be consumed in to HTML 5 and javascript application (Presentation Layer). Here
is the code for Custom web service :
[WebMethod]
public string[] GetSponsorList()
string url = "https://ptmdev.bpiper.com/";
//string strUserName = "ravikant";
string sponsorTitle = string.Empty;
string[] arrTitle;
string[] myArray;
DataTable dtSponsor = new DataTable();
string error = string.Empty;
ArrayList myArrayList = new ArrayList();
try
dtSponsor.Columns.Add(new DataColumn("sValue", typeof(string)));
dtSponsor.Columns.Add(new DataColumn("sText", typeof(string)));
using (SPSite site = new SPSite(url))
using (SPWeb web = site.OpenWeb())
//SPUserToken userToken = web.AllUsers[strUserName].UserToken;
SPWebApplication webApplication = SPContext.GetContext(web).Site.WebApplication;
SPSiteCollection siteCollections = webApplication.Sites;
int i = 0;
if(web.CurrentUser!=null)
myArrayList.Add("User:"+web.CurrentUser.LoginName);
else
myArrayList.Add("Null User..");
foreach (SPSite siteCollection in siteCollections)
if (siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages))
if (siteCollection.Url.ToString().ToLower().Contains("/sponsor/"))
sponsorTitle = siteCollection.RootWeb.Title;
if (string.IsNullOrEmpty(sponsorTitle))
arrTitle = siteCollection.Url.Split('/');
sponsorTitle = arrTitle[arrTitle.Length - 1];
dtSponsor.Rows.Add(new object[] { siteCollection.Url, sponsorTitle });
i = i + 1;
siteCollection.Close();
catch (Exception ex)
error = ex.Message;
myArrayList.Add(error);
if (dtSponsor.Rows.Count == 0)
myArrayList.Add("No Data available 101");
myArrayList.Add("No Data available 102");
myArrayList.Add("No Data available 103");
for (int i = 0; i <= dtSponsor.Rows.Count - 1; i++)
for (int j = 0; j <= dtSponsor.Columns.Count - 1; j++)
myArrayList.Add(dtSponsor.Rows[i][j].ToString());
myArray = (string[])myArrayList.ToArray(typeof(string));
return myArray;
Above code will return a string array of SiteCollection URLs and Title. Th issue is siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages)
logic is failed and due to this string array does not return desired result.
web object is not containing users information due to that DoesUserHavePermissions logic is
failing.
Urgent help is needed.
Thanks,
RaviHi,
According to your post, my understanding is that you have issue about siteCollection.RootWeb.DoesUserHavePermissions(SPBasePermissions.ViewPages) logic when you custom web service.
You can use siteCollection.RootWeb.DoesUserHavePermissions( SPContext.Current.Web.CurrentUser, SPBasePermissions.ViewPages)
to check whether it works.
In addition, you can use a RunWithElevatedPrivileges delegate.
For more information, you can refer to:
“Attempted to perform an unauthorized operation” and SPWeb.DoesUseHavePermissions
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Refer classes of Microsoft.Office.Policy dll in Custom web service sharepoint
Hi ,
I have created a custom web service which refers to Microsoft.Sharepoint dll and Microsoft.Office.Policy dll.
Added reference tags to these two assemblies in disco file
deployed this web service to _vti_bin.
An error occurred during the compilation of the requested file, or one of its dependencies. The type or namespace name 'RecordsManagement' does not exist in the namespace
'Microsoft.Office' (are you missing an assembly reference?)
This dll is already in present in GAC not sure where else should we be copying this dll to?
Regards,
Harika
harika kakkireniHi,
Please try to remove the reference of the Microsoft.Office.Policy.dll then add reference it again and rebuild you project.
Also try to enable “In-Place Records Management” site collection feature.
More information:
http://techtrainingnotes.blogspot.com/2010/01/sharepoint-2010-assemblies-and.html
http://msmvps.com/blogs/windsor/archive/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010.aspx
Best Regards
Dennis Guo
TechNet Community Support -
XML Parser Error while creating Web service Client using JAX RPC
hello evryone,
Im facing XML Parser Error while creating web service client using JAX RPC. Im using Net Beans IDE for development purpose. I have wrote configuration file for client. Now i want to create Client stub. However i dont know how to do this in Net Beans. So i tried to do it from Command promt using command :
wscompile -gen:client -d build -classpath build config-wsdl.xml
here im getting Error:
error parsing configuration file: XML parsing error: com.sun.xml.rpc.sp.ParseException:10: XML declaration may only begin entities
Please help me out.
Many thanks in advance,
KaceeCan i use the client generated using jdeveloper 11g to import into the oracle forms 10g, i.e., form builder 10g. Currently this is the version we have in our office.
-
ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http
I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
when browsed through some of the messages they point to setting Oracle Wallet Manager.
I am trying to connect
Any idea on how to resolve this issue ?
your input is appreciated.
Thanks
RaviDuplicate post ... please ignore.
-
ERROR DEPLOYING A WEB SERVICE (SOA Order Booking application)
Hi everyone...
I got some problem here, I hope somebody help me...
So...
I've quite laboriously managed to get SOA Suite installed and I'm half way through the deployment of the order
booking demo, and encountered an error that I can't find a reference to in
online searches. I'm up to the step "4. Deploy the Credit Service application"
and get the following error:
Operation failed with error:
Error compiling :/home/oracle/product/10.1.3.1/OracleAS_6/j2ee/home/applications/SOADEMO-CREDITS
ERVICE-CreditService-WS/WebServices: Error instantiating compiler: Web service
artifact generation failed:oracle.classloader.util.AnnotatedClassFormatError:
Bad version number in .class file
Invalid class: org.soademo.creditservice.types.com.globalcompany.ns.credit.CreditCard
Loader: SOADEMO-CREDITSERVICE-CreditService-WS.web.WebServices:0.0.0
Code-Source:
/home/oracle/product/10.1.3.1/OracleAS_6/j2ee/home/applications/SOADEMO-CREDITSE
RVICE-CreditService-WS/WebServices/WEB-INF/classes/
Configuration: WEB-INF/classes/ in
/home/oracle/product/10.1.3.1/OracleAS_6/j2ee/home/applications/SOADEMO-CREDITSE
RVICE-CreditService-WS/WebServices/WEB-INF/classes
Dependent class: oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaAnalyzer
Loader: oracle.ws.client:10.1.3
Code-Source: /home/oracle/product/10.1.3.1/OracleAS_6/webservices/lib/wsclient.jar
Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml
in /home/oracle/product/10.1.3.1/OracleAS_6/j2ee/home/oc4j.jar
Deployment failed
Elapsed time for deployment: 53 seconds
#### Deployment incomplete. #### 20/06/2007 11:00:22
So, does anyone can tell me what am I have to do?!
Regards...I am currently having the same problem with the SOA Order booking demo application. All of the installation went fine until I tried to run the web client. Whenever I try to access http://localhost:8888/soademo, I get a 500 internal server error.
Did you ever find a solution for this problem?
Thanks in advance!
Marita -
Error activating a web service based datasource ( BI 7.3)
Hi,
While activating a datasource based on web services i get the below error:
"Internal error while deleting web service"
"Error when activating datasource"
As per one of the posts, we need to activate the services listed under "bc" ( path : virtualhost->sap->bc ) in tcode: SCIF.
There are many services listed under the "bc" node that are inactive. Please let me know which are the services that needs to be activated under this node.
Alternatively pls also suggest if there is any other way to solve this issue.
Thanks.Hi Jayanthi,
Please get help from Basis Team.
Regards,
Kuldeep Jain -
FIM MA Export errors. There is an error executing a web service object creation.
While checking for the permission, we have figured that the Built-In Synchronization account is being deleted by an Expiration Workflow.
FIM MA Export errors. There is an error executing a web service object creation.
While checking for the permission, we have figured that the Built-in Synchronization account was deleted by an Expiration Workflow
Is there a way to restore. Thanks.I would re-run FIM setup - I think it can re-create this account
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
SharePoint Apps and custom web services as remote services
Hello,
After reading documentation about Apps for SharePoint compared with SharePoint solutions I did not find any information about "You
can develop your custom web services as remote services.".
Could you please give me links or advise, where I can get information - "How to develop custom web services as remote services" using SharePoint 2013 Apps?Hi,
I would suggest you to use WCF service instead of Web Service,
also, SharePoint 2013 introduces a Representational State Transfer (REST) service that is comparable to the existing SharePoint client object models.
Get started with the SharePoint 2013 REST service
About develop custom web services as remote services,see Demo here:
SharePoint 2013: Custom REST service provides data to an app for SharePoint
Best Regards
Guangchao chen
TechNet Community Support -
Error when creating web service client in netbeans
i tried to create a web service client from a wsdl and an error pops up:
web service client can not be created by jaxws:wsimport utility.
reason: com.sun.tools.xjc.api.schemacompiler.resetschema()v
There might be a problem during java artifacts creation: for example a name conflict in generated classes.
To detect the problem see also the error messages in output window.
You may be able to fix the problem in WSDL Customization dialog
(Edit Web Service Attributes action)
or by manual editing of the local wsdl or schema files, using the JAXB customization
(local wsdl and schema files are located in xml-resources directory).
end of error message
I am using netbeans 6.0 RC 2 and the bundled tomcat 6.0.13. Please help me.Hi Yatan
The error is mostly there may be some Duplicate variable/schema element decalared in the wsdl or the xsd referred in the wsdl. Like in WSDL for any Operations, most of the times, we use input and outputs as complex xsd element. We declare these xsd in the same file or in another file and import that in the .wsdl file. So check or validate your XSD file for any Duplicates.
In JDeveloper itself, I think, you can open XSD or WSDL and validate it from right click menu options like that.
Thanks
Ravi Jegga -
Standard Web Service and Customized Web Services with or without PI?
Hi All,
I want to know how I can use Standard Web Service available in SAP and customized Web Services
without PI Interface?
And what is the best practice to expose services ,via PI Interface or directly?
Thanks in advance!!
PushkarThis is purely based on your requirement. If you use PI middleware to expose web services, you get standard functionalities such as certificate authentication, logging, message reprocessing for the failed messages etc. If your requirement is so simple, then you might not need PI. In this case you can develop simple webdynpro for abap program to create webservice and expose the webservice in ECC webservice runtime. You can let anyone to consume within your network. other ways like exposing BAPI/RFC as webservice. I would recommend going with PI.
-
SharePoint SiteMialbox failed with 503 error (AutoDiscover.svc web service call failed)
I followed Technet articles to configure SiteMailBoxes in our environment & exchange sever.
When we created Sitemailbox in a SiteCollection &when we try to open it, it failed with below error.
Site Mailbox
We are having trouble connecting to Exchange Server
The server might be temporarily unavailable. Please check back on this page in a few minutes. If this problem persists, please contact your system administrator.
Correlation ID: bb0fe99c-6f4e-e084-b191-881fbf0fa977, Error Code 10
ULS Log (503 error)
Autodiscover Diagnostics Response Headers: request-id: 95d12ceb-283e-4495-b28b-256503fd097c client-request-id: 742fe69c-ef5a-e084-ca05-6098c759c584 X-CalculatedBETarget: devapwxyz01a.devap.mydomain.com X-FEServer: DEVNAABCD01B
Content-Length: 0 Cache-Control: private Date: Tue, 03 Feb 2015 18:53:40 GMT Set-Cookie: X-BackEndCookie=; expires=Sun, 03-Feb-1985 18:53:40 GMT; path=/autodiscover; secure; HttpOnly Server: Microsoft-IIS/8.5 X-AspNet-Version:
4.0.30319 X-Powered-By: ASP.NET
742fe69c-ef5a-e084-ca05-6098c759c584
if I am correct, X-CalculatedBETarget supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com. Do you guys have any idea on this? (I verified
the same using fiddler, it is failing right at autodiscover.svc call.)
I wrote a powershell script to connect autodiscover service in sharepoint server & this web service call able connect right server X-CalculatedBETarget. It gave the expected response.
I am not sure why SharePoint webservice call (X-CalculatedBETarget) is going to different server?
let me know if you guys have any ideas.
Thanks.Thanks for the Response Raj.
I already followed the same instructions in the Links.
When SharePoint Autodisover.svc webservice send a request to Exchange server & Exchange server redirecting that request to different server, this is the problem i am facing right now.
X-CalculatedBETarget
supposed to be DEVNAABCD01B.devna.mydomain.com but it connected to different domain devapwxyz01a.devap.mydomain.com.
Let me know if you have any suggestions? -
Errors when processing web service call
Hello Experts,
Based on a requirement, I got a URL based on WSDL, using which I created a Consumer Proxy in SAP.
I created a Logical Port in SOA Manager with type selected as 'WSDL'.
When I'm trying to execute the proxy class to call the webservice using the logical port through SE80 it is throwing an error log as stated below.
1) SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
2)Error when processing Web service call
3)Error when calling SOAP Runtime functions: Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
Kindly help me out.
Thanks,
VamshiHi,
Check Anton's reply in this thread: External WS Consumption Issue
Also refer the below doc which may help you: Consume an External Web Service in a Nutshell with Good Old ABAP
Calling WebServices from ABAP via HTTPS
Regards,
Kiran -
Customizing Web Service for VC 7.10
Hi guys!
I need a big help for the topic "web services and VC".
I read the Scott's blog (The specified item was not found.) and it's great, web services working fine!
But if I would create custom web service (for example to insert google maps on vc model) what can I do?
I know, it's hard to explane all the web services technology and implementation (Java, C#, XML etc.) but if someone know some tutorial or web guides..
Thanks a lot guys!
Edited by: Andrea Davoli on Oct 21, 2008 3:39 PMHi Andrea,
I assume that you refer to VC 7.0... otherwise the question should be moved to the VC 7.1 forum...
The following blog contain also a video that show you the process in detail:
How to consume Web Services with Visual Composer 7.0
Also important SAP Notes regarding limitations, structure and pre-requisites are mentioned there.
In the SAP Help Portal you can find information about Web Services created within NetWeaver:
http://help.sap.com/saphelp_erp2005/helpdata/en/db/99c04ba22fe64f96a8651df68eab92/content.htm
Hope this helps,
Best Regards,
Luis -
Error Starting up Web Services
I am using FuegoBPM Studio 5.5. Every time I click "start server" button in the studio, I always get an error message "Error starting up Web Services in 'http://mycomputername:9000'. Details: Address already in use: JVM_Bind". I can still launch my work portal but I just don't like to see the error message. Does anyone know how to get rid of it?
Thanks.Port 9000 is used for process web service (listener port) by default. So if in your machine some other software is using that port, it will throw the message.
In studio this port is embedded. I am not sure if there is any way through the studio interface you can change it.
But if you have enterprise installation then you can change the port number by going to the Web Console/Process Administrator and looking for "Web Services Listener Port" in Engine's Services tab.
Maybe you are looking for
-
Sener file adapter has read/pick the files first in first out method.
HI In my Interface I am Using Sender as File adapter. As per my requirement Sender file adapter has to read the file from file directory. This directory having 1000u2019s of files with some files are same name (time stamp is different) and some files
-
I rented a movie (dark shadows) but I can not see it, because a message appear "Problem loading...try again later". Is not a problem connection. I tried a lot of times to watch the movie and I didn't can. Thanks Celeste
-
How to activate Photoshop CS 5 without an internet connection?
I have had my second activation of Photoshop CS 5 on a backup computer that has no internet connection. I needed to change the operating system (Windows 7 Home to Windows 7 Professional). I called up Adobe, and told the technician that I was de-act
-
Satellite L450 - Webcam picture is grainy and dark
I dont know if its the web cam on this model is not very good but the web cam is extremely grainy and dark. I have tried all usual playing about with settings but nothing improves the image i.e.,grainy lack of any colour and just generally really poo
-
My iPad has duplicated my photos and won't let me delete them
Please answer