Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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
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

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
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900