A splat of all my blathering.

Thursday, May 27, 2004

Optional SOAP headers 

There is no way to specify if a header is optional or required within WSDL 1.1. The SOAP spec allows headers to be introduced to a SOAP message even when they are not declared in WSDL. For that reason, the WS-I Basic Profile 1.0 has chosen to interpret the presence of a header binding in the WSDL as always being required.

The following two sections from the WS-I Basic Profile 1.0 describe this

5.6.22 Required Headers

WSDL 1.1 does not clearly specify whether all soapbind:headers specified on the wsdl:input or wsdl:output elements of a wsdl:operation element in the SOAP binding section of a WSDL description must be included in the resultant SOAP messages when they are transmitted. The Profile makes all such headers mandatory, as there is no way in WSDL 1.1 to mark a header optional.

R2738 A MESSAGE MUST include all soapbind:headers specified on a wsdl:input or wsdl:output of a wsdl:operation of a wsdl:binding that describes it.

5.6.23 Allowing Undescribed Headers

Headers are SOAP's extensibility mechanism. Headers that are not defined in the WSDL description may need to be included in the SOAP messages for various reasons.

R2739 A MESSAGE MAY contain SOAP header blocks that are not described in the wsdl:binding that describes it.

R2753 A MESSAGE containing SOAP header blocks that are not described in the appropriate wsdl:binding MAY have the mustUnderstand attribute on such SOAP header blocks set to '1'.

Posted at 5/27/2004 11:17:00 AM | (0) comments

Regular expressions and Star Trek 

I don't know what it is about regular expressions but I just love 'em.

Do you remember that episode of Star Trek TNG where Ryker brought back a game from Risa? It looked like one of those new personal computers that people wear on their heads (only this one shot rays of light into the wearer's eyes). Anyway, as you played the game you became addicted because it somehow tapped into the pleasure centers of the player's brain. (How much would you pay for a Game Cube that could give you an orgasm?) As you progressed to higher and higher levels of the game the amount of 'whatever it was that it gave you' increased. Each time a player completed a level they would get a pleasure reward.

That's exactly how I feel when I find a new regular expression. Kind of perverse huh? If you know what I mean then you might find the list of useful regex's maintained by Scott at 3 Leaf pleasuring.

Thanks for doing this Scott. (And sorry for bringing you in on this sorted fetish.)

Posted at 5/27/2004 10:52:00 AM | (0) comments

Invoking WSDL and XSD 

When you invoke WSDL.exe you need to make sure that you specify the names of all of the imported schema and WSDL files on the command line. Although, you probably gave a schemaLocation within the import statement this is just a hint at the location and these tools do not attempt to load the files from this location.

If you are using WSDL and XSD a lot you MUST take a look at Point2's code generation toolkit. It rocks!

Posted at 5/27/2004 10:46:00 AM | (0) comments

This page is powered by Blogger. Isn't yours?