System.Web.Services.Protocols.SoapHeaderException error in script task

HI,
My requirement is I have to create a XML of each row from a table and push one XML data of each row to a web services. This is a syncronous call to web services where it will send the response of each row XML.
The WSDL file is having a method called MATCHXML having 4 parameters namely ControlXML, BatchXML, Username, Password. I have created the ControlXML & BatchXML through code and storing into a string variable seperatly. The WSDL alos contains 4 input called
RequestUUID, ChannelID, ServiceRequestID & ServiceRequestVersion which has to be send to web services compulsory along with the method. In order to implement this, first I have added Web reference of the Web service URL into library, then invoked the method
to hit the web services. The code looks likes as below:
//Initiated an object of the class from the WSDL file
Matching match = new Matching
string result = match.MatchXML(controlXML,BatchXML,Username,Password)
Then, at the above line it display the below error:
SSIS package "HunterAutomation.dtsx" starting. Error: 0x1 at Generates XML file & Update variable: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Web.Services.Protocols.SoapHeaderException:
Mandatory field is not set in EAI_SOAPINPUT; Element -> Environment.eaiCommon.BTID, Environment.eaiCommon.Header.ChannelID, Environment.eaiCommon.Header.RequestUUID, Environment.eaiCommon.Header.ServiceRequestId, Environment.eaiCommon.Header.ServiceRequestVersion
at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.Hunter.Matching.Match(String controlXml, String batchXml, String username, String password) in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\Web References\Hunter\Reference.cs:line
93 at ST_ae3b1e5eadb64fdba5040f4efa743458.csproj.ScriptMain.Main() in C:\Users\CPUTRACKINGAPP\AppData\Local\Temp\3\SSIS\377534961d7f4fdb91565f9366317fdc\ScriptMain.cs:line 1307 --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(Object
target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle
typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr,
Binder binder, Object[] parameters, CultureInfo culture) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript() Task failed: Generates XML file & Update
variable Warning: 0x80019002 at For Loop Container: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of
errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. Warning: 0x80019002 at HunterAutomation: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised
(1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors. SSIS package "HunterAutomation.dtsx" finished: Failure.
In order to solve the issue i have manual created the soap header code. Now Im not understanding how to send the soap header XML message along with the MATCHXML method. I am trying very hard to solve the issue from last 3 weeks but NO LUCK.
Could anyone please help me out on this and I'm already running out of my deadlines.

Ok, from the looks of it you're calling the web service from within an SSIS package. Are you able to call the web service in a stand-alone C# console app and is the error just occurring in the SSIS package or not? If it occurs in both situations, continue
development in in the C# console app as this will make debugging easier. Also, in order to help you further, are you calling a web service under your control or not, and is the web service a WCF service or not?
Kind regards,
Margriet Bruggeman
Lois & Clark IT Services
web site: http://www.loisandclark.eu
blog: http://www.sharepointdragons.com

Similar Messages

  • System.Web.Services.protocol.SoapHeaderException

    I created a web service using java, with NetBeans 5.0. I used sun application server. Then I create Microsoft C# web service client in order to connect to the java web service. When I connect it I got following Exception called , System.Web.Services.protocol.SoapHeaderException. JAXRPC Internal Server Header
    Please give some idea to resolve this exception.
    My Email is : [email protected]

    Ok, from the looks of it you're calling the web service from within an SSIS package. Are you able to call the web service in a stand-alone C# console app and is the error just occurring in the SSIS package or not? If it occurs in both situations, continue
    development in in the C# console app as this will make debugging easier. Also, in order to help you further, are you calling a web service under your control or not, and is the web service a WCF service or not?
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Getting error System.Web.Services.Protocols.SoapException: Server did not r

    I am trying to acces my web service using this code
    Call call = new Call ();
    SOAPMappingRegistry soap = new SOAPMappingRegistry();
    call.setTargetObjectURI ("http://tempuri.org/");
    call.setMethodName ("EarnNValue");
    Vector params = new Vector ();
    params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
    call.setParams (params);
    Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
    if (resp.generatedFault ())
    Fault fault = resp.getFault ();
    System.out.println (" Fault Code = " + fault.getFaultCode ());
    System.out.println (" Fault String = " + fault.getFaultString ());
    else
    Parameter result = resp.getReturnValue ();
    System.out.println (result.getValue ());
    out.println (result.getValue ());
    and i am getting the the following error
    Fault Code = soap:Client
    Fault String = System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://tempuri.org//EarnNValue.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Please help.
    Thanx
    GB

    <%@ page language="java" import="java.util.*, java.io.*, javax.mail.*, java.net.*, org.apache.soap.util.xml.*, org.apache.soap.encoding.soapenc.BeanSerializer, org.apache.soap.encoding.*,org.apache.soap.*, org.apache.soap.rpc.*"%>
    <%
    try
    out.println ("Starting");
    System.out.println("heree");
    Call call = new Call ();
    System.out.println("here");
    SOAPMappingRegistry soap = new SOAPMappingRegistry();
    call.setTargetObjectURI ("http://tempuri.org/");
    call.setMethodName ("EarnNValue");
    call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
    Vector params = new Vector ();
    params.addElement (new Parameter("customer_id", String.class, "gauravbehl",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("channel_id", String.class, "C0002",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("category_id", String.class, "club",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("transaction_date", String.class, "16/07/04 14:41:20",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("parameter_id", String.class, "login",Constants.NS_URI_SOAP_ENC));
    params.addElement (new Parameter("parameter_value", String.class, "1",Constants.NS_URI_SOAP_ENC));
    call.setParams (params);
    Response resp = call.invoke(new URL("http://203.199.76.2/api/earnnvalue.asmx"), "http://tempuri.org//EarnNValue") ;
    if (resp.generatedFault ())
    Fault fault = resp.getFault ();
    System.out.println ("Something is wrong");
    System.out.println (" Fault Code = " + fault.getFaultCode ());
    System.out.println (" Fault String = " + fault.getFaultString ());
    else
    Parameter result = resp.getReturnValue ();
    System.out.println (result.getValue ());
    out.println (result.getValue ());
    catch (Exception e)
    System.out.println ("********Exception*******");
    System.out.println (e);
    out.println ("Ending");
    %>

  • System.Web.Services.Protocols.SoapException When Accessing Reporting Services

    Hi. I have inherited a client's mission critical database + SSRS project that I am attempting to migrate from 32-bit SQL Server Express 2005 + SSRS on a Windows Server 2003 to 64-bit SQL Server Express 2008 R2 + SSRS on a Server 2012 R2 Essentials.
    While I am not skilled in SQL Server I am having to learn quickly(!) and have managed to migrate the database and web application (with little change, apart from the web.config) and it is working fine. I have also migrated the SSRS database and can open
    the Report Manager and generate reports OK.
    However, the database's web application fails with a "Server Error in '/' Application" when it is used to generate a PDF report, with this exception:
    System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render
    (full text of error message given below).
    My research has thrown up a few references to this, with the suggestion of changing the SSRS endpoint used by the code from ReportService.asmx to ReportService2010.asmx. This does not help, though, and neither does using the ReportService2005.asmx or ReportExecution2005.asmx
    endpoints.
    If I open the endpoint directly in a web browser using http://<ip address>:<port>/ReportServer/ReportService2010.asmx then it displays a sensible-looking XML document tree (but no associated style info).
    I'm not really sure about where to go from here. Can anyone help?
    PS: Here's the full error page referred to above:
    Server Error in '/' Application.
    System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Web.Services.Protocols.SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [SoapException: System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://schemas.microsoft.com/sqlserver/2003/12/reporting/reportingservices/Render.
    at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
    at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
    at System.Web.Services.Protocols.ServerProtocol.SetContext(Type type, HttpContext context, HttpRequest request, HttpResponse response)
    at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)]
    System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413241
    System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
    AuditecSite.ReportService.ReportingService.Render(String Report, String Format, String HistoryID, String DeviceInfo, ParameterValue[] Parameters, DataSourceCredentials[] Credentials, String ShowHideToggle, String& Encoding, String& MimeType, ParameterValue[]& ParametersUsed, Warning[]& Warnings, String[]& StreamIds) +203
    AuditecSite.RenderToPDF.RendertoPDF_PreRender(Object sender, EventArgs e) +1040
    System.Web.UI.Control.OnPreRender(EventArgs e) +11143742
    System.Web.UI.Control.PreRenderRecursiveInternal() +108
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3394
    Version Information: Microsoft .NET Framework Version:2.0.50727.8009; ASP.NET Version:2.0.50727.8010
    Steve.

    Hi
    Check SAP Note 701467  for error CX_INVALID_TRANSFORMATION
    SAP Note 773330 Incorrect exception for CALL TRANSFORMATION
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373031343637%7d
    Refer this link too
    CALL TRANSFORMATION
    may get some help
    Regds
    Nidhi

  • Azure System.Web.Services.Protocols.SoapException

    I use a web service on a server and it works OK. Now I want to transfer my site to an Azure server. For now I created a free web site on azure to test it.
    It is a Silverlight application that calls a service to create a report.
    When I call this service I have the following error
    error:
    <?xml version="1.0" encoding="utf-8"?><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>System.Web.Services.Protocols.SoapException: Server was unable to process request. ---&gt; System.ArgumentException: Parameter is not valid.
    at System.Drawing.Graphics.GetHdc()
    at C1.Util.FontSubSet.#e.#cA.#Kn(FontSubSet owner, String tableName)
    at C1.Util.FontSubSet.GetFontTableStream(String name)
    at C1.Util.FontSubSet.#TDd()
    at C1.Util.FontSubSet.Init()
    at C1.Util.FontSubSet.GetFontSubSet(FontKey fk)
    at C1.C1Preview.C1PrintDocument.#ydd(String s, String fontName, Boolean fontBold, Boolean fontItalic, Boolean updateDocumentFonts)
    at C1.C1Preview.C1PrintDocument.#zdd(String s, String fontName, Byte fontCharSet, FontStyle fontStyle)
    at C1.C1Preview.RenderText.InternalResolvingFinished()
    at C1.C1Preview.RenderObject.ResolvingFinished()
    at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, Double x, Double y, Double width, Double height)
    at C1.C1Report.Layout.RenderDirect(ILengthCacheProvider lcp, RenderObject ro, RenderFragment rf, RectangleD bounds)
    at C1.C1Report.Field.#RLd(ExportFilter export, Layout layout, RectangleD bounds, String str, Boolean rtf, Double lineWidthTw, Int32 firstCharIndex, Int32 length)
    at C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure)
    at C1.C1Report.Field.Render(Layout layout, Double x, Double y)
    at C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup)
    at C1.C1Report.Layout.#fMd(Section s)
    at C1.C1Report.Layout.StartDoc()
    at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
    at C1.C1Report.C1Report.#fNd()
    at C1.C1Report.C1Report.#dNd(ExportFilter filter, Boolean reuse)
    at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt, String idPrefix, String fileName)
    at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt)
    at Gestion1.Web.RapportS.GetReportCommunique()
    --- End of inner exception stack trace ---</faultstring><detail /></soap:Fault></soap:Body></soap:Envelope> `

    Based on the provided stack trace it looks like you are attempting to run report tools from ComponentOne on the server.
    The issue is caused by access to APIs that are restricted from use by Azure Web Site instances for security and performance reasons. The native GDI rendering methods are among these restricted APIs.
    See the post from Jim Cheshire towards the end of this
    post.
    Until and unless these restrictions are relaxed (which they may not be) your options are to move the service to a Cloud Service instance, or move to another component that does not use native GDI methods to render.

  • System.Web.Services.Protocols.SoapException: CX_INVALID_TRANSFORMATION

    Hi all,
    i have a problem with a service.
    In the "old" systems WITHOUT Soamanager the service works fine.
    Now the service throws the following exception:
    System.Web.Services.Protocols.SoapException: CX_INVALID_TRANSFORMATION:An exception with the type CX_INVALID_TRANSFORMATION occurred, but was neither handled locally, nor declared in a RAISING clause.The transformation /1BCDWB/WSS0071002102836497005 could not be executed at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at C9X.ZWS_PASSWORD.ZUResetSapPassword(ZUResetSapPassword ZUResetSapPassword1) in c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\ajaxenabledwebsite1\155921d1\5360ddf9\App_WebReferences.mlueh3hc.4.cs:line 49 at _Default.ResetUserPasswd(String sapUserName, String eMail, String sapLanguage, String sapSystem) in c:\AJAXEnabledWebSite1\Default.aspx.cs:line 326
    I have configured the logical port in soamanager and i can't find the error....
    Any ideas?
    regards

    Hi
    Check SAP Note 701467  for error CX_INVALID_TRANSFORMATION
    SAP Note 773330 Incorrect exception for CALL TRANSFORMATION
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_aba/~form/handler%7b5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d373031343637%7d
    Refer this link too
    CALL TRANSFORMATION
    may get some help
    Regds
    Nidhi

  • C# Web Service Proxy - Autogenerated Error

    Hi all,
    I'm trying to consume a SAP Webservice in a C# console application within Visual Studio 2005. I've added the web reference to the WSDL and as such Reference.cs has been automatically generated. My problem is that I'm receiving two different errors at multiple different locations within this file.
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string Type {
                get {
                    return this.typeField;
                set {
                    this.typeField = value;
    On the line System.Xml.Serialization.XmlElementAttribute(Form=_System_._Xml_.Schema.XmlSchemaForm.Unqualified) (Surrounded by square brackets, I'm not sure how to escape the hyperlink code), I'm receiving the following errors respectively:
    System - An object reference is required for the nonstatic field, method, or property 'WSTest.dotnetWS.Bapiret2.System.get'
    XML - 'string' does not contain a definition for 'Xml'
    I'm not sure why, as this code has been automatically generated, that I'm receiving these errors, is there something that I need to change in order to rectify this problem?
    Thanks,
    Cal

    Thanks André, yes it was the same error.
    While I wasn't able to solve the clash of the Bapiret2 field SYSTEM with the .NET keyword System, I negated the problem by creating my own structure with the fields I needed (did not need the system field).
    So now my program compiles and runs, however - when I try to use the program, that is; i try to invoke the function module the WS is connected to, I receive the following error:
    System.InvalidOperationException: Namespace prefix ' SOAP-ENV' not defined
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadFaultCode(XmlReader reader)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadSoapException(XmlReader reader)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at WSWinApp.dotnetWebService.service.ZcalGetPdets2(ZcalGetPdets2 ZcalGetPdets21)
    My understanding of SOAP isn't that great but my first idea is that I think the WSDL may need a <SOAP-ENV:Envelope /> tag somewhere, although that's just a guess.
    If anyone could shed some light on how to solve this problem or even where to look it would be greatly appreciated.
    Thanks in advance.
    Cal

  • Web Service Data Control error

    I was folllowing the instructions on this demo for web service data control.
    http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/WSDataControl/WSDataControl.htm
    For some reason I am getting the following error right when the page loads.
    'GetLatByZipCode' expects parameter '@zipCode', which was not supplied.
    Here is the entire error stack. Any idea why it is doing this:
    Client received SOAP Fault from server : System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error occured when get webservices record ---> System.Data.SqlClient.SqlException: Procedure or function 'GetLatByZipCode' expects parameter '@zipCode', which was not supplied.
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
    at WeatherService.WeatherForecast.GetLatLonDataByZipCode(String ZipCode)
    --- End of inner exception stack trace ---
    at WeatherService.WeatherForecast.GetLatLonDataByZipCode(String ZipCode)
    at WeatherService.WeatherForecast.GetWeatherByZipCode(String ZipCode)
    --- End of inner exception stack trace ---
    Client received SOAP Fault from server : System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: Error occured when get webservices record ---> System.Data.SqlClient.SqlException: Procedure or function 'GetLatByZipCode' expects parameter '@zipCode', which was not supplied.
    at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
    at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
    at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
    at System.Data.SqlClient.SqlDataReader.get_MetaData()
    at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
    at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
    at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
    at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
    at WeatherService.WeatherForecast.GetLatLonDataByZipCode(String ZipCode)
    --- End of inner exception stack trace ---
    at WeatherService.WeatherForecast.GetLatLonDataByZipCode(String ZipCode)
    at WeatherService.WeatherForecast.GetWeatherByZipCode(String ZipCode)
    --- End of inner exception stack trace ---
    OK

    I would recommend that rather then working according to the demo you actually follow this tutorial:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_52/jdtut_11r2_52_1.html
    Which in the last part shows you how to use the Web service data control against a service you'll build.

  • HP Web Services Setup - Connection error. Check Internet connection.

    I am trying to enable HP Web Services but Connection error. Check Internet connection. .
    I use static ip with Preferred DNS Address: 8.8.8.8 and 8.8.4.4 and it does not work.
    I changed to DHCP also it does not work.
    I have a ZTE home modem router connected to the printer.
    This question was solved.
    View Solution.

    Hi MaBek,
    Can you check if your printers IP address is valid.
    If you have a laptop or PC connected to the same network, open a browser and type the IP address in the address bar and hit enter. 
    This should open a Embedded web Server page if the IP address is valid.
    Here you can navigate to Web Services tab and click on enable to enable web services.
    Regards,
    Oliver
    "Although I work for HP, I'm speaking for myself and not on behalf of HP"--Please mark the post that solves your problem as "Accepted Solution"
    "Say "Thanks" by clicking the Kudos Star in the post that helped you.

  • Consume Web Service In Coldfusion Error

    I'm having a problem using cfinvoke or adding this web service url in the coldfusion admin.
    <cfinvoke returnvariable="returndata" webservice="http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl" refreshwsdl="yes" method="PostData">
    I get the error for cfinvoke
    "Cannot generate stub objects for web service invocation. "
    "Name:
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl. WSDL:
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl. java.io.IOException: ERROR: Missing element inFault "SQLException" in operation "SQLException", in binding GetRates It is recommended that you use a web browser to retrieve and examine the requested WSDL document to ensure it is correct. If the requested WSDL document cannot be retrieved or is dynamically generated, it is likely that the target web service has programming errors. "
    and in the administrator
    ""Error creating web service. Please ensure that you have entered a correct Web Service name or URL.""
    The url is 
    http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl
    page loads fine in a browser...
    I do see an issue being brought up here in the wsdl, but I have no idea why...this isnt my wsdl btw..
    <wsdl:operation name="GetRates">
    <wsdl:input message="ns:GetRatesRequest" wsaw:Action="urn:GetRates"/>
    <wsdl:output message="ns:GetRatesResponse" wsaw:Action="urn:GetRatesResponse"/>
    <wsdl:fault message="ns:SQLException" name="SQLException" wsaw:Action="urn:GetRatesSQLException"/>
    </wsdl:operation>
    line 3
    any ideas?
    Thanks for any help...

    Sorry didnt post everything for the sake of space
    I just ended up using .NET to deal with the service..CF just didnt even recognize the url as a valid web service let alone care if I was passing arguments to it.
    On a side note, CF admin doesnt recognize the url as a web service and dreamweaver doesnt recognize the url as a web service either.
    <cfinvoke method="PostLead" returnvariable="returndata" webservice="http://www.fortedata.com:8080/axis2/services/FdsWebService?wsdl" refreshwsdl="yes">
    <cfinvokeargument name="SpecVersion" value="0">
    <cfinvokeargument name="ForteId" value="TESTID">
    <cfinvokeargument name="AuthKey" value="guestauthenticationkey">
    <cfinvokeargument name="LastName" value="0">
    <cfinvokeargument name="FirstName" value="0">
    <cfinvokeargument name="Address" value="0">
    <cfinvokeargument name="city" value="0">
    <cfinvokeargument name="state" value="0">
    <cfinvokeargument name="zip" value="0">
    <cfinvokeargument name="year" value="0">
    <cfinvokeargument name="vin" value="0">
    <cfinvokeargument name="make" value="0">
    <cfinvokeargument name="model" value="0">
    <cfinvokeargument name="phone" value="0">
    <cfinvokeargument name="crdate" value="0">
    <cfinvokeargument name="listcode" value="0">
    <cfinvokeargument name="odometer" value="0">
    <cfinvokeargument name="dually" value="0">
    <cfinvokeargument name="commercial" value="0">
    <cfinvokeargument name="convvan" value="0">
    <cfinvokeargument name="coverage" value="0">
    <cfinvokeargument name="term" value="0">
    <cfinvokeargument name="deduct" value="0">
    <cfinvokeargument name="av" value="0">
    <cfinvokeargument name="gps" value="0">
    <cfinvokeargument name="wt" value="0">
    <cfinvokeargument name="sg" value="0">
    <cfinvokeargument name="emis" value="0">
    <cfinvokeargument name="fintype" value="0">
    <cfinvokeargument name="finterm" value="0">
    <cfinvokeargument name="downpay" value="0">
    <cfinvokeargument name="cuscost" value="0">
    <cfinvokeargument name="paymeth" value="0">
    <cfinvokeargument name="cc" value="0">
    <cfinvokeargument name="expdt" value="0">
    <cfinvokeargument name="ccid" value="0">
    <cfinvokeargument name="routing" value="0">
    <cfinvokeargument name="banacct" value="0">
    <cfinvokeargument name="checking" value="0">
    <cfinvokeargument name="fbdt" value="0">
    <cfinvokeargument name="promo" value="0">
    <cfinvokeargument name="timeofday" value="0">
    <cfinvokeargument name="prefmeth" value="0">
    <cfinvokeargument name="email" value="0">
    </cfinvoke>

  • IDOC - Web Service scenario gives errors when processing multiple IDocs

    Hi,
    I have an integration process defined in PI 7.1 that contains four major steps :
    -     Receive DEBMAS IDoc
    -     Call a RFC to get additional information
    -     Call a MS Dynamics web service to retrieve the MS Dynamics customer account number via the SAP customer number (synchronous call)
    -     Call a MS Dynamics web service to update customer info (asynchronous call)
    This process works well when one IDoc is processed.
    If however 10 Idocs are submitted, some updates are processed correctly, most of them are not (the find service call works perfectly fine). Sometimes 3 work fine, sometimes 1 (for the same 10 IDocs submitted)
    I did a test with SOAP UI where in a test script I submitted the 10 update service calls and this works fine.
    The error that is given in the adapter engine SOAP communication channel is :
    Message processing failed. Cause: (415)Cannot process the message because the content type 'multipart/related; type="text/xml"; start="<45504935B855BA3ACA0EA2FD503BC60F>"; boundary="----=_Part_20_1319086528.1239082062538"' was not the expected type 'text/xml; charset=utf-8'.
    I noticed in the message content that the SOAP calls that go wrong have two payloads attached, one for the Main Document and one for the XI Context.. The ones that are processed correctly only have one payload, the Main Document
    Anyone an idea what the cause can be ?
    Thanks,
    Jan

    Hi,
      Please check the transaction idx5 in PI system and see whether the IDOC status by double clicking on the corresponding Transaction ID.
      I think this might be due to some invalid data coming from the source system
    Thanks,
    Tiny

  • Inbound Web Service calls get error "Reliable Messaging(RM) configured, but no Message ID..."

    We are setting up the Communication System and Communication Arrangement "Business Partner Replication from SAP ERP".
    For protocol, we are using Type 5 - WebServices.  See screenshot below.
    Our error is that when we send webservice calls to our C4C, we get messages:
    1.  Web service response is "Web service processing error; more details in the web service error log on provider side"
    2.  Backend error messages is "SRT: Plain SOAP: Reliable messaging (RM) configured, but no Messaging ID and no WSRM assertion provided"
    We have sent messages from PI and also independently thru soapUI.
    So it seems the C4C in the backend is stuck on the RM messaging protocol setting.
    Appreciate any and all assistance.

    Hi Tim,
    For this error following are the places that needs to be checked.
    1. In C4C the protocol defined in the Communication System should be 5 - Web Services
    2. In C4C Communication Arrangement should have the right protocol selected
    3. In PI make sure the Communication Channel's are created using provided Communication Channel Templates as part of the standard PI content.
    In other words just follow the integration guide available in SMP to avoid such errors.
    Hope this helps.
    Thanks,
    Prakash

  • Web Services and Powershell error: Method can not be reflected

    I'm trying to use the VSM 9.1 Web Service API with Powershell, however when I run the New-WebServiceProxy cmdlet it throws an error, the inner exception being "Method InfraAPI.KnowledgeUpdate can not be reflected.", and as such I'm unable to proceed any further with development.
    Here's the Powershell output:
    PS C:\PS> new-webserviceproxy -uri http://vsmhost/dev/ServiceManager.svc?wsdl
    New-WebServiceProxy : Exception has been thrown by the target of an invocation.
    At line:1 char:20
    + new-webserviceproxy <<<<  -uri http://vsmhost/dev/ServiceManager.svc?wsdl
        + CategoryInfo          : NotSpecified: (:) [New-WebServiceProxy], TargetInvocationException
        + FullyQualifiedErrorId : System.Reflection.TargetInvocationException,Microsoft.PowerShell.Commands.NewWebServiceProxy
    PS C:\PS> $error[0].exception.innerexception
    Method InfraAPI.KnowledgeUpdate can not be reflected.
    Any help with this would be greatly appreciated.

    Hi Chris,
    //-- Please read the following as my personal opinion only as it's based only on my own experience using VSM API. I may be wrong of course. --//
    As far as I remember there was never a good decision to use VSM API through web service reference.
    I had met some problems when referencing VSM services directly through web even using Visual Studio some years ago. Since then I don't use this method.
    Recently I have tried to check VSM API services metadata with some soap tools and it appears that it is not completely WS-I compliant - something wrong with namespaces defining ResultSet elements as type of DataSet. Perhaps this is the reason why VSM web services does not work as expected when referencing them directly. Maybe something else...
    So the solution, workaround actually, (provided by VMware by the way) is to generate InfraAPI class and use it in your project. So far no problems with this method and we are using VSM API quite a lot.
    In any case, it could be really helpful if someone might submit this issue to Alemba to fix it permanently I guess.
    Ok, let's go back to your question about using VSM API with PowerShell. I must admit you have really challenged me. It was not so simple but really interesting.
    The only way I have made PowerShell working is this:
    1. Extract VSM API services class to a file:
    svcutil /t:code /language=c# /messageContract http://vsmhost/dev/ServiceManager.svc /out:InfraAPI.9.2.0.cs /config:InfraAPI.9.2.0.config
    2. Compile the class to dll file:
    csc /t:library /out:InfraAPI.9.2.0.dll InfraAPI.9.2.0.cs
    3. Include and use this library in your ps script like this:
    [System.Reflection.Assembly]::LoadFrom("C:\_DATA\__SM9\PowerShell\API\InfraAPI.9.2.0.dll")
    [System.Reflection.Assembly]::LoadWithPartialName(“System.ServiceModel”)
    $ws_hb = New-Object System.ServiceModel.BasicHttpBinding
    $ws_hb.Name = "BasicHttpBinding_IServiceManager"
    $ws_epa = New-Object System.ServiceModel.EndpointAddress("http://vsmhost/dev/servicemanager.svc")
    $ws = New-Object ServiceManagerClient($ws_hb,$ws_epa)
    $ws_login_in = New-Object LoginRequest("VSM_USER_NAME","VSM_USER_PASSWORD","VSM_DATABASE")
    $ws_login_out = $ws.Login($ws_login_in)
    $ws_login_out.sMessage
    if($ws_login_out.Ret.value__ -eq 0){
        "Session ID: " + $ws_login_out.sID
        $ws_logout_in = New-Object LogoutRequest($ws_login_out.sID)
        $ws.Logout($ws_logout_in).sMessage
    Shoot your questions if you have any. And could you please let me know if this is working in your environment. Tx.
    Regards, Gytis

  • Web Service client authorization error: HTTP status 401

    .NETters,
    My .NET client program is invoking a simple "Hello World" Web Service written in ABAP. Here is the code:
      Z_HWWSDServiceWse svc = new Z_HWWSDServiceWse();
      try {
        string msg = svc.ZHelloworld();
        Console.WriteLine(msg);
      }catch(Exception e) {
        Console.WriteLine(e.Message);
    The code uses WSE 2.0 framework.
    This code works if I edit the properties on WSD service using transaction SICF and specify anonymous login options. However, I would like to pass the user token from the client program itself.
    So I removed anonymous login options and supplied the required information programmatically.
      UsernameToken ut = new UsernameToken("pradeep", "password", PasswordOption.SendPlainText);
      svc.RequestSoapContext.Security.Tokens.Add(ut);
    However, when I run this code, I get an error: "The request failed with HTTP status 401: Unauthorized"
    I then tried supplementing this code with network credentials logic:
      System.Net.CredentialCache cc = new System.Net.CredentialCache();
      cc.Add(new Uri("http://servermachname"), "Basic", new System.Net.NetworkCredential("pradeep", "password", null));
      svc.Credentials = cc;
    The problem still doesn't go away :-(.
    Does anyone have any idea on what is it that I am missing in my code?
    Thank you in advance for your help.
    Pradeep

    In my tests with normal .NET WS client something like the following allways worked:
    WSProxy proxy = new WSProxy();
    proxy.Credentials = new System.Net.NetworkCredential("user", "password");
    proxy.PreAuthenticate = true;
    proxy.CallMethod();
    As your code is very similar, it may be a compatibility  problem between WSE and WAS. I would recommend that you use a network snippen and look what really goes over the wire.
    I have also seen an issue where the settings in SICF where somehow corrupted (e.g. the fixed credentials checkbock was on, but no credentials where specified). The solution was just to "reset" the settings in SICF.

  • Test web service published returns Error code: InternalError, Http status code: 500

    Further invastigating ther error mentioned here: 
    https://social.msdn.microsoft.com/Forums/azure/en-US/14afa50f-287d-4158-852a-c9532f9f30eb/test-published-web-service-experiment-error-with-status-code-400?forum=MachineLearning
    I have made an even simpler experiment with two python scirpt modules. The experiment again runs fine in Azure ML Studio but fails in the web service test with the error
    Error code: InternalError, Http status code: 500, Request id: 53eef674-190a-4f63-bdc6-a072a45a9c72, Timestamp: Fri, 24 Apr 2015 09:30:37 GMT
    The experiment consists only of two python script modules. The code of the first module:
    import numpy as np
    import pandas as pd
    def azureml_main(dataframe1 = None, dataframe2 = None):
        dataframe1.loc[1] = ["U5000","resB",np.nan]
        dataframe1.loc[2] = ["U5000","resC",2]
        dataframe1.loc[3] = ["U5000","resD",2]
        dataframe1.loc[4] = ["U5000","resE",np.nan]
        dataframe1.loc[5] = ["U6000","resA",np.nan]
        dataframe1.loc[6] = ["U6000","resB",1]
        dataframe1.loc[7] = ["U6000","resC",2]
        dataframe1.loc[8] = ["U6000","resD",np.nan]
        dataframe1.loc[9] = ["U6000","resE",1]
        dataframe1['hasRated'] = pd.Series(1, index=dataframe1.index).astype(bool)
        df_new = pd.DataFrame()
        df_new = pd.DataFrame(dataframe1[["restaurant","rating","hasRated"]])
        return df_new,
    The code of the second module that takes as input the result of the first module:
    def azureml_main(dataframe1 = None, dataframe2 = None):
    return dataframe1,
    A url of a screenshot taken from the experiment.
    http://i.imgur.com/4nrbneA.png
    Please respond. Again I am using a free workspace of Azure ML Studio.
    Thank you very much

    Thank you for your quick reply.
    I hope you will be able to resolve this issue soon.
    asavvopoulos

Maybe you are looking for

  • Can't Post Journals to GL

    Yesterday we were able to post Journals to GL and today we can't. We are running 11.5.10. Yesterday I shut off and restarted notification mailers. I am not aware of any other changes that may have occurred. This is the log from the failed Posting. Ge

  • Faulty ObjectMessage Payload in Message Driven Bean

    To all, I have a frustrating problem. I am using iPlanet application server 6.5 and Java Message Queue 2.0 beta. I have deployed a message driven bean into the application server. This bean expects ObjectMessage's. The bean successfully receives mess

  • MIRO unplanned del cost from forwarder before MIRO vendor invoice

    Dear SAPper, My client have a requirement like this 1. Client create several PO to several vendor 2. Client have a forwarder agent container so this forwader agent control stuffing the PO from several vendor to full one container (cost efficiency) 3.

  • Weblogic/jms/backend/BEMessageReference

    Hi , I have a severe OOM problem in production as my servers are crashing very often.. I have 32 GB unix box and I have put -Xmx 3072 -Xms 3072 as MEM_ARGS for Managed1 and Managed3 ... eventhen I am getting OOM ... Can anybody suggest me best MEM_AR

  • Should I first delete all saved passwords before assigning master password firefox 21

    I want to start using the 'Master Password' feature. There are a couple of hundred 'stored' passwords in the Options-Security-Saved Passwords tab so I'm wondering if it would be best to delete ALL of these before setting up a Master Password. I will