Click here to Skip to main content
15,889,096 members
Home / Discussions / C#
   

C#

 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Ed.Poore17-Apr-08 23:07
Ed.Poore17-Apr-08 23:07 
AnswerRe: RegistryKey.OpenRemoteBaseKey() problem Pin
heidihund20-Apr-08 21:07
heidihund20-Apr-08 21:07 
GeneralRe: RegistryKey.OpenRemoteBaseKey() problem Pin
Dave Kreskowiak17-Apr-08 5:07
mveDave Kreskowiak17-Apr-08 5:07 
Generalmy game code Pin
stephen bempah17-Apr-08 2:42
stephen bempah17-Apr-08 2:42 
GeneralRe: my game code Pin
laserbaronen17-Apr-08 2:52
laserbaronen17-Apr-08 2:52 
GeneralRe: my game code Pin
Pete O'Hanlon17-Apr-08 3:01
mvePete O'Hanlon17-Apr-08 3:01 
GeneralRe: my game code Pin
Dave Kreskowiak17-Apr-08 5:03
mveDave Kreskowiak17-Apr-08 5:03 
GeneralMTOM Pin
JustRonald17-Apr-08 2:25
JustRonald17-Apr-08 2:25 
Hi,

I have a Windows Application which should send data to a Webservice.
I've added the URL of the Webservice (Add Web Reference...) to my project.
I've also added the .cs file of the Webservice in my project.

This is from the Webservice:
POST /webservices/MTomTest/Mtomdummy.asmx HTTP/1.1
Host: secret.nl
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddFile xmlns="http://www.secret.nl/MTOMTest/v1">
      <request>
        <EmailAddress>string</EmailAddress>
        <Filename>string</Filename>
        <FileData>base64Binary</FileData>
      </request>
    </AddFile>
  </soap12:Body>
</soap12:Envelope>

Based on what he needs (EmailAddress, Filename, FileData) I wrote the following:
/* DECALRATIE */
string EmailAddress;
string Filename;
string FileDataBase64Binary;
SoapBase64Binary base64Binary;
MTOMDummy AddFileService;

/* INITIALISATIE */
EmailAddress = "email@secret.nl";
Filename = "TestDeclaratie.zip";
FileDataBase64Binary = "AgMFBws=";
base64Binary = SoapBase64Binary.Parse(FileDataBase64Binary);
AddFileService = new MTOMDummy();

AddFileRequestType request = new AddFileRequestType();
//request.EmailAddress ;
//requestFilename = ;
//request.FileData = ;

/* CODE */
//AddFileService.AddFile(AddFileRequestType request);
//AddFileService.AddFile(?????????);

The webmethod is called "AddFile" which I can call by using:
AddFileService.AddFile();

I only need to know what should give as parameters for the "AddFile" webmethod?
Any help would be greatly appriciated.

Regards,
Ronald
AnswerRe: MTOM Pin
atuldeore17-Apr-08 3:16
atuldeore17-Apr-08 3:16 
GeneralRe: MTOM Pin
JustRonald17-Apr-08 3:52
JustRonald17-Apr-08 3:52 
Generalexception in ReaderWriterLock Pin
George_George17-Apr-08 1:47
George_George17-Apr-08 1:47 
Generalapp.config wtf Pin
Razvan Dimescu17-Apr-08 1:00
Razvan Dimescu17-Apr-08 1:00 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 1:13
Ed.Poore17-Apr-08 1:13 
GeneralRe: app.config wtf Pin
Razvan Dimescu17-Apr-08 6:46
Razvan Dimescu17-Apr-08 6:46 
GeneralRe: app.config wtf Pin
Ed.Poore17-Apr-08 11:35
Ed.Poore17-Apr-08 11:35 
Generalcrystall report! Pin
ali_reza_zareian17-Apr-08 0:19
ali_reza_zareian17-Apr-08 0:19 
QuestionHow to upload file onto server with credentials Pin
Chintan.Desai16-Apr-08 23:55
Chintan.Desai16-Apr-08 23:55 
AnswerRe: How to upload file onto server with credentials Pin
phannon8617-Apr-08 0:14
professionalphannon8617-Apr-08 0:14 
QuestionForm Layout at Runtime ? Pin
jamesjk16-Apr-08 23:33
jamesjk16-Apr-08 23:33 
AnswerRe: Form Layout at Runtime ? Pin
Simon P Stevens16-Apr-08 23:43
Simon P Stevens16-Apr-08 23:43 
GeneralRe: Form Layout at Runtime ? Pin
jamesjk16-Apr-08 23:52
jamesjk16-Apr-08 23:52 
GeneralRe: Form Layout at Runtime ? Pin
Simon P Stevens17-Apr-08 0:22
Simon P Stevens17-Apr-08 0:22 
QuestionHow to insert a control in grid view - C# windows [modified] Pin
NarVish16-Apr-08 23:25
NarVish16-Apr-08 23:25 
AnswerRe: How to insert a control in grid view - C# windows Pin
ali_reza_zareian17-Apr-08 0:21
ali_reza_zareian17-Apr-08 0:21 
Generalsingle selection across ListBoxes Pin
Maddie from Dartford16-Apr-08 22:57
Maddie from Dartford16-Apr-08 22:57 

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.