Access is Denied - web service as a data source

B

Badajoz95

Hi,

I have created a web service as a data source. I have tested it and it works
fine (a fantastic feature!). I then create a new infopath form using "New
from Data Connection" \ Web Service. I add the datafields from the data
source onto the form. I preview the form and it works great. I then publish
the form and try it again. Now I get "Access is Denied" when I submit.
Strange. I check IIS and event logs and nothing is recorded (its not
leaving the form at all). I am unable to debug this because it is managed
code... so I monkey around and one of things I try is making the form fully
trusted by giving it a certificate. It now works... but...

(1) should I have to & why should I have to a make a form fully trusted to
get it to talk to a web service? any ideas please?

(2) Is there a way to debug what the managed code is doing and investigate
the error? (or is monkeying around the only way).

Input most appreciated.

Regards,

Paul.
 
H

Hagen Green [MSFT]

Hi Paul,

Where did you publish the form? Is it on a SharePoint server?
Are you using InfoPath's Web service submit feature? Or are you writing
custom code to do the submit?

--Hagen
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/cpyright.htm
 
B

Badajoz95

Hi,

Published to a network share and / or local disk. Using standard submit (no
bespoke script / code).

My question concerning debugging is really because a message like "Access is
denied" is very hard to diagnose.

Thanks for your time,

Paul.
 
B

Badajoz95

If I give the form full trust it - but all it needs to do is talk to a
domain web service - so why is domain trust not enough?
 

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

Top