Click here to Skip to main content
13,445,901 members (40,803 online)
Rate this:
Please Sign up or sign in to 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 28-Jan-13 11:23am
Sergey Alexandrovich Kryukov 28-Jan-13 18:06pm
What did you try, exactly?
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
to display results in textboxes!
here it is the web service?
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?!
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.
Atmir 28-Jan-13 18:30pm
look this
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.
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.
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.


1 solution

Rate this: bad
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#:[^];
  • 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:


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03-2016 | 2.8.180314.2 | Last Updated 28 Jan 2013
Copyright © CodeProject, 1999-2018
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