WebserviceTaskException
I have a SSIS package which contains the web service task. Configured The WSDL file, http connection , input parameters and out parameter. Before starting the package execution, downloaded the WSDL file the web service, assigned the web method and assigned
w.r.t to parameters.
The exception is raising on this web service task during the package execution
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: Server did not recognize the value
of HTTP Header SOAPAction:
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Hi Vasanthmohan,
How did you configure the URL of the HTTP Connection Manager? The issue may occur if the URL is set to the Web service endpoint other than the WSDL file for this endpoint. For example, if you are using
http://ServerName/services/ImportWebService.asmx, please set it to
http://ServerName/services/ImportWebService.asmx?wsdl.
Regards,
Mike Yin
If you have any feedback on our support, please click
here
Mike Yin
TechNet Community Support
Similar Messages
-
Hi All
we are using webservice task in our ssis package and the package is successful in SSDT . when we created SQL job using that package it is failing with webserviceTaskException: Service Description cannot be null.
we have given access to web service for ssis proxy account and have access on wsdl file folder and given access to temp folder .
what would be the reason for the failure?
Surendra ThotaHi Surenda,
As per my understanding, the error message is too general. In order to troubleshoot this issue, we should view the detail error message about this job. For more details, please see:
Troubleshooting Jobs
SQL Server Agent Error Log
Besides, since when you call a Microsoft SQL Server Integration Services (SSIS) package outside a SQL Server Agent job step, the SSIS package runs successfully. However, if you do not modify the SSIS package, then execute it via SQL Server Agent job step,
it fails. The scenario always related to the user account that is used to run the package under SQL Server Agent. Please also verify that the account has access to the Web site or to the Web Service Description Language (WSDL) file for HTTP connection manager.
References:
SSIS package does not run when called from a SQL Server Agent job step
Example using Web Services with SQL Server Integration Services
Thanks,
Katherine Xiong
If you have any feedback on our support, please click
here.
Katherine Xiong
TechNet Community Support -
Hello,
I have a web service task that worked fine prior to upgrading from SQL Server 2005, but in 2012 fails with an error saying the "wsdl file is invalid". I am using the same wsdl file as I was using in 2005. Connectivity tests for the
web service connection manager in 2012 worked fine. Any ideas on why I would be getting a failed wsdl file when it worked ok on the 2005 platform? Below is the specific error:
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not read the Web Services Description Language (WSDL) file. The input WSDL file is not valid.
The following error occurred while reading the file. There is an error in XML document (3, 2)..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil..ctor(Object connection, String downloadedWSDL)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Thanks for any help or suggestions,
PatNeed to open the package for editing and resave, perhaps there were changes in how the Web Services task is persisted to package file. (a more typical upgrade path is SSIS 2005 to SSIS 2008, then 2012)
Arthur My Blog -
Hi, After successfully testing connection to my source web service, while executing my web service task, I face the following error. Can anyone help me????
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not load the proxy for the specified Web service. The error is: Could not load file or assembly
'iiglotg3.dll' or one of its dependencies. Access is denied..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.loadProxyInAppDomain()
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Regards,
Njdeh TahmasianCould not load file or assembly 'iiglotg3.dll' or one of its dependencies.
Access is denied..
Looks like a permission issue or maybe the assembly don't exists on the server where the package is running; you should check that first.
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Web service task: Error when returning an empty array
Hi,
I've encountered an annoying error when using a Web Service Task from an SSIS package in SQL Server Data Tools.
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Index was outside the bounds of the array..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
It seems that the Web Service Task generates this error when returning an empty response from the WSDL. I've seen several topics about this here on MSDN but they are all from 2008-2009 and seem to suggest that
this is a bug. The workaround suggested is using a script task but I would really love to avoid that since my programming skills are lacking.
I'm using Visual studio 2010 with SP1.Hello,
From my own experience: in all the cases where I had to use SSIS 2008 to retrieve data or send data to Webservices, I had to revert to using Script Tasks or Script components. Whenever I tried with a Web service task, because the job looked simple, I had
to abandon it in favour of Scripts. Keep in mind that I try to make use of the SSIS components as often as possible, before reverting to Scripting. But handling web services is the one exception, where I always use scripts. In SSIS 2012 I did not find
any significant improvement of the Web service task and hence no compelling reason to use it.
Jan D'Hondt - SQL server BI development -
WEB Service task excuting error "method not found"
Hii All,
I am the beginner of ssis, and on executing the package I am getting error :
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Method 'ProxyNamespace.BizTalkServiceInstance.Submit'
not found..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Please help me out..Hi Mangla,
Based on my research, the issue always caused by the data type of input variable mismatch for the Web Service. For example, the input type for web service is String. The variable was of type Object but in fact it was a Decimal stored in it. Obviously SSIS
Web Service Task will not implicitly do a .toString() call on the input variable. So the issue occurs.
To fix this issue, please change the type of the variable. For more details, please refer to the following similar thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1073ad37-ed05-4ab4-85e3-689e1cd17a68/ssis-web-service-task-error-with-wcf-service
Besides, SSIS cannot invoke services with spaces in the names. And we should configure the HTTP connection manager the following ways:
Use credentials.
Use a client certificate.
Provide a time-out for connecting to the server and a chunk size for writing data.
Use a proxy server.
Reference:
HTTP Connection Manager
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Rerun Web Service Task whenever it fails
Hi All,
In one of my package i m using web service task and it is failing everytime. Below is the error:
An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: The operation has timed out.
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
I referred the below blog and tried to implement it in my project.
http://microsoft-ssis.blogspot.com/2014/06/retry-task-on-failure.html
In For Loop Container, when i am using the below expression , the container is running but web service task is not running.
EvalExpression - @RetryCounter<=@RetryMax && @QuitForLoop==false
but when i change the expression to
@RetryCounter<5, the web service task is also running.
where i am going wrong. are we not supposed to use expression like @RetryCounter<=@RetryMax && @QuitForLoop==false in For Loop Container.Read the comments below, you need to reset the QuitForLoop, perhaps this is the issue.
I would approach the issue with Checkpoints, and restart on failure as in
https://www.simple-talk.com/sql/sql-tools/implementing-checkpoints-in-an-ssis-package/ or
https://sqlserverrider.wordpress.com/2011/09/24/rerun-ssis-package-with-checkpoints/
Arthur
MyBlog
Twitter -
SSL web service task SOAP header Action was not understood..
Hi all,
While I create web service task to consum a wcf service using SSL and execute the task it give the following error: But the same WCF service is deployed in nonSSL (basicHTTPBinding) , it works well and the results are received. Could any one suggest
what is missing?
Error: 0xC002F304 at Web Service Task, Web Service Task: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The Web Service threw an error during method execution. The error is: SOAP
header Action was not understood..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Task failed: Web Service Task
SSIS package "Package.dtsx" finished: Success.
Regards
Venkatesh GCan you provide more information? Are you using BasicHttpBinding with transport security? If you access the service from a console client instead of SQL Server Web Service Task, does it work?
Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
If you have feedback about forum business, please contact
[email protected] But please do not ask technical questions in the email. -
SSIS Web Service Task Error with WCF Service
I have read all the other posts on this site and have not been able to resolve my issue.
For testing purposes i created a very simple WCF service that takes no arguments and returns true. That is all it does.
When i create a winform client and instantiate the service i can run my service method and get true back so i know the service works.
I then create a test SSIS package with 1 task, a web service task.
I set the web service tasks properties as follows:
http connection: http://localhost/WCF_SSIS_Prototype/Service1.svc
wsdl file: C:\...\SSIS_WCF_Prototype\Service1.wsdl (I know this is not a valid path, i changed it for posting to forum)
Service: Service1
Method: GetData
Variable: User::BResult
When i run the package i get the following error:
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Method 'ProxyNamespace.Service1.GetData' not found.. at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection) at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection) at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
I'm not sure why it is saying "Method 'ProxyNamespace.Service1.GetData' not found. It the web service task trying to create a proxy class and naming the proxy class namespace ProxyNamespace?
Any help is greatly appreciated.Hi,
How do you get around the same issue if your string type is based on a client token ? I downloaded the .wsdl file, was able to see the service name, method and when selecting a method type, I am required to provide a client token which was given
to me. (Name column = clienttoken, Type = string, Value = 2227656 - ec8922 (client token numbers goes there)? I am new to use ssis and need your help please
error message: Web Service Task] Error: An error occurred with the following error message:
"Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: The web serrvice threw an error during method execution. The error is: An error occurred
when verifying security fro the message..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()"
Thank you and regards,
Bili -
Dear All,
I have a web service, which is used to convert one currency type to another currency. With help of web service task calling that web service in SSIS package.
After configuration I tested connection and downloaded WSDL file
General Tab. Configured Input and Output Tab in Web Service Task.
When we execute SSIS package it is throwing an error like below. I try to configure with Proxy and with out proxy in both the cases it is throwing same error.
Error Description :
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Object reference not set to an instance of an
object..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Can Some one help on this issue.
Regards,
Praveen C
Regards, PraveenHello,
When you say you have configured the proxy, are you talking about the proxy tab on the HTTP Connection Manager? Please
confirm you have configured it properly.
http://msdn.microsoft.com/en-us/library/ms189707.aspx
What is the name of the web service?
Can you try to do the same on a script task as mentioned in the following post?
http://blogs.msdn.com/b/farukcelik/archive/2009/07/17/ssis-consuming-a-web-service-without-using-web-service-task-and-http-connection-manager-within-script-task.aspx?Redirected=true
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
I am following the guide provided
HERE to build a currency converter. The static converter works very fine, but I am having issue while building dynamic version of it.
Basically, I have designed it as below:
1) Data flow task: Uses a sql query to get a distinct list of all the currencies being used in the fact table and store into a recordset object 'ObjCurrency'
2) Foreach loop container:
Iterates through all the values in 'ObjCurrency' and each value gets stored in CurrencyCode
2.1) Script task: A message box is used to show the current currency code
2.2) Web service task: As stated in the above guide, I am sending the CurrencyCode variable as a 'FromCurrency' and 'USD' is my 'ToCurrency' to get a dynamic WSDL for every CurrencyCode
2.3) XML task: Used to get 'ConversionRateResponse'
2.4) ScriptTask1: A message box is used to show the current ConversionRateResponse
I am getting an error at 2.2 and the error is:
[Web Service Task] Error: An error occurred with the following error message: "Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException: Could not execute the Web method. The error is: Method 'ProxyNamespace.CurrencyConvertor.ConversionRate'
not found..
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebMethodInvokerProxy.InvokeMethod(DTSWebMethodInfo methodInfo, String serviceName, Object connection)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTaskUtil.Invoke(DTSWebMethodInfo methodInfo, String serviceName, Object connection, VariableDispenser taskVariableDispenser)
at Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebServiceTask.executeThread()".
Can someone please help me with this?
Thank you in advance.Hi rockstar283,
Based on my research, the issue always caused by the data type of input variable mismatch for the Web Service. For example, the input type for web service is String, the variable was of type Object. Obviously SSIS Web Service Task will not implicitly do
a .toString() call on the input variable. So the issue occurs.
To fix this issue, please change the type of the variable. For more details, please refer to the following similar thread:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/1073ad37-ed05-4ab4-85e3-689e1cd17a68/ssis-web-service-task-error-with-wcf-service
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
How to track a request id through an access policy in OIM
lets say User-A requests a job role on behalf of User-B and this job role has a access policy attached to it, to provision the user to AD and SAP. Now we want an email sent to user-A (i.e the user-A who is responsible for job role assignment which ma
-
HT4199 i can t mirror my mac book air via apple tv.
i bought apple tv 3rd generation and have a mac book air from mid 2012. i have problems mirroring my mac to aplle tv. there is now morroring icon. how can i set that up ?
-
Revision: 931 Author: [email protected] Date: 2008-03-26 11:31:01 -0700 (Wed, 26 Mar 2008) Log Message: Bug: BLZ-96 - When sending a HttpService request from ActionScript with multiple headers with the same name, it causes a ClassCastException in the
-
Migrating 6i forms / reports to 10g (Urgent)
Hi, We have 6i versions of forms and reports running in a client/server environment, and are planning to upgrade them to 10g. I need to give an estimate to my manager on the effort involved in migrating the existing objects to 10g. To provide an esti
-
Upgrade from 46c to ECC 6.0 new components support package
dear experts, we have upgraded our test system from 46C to ECC 6.0 before upgrade in 46C we have support packages components SAP_BASIS 46C SAP_ABAP 46C SAP_APPL 46C SAP_HR PI 2003_1_46C SAP_NOTES 46C ST-A/PI 01B_R3_46C ST-PI 2005_1_46C after upgrade