Create custom headers in zend soap server WSDL - soap

Is there a way of creating an WSDL custom header with the auto-discovery function zend-soap server? Or an other alternative way of managing such a request on the soap server?
I need to process a request coming from an ESB proxy containing a soapenv:header like this one:
<soapenv:Header>
<esb:header>
<esb:message_type>AddNewOrder</esb:message_type>
<esb:version>01.80</esb:version>
<esb:source_entity>LPRO</esb:source_entity>
<esb:source_application>NOLS</esb:source_application>
<esb:destination_entity>LPRO</esb:destination_entity>
<esb:destination_application>TIRE</esb:destination_application><esb:message_id>414d51204750455342333332202020201581675c22c0e127</esb:message_id><esb:correl_message_id>414d51204750455342333332202020201581675c22c13403</esb:correl_message_id><esb:message_id>X&apos;414d51204750455342333332202020201581675c22c13403&apos;</esb:message_id>
</esb:header>

Related

How to invoke a Springboot Rest Service from ADF 12c

I have a Rest webservice to invoke from Oracle ADF. The service simply returns a success flag and a message. No need to have a Data Control for this.
Is there a rest client that I can use to invoke this rest service?
Other than 'REST Data Control, there is not any in-built in REST client available
in 'Oracle ADF'. Since 'Oracle ADF' is J2EE framework, you can any other java library like Jersey to invoke the RESTful service.
Rest client create http request GET, PUT, POST etc... to restful webservice.
You can use
org.springframework.web.client.RestTemplate
To call restFul API
Other way is using postman

Creation of a SOAP service possible in micronaut?

I want to create a SOAP service in micronaut using kotlin. I can not find information about how to do this. Annotations like #WebService are not being hosted as an endpoint.
I've successfully exposed the result to a rest endpoint.
I found information about how to implement a soap client in micronaut.
I succeeded in publishing the endpoint using endpoint.publish(..., ...), but I want to use the built-in netty-server, and perhaps built-in annotations, to prevent having to expose my services in a different class.
I don't think you would use micronaut http client for that. Look at apache axis 2 and see how you can use that.

SoapUI 5.0 - REST services - How to add securitytoken/object into requestheader?

We're testing REST services and have created a new REST project in SoapUI 5.0.0
I've added endpoint but when I try to run the request as a 'GET' method I get:
400 (Bad Request): No securitytoken header information found in request header
No securitytoken header information found in request header
I've tried to add an SO in the parametertable as 'HEADER' but still no go.
Anyone knows?
-tosh
In SOAP webservices you can manually injected security headers in the Request XML (make sure you use proper ns of the security policy).
If you are using jdeveloper HTTP Analyzer you will get options to add security headers in both SOAP and REST webservices
The Official SOAP UI has a getting started guide at
Security Headers SOAP UI guide.
For Rest services you can use REST client 3.1
and here is the youtube video tutorial for using the tool.

REST: soapUI groovy script not running on tomcat server

I have a problem about executing groovy script of my rest mock service project on tomcat server.
Actually i'm using soapUI pro 5.1.0 to create a complete REST web services with the mock service.
Indeed, after resources creation (/api/1/mobile/users), I create a method POST that contains several requests and I generate the corresponding REST responses under (/api/1/mobile/users) resource. Then to have the corresponding response for each request I develop a groovy script that check the request content and send the right response. The script is well performed locally in the soapUI tool, but when I deploy the project on tomcat server, and try to send request with the client. I noticed that the default response is sent for all requests instead of targeted response. It seems that the script is not performed, and no log info is received.

Connect to Epic Medical System via Interconnect

I am trying to connect an Epic medical system using its Interconnect Web Service offering which exposes some simple SOAP endpoints. http://userweb.epic.com gives very little information other than a list of services and some sample XML.
I managed to get at a test wsdl and using SoapUI made a test call with no luck.
The Interconnect status page says all is well and that the service is available.
So my questions are
(i) How do I get to dynamically generated wsdls for services?
(ii) What is the URL endpoint for services. Sending the SOAP XML request to http://xxxxxxxxx/Interconnect-Test/ fails.
Here is my test XML request which should just add 2 numbers on the server.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:epicsystems-com:Interconnect.2004-05.Services.Diagnostics">
<soapenv:Header/>
<soapenv:Body>
<urn:AddRemote>
<urn:int1>1</urn:int1>
<urn:int2>2</urn:int2>
</urn:AddRemote>
</soapenv:Body>
</soapenv:Envelope>
So the magic seems to be that you need to have "Config Editor" installed on the Interconnect server and then enable "Developer View".
The status view now has a developer link on the top right side. Clicking on that gives the Web Services info and access to wsdl's. Some services also offer REST as well as SOAP.
The wsdl's are badly formed and you will need to add a service tag to get it to work in something like java's wsimport.