I am using strong-soap as server in node js, i need a pass throught service to convert xml to json (soap call to rest call, i used asyn method) but i need to respond soap incoming request with a response with headers.
I used the async function providen by documentation.
var myService = {
MyService: {
MyPort: {
// This is how to define an asynchronous function, i can get the incoming headers but i dont send the response with headers.
MyAsyncFunction: function(args, callback, headers) {
// do some work
callback({
name: args.name
});
},
}
}
};
incoming soap request (body and headers) -> soap response (body and headers) <-
How can i do this?
I am searching about this but i did not find nothing. I tried sending another parameter to the callback function
The response was...