I am trying to figure out how I can setup servicestack to recive mtom encoded soap messages, does any one know of an implementation?
Related
We receive a SOAP message with a int-ws:inbound-gateway and we need to store the raw soap message as a message header or similar to be able to register it in a more advanced step of the integration flow.
How we can do it, it's possible to put an interceptor or similar to do it before the raw message is deserialized to JAXB objects?
You need just to inject an extension of the DefaultSoapHeaderMapper and override its extractUserDefinedHeaders(SoapMessage). There you can do whatever you need with that SoapMessage and even save it into the custom header.
I am trying to instruct DispatcherServlet to delegate to MessageDispatcher using WebServiceMessageReceiverHandlerAdapter instead of delegating to Controllers.
But the request payload is of JSON . Do we have default messageDispatcher for JSON similar to org.springframework.ws.soap.server.SoapMessageDispatcher for XML?
The concern isn't clear. If we talk about SOAP, then it definitely should be Spring WS, but when the story is about JSON, then it exactly about Spring REST support in Spring MVC. Why would one try to overcomplicate with JSON SOAP when you simply can use REST service.
On the other hand there is nothing about Spring Integration in your question. Please, be specific when you select tags for the question here.
In a standalone java code, using Apache HTTPClient libs, implementing the NTLM Authentication with SharePoint Server and accessing its Web Service and receiving the huge XML content as response. Now this final output is in String format. Created the Java Call Out Policy and uploaded all the jars.
I need some help here,
How to pass the java's final output response to Apigee's response.
My requirement is: If I hit the Apigee API Proxy then I need to receive the Java's output(String) as Apigee's response.
Which policy is more appropriate to handle this response.
Appreciate your help! Thanks in Advance.
You can use the javacallout policy to author custom java code. Here is a related post in SO: Working With JAVA Callout in apigee?
You can try
message.setContent(string) to create the content, and
messageContext.setResponseMessage(Message)
in java code to directly write to output.
I have installed soapjs module and tried to access those service.
This service contains complexContent:
http://www.reportingsales.com/DeFactoSF1.asmx?WSDL
Could we get wcf service wsdl details(methods, input, output) using soapjs?
http://mli.crmnext.com/CRMnextWebApi/CRMnextService.svc?wsdl
Kindly give me some suggestions..
if possible give me some working soap client examples of those modules
ws.js and wcf.js are about defining security/mtom. they do not deal with the xml format, you need to bring the xml out of band (maybe copy a working sample from your logs).
I know this at least IMO is a stupid request. Because WSDL is old hat and sucks compared to just doing a RESTful API. But I have a corporate "mandate" where we want to do a REST API but then corporate wants a WSDL still. I know..it makes no sense and apparently we can't push back and say NO and tell them to just use our future REST API.
So can you generate a WSDL if I were to start creating a REST API with ServiceStack? Meaning I add uri attributes and such? So that I can "make them happy"?
I prefer not to use WCF, it's a nightmare with a ton of attributes and configuration to try and hack a RPC style web service to try and be RESTful. Obviously that doesn't work out too well.
SOAP along with REST is supported and you can have REST API along with soap wsdl. There are some recommendations posted in servicestack wiki that you can review and get started! You just need to implement the restful service and soap, json, xml etc are automatically supported.