Click here to Skip to main content
15,887,368 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 1:17
mveRichard Deeming22-May-20 1: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 3:20
arnold_w21-May-20 3: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 4:24
mveRichard Deeming21-May-20 4:24 
QuestionAuto reply when we sent request to server Pin
Member 1025852520-May-20 17:43
Member 1025852520-May-20 17:43 
AnswerRe: Auto reply when we sent request to server Pin
Dave Kreskowiak20-May-20 18:19
mveDave Kreskowiak20-May-20 18:19 
Questioncan any one help me with this WS? Pin
Member 1337716619-May-20 19:19
Member 1337716619-May-20 19:19 
AnswerRe: can any one help me with this WS? Pin
Dave Kreskowiak20-May-20 3:28
mveDave Kreskowiak20-May-20 3:28 
AnswerRe: can any one help me with this WS? Pin
DerekT-P24-May-20 3:55
professionalDerekT-P24-May-20 3: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 19:22
Member 1337716626-May-20 19:22 
GeneralRe: can any one help me with this WS? Pin
DerekT-P26-May-20 23:20
professionalDerekT-P26-May-20 23:20 
QuestionHow to Validate Rest API response? Pin
Member 1477996819-May-20 8:49
Member 1477996819-May-20 8:49 
AnswerRe: How to Validate Rest API response? Pin
kalberts19-May-20 9:31
kalberts19-May-20 9:31 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 9:46
Member 1477996819-May-20 9:46 
QuestionRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 11:29
professionalEddy Vluggen19-May-20 11:29 
GeneralRe: How to Validate Rest API response? Pin
kalberts19-May-20 11:39
kalberts19-May-20 11:39 
GeneralMessage Closed Pin
19-May-20 12:22
Member 1477996819-May-20 12:22 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 14:25
professionalEddy Vluggen19-May-20 14:25 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 14:40
Member 1477996819-May-20 14:40 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 14:45
professionalEddy Vluggen19-May-20 14:45 
QuestionRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 14:23
professionalEddy Vluggen19-May-20 14:23 
AnswerRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 14:43
Member 1477996819-May-20 14:43 
GeneralRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 14:46
professionalEddy Vluggen19-May-20 14:46 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 14:44
Member 1477996819-May-20 14:44 
AnswerRe: How to Validate Rest API response? Pin
Eddy Vluggen19-May-20 11:28
professionalEddy Vluggen19-May-20 11:28 
AnswerRe: How to Validate Rest API response? Pin
Gerry Schmitz19-May-20 19:35
mveGerry Schmitz19-May-20 19: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.