467,146 Members | 1,008 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

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
  • viewed: 5755
Share:
4 Replies
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by ladislav.k | last post: by
2 posts views Thread by Arif Khan | last post: by
1 post views Thread by kplkumar@gmail.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.