Monthly Archives: January 2006

Schema-based XPath tool

Most XML editors offer an XPath tool that allows one to test and fine-tune XPath expressions by running them against XML documents. Very helpful but also potentially very deceptive. With such a tool it is very easy to convince oneself that an XPath expression is correct after running it against a few instance documents. And a month later the application behave erratically (in many cases it probably won’t break it will execute the request on the wrong element which is worst) because the XPath expression is ran on a different document and what it returns is not what the programmer had in mind. This is especially likely to occur as people use and abuse shortcuts such as “//” and ignore namespaces.

What we need is an XPath tool that can run not only run the XPath against an instance document but can also run it against a schema. In the later case, the tool would flag any portion of the schema that can possibly correspond to a node in the resulting nodeset. It would force programmers to realize that their //bar can match the /foo/bar that they want to reach but it could also match something that falls under the xsd:any at the end of the schema. And the programmer has to deal with that.

1 Comment

Filed under Everything, Implementation, Tech

The joys of code-generated WSDL

I recently ran into a WSDL which included an operation called “main”. The type of the request message for the operation was of course:

<complexType name=”ArrayOf_xsd_string”>
<complexContent>
<restriction base=”soapenc:Array”>
<attribute ref=”soapenc:arrayType” wsdl:arrayType=”xsd:string[]”/>
</restriction>
</complexContent>
</complexType>

Command line over SOAP. Nice…

Comments Off on The joys of code-generated WSDL

Filed under Everything, Implementation

Registry or not?

I recently had a meeting with people who practically could not imagine a form of discovery that didn’t involve a god-like central registry. Notifications, peer to peer relationships were heretic ideas on this call. Of course registries are good. And repositories are even better. But a registry is not the only way to discover services and it shouldn’t be. The delicious irony is that the meeting used NetMeeting and that we spent the first 5 minutes of the call repeating the IP address of the person hosting the NetMeeting to every single new participant upon joining. Instead of simply using the registry that was available (NetMeeting’s directory).

Comments Off on Registry or not?

Filed under Everything, Off-topic

Keeping track

After Systinet, it’s now Actional’s turn to take the plunge. For those trying to keep track, Jeff Schneider has a useful recap of SOA-related acquisitions and mergers. It’s only missing the name changes to be complete (e.g. Corporate Oxygen to Confluent, Digital Evolution to SOA Software…).

Comments Off on Keeping track

Filed under Business, Everything