Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using MTOM with Web services
#1
Not Solved
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):
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
Reply


Messages In This Thread
Using MTOM with Web services - by tester_rahul - 07-17-2012, 07:33 PM
RE: Using MTOM with Web services - by Tarik Sheth - 07-18-2012, 01:34 PM
RE: Using MTOM with Web services - by Tarik Sheth - 07-18-2012, 05:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Web Services Testing Elvira 0 1,636 05-08-2015, 03:48 PM
Last Post: Elvira
  web services testing using QTP tester_rahul 0 1,991 07-16-2012, 03:25 PM
Last Post: tester_rahul
  Private web services testing using QTP tool rajeswari.g 1 3,460 12-10-2010, 05:38 PM
Last Post: Saket
  web services add-ins qtpguru 1 3,316 11-11-2009, 10:30 AM
Last Post: Tarik Sheth
  Qtp Web Services Testing avanishdharamjoshi 0 2,363 09-17-2009, 11:21 PM
Last Post: avanishdharamjoshi

Forum Jump:


Users browsing this thread: 3 Guest(s)