Click here to Skip to main content
14,600,651 members
   

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
Memberarnold_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
MemberMember 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
MemberMember 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:
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:
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
MemberMember 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
MemberMember 1477996819-May-20 8:49 
AnswerRe: How to Validate Rest API response? Pin
Member 798912219-May-20 9:31
MemberMember 798912219-May-20 9:31 
GeneralRe: How to Validate Rest API response? Pin
Member 1477996819-May-20 9:46
MemberMember 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
Member 798912219-May-20 11:39
MemberMember 798912219-May-20 11:39 
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
MemberMember 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
MemberMember 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
MemberMember 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 
Questionhow to add picture into mysql using datagridview Pin
Member 1483389818-May-20 20:28
MemberMember 1483389818-May-20 20:28 

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.