on 10-06-2015 3:33 PM
Hi,
I need to create a interface SOAP --> PI --> REST, but the body of the MESSAGE is used RAW type TEXT rather than JSON.
The Text in the raw body is sent the connection data like user Name and Password.
I need to know how to Mapping the Data Type of SOAP source for the Body Raw-Text. On the screen below I'm testing the POST http://desenv.wappa.com.br/wsseguradoras/token using the Postman program within Google Chrome, but could also be used via SoapUI.
Someone has an idea to help me?
Tks!
HI Adilson,
Have this question solved?
I think I am in the same trouble now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adilson,
current version of REST adapter supports only two types of content, they are application/xml and application/json
however your screenshot seems, you are getting response when you are using text content type.
and response seems JSON formate, i guess that mean your receiver server will accept JSON formate too..so please just check what json structure you can send to that server with corresponding team and then send with content type application/json.
before checking with that team, please do make an dummy scenario and try to send that text raw data from runtime work bench to receiver server, in case this not works in pi..i belive even after you write java code to convert raw text data will not works ..that means java mapping wont work...
please update the things
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adilson
From your screenshot, it looks like you are trying to get an authentication token, maybe an OAuth token.
The REST adapter should be able to handle this automatically, so I'm not sure why you have to develop a channel to manually retrieve the token.
If you really need to do it this way, you will need to use Java mapping to create the body because the payload is non-XML.
Rgds
Eng Swee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.