Cannot get DIME to work remotely

S

Sam

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
documentation.

<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 documented in the MS sample:

<webServices><soapExtensionTypes><add
type="Microsoft.Web.Services.WebServicesExtension,Microsoft.Web.Services,
Version=1.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35"
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).Stream)
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



(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top