This question already has answers here:
CORS with POSTMAN
(6 answers)
How to enable CORS in AngularJs
(10 answers)
Closed 4 years ago.
I am trying to make an Angular web app to call SAS STP service. I have tested the page to make a 'GET' request from 'http://date.jsontest.com' and it worked perfectly. However, when I switched the URL to SAS STP service (https://server:port/SASStoredProcess/do1?_program=/Shared+Data/stp_service) it kept giving me an error saying I am not allowed.
I have tested the SAS STP service with Postman and was able to get a return successfully. do I need to deploy the STP service as Web service?
Related
This question already has answers here:
Does Facebook SDK require HTTPS?
(5 answers)
Closed 2 years ago.
I tried to configure social authentication via Facebook in my Django project.
As I am testing at localhost (already included the http-based site in ALLOWED_HOSTS) , I need to disable Enforce HTTPS.
My fb app is now in development mode, but by default Enforce HTTPS is enabled and couldn't be changed apparently. How can I fix it?
Thanks!
You cannot disable it anymore, it is required for security reasons
Enforce HTTPS. This setting requires HTTPS for OAuth Redirects, and it
requires and Facebook JavaScript SDK calls that return or require an
access token are only from HTTPS pages. All new apps created as of
March 2018 have this setting on by default, and you should plan to
migrate any existing apps to use only HTTPS URLs by October 6, 2018.
Most major cloud application hosts provide free and automatic
configuration of TLS certificates for your applications. If you
self-host your app or your hosting service doesn't offer HTTPS by
default, you can obtain a free certificate for your domain(s) from
Let's Encrypt.
I'm in the process of migrating our web applications from a Cold Fusion 9 server to a Cold Fusion 2016 server and one of the web service calls that works perfectly in CF9 is now raising the following error in CF2016.
Web service operation InsertBank with parameters
{2,JOHNSON,BRIAN,450,450100530,21/02/2017,C,11212,006,128661543321,A,en}
cannot be found.
I'm calling the method directly through CFScript (I've already defined the web service using createObject(), and assigned it to an application variable for easy use)
result = Application.AdminWS.InsertBank(Trim(Application.ApplicationId),Trim(uname),Trim(Session.Employee.Client.xmlText),Trim(Session.Employee.Certificate.xmlText),Trim(DateFormat(Now(),"dd/mm/yyyy")),"C",Trim(instiNum),Trim(accouNum),Trim(transNum),Trim(varAccStatus),session.language);
I'm aware that Axis2 was introduced in CF10 however in ColdFusion Administrator I set the default as Axis1; I don't believe this is the cause of the issue. I've tried refreshing the WSDL however the only difference between the WSDL files between the two servers are the URLs.
Is there a way to cfdump a web service and view all of it's parameters?
This question already has answers here:
Representational state transfer (REST) and Simple Object Access Protocol (SOAP)
(14 answers)
Closed 8 years ago.
If given a REST or SOAP webservices URL, how can we find the method it offers.
For ex: http://ipAddress:port/projectName/services
Just tack ?wsdl onto the end of the URL. If it returns the XML based WSDL document, then it is a SOAP based service.
I'm pretty new to salesforce callout stuff and trying to make a simple GET request from my salesforce callout, but I kept getting this error:
System.CalloutException: Unable to tunnel through proxy. Proxy returns "HTTP/1.0 404 Not Found
I'm pretty sure this is because I'm making request to the web service on my local machine, but since I'm only testing this out, I don't have a server that's available online.
I tried making a callout to just http://www.google.com?q=blah and it works just fine.
So I guess my question is that anyone has a way to make callout to a web service on their local machine?
Just put your ip address instead of 'localhost' and that is it. If you have a router at work/home, you need setup it so it route internet calls to your PC.
That is how it works for me right now. I created a WS using Java. Started a server on 8080 port. From my SFDC application I call xx.xx.xx.xx:8080/bla
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to establish the WSO2 Gadget Server in version wso2GadgetServer-1.4.2 (Carbon 3.2.x) in an environment secured by a Tivoli Access Manager (WebSEAL). All authenticated requests which reaches the gadget server have the parameter iv-user filled (with the username) in the HTTP header. The infrastructure environment has some restrictions: In opposition to the functionality of the WebSEAL authenticator plugin provided by WSO2 (as declared in the article “WebSEAL authentication for WSO2 Carbon based products”) there is no additional communication between TAM and the gadget server and no special TAM user account possible. The gadget server should evalute the header and automatically log in the user if necessary. Under normal circumstances the end-user should never see the login mask of the gadget server. It would be nice, if the necessary changes could be done without changing and compiling the gadget server. After studying the article “Carbon Authentication Framework”, I have tried to write an own authenticator plugin with BE and FE services to replace the default gadget server authentication.
My approach is, to lead through all HTTP requests to a filter where I can inspect the HTTP header and log in the user if necessary. In difference to the examples I’ve followed where only a single url is catched (article “How to create redirector in WSO2 Stratos” and the source code of the “SAML2 SSO Authenticator” provided by WSO2), I want to catch all requests. I have set the url-pattern in the servlet to "/*", with the result, that my filter logic will not be called. If I use an url-pattern for one single site (e.g. "/carbon/admin/docs/about.html"), then the filter logic will be reached.
Why does the url-pattern "/*" not work as I expect?