Click to See Complete Forum and Search --> : Soap connector problem


WolV
September 19th, 2002, 10:47 PM
<HTML>
<HEAD>
<TITLE>WebFile</TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="VBScript">
Function Form1_onsubmit()
Err.Clear
EndPointURL = "http://128.2.1.133/Soap3Doc/Attachment3/Server/Attachment.asp"

Set Connector = CreateObject("MSSOAP.HttpConnector30")
Set Serializer = CreateObject("MSSOAP.SoapSerializer30")
Set Composer = CreateObject("MSSOAP.DimeComposer30")
Set Reader = CreateObject("MSSOAP.SoapReader30")
Set Parser = CreateObject("MSSOAP.DimeParser30")

Connector.Property("EndPointURL") = EndPointURL
Connector.Property("ProxyServer") = "<CURRENT_USER>"
Connector.Property("SoapAction") = "http://TestAttachments/Test"

Composer.Initialize "C:\MyFolder", 15
Serializer.InitWithComposer Connector.InputStream, Composer
Serializer.StartEnvelope
Serializer.StartBody
Serializer.startElement "PutAttachments"
Serializer.startElement "AttachmentType"
Serializer.WriteString "FileAttachment"
Serializer.endElement
.
.
.
End Function
</SCRIPT>
.
.

this is a code excerp.
My problem is I keep getting a message saying can't create Connector Object (Set Connector = CreateObject("MSSOAP.HttpConnector30"))

I've tried the same code but using it as a script file and it works. but when I embed it in html..it doesn't..

I'm new to this so any help is a great one. Thank you.