07-17-2012, 07:33 PM
hi ,
I am getting the following error message when i am requesting for a web service using MTOM as attachment.
The importTemplate operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Exception from: Net2ProxyBase
WSE839: An HTTP response was received that used the following content type: text/xml;charset=UTF-8. The following content type was expected: multipart/related; type=application/xop+xml.
Line (13):
I am using the following lines of code:
Can some one provide me help regarding this
I am getting the following error message when i am requesting for a web service using MTOM as attachment.
The importTemplate operation call failed.
The .NET Framework 2.0 WSE 3.0 toolkit returned the following error:
Exception from: Net2ProxyBase
WSE839: An HTTP response was received that used the following content type: text/xml;charset=UTF-8. The following content type was expected: multipart/related; type=application/xop+xml.
Line (13):
Code:
"Set importTemplate = WebService("TemplateService").importTemplate(XMLWarehouse("ImportTemplate"))".
I am using the following lines of code:
Code:
' OCMConnectionService Web service object steps
connect = WebService("OCMConnectionService").connect("<domain name>","uid","pwd")
'WebService("OCMConnectionService").Check CheckPoint("connect")
environment.Value("token") = connect
' TemplateService Web service object steps
Webservice("TemplateService").Attachments.SetType micMTOM
webservice("TemplateService").attachments.add "C:\qtp\QtpWs.zip"
Set importTemplate = WebService("TemplateService").importTemplate(XMLWarehouse("ImportTemplate"))
Can some one provide me help regarding this