Error while browsing WebService

1

I'm trying to automate Sintegra's queries here at my company. I'm trying to implement in VB.NET (company software language), query through the webService made available by sefaz (

However, at the time of calling the service, passing the header and message, VS returns me the following error:

  

System.Web.Services.Protocols.SoapHeaderException: SOAP header Action   was not understood. at   System.Web.Services.Protocols.SoapHeaderHandling.SetHeaderMembers (SoapHeaderCollection   headers, Object target, SoapHeaderMapping [] mappings,   SoapHeaderDirection direction, Boolean client) at   System.Web.Services.Protocols.SoapServerProtocol.CreateServerInstance ()   at System.Web.Services.Protocols.WebServiceHandler.Invoke () at   System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest ()

I have already researched a number of forums about a solution. Until now, nothing.

    
asked by anonymous 15.07.2014 / 17:08

1 answer

2

To access web services via .NET follow these steps:

  • Right click on the project and select "Add Web References ..."
  • Enter the Web Service URL.
  • Now, just instantiate the Web Service object as an object and call the Web Services methods.

    From what I saw in your code, you are manually creating the Web Service call, which makes it very difficult to maintain the code.

        
    15.07.2014 / 18:32