Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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
Atmir852
Comments
Sergey Alexandrovich Kryukov at 28-Jan-13 18:06pm
   
What did you try, exactly?
—SA
Atmir at 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 at 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 at 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 at 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 at 28-Jan-13 18:30pm
   
look this
http://ddv.inetis.com/Iskalnik.asmx?WSDL
Atmir at 28-Jan-13 18:54pm
   
Found something?
Sergey Alexandrovich Kryukov at 28-Jan-13 18:58pm
   
No! This is not code. Definition of this type, please.
—SA
Atmir at 28-Jan-13 19:00pm
   
it is object definition
Sergey Alexandrovich Kryukov at 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 at 28-Jan-13 19:03pm
   
this is not my code
it is like an example in thier site
Sergey Alexandrovich Kryukov at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
0 OriginalGriff 310
1 Sergey Alexandrovich Kryukov 192
2 PhilLenoir 164
3 Richard MacCutchan 160
4 Sharmanuj 146
0 Sergey Alexandrovich Kryukov 6,077
1 OriginalGriff 5,115
2 CPallini 2,473
3 Richard MacCutchan 1,597
4 Abhinav S 1,505


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

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100