Click here to Skip to main content
15,846,145 members
Home / Discussions / C#
   

C#

 
GeneralRe: Can I show my data in a C# table, even though all the data is not in a single List/array? Pin
Richard Deeming22-May-20 2:17
mveRichard Deeming22-May-20 2:17 
QuestionHow can I filter what's shown in a DataGridView, without modifying the List that holds the data itself? Pin
arnold_w21-May-20 4:20
arnold_w21-May-20 4:20 
AnswerRe: How can I filter what's shown in a DataGridView, without modifying the List that holds the data itself? Pin
Richard Deeming21-May-20 5:24
mveRichard Deeming21-May-20 5:24 
QuestionAuto reply when we sent request to server Pin
Member 1025852520-May-20 18:43
Member 1025852520-May-20 18:43 
AnswerRe: Auto reply when we sent request to server Pin
Dave Kreskowiak20-May-20 19:19
mveDave Kreskowiak20-May-20 19:19 
Questioncan any one help me with this WS? Pin
Member 1337716619-May-20 20:19
Member 1337716619-May-20 20:19 
AnswerRe: can any one help me with this WS? Pin
Dave Kreskowiak20-May-20 4:28
mveDave Kreskowiak20-May-20 4:28 
AnswerRe: can any one help me with this WS? Pin
DerekT-P24-May-20 4:55
professionalDerekT-P24-May-20 4:55 
getSeed requires a parameter of type getSeedRequest, and returns a getSeedResponse object.

Testing this in a console app:
C#
CrSeedClient client = new CrSeedClient();
getSeedRequest req = new getSeedRequest();
getSeedResponse resp = client.getSeed(req);
runs OK but still returns null in resp. If I omit the getSeedRequest parameter it won't compile.

However, if I run the above code with Fiddler listening in, then I can see the response received does actually contain XML, and is not null. Not entirely sure what's happening here but I suspect there's no implementation of getSeedRequest.ToString() so it returns nothing. As a workaround, the following seems to work fine:
C#
using System.Diagnostics;
using System.IO;
using System.Net;
using System.Text;
using System.Xml;
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            WebRequest webreq = WebRequest.Create("https://palena.sii.cl/DTEWS/CrSeed.jws?WSDL");
            webreq.Headers.Add("SOAPAction", "");
            webreq.Method = "POST";
            byte[] bData = Encoding.ASCII.GetBytes("<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body s:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"><q1:getSeed xmlns:q1=\"http://DefaultNamespace\"/></s:Body></s:Envelope>");
            webreq.GetRequestStream().Write(bData, 0, bData.Length);


            WebResponse webresp = webreq.GetResponse();
            XmlDocument doc = new XmlDocument();
            doc.LoadXml(new StreamReader(webresp.GetResponseStream()).ReadToEnd());
            Debug.WriteLine(doc.InnerText);
        }
    }
}

GeneralRe: can any one help me with this WS? Pin
Member 1337716626-May-20 20:22
Member 1337716626-May-20 20:22 
GeneralRe: can any one help me with this WS? Pin
DerekT-P27-May-20 0:20
professionalDerekT-P27-May-20 0:20 
QuestionHow to Validate Rest API response? Pin
Member 1477996819-May-20 9:49
Member 1477996819-May-20 9:49 
AnswerRe: How to Validate Rest API response? Pin
kalberts19-May-20 10:31
kalberts19-May-20 10:31 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 10:46
Member 1477996819-May-20 10:46 
QuestionRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 12:29
professionalEddy Vluggen19-May-20 12:29 
GeneralRe: How to Validate Rest API response? Pin
kalberts19-May-20 12:39
kalberts19-May-20 12:39 
GeneralMessage Closed Pin
19-May-20 13:22
Member 1477996819-May-20 13:22 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 15:25
professionalEddy Vluggen19-May-20 15:25 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 15:40
Member 1477996819-May-20 15:40 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 15:45
professionalEddy Vluggen19-May-20 15:45 
QuestionRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 15:23
professionalEddy Vluggen19-May-20 15:23 
AnswerRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 15:43
Member 1477996819-May-20 15:43 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 15:46
professionalEddy Vluggen19-May-20 15:46 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 15:44
Member 1477996819-May-20 15:44 
AnswerRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 12:28
professionalEddy Vluggen19-May-20 12:28 
AnswerRe: How to Validate Rest API response? Pin
Gerry Schmitz19-May-20 20:35
mveGerry Schmitz19-May-20 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.