TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kuchana Rajendra Prasad
NA
81
14.4k
Not able to create SoapContext obj in web API
Aug 16 2018 8:16 AM
Hi
I am facing issue in web api, as i am creating web api service to client.
in this web api iam using other services to create a request with attachement.
but SoapContext obj is not creating in my web api.
using below line to create soapcontext obj
SoapContext respContext = client.RequestSoapContext;
DimeAttachment dimeAttach = new DimeAttachment("image/gif", TypeFormat.MediaType, strpath);
respContext.Attachments.Add(dimeAttach);
but evry time iam getting "respContext " as null.
Please help on this how can i create a obj to attach a file to the another service from my service.(i am using another service in my web api )
Reply
Answers (
0
)
Can we store some data into session in entity framewrok
how to pass more than one int parameter in web api