Start Workflow from WebService control
Trying to automatically start a workflow using webservice.
below is how my webservice url looks like, connection is successful.
x
below is how my response mapping looks like
sample values for ItemURL and Subscription ID
itemurl : <site url>/Lists/<list name>/<itemid>_.000 (item on which workflow should start)
Subscription id: "{fb5182d8-9bf1-4ed6-8e96-0ff8441a77a6}" (workflow that needs to be started by webservice)
error message :
ResponseCode: 500 (Internal Server Error) SPRequestGuid:b050549f-e18a-d072-42c1-b61000f216bc request-id:b050549f-e18a-d072-42c1-b61000f216bc X-FRAME-OPTIONS:SAMEORIGIN SPRequestDuration:9 SPIisLatency:0 Persistent-Auth:true MicrosoftSharePointTeamServices:15.0.0.5189 X-Content-Type-Options:nosniff X-MS-InvokeApp:1; RequireReadOnly Content-Length:537 Cache-Control:private Content-Type:text/xml; charset=utf-8 Date:Wed, 20 May 2020 16:15:21 GMT Server:Microsoft-IIS/8.5 X-AspNet-Version:4.0.30319 X-Powered-By:ASP.NET <?xml version="1.0" encoding="utf-16"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Server</faultcode> <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring> <detail> <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Root element is missing.</errorstring> </detail> </soap:Fault> </soap:Body> </soap:Envelope>
Not sure what is missing. I am able to validate and publish the workflow successfully.
-
Madhu,
The message from SharePoint is 'Root element is missing' so you would have verify the data which is sent from WebService Activity and data that is expected by SharePoint.
You can enable debug mode in the AgilePoint process to receive the more information about WebService Activity in log file.
Have you been able to successfully trigger the workflow using SharePoint WebServie out side of AgilePoint? Trying this would hint about what you need to design inside AgilePoint.
Thank you
AgilePoint NX Support
Please sign in to leave a comment.
Comments
1 comment