locked
Calling java webservice from VB.net

    Question

  • Hi All,

    I am Trying to call the webservice from tomcat server in VB.net console application but i am getting error on running vb console client application can any one help me out in fixing this problem .

    Thanks in Advance

    Error in the console is

    System.InvalidOperationException was unhandled
      Message="There is an error in XML document (1, 285)."
      Source="System.Xml"
      StackTrace:
           at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
           at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
           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 TZApplicationGEClient.TZApplicationGW.login(LoginRequestType LoginRequest) in C:\Documents and Settings\rajkumar\My Documents\Visual Studio 2005\Projects\TZApplicationGEClient\TZApplicationGEClient\TZApplicationGW.vb:line 56
           at TZApplicationGEClient.BaseClient.Login() in C:\Documents and Settings\rajkumar\My Documents\Visual Studio 2005\Projects\TZApplicationGEClient\TZApplicationGEClient\BaseClient.vb:line 17
           at TZApplicationGEClient.ConsoleClient.DoLogin() in C:\Documents and Settings\rajkumar\My Documents\Visual Studio 2005\Projects\TZApplicationGEClient\TZApplicationGEClient\ConsoleClient.vb:line 78
           at TZApplicationGEClient.ConsoleClient.Execute() in C:\Documents and Settings\rajkumar\My Documents\Visual Studio 2005\Projects\TZApplicationGEClient\TZApplicationGEClient\ConsoleClient.vb:line 37
           at TZApplicationGEClient.Application.Main() in C:\Documents and Settings\rajkumar\My Documents\Visual Studio 2005\Projects\TZApplicationGEClient\TZApplicationGEClient\Application.vb:line 17
           at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
           at System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel)
           at System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly()
           at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData)
           at System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext)
           at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone()
           at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
           at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
           at System.Threading.ThreadHelper.ThreadStart()
    Monday, April 06, 2009 12:31 PM

All replies

  • Can you post the XML you are trying to parse. Looks like an invalid tag in the XML file but would need a look at the XML file to confirm. Also this is not the correct forum to ask XML related issues.
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Monday, April 06, 2009 5:56 PM
  • Actually, this would better be posted at http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/threads/.
    John Saunders
    Use File->New Project to create Web Service Projects
    Use WCF for All New Web Service Development, instead of old ASMX or obsolete WSE
    • Proposed as answer by zoyab- MSFT Tuesday, April 07, 2009 7:08 PM
    Monday, April 06, 2009 6:00 PM
    Moderator