Running Lotus Notes Domino 8.5.2. I have created a LotusScript web service consumer from a wsdl provided by a Microsoff Dynamics Nav server.
In a LotusScript agent I have this code
Dim nav As New Noteswebservice_port_n2()
Call nav.Setcredentials("DOMAIN\username", "password")
Dim res As String
res = nav.Createorder("123", "", "test", "CH")
The problem is that I get 401 Unauthorized, when calling CreateOrder.
I have tested the web service from Visual Studio, and it works with the same credentials as used in the agent.
I suspect that Lotus Domino and Dynamics doesn't use the same authentication method. I have tried to enable NTLM on Dynamics, but same result. I have no idea what to do next.
Any ideas?
Microsoft is using WS-Security in most Web Services by default. I don't know how it is with Dynamics Nav, but I assume it.
Complete description how to use with IBM Notes from Java:
Extending IBM Domino Web Service Consumers to support SOAP Authentication (Java)
Related
I am trying to call CRM webservice from my custom WCF service. And I am getting the exception "The caller was not authenticated by the service". Checked the authentication mode in IIS (where my wcf service is hosted). Its set to anonymous authentication enabled.
Is there any reason why MSCRM service would fail authentication while call is made from WCF?
Here is my code which calls the CRM web service
OrganizationService service;
var crmConnection = CrmConnection.Parse("Server=http://myserver/orgname; Domain=domainname; Username=username; Password=passwordtext");
service = new OrganizationService(crmConnection);
Entity crmEvent = service.Retrieve("new_event", eventId, new ColumnSet("status"));
When using windows authentication you need to pass a Networkcredential to the constructor of the OrganizationService.
This was already answered by #Daryl here.
I am new to microsoft azure, but good with web api.
I have created web api services, and able to test it from postman tool when it is on localhost.
Now I have uploaded my services on azure and now I am not able to call it from postman tool.
Azure url: not working
http://******.azurewebsites.net/api/account/signIn
body
userName and password... both are string
localhost url: working
http://localhost:62676/api/account/signIn
body
userName and password... both are string
What do I need to change in services ? Please suggest.
I suggest you to enable debugging mode for your web api service in Azure to see the detailed error message and stacktrace for troubleshooting.
Alternatively, you can also enable Remote Debugging for your web api and set the necessary breakpoint to debug through your web api in Azure.
I have a client that wants to invoke a web service.
I have a web service(asmx) , a default.aspx that can show the claims .
I have a test STS that my web service trusts.
I tested and sts can send correct claims and also web service seems to get them if I go through default.aspx page that shows the claims. I created a proxy(using Visual Studio "add service reference") for client to call the web service. I could not find a way about how to call web service from client programatically so that it will authenticate through my STS. I am calling like below but sts returns the claims response to client where it should return to web service and invoke the web service function.
MyClient = MyWebServiceSoapClient("MyWebServiceSoap", "http://127.0.0.1:81/MyService.asmx?whr=http%3a%2f%2flocalhost%3a25919%2fteststs%2fdefault.aspx%3fwa%3dwsignin1.0%26wtrealm%3dhttp%3a%2f%2f127.0.0.1%3a81%2fmyservice.asmx");
MyClient.MyServiceFunction();
Check samples in the Identity Training Kit or the "A Guide to Claims based Identity" for examples.
I wrote a C# library that enables you to get a SAML token from a 3rd party STS and subsequently ADFS to eventually authenticate to SharePoint. It may be of some help:
http://www.huggill.com/2012/02/04/claims-proxy-a-c-sharp-library-for-calling-claims-protected-web-services/
i'm writing a SharePoint client and i'm trying to login to the SharePoint Server using WebServices.
it's a SharePoint 2010 Server.
i'm using this WebService: http://msdn.microsoft.com/en-us/library/authentication(office.12).aspx
when using this webservice i get this error: NotInFormsAuthenticationMode
i can't change anything on the server side, and the docs says this webservice is:
Specifies a type of logon error for SharePoint sites that use forms-based authentication.
my question is how do i login using webservies to a non-FBA SharePoint server
thank you
solved.
there is no need to use Login webservice.
just send credentials with http request when soaping webservice..
For a Microsoft CRM project, we need NTLM authentication in the Delphi 2009 web service client.
It looks like Indy 10 Tiburon already has experimental NTLM support.
How can I activate the NTLM authentication for the THTTPRio component and use the logon information (user name, password, domain) of the destination web service server?
Edit: it would also be helpful if there is a way to use other authentication methods than 'Basic', for example HTTP Digest access authentication.
In the user name property of the WebNode subcomponent of the THTTPRio component, use the domain name followed by a backslash and the user name:
'domain\username'
After entering the WSDL URL at designtime, the HTTPRIO component will list available port and services.
I'm not entirely sure I understand your question - activate NTLM authentication? If you're looking for NTLM API imports for Delphi, you can find those in the JEDI Windows Security Library on the JEDI API home page. If the plan is to see how to use it, I'd say MSDN is your friend.