Is it possible to validate an XML Soap Request against an XSD? - postman

I am using the Crome version of Postman and would like to validate my XML SOAP requests (against an XSD) before submitting them. Is this possible? I can only find support for JSON schema validation.

Related

JSON Request validation in WSO2 APIM

I need to validate request and response in WSO2 APIM. Can someone please provide the example how to do that. I am using WSO2 with version 2.6.1
In the below JSON I need to validate the email field should have proper email address and it should not be empty.
{
"User":{
"name":"abc",
"age":"30",
"email":"abc#xyz.com"
}
}
It should give error or fault message if email is empty or not in proper.
Please provide example I went through many WSO2 documentation but could not able to find it. Thanks
You can use mediation sequences to achieve this requirement. To validate the request, upload the request for In Flow and for validating the response, upload the sequence for Out Flow.
For official documentation for writing the mediation sequences, follow [1]
For more information on how to use mediation sequences with api manager follow[2]
[1] https://docs.wso2.com/display/ESB500/Mediating+Messages
[2] https://docs.wso2.com/display/AM260/Adding+Mediation+Extensions

BIRT - Add custom authentication header to SOAP Webservice

I'm using BIRT 4.3.1 and my datasource is a Webservice. Authentication is done by Josso and JOSSOID is available at my report.
I've tried to call this Webservice by SoapUi adding JOSSOID in the header. But I need to know how to do it by BIRT. I use a BIRTEclipse to edit/view the report itself.
I've searched something about WSSE but this protocol needs the username and password and I have just JOSSOID.
How could I add a custom header to this HTTP Request?

Bypass OAuth validation when the request is a query

I have a web service which is validated by OAuth (Authorization code).
I am using Oracle IDM stack (OAM /Oath service , OES etc).
The issue is - I want to have OAUth validation only when a webService API is processed at the backend, but not when a client is just browsing a WSDL or XSD.
In my current implementation, I am using filter in the web.xml and I have added web service name ( which is web service Servlet) URL in the filters. The url to browse the service and execute the service, will have same name except the ?WSDL at the end of the URL, in case of WSDL/XSD query.
So, the problem is when I query WSDL, then also it goes goes via OAuth validation, which I don't want!
I tried to add logic to determine if the http query string is ?WSDL then by pass OAUTH validation, but it does not work because clients like SOAP UI and others can actually use ?WSDL in the URL, to even execute the web service API, which sort of fails the whole validation purpose.
Has anyone come across similar issue? how to resolve this issue ?

How to consume basic authenticated web services exposed from WSDL for generating SSRS report?

I have one WSDL containing the metadata like web service etc which i have tried to extract using soap API but since all the web services in WSDL are authenticated, I am not able to POST the request and get the response when I create the Data source in Report Builder and add the WSDL URL i am not able to post the request to get the required response as it throws the authentication error..!!!
I have tried setting the credentials while passing the credentials #query in dataset, but unable to post the request.
Can anyone help me on this part..!!

WSO2 API Manager filter JSON result

I am trying to filter JSON results coming from our main application in our WSO2 API Manager and to filter URL's in the results. I haven't tried anything specific. Any ideas?
In Filter mediator use xpath to identify the certain messages/properties.check the url in the payload and filter..Check the documenation