Please someone help me. I have spent so many hours on DIME and I cannot get
it to work remotely. It only works if my client application is on the same
computer as the Server.

Here is my DIME webmethod. It is a sample I got from Microsoft WSE 1.0
doentation.

<WebMethod()> Public Function GetFile()
Dim orspcontext As SoapContext = HttpSoapContext.ResponseContext
Dim od As DimeAttachment = New DimeAttachment("image/gif",
TypeFormatEnum.MediaType, "C:\test\train.jpg")
orspcontext.Attachments.Add(od)
End Function


<WebMethod()> Public Function HelloWorld() As String
Return "Hello World"
End Function

I added this line to my web.config file as doented in the MS sample:

<webServices><soapExtensionTypes><add
type="Microsoft.Web.Services.WebServicetension, Microsoft.Web.Services,
Version=1.0.0.0,Culture=neutral,PublicKeyToken=31b f3856ad364e35"
priority="1" group="0" /></soapExtensionTypes></webServices>

************************************************** **************************
*

Here is my Client application method. It is just a form with a buttton and a
picturebox.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim svc As New localhost.Service1wse
svc.GetFile()
If svc.ResponseSoapContext.Attachments.Count = 1 Then
MessageBox.Show("Got it!\n")
pbDime.Image = New Bitmap(svc.ResponseSoapContext.Attachments(0).Stre am)
End If
End Sub


Everything works fine when I put the client application on the webservice
server, but when I moved the client application to a remote computer I can
only call the Hello World method. if I try to click on button1 I get the
following error:

An unhandled exception of type
'System.Web.Services.Protocols.SoapHeaderException ' occurred in
system.web.services.dll

Additional information: Message Expired



PLEASE HELP.

Thanks.

Sam



[email]skhoushaw.ca[/email]