I am using :XI184.108.40.206.9.
i have 2 queries#
1. Can we expose WSDL v2 as WSP with my current version?
2. Can WSP accept JSON as input? if yes, How it will identify the operation name? can some one share sample JSON request?
This topic has been locked.
3 replies Latest Post - 2012-11-29T11:08:40Z by kenhygh
Pinned topic WSP accepting JSON
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-29T11:08:40Z at 2012-11-29T11:08:40Z by kenhygh
HermannSW 2700006U542756 PostsACCEPTED ANSWER
Re: WSP accepting JSON2012-06-20T12:27:36Z in response to SystemAdmin> 2. Can WSP accept JSON as input? if yes, How it will identify the operation name? can some one share sample JSON request?
No, WSP accepts SOAP only.
Please see "Implementing a Web 2.0 RESTful facade enabled with JSON using WebSphere DataPower SOA Appliances"
See the optional SOAP call to WSP in that article.
SystemAdmin 110000D4XK6772 PostsACCEPTED ANSWER
Re: WSP accepting JSON2012-11-29T08:52:55Z in response to HermannSWHi,
If the User fire a request URL ended with ?wsdl means I have to fetch the wsdl from local folder and send it to Consumer for the particular service.
For Example, I have one request rule, I have created match action with ?wsdl to accept URL ended with ?wsdl. This means I will fetch the WSDL from local folder and send it to Consumer.
One more request and response rule for actual request and response. If I fire a request and I got a proper response but when I fire a url with ?wsdl. It's not at all going to the request rule with the match action to accept ?wsdl.
In WSP Configuration, We have some properties like request type as Non-xml, XML, SOAP. But you told, the WSP accept only SOAP Message.
kenhygh 120000PD1B764 PostsACCEPTED ANSWER
Re: WSP accepting JSON2012-11-29T11:08:40Z in response to SystemAdminA WSP will automatically handle a ?wsdl request, you do not have to configure anything.
A WSP only accepts SOAP because a WSP is purely WSDL driven, and there's no way to have WSDL that describes non-SOAP messages, such as JSON.