axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanjiva Weerawarana <sanj...@opensource.lk>
Subject Re: [AXIS2] Should JSON messages be considered as REST?
Date Mon, 22 Sep 2008 03:05:31 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Sorry Chinthaka can't blame me ;-) .. no way that I told you WSDL 2.0
can only deal with XML :). <br>
<br>
Sanjiva.<br>
<br>
Eran Chinthaka wrote:
<blockquote
 cite="mid:12f870d60809211736o3ba92a95q3a56bc0cbdc20079@mail.gmail.com"
 type="cite">
  <div dir="ltr"><br>
  <div class="gmail_quote">
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
    <div dir="ltr">
    <div class="gmail_quote">
    <div class="Ih2E3d">
    <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
      <div dir="ltr">In the spec, it says, if we have our own custom
content-type, then it should be compatible with application/xml (<a
 moz-do-not-send="true"
 href="http://www.w3.org/TR/wsdl20-adjuncts/#_http_ser_xml"
 target="_blank">http://www.w3.org/TR/wsdl20-adjuncts/#_http_ser_xml</a>).
      </div>
    </blockquote>
    </div>
    <div><br>
I don't think that thats the case. The WSDL 2.0 spec specifies three
serializations, they are <a moz-do-not-send="true"
 href="http://www.w3.org/TR/wsdl20-adjuncts/#_http_x-www-form-urlencoded"
 target="_blank">application/x-www-form-urlencoded</a>, <a
 moz-do-not-send="true"
 href="http://www.w3.org/TR/wsdl20-adjuncts/#_http_operation_xml_encoding"
 target="_blank">application/xml</a> and <a moz-do-not-send="true"
 href="http://www.w3.org/TR/wsdl20-adjuncts/#_http_operation_multipart_encoding"
 target="_blank">multipart/form-data</a>. And the area in the spec you
have referred to is talking about these three. I the section you have
referred to the spec says,<br>
    <br>
"[<a moz-do-not-send="true" name="11c8538b444c29d1_serialization_format"
 title="serialization format">Definition</a>: The <b>serialization
format</b> is a media type token ("type/subtype"). It
identifies rules to serialize the payload in an HTTP message. Its
value is defined by the following rules. The HTTP request
serialization format MUST be in the media type range specified by
the {<a moz-do-not-send="true"
 href="http://www.w3.org/TR/wsdl20-adjuncts/#property-BindingOperation.httpinputserialization"
 target="_blank">http input
serialization</a>} property. "<br>
    <br>
So it basically supports any media-Type. Its just that the working
group took the trouble in describing the three serializations above in
detail.</div>
    </div>
    </div>
  </blockquote>
  <div><br>
  <br>
Ok agreed. I was wrong in interpreting it. I guess some one who was
working in the HTTP binding can clarify this (IIRC, Dr. Sanjiva was
there :D)<br>
  <br>
Thanks for the clarification, Keith.<br>
  <br>
Thanks,<br>
Chinthaka<br>
  </div>
  </div>
  <br>
  </div>
</blockquote>
<br>
<pre class="moz-signature" cols="74">-- 
Sanjiva Weerawarana, Ph.D.
Founder &amp; Director; Lanka Software Foundation; <a class="moz-txt-link-freetext"
href="http://www.opensource.lk/">http://www.opensource.lk/</a>
Founder, Chairman &amp; CEO; WSO2, Inc.; <a class="moz-txt-link-freetext" href="http://www.wso2.com/">http://www.wso2.com/</a>
Member; Apache Software Foundation; <a class="moz-txt-link-freetext" href="http://www.apache.org/">http://www.apache.org/</a>
Visiting Lecturer; University of Moratuwa; <a class="moz-txt-link-freetext" href="http://www.cse.mrt.ac.lk/">http://www.cse.mrt.ac.lk/</a>

Blog: <a class="moz-txt-link-freetext" href="http://sanjiva.weerawarana.org/">http://sanjiva.weerawarana.org/</a>
</pre>
</body>
</html>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message