I have never worked on soap services before and just started consuming wsdl given by using jaxb. Now, my friend is telling me that he will send me an outbound wsdl with request data to my system to which I have to send a response back. (I have not made any wsdl or endpoints on my end).
So, any ideas on how to do it?
What should I make on my end.
No idea on how to do it. Since, there were no articles on it.
Related
I have an API implemented with Jersey. An external service is making HTTP requests to my endpoint and expects a result into the response. Currently, I am using the Asynchronous Server API, in order to make all my business logic and then respond when ready. It’s working fine, but now I want to improve scalability and H/A.
My plan is to have multiple instances of my API behind an Nginx load balancer and all the requests accepted by any of my API instances will be forwarded to another microservice with RabbitMQ. Finally, I want to collect the results from the microservice and attach them into the response.
My question is if I can dynamically generate the response to the original HTTP request from any of my API instances. I want any of them, not only the one that originally got the webhook, to be able to send an HTTP response back to the caller. Somehow maybe to store/serialize the AsyncResponse object. In other words, this means that even if the instance that originally got the webhook request is stuck or down, another one can fill in and send the response.
Maybe this is not possible but still I would like to hear any other suggestions that can help.
Thanks.
I'm confused. I have a situation where I need to accept incoming messages from outside the company and by other technology stacks, fool with them, and send a response back. I've got both ActiveMQ and WebSphere MQ (we're on a WebSphere application server, and I'm trying to decide if I like one over the other), and I understand how to set up the message listeners. I think. What I don't know is what format the incoming message takes. Is it a web service and can be treated like one? Or a JMS message? Or a hybrid of the two? Like I said, I'm totally confused. Any help on this would be great!
is like a soap/http, the body of the text message has the soap message and then, your webservice unmarshall the payload and get java beans.
you will need two queue: request and reply, there is no bidirectional comunication by the same queue
try to develop with jax-ws because is and java standard, some apis like axis are less compatible.
here is an example:
http://www.ibm.com/developerworks/websphere/library/tutorials/0903_adams/index.html?ca=dat
I am new to Web Service.
I have one web service and that service is consumed by both the stubs generated using axis1 and axis2.
I want to Log outgoing raw SOAP request messages and incoming SOAP response at CLIENT side for both axis1 and axis2.
I have implemented at server end for both axis1 and axis2, it works fine.
My consumer is normal JAVA project.
I didn't find any proper steps how to do it.
Few links explained but much in abstract way.
I tried
http://wiki.apache.org/ws/FrontPage/Axis/AxisClientConfiguration/ViewSOAPMessages
Below linked explain very well but I am not getting Locator class in mine(I generated stub using Eclipse)
http://proghowto.com/axis-client-request-and-response-logging
if some one implemented it or has some link which explains it, Please help.
I got the way how to do later....I have posted the same here if anybody in search of same stuff
http://servletsguide.blogspot.in/
I am making a SOAP web service call in a Java application to a third party web service. Java classes used to look up the web service, transfer the data and make the SOAP request were generated using Apache CXF libraries from a WSDL.
While most of the requests to the service succeed, I am facing issues with some calls failing with "Fault string, and possibly fault code, not set" exception message. Unfortunately I cannot pull the exact stack trace or request/response objects so I am practically in the dark.
I am wondering if it's safe to assume that this problem is happening because of bad response sent from the web service, or if this problem could be happening on the client side also. In addition, what could be the root cause of this exception? Any input would be greatly appreciated!
If it response from third-party webservice method, it seems this issue on their side. Another one possible thing that fault string and fault code are request params and you didn't specify them and there is a validation message.
I have a web service that I've been working on and it's wokrring fine so far by creating a port in the client and then calling a method on the port. However, I've just been told that a couple of the clients who will be using the web service plan on sending it raw xml based based off of the schemas used by the web service and I was wondering if this was possible. I think I may need to use the provider interface to make the web service capable of handling this type of request but I'm not sure.
I've done a search of the questions here but none of them seemed to answer my question and what I find on the net after googling says that it's possible but they then proceed with examples that work the exact same way as what I already have.
Thanks in advance for any help you can provide.
plan on sending it raw xml based based off of the schemas used by the web service
So you mean they plan on sending you XML messages based on the schema published in your web service's WSDL?
This is exactly what SOAP is and how SOAP/XML web services work.
Assuming the clients are sending your properly formed messages, these client's requests are identical to requests from any other client and you shouldn't have to do anything special for them.
I think you want to send and receive XMLs across
here is 1 way
http://java.dzone.com/articles/implementing-jax-ws-web