Hi, I have been running a web service code on my own machine along with the client code. It was running fine and managed to receive the Dime attachments sent from the web service to the client.
The web service uses WSE 2.0 and Dime attachments. The client code sits on the same machine that calls the web service.
However when I go to deploy this on a Windows 2003 R2 Server, on the ResponseSoapContext.Current.add(dimeAttachment) line it failed due to the ResponseSoapContext.Current object being null.
The client code has managed to call the web service as I can see in the logs it is trying to do something.
Would there be a firewall stopping the client code receiving the Dime attachment from the web service? Or is there a setting I am missing? Here is the code:
DimeAttachment dimeAttach = new DimeAttachment(
"application/octet-stream", TypeFormat.MediaType,
streamObj);
if (ResponseSoapContext.Current != null)
{
ResponseSoapContext.Current.Attachments.Add(dimeAttach);
}
else
{
throw new Exception("The ResponseSoapContext.Current object is null");
}