Click here to Skip to main content
15,901,205 members
Home / Discussions / C#
   

C#

 
GeneralRe: zedgraph Pin
jashimu10-Dec-09 8:27
jashimu10-Dec-09 8:27 
Question<key value=""> collection as a parameter in an interface method</key> Pin
Chiman110-Dec-09 5:51
Chiman110-Dec-09 5:51 
GeneralRe: collection as a parameter in an interface method [modified] Pin
Abhinav S10-Dec-09 6:22
Abhinav S10-Dec-09 6:22 
GeneralRe: collection as a parameter in an interface method Pin
Chiman111-Dec-09 17:34
Chiman111-Dec-09 17:34 
QuestionSend a class object to a webservice Pin
Gktony10-Dec-09 5:32
Gktony10-Dec-09 5:32 
AnswerRe: Send a class object to a webservice Pin
hammerstein0510-Dec-09 5:52
hammerstein0510-Dec-09 5:52 
GeneralRe: Send a class object to a webservice Pin
Gktony10-Dec-09 6:08
Gktony10-Dec-09 6:08 
GeneralRe: Send a class object to a webservice Pin
hammerstein0510-Dec-09 6:30
hammerstein0510-Dec-09 6:30 
Ok. In your web service, define your class. Then accept the type of Fax in your sendInformation method of the WS.

Now, when you consume the web service, a type of Fax will become available. Visual studio creates code files to represent the objects you can pass up so, without you physically defining the file locally, you can;

Fax createFile = new Fax( );

createFile.Reference = txtReference.Text;
createFile.AccountNo = txtAccountNo.Text;

InfoService info = new InfoService( );

info.SendInformation( createFile );


Where your WS method looks like;

[WebMethod]
public void SendInformation( Fax info)
{
// do something with info in here
}

Questionvariable names Pin
benjamin yap10-Dec-09 4:59
benjamin yap10-Dec-09 4:59 
AnswerRe: variable names Pin
Keith Barrow10-Dec-09 5:05
professionalKeith Barrow10-Dec-09 5:05 
AnswerRe: variable names Pin
OriginalGriff10-Dec-09 5:05
mveOriginalGriff10-Dec-09 5:05 
AnswerRe: variable names Pin
PIEBALDconsult10-Dec-09 5:18
mvePIEBALDconsult10-Dec-09 5:18 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 5:22
benjamin yap10-Dec-09 5:22 
GeneralRe: variable names Pin
Abhinav S10-Dec-09 5:32
Abhinav S10-Dec-09 5:32 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 5:39
benjamin yap10-Dec-09 5:39 
GeneralRe: variable names Pin
Abhinav S10-Dec-09 5:47
Abhinav S10-Dec-09 5:47 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 5:53
benjamin yap10-Dec-09 5:53 
GeneralRe: variable names Pin
Abhinav S10-Dec-09 5:58
Abhinav S10-Dec-09 5:58 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 6:06
benjamin yap10-Dec-09 6:06 
GeneralRe: variable names Pin
Luc Pattyn10-Dec-09 6:08
sitebuilderLuc Pattyn10-Dec-09 6:08 
AnswerRe: variable names Pin
Keith Barrow10-Dec-09 6:12
professionalKeith Barrow10-Dec-09 6:12 
GeneralRe: variable names Pin
PIEBALDconsult10-Dec-09 6:32
mvePIEBALDconsult10-Dec-09 6:32 
GeneralRe: variable names Pin
benjamin yap10-Dec-09 17:56
benjamin yap10-Dec-09 17:56 
QuestionPharmacy Program Pin
Aiham242410-Dec-09 4:56
Aiham242410-Dec-09 4:56 
AnswerRe: Pharmacy Program Pin
Keith Barrow10-Dec-09 5:02
professionalKeith Barrow10-Dec-09 5:02 

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.