Click here to Skip to main content
Sign Up to vote bad
good
See more: VB.NET
Hello !
 
Can some one explain me how to retrive data from SAOP webservice in desktop app!
 
I have a piece of code but is not working!
 
the web service contain a query for search the data!
 
I don't know how to make?
 

Please help me?
Posted 28-Jan-13 11:23am
Atmir765

Comments
Sergey Alexandrovich Kryukov - 28-Jan-13 18:06pm
What did you try, exactly? —SA
Atmir - 28-Jan-13 18:09pm
this is the code for console in C# Iskalnik i = new Iskalnik (); object [] zavezanci = i.Isci ("SI59827513"); foreach (object o in zavezanci) { xmlZavezanec z = (xmlZavezanec) o; Console.WriteLine (z.xmlNaziv); } but i want the code in Vb.net to display results in textboxes! here it is the web service? http://ddv.inetis.com/Iskalnik.asmx
Sergey Alexandrovich Kryukov - 28-Jan-13 18:20pm
I already saw it. Impossible gibberish. Where is the definition of xmlZavezanec?! How it it related to to this Web service?! —SA
Atmir - 28-Jan-13 18:24pm
this is the SAOP web service the xmlZavezanec contain the data of search! I.Isci is the search variable !
Sergey Alexandrovich Kryukov - 28-Jan-13 18:27pm
No. It should be a type, once you do a case. I asked you to show its definition. Please. —SA
Atmir - 28-Jan-13 18:30pm
look this http://ddv.inetis.com/Iskalnik.asmx?WSDL
Atmir - 28-Jan-13 18:54pm
Found something?
Sergey Alexandrovich Kryukov - 28-Jan-13 18:58pm
No! This is not code. Definition of this type, please. —SA
Atmir - 28-Jan-13 19:00pm
it is object definition
Sergey Alexandrovich Kryukov - 28-Jan-13 19:01pm
OK, no matter what it is. You this is a complex type, and your object is char. Makes no sense at all. Not a single line in your code. I don't think are ready to do this kind of development, if you cannot even answer a simple question on your own code. —SA
Atmir - 28-Jan-13 19:03pm
this is not my code it is like an example in thier site
Sergey Alexandrovich Kryukov - 28-Jan-13 19:21pm
Why do you ask about it then?! You should ask about your own code. Never use the code you don't understand; you cannot even ask about it. Never told me how it it related to your Service. Maybe my answer can help you, but I cannot be sure. I don't think you are ready for development of such code. How come you have 7 answers? (And there were more of them.) Let me tell you that you are cheating with your "answers". Few seconds ago, I removed one, where you posted just "I found solution myself" (nothing else), and accepted it formally! This is cheating no more. Do you know how many members lost their memberships for such thing. The mere fact you are "answering" is very unfair to poor unsuspecting inquirers who really need help. Are you going to do anything about it? I would rather suggest you review your answers and remove them before other members down-vote them or report for abuse. Everyone should take some responsibilities for their posts. —SA

1 solution

Please see my comments to the question. Nothing makes any sense in your code.
 
You would need to:
  • Use WDSL.EXE to create a proxy code for a service in C#: http://msdn.microsoft.com/en-us/library/7h3ystb6.aspx[^];
  •  
  • In the generated code, locate the class derived from the class System.Web.Services.Protocols.SoapHttpClientProtocol; this is the class you need to instantiate;
  •  
  • Instantiate it;
  •  
  • Through the instance of the proxy, invoke Web methods.
 
If something is not clear, before asking your next question:
 
 
—SA
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Christian Graus 500
1 Ron Beyer 316
2 Tadit Dash 253
3 samadhan_kshirsagar 229
4 OriginalGriff 198
0 Sergey Alexandrovich Kryukov 7,061
1 Prasad_Kulkarni 3,815
2 OriginalGriff 3,557
3 _Amy 3,370
4 CPallini 3,034


Advertise | Privacy | Mobile
Web03 | 2.6.130619.1 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid