weichao666 commented on a change in pull request #741: [SCB-625] 
ProduceProcessor use SPI to support extends
URL: 
https://github.com/apache/incubator-servicecomb-java-chassis/pull/741#discussion_r195350417
 
 

 ##########
 File path: 
demo/demo-schema/src/main/java/org/apache/servicecomb/demo/CodeFirstRestTemplate.java
 ##########
 @@ -123,6 +128,21 @@ private void testCodeFirstTextPlain(RestTemplate 
template, String cseUrlPrefix)
     TestMgr.check(body, result);
   }
 
+  private void testCodeFirstAppXml(RestTemplate template, String cseUrlPrefix) 
{
+    JAXBPerson person = new JAXBPerson("jake", 22, "it", "60kg");
+    person.setJob(new JAXBJob("developer", "coding"));
+    HttpHeaders headers = new HttpHeaders();
+    headers.add("Accept", MediaType.APPLICATION_XML_VALUE);
+    headers.add("Content-Type", MediaType.APPLICATION_XML_VALUE);
 
 Review comment:
   yes, now servicecomb processing client requests only use application/xml, 
don't support extend, that means whatever i set in ContentType, it all will be 
cover to application/xml before send to server, and server will default use 
json to do decode.
   so the xml produceprocessor actually effective in response, when response, 
provider use xml encode and consumer use xml docode

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to