Hi!
I have reached the point where I want to use the mpf client wrapper, but i have som trouble using it on my namespaces on the MPS.
I use the following code:
public XmlDocument wrappingme()
{
Microsoft.Provisioning.Client.Wrapper.Request wrappme = new Microsoft.Provisioning.Client.Wrapper.Request();
XmlDocument xmlrequest = new XmlDocument();
xmlrequest = wrappme.BuildBaseRequest(
"Simple Provider CS", "joinstring");XmlElement elmdata = xmlrequest.CreateElement("data");
XmlElement newnode = xmlrequest.CreateElement("stringA");XmlText txtnew = xmlrequest.CreateTextNode("ad1.infostorm.no");
newnode.AppendChild(txtnew);
elmdata.AppendChild(newnode);
newnode = xmlrequest.CreateElement("stringB");txtnew = xmlrequest.CreateTextNode("fghfgh");
newnode.AppendChild(txtnew);
elmdata.AppendChild(newnode);
wrappme.SubmitRequest(xmlrequest, true);
Response.Write(wrappme.ErrorString.ToString());
return xmlrequest;
}
But i always get the responce: "Calling user not authorized for invoking trusted method"
My app is using the the MPSWebServiceAcctPool
Does anyone know what im doing wrong?
The mps client wrapper does not support authentication. How do I implement this?
I realy appreciate some help.
Morten