Axis/Radio interop - Draft

This was my scratchpad.  The completed essay can be found here.

Calling a Radio service using JAX RPC and Axis #

import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.namespace.QName;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.transport.http.HTTPConstants;</xmp><xmp>public class HelloDave {
  public static void main(String args[]) throws Exception {
    Call call = (new Service()).createCall();
    call.setOperationName(new QName("", "helloWorld") );
    call.addParameter("Name", XMLType.XSD_STRING, ParameterMode.PARAM_MODE_IN);
    call.setProperty(HTTPConstants.MC_HTTP_SOAPACTION, "/radio");
    System.out.println(call.invoke(new Object[] {"Dave from Axis"}));

Calling a Axis service using soap.rpc.client #

on getQuote (name) {</xmp><xmp>   local (quote, params={"symbol": name});</xmp><xmp>   quote = soap.rpc.client (
      actionURI:  "/axis/servlet/AxisServlet",
      methodName: "getQuote",
      adrParams:  @params,
      rpcServer:  "",
      rpcPort:    5049,
      username:   "user1",
      password:   "pass1",
      methodNamespace:    "xdq",
      methodNamespaceURI: "urn:xmltoday-delayed-quotes"
   );</xmp><xmp>   return ("Stock quote for " + name + " is " + quote)</xmp><xmp>}</xmp>

[Macro error: Poorly formed XML text, string constant is improperly formatted. (At character #421.)]


Noun vs Verb


Evolution of the Weblog APIs


SOAP by Example

A Gentle Introduction to Namespaces

Really Simple Syndication

Expect More


Beyond Backlinks

Google's Genius

Neuro Transmitters

Headers and Hrefs

A Gentle Introduction to SOAP

Coping with Change

Manufactured Serendipity

Dealing with Diversity

A Busy Developers Guide to WSDL 1.1

Axis/Radio Interop, Actual and Potential

To Infinity and Beyond: the Quest for SOAP Interoperability

What Object Does SOAP Access?


In Praise of Evolvable Systems


The Law of Leaky Abstractions

The Eight Fallacies of Distributed Computing

Permanet, Nearlynet, and Wireless Data

Warnock's Dilemma

Sunir's corollaries


Valid XHTML 1.0!