org.xml.sax.SAXParseException in SAML implementation - exception

i am getting org.xml.sax.SAXParseException when Setting Up SAML2 Based SSO.i refered this article.http://docs.wso2.org/display/IS410/Setting+Up+SAML2+Based+SSO#SettingUpSAML2BasedSSO-SingleSign-OnInReality .
I am getting response but its not in xml format.any help to fix this issue??
thanks

Related

Talend Open Studio POST request: "Missing form parameter: grant_type"

I am using Talend Open Studio to call the Commerzbank API with a POST request to get a refresh token.
I get the error message "Missing form parameter: grant_type", which confuses me, as my tREST component looks like this:
In Postman everything worked well using this config:
Do I maybe need to place Content type "application/x-www-form-urlencoded" in a different way/place?
Thank you in advance for any hint :)
I was confusing things here: x-www-form-urlencoded does not ask for a json body, but something in the format like param1=value1&param2=value2
You can view code in the right level at Postman an get the java code from there .
https://learning.postman.com/docs/sending-requests/generate-code-snippets/#:~:text=In%20Postman%2C%20select%20the%20request,copy%20your%20generated%20code%20snippet.
Then you can paste the wanted code in a tjava .
The last step is to call it in query or body in tREST .

Why I am getting insufficient scope error by posting json through postman?

I have added headers and token but still having insufficient_scope error by posting json through postman
You must share the details of request to get help. But let me also try to help you out blindly.
I had face the same issue in past and make it possible to resolve the issue by some simple attempts.
Please make sure that your token is correct, its not expired, and if your token is well authorized to make request and get access of the demanding resources from the calling API.
Also make sure that if you have need to add bearer in the start of your token.
Hope it can solve your related issue. Thank You!
Also, check your request method. (I just spent a good 30 minutes trying to figure out why I was failing.) If you have only the listings_r scope, then you can only GET. You must have listings_w to POST. (My problem was copy/pasting several lines of cURL code, and I assume someone else reading this may have done the same.)

WooCommerce api authentication error oauth_consumer_key parameter is missing

I try to fetch all product data list in json from WooCommerce API and type address bar http://www.batata.in/wc-api/v3/orders. But it give an error:
{"errors"[{"code":"woocommerce_api_authentication_error","message":"oauth_consumer_key parameter is missing"}]}
I tried all things but issue is not fixed. Rest API is on.
If anybody know any other way to find product list in json format from WooCommerce WordPress plugins, then please tell me.
I have faced the same problem. After some research, I have solved this issue. Kindly check that your site secure or not [http or https]. I missed the "s" for http.
Please note that you need to provide consumer key, nonce, signature with your rest api call. Following is the format which worked for me.
http://SomeURL.com/wc-api/v2/orders?oauth_consumer_key=########&oauth_timestamp=######&oauth_nonce=#############&oauth_signature_method=HMAC-SHA256&oauth_signature=##########################
For generating nonce and signature I recommend you use some wrapper available for your platform. I used php so got a nice library here.
https://github.com/woocommerce/wc-api-php
Important:- Even after following all above steps correct I got the same issue you faced. It kept giving me error "oauth_consumer_key parameter is missing" which actually was misleading. The issue I figured out was the basic http auth. I had http authentication in place so the curl request I used to fire was returning 401 unauthorized. If you are using php you will understand following line.
curl_setopt($this->ch, CURLOPT_USERPWD, "USERNAME:PASSWORD");
And it worked. So point here is you can try this or play around with your curl/socket or any client you are building and don't focus on the error message as it is misleading most of the time.
Sandipa Mukherjee's answer is right.
For http:// additional oauth parameters are required, because it's not safe.
My suggestion is to use the https:// server for wordpress.
Please refer to https://scriptstown.com/how-to-setup-cloudflare-ssl-and-configure-origin-certificate-for-apache/

Special characters serilazation in rest services in json representation

Hi i am facing a problem while serializing the special characters.I need to display Norweign characters.I need to display TÅRNPLASS but it is serializing as TÃ…RNPLASS.Can anyone help me regarding this.Thanks in advance
To show the output in the correct way you have to set the Content-type for your response. It's just a starting poin but I can't help you in other ways because you didn't add more information about your specific problem.

Assistance required to connect to Foursquare via TIBCO BW using REST / JSON API - 1.1

We have an assignment to check the compatibility of Quick connect project for Foursquare against the REST/JSON 1.1.
When I am testing the process, while invoking Rest API for query Check-in, the process is throwing an error – “OAuth token invalid or revoked”. Can you kindly help to fix this issue.
Access_token for this was generated by registering a sample app with Foursuare.com, having www.google.com as welcome page and redirect URL. Please let me know if this is causing the issue.
Also, let me know is there is any standard method to generate the access_token for this.
Thanks in advance.
Regards,
Shree.
It sounds like you're not following Foursquare's instructions on connecting properly, or need to reconnect to get a new access_token. Keep in mind that the access_token isn't the code that comes back in the redirect, the code needs to be used to exchange for the access_token.