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.setTargetEndpointAddress(new java.net.URL(("http://127.0.0.1:5335/")));
    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"}));
  }
}</xmp>

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:  "nagoya.apache.org",
      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.)]

Essays

Noun vs Verb

Topology

Evolution of the Weblog APIs

Cohesion

SOAP by Example

A Gentle Introduction to Namespaces

Really Simple Syndication

Expect More

REST + SOAP

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?

Favorites

In Praise of Evolvable Systems

Metacrap

The Law of Leaky Abstractions

The Eight Fallacies of Distributed Computing

Permanet, Nearlynet, and Wireless Data

Warnock's Dilemma

Sunir's corollaries

Search

Valid XHTML 1.0!