How to validate the all parametes by using XSD against validation - xsd-validation

How to validate the all mandatory parameters at one time.I want to display all mandatory parameters not entered in user .For Example I have 4 parameters username,pwd,phno,address.
If the user not provided the information of two parameters like pwd and address.
By using the XSD against validation concept,It throwing the SAX Exception on PWD.but it not showing the exception on Adress as well.
Condition:
1.Input format may jsonformat,xml,or any thing.
Please share information.
I have not found concrete information from this site.

Related

Adding groups to scope for Auth Code Flow pt. 1

The docs say "Add “profile” and/or “groups” to get additional user information returned in the id_token". How? What format? When I do the following:
https://.onelogin.com/oidc/2/auth?client_id=&redirect_uri=&response_type=code&scope=openid,groups
I get an error saying openid is required, as if it didn't recognize it because I tacked on the ',groups' to the querystring. What do they mean by "add" in the docs?
https://developers.onelogin.com/openid-connect/api/authorization-code

Pentaho Kettle LDAP Output

How do I update the LDAP value using LDAP Output Step in Spoon?
I couldn't find any documentation on Pentaho's website. I am trying to update the group name of a particular user in Active Directory.
Until now, I was able to connect with the AD. But I can't make any changes to LDAP.
In General -> Settings, my operation is updated.
And in Fields -> Search Base, I defined the DC attributes. Eg: dc=xyz,dc=com.
And in Attributes, I defined the OU along with the value it should be changed too.
Is this how it should work?
I am getting an error saying "can not find DN(Distinguished Name) in the input stream!"
My guess is that you are using the values you want to inject instead of the fields containing those values. This step heavily relies upon fields coming in from previous steps.
In the image below you will see I am passing in the 'dn' field which is used in Settings > 'Dn fieldname' to lookup the field I want to alter.
Then under Fields I am mapping the incoming 'new_name' field to the property 'givenName' on the LDAP object identified by the DN.
So my DN to lookup and the value to set the field to are coming from my transformation stream. I only statically identify the Attribute on the LDAP object to be mapped.
the dn is not right. dn is cn + ou-structure like ou + domain-structure like dc.
If you dont know the cn, you cant define the dn. You must take a LDAP-Input with query like your uid for getting dn.
With this dn you can update attributes with LDAP-Output, if you have rights for writing.

vb.net - xmlserializer deserialize omitting first part of text that contains tags

I have xml that looks like
<AddResponse xmlns="http://www.test.com/webservices">
<ServerName>51</ServerName>
<Response Type="ERROR">
<ErrorDesc Type="VALIDATE" Number="215">We are sorry, that number is already in use. If it is your mobile number, we need to verify it with you. Please complete the one time verification by submitting your request at Contact Us using the keyword MYMOBILE</ErrorDesc>
</Response>
<ExternalInfo>
<![CDATA[?]]>
</ExternalInfo>
</AddResponse>
But when this is deserialized, it is returning just "using the keyword MYMOBILE" as ErrorDesc instead of the whole
We are sorry, that number is already in use. If it is your mobile number, we need to verify it with you. Please complete the one time verification by submitting your request at Contact Us using the keyword MYMOBILE
Can you please let me know why its omitting the first part and how to retain it?
Note: this works fine for rest of xml data that doesn't have html tags in it.

JMeter: Passing Key Value Pairs Not Working

I'm using JMeters to automate API testing to/from our database using basic CRUD methodology. After the record creation, I'm trying to perform 3 different types of Reads (think CRRRUD). :)
Read 1 - Retrieve by ID
HTTP (GET) the base URL is appended with the saved record ID.
http..../crud/tableName/${newRecordId}
This returns
Read 2 - Retrieve by field type with no defined value
HTTP (POST) the base URL is extended with a "search" as the end. A Key is defined ("name") with no value.
http..../crud/tableName/search
Parameter Name = name
Value = {undefined}
This returns all records within the table whose field ("name") is not null.
Read 3 - Retrieve by field type with a defined value
HTTP (POST) the base URL is extended with a "search" as the end. A Key is defined ("name") with the value generated during the creation request.
http..../crud/tableName/search
Parameter Name = name
Value = Metropolis
This, too, returns ALL of the records within the table instead of just the record(s) whose name = Metropolis.
This 3rd Retrieve works properly when using a REST client, (e.g., Postman, Advanced REST Client, etc.) when defining the Key|Value pair as "name|Metropolis". So it must be something within JMeter that I'm missing.
Any insight is appreciated!
There is only one correct answer: compare what's being sent by REST Client and JMeter using sniffer tool (i.e. Wireshark), detect the differences and configure JMeter accordingly.
Just a guess: given you mentioned "API" an "REST" words maybe you need to pass it as JSON like:
{"name":"Metropolis"}
as a single parameter value
or in formatted way (in case if server checks Content-Length and/or wants the request to be properly formatted)
You may also need to add HTTP Header Manager in order to send Content-Type header with the value of application/json. See Testing SOAP/REST Web Services Using JMeter guide for more details.

Retrieving PDF report from BO4.1 Webservice

I am trying to migrate my web service client from BO 3.x to BO 4.1 Restful.
The existing implementation of BO 3.x uses BO java SDK to get CUID and doc properties to get the PDF report by using below inputs.
Report Path : path://InfoObjects/Root Folder/Application Name/Report
Name.rpt
Fill Parameter List : Parameter 1, Parameter 2, Parameter 3 etc to identify a report.
I have constructed my client code to get Logon token from RESTful web service. However I am not sure how to retrieve the PDF file now in BO 4.1.
Many of the samples I have seen uses sIDType and iDocID parameters along with Token value to retrieve the document by constructing a URL like below
http://server:port/BOE/OpenDocument/opendoc/openDocument.jsp?token=[LogonToken]&iDocID=[XXXX]&sIDType=CUID
My question : Is it must to have iDocID to retrieve document using URL pattern above or is it possible to construct a URL using report path / CUID and fill parameters ( without using iDocID) to retrieve pdf report from BO Web service.
Please assist me on this. Thanks
Note the &sIDType=CUID parameter in your sample URL -- that indicates that the page is expecting the value of iDocID to be a CUID. Without sIDType=CUID, it would expect the value to be an integer document ID.
That is, you only need the CUID, not the document ID. Also, CUID is unique, so there would be no value in specifying both CUID and path.
Incidentally, instead of specifying a CUID or ID, you can specify the document's path and name. However, this functionality is deprecated in BI4.1.
Prompt values can be supplied to openDocument using the lsS and lsM parameters (for single-select and multi-select prompts, respectively).
See the openDocument documentation here.