473,241 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,241 software developers and data experts.

Passed parameters to web service is null

Hallo, I have written web service with method:
public long DoSomething(string base64String)
{
try
{
return doit();
}
catch
{
return -1;
}
}

and client written also in c# that this webmethod is calling

private void clientmethod()
{
...
localhost.webservice ws = new
Name.Name.WebApplication.localhost.webservice();
long retvl = ws.DoSomething(base64String);
}

If I'm calling this client function, I'm passing base64 coded string, but on
webservice side is parameter passed as null.
Do somebody know where is problem?
Thanks a lot
LK
Nov 23 '05 #1
4 6022
Hi ladislav,
Can you put the whole code to get better idea.

Thanks,
Ragu.

"ladislav.k" wrote:
Hallo, I have written web service with method:
public long DoSomething(string base64String)
{
try
{
return doit();
}
catch
{
return -1;
}
}

and client written also in c# that this webmethod is calling

private void clientmethod()
{
...
localhost.webservice ws = new
Name.Name.WebApplication.localhost.webservice();
long retvl = ws.DoSomething(base64String);
}

If I'm calling this client function, I'm passing base64 coded string, but on
webservice side is parameter passed as null.
Do somebody know where is problem?
Thanks a lot
LK

Nov 23 '05 #2
Hi ladislav,
Can you put the whole code to get better idea.

Thanks,
Ragu.

"ladislav.k" wrote:
Hallo, I have written web service with method:
public long DoSomething(string base64String)
{
try
{
return doit();
}
catch
{
return -1;
}
}

and client written also in c# that this webmethod is calling

private void clientmethod()
{
...
localhost.webservice ws = new
Name.Name.WebApplication.localhost.webservice();
long retvl = ws.DoSomething(base64String);
}

If I'm calling this client function, I'm passing base64 coded string, but on
webservice side is parameter passed as null.
Do somebody know where is problem?
Thanks a lot
LK

Nov 23 '05 #3
You can pass base64String from C# client to web service. It looks your code
has some different problem.

Regards,
Ajit
"ladislav.k" wrote:
Hallo, I have written web service with method:
public long DoSomething(string base64String)
{
try
{
return doit();
}
catch
{
return -1;
}
}

and client written also in c# that this webmethod is calling

private void clientmethod()
{
...
localhost.webservice ws = new
Name.Name.WebApplication.localhost.webservice();
long retvl = ws.DoSomething(base64String);
}

If I'm calling this client function, I'm passing base64 coded string, but on
webservice side is parameter passed as null.
Do somebody know where is problem?
Thanks a lot
LK

Nov 23 '05 #4
You can pass base64String from C# client to web service. It looks your code
has some different problem.

Regards,
Ajit
"ladislav.k" wrote:
Hallo, I have written web service with method:
public long DoSomething(string base64String)
{
try
{
return doit();
}
catch
{
return -1;
}
}

and client written also in c# that this webmethod is calling

private void clientmethod()
{
...
localhost.webservice ws = new
Name.Name.WebApplication.localhost.webservice();
long retvl = ws.DoSomething(base64String);
}

If I'm calling this client function, I'm passing base64 coded string, but on
webservice side is parameter passed as null.
Do somebody know where is problem?
Thanks a lot
LK

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ladislav.k | last post by:
Hallo, I have written web service with method: public long DoSomething(string base64String) { try { return doit(); } catch { return -1;
1
by: Jackie W | last post by:
Has .NET any XML-based validation framework or tool classes to validate parameters passed to an Web Service? I need only couple of types validation - is parameter passed to Web Service method...
1
by: Phil Mc | last post by:
Trying to call a stored proc but some times don't want to have values inserted in some fields. Hi I am rewriting a VBS script which called a stored proc in a SQL server db. The proc takes a...
0
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
2
by: Arif Khan | last post by:
Hi, I want to write down a function entry point logging method, allowing logging of passed in parameters values along with function name and parameter names. I know I can get the parameter name and...
1
by: kplkumar | last post by:
I am trying to get the method and the parameters passed to that method from the stackTrace. My code is, private void GetExecutingMethodInfo() { StackTrace trace = new StackTrace(false); ...
1
by: SergeyR | last post by:
Hello everybody. I came across this question before but there was no suitable answer. Since I have the same problem, I will repeat it here. this is a simple web servive: using System;...
0
by: oolon | last post by:
Hy, I have to build a report. this report has to be call by a web service. My method to call this report is : public void Amende( string dossierId ) { ReportingService...
4
by: =?Utf-8?B?QWw=?= | last post by:
Hello, I'm writing a service using VS2005 and C#. I've found that only the objects used as parameters in WebMethods get exported to proxy dlls and the Service Description. I'd like my service...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.