C1 OnRamp create a UID


I’m creating a SOAP document, and I’m supposed to populate a tag with a random GUID.
The GUID is to look like this :

Example : (check tag <prc:instance>, this is the one that has to be filled in)

<SOAP-ENV:Header xmlns:SOAP-ENV=“http://schemas.xmlsoap.org/soap/envelope/”>
<eps:endpoints SOAP-ENV:mustUnderstand=“1” xmlns:biz=“http://schemas.biztalk.org/btf-2-0/address/types” xmlns:eps=“http://schemas.biztalk.org/btf-2-0/endpoints”>
<eps:address xmlns:xsi=“http://www.w3.org/1999/XMLSchema-instance” xsi:type=“bizrganizationName”>25e96cc4-7194-1000-9424-c043a8b40001</eps:address>
<eps:address xmlns:xsi=“http://www.w3.org/1999/XMLSchema-instance” xsi:type=“bizrganizationName”>54887202-7291-1000-9dde-c043a8b40001</eps:address>
<prop:properties SOAP-ENV:mustUnderstand=“1” xmlns:prop=“http://schemas.biztalk.org/btf-2-0/properties”>
<prc:process SOAP-ENV:mustUnderstand=“1” xmlns:prc=“http://schemas.biztalk.org/btf-2-0/process”>

I tried services related to cXml but couldn’t find any valid output for my message

Is there something like “pub.soap.utils:createGUID” somewhere ?

WM SOAP Developper guide doesn’t talk much about this, nor is the WM Developper Guide or the Built in reference guide.

Thanks !

Technical datas :

IS is version 6.1
Product webMethods Integration Server
Version 6.1
Updates TNS_6-1_Fix15
Build Number 132
SSL Strong (128-bit)

C1 OnRamp
Product webMethods B2B OnRamp for Commerce One MarketSite
Version 3.0.18 Release Notes
Build Number 76


Sorry, this is not about C1 OnRamp, it is about SOAP !

However the question remains the same :
Is there something like “pub.soap.utils:createGUID” somewhere ?

Hi Adam,

Thanks for the clue.

I get the following :
package org.doomdark.uuid does not exist
import org.doomdark.uuid.UUID ;

As I’m not used to Java services, your help in creating the service will be greatly appreciated!

thanks a lot!


The following advantage page has a howto for UUID generation.


The PSSamples.zip file linked in the article that Adam refers to in the previous post contains a zip file called “jug.zip” that contains the Doomdark JUG binaries. The sample works pretty well with the exception of a UUID generated from the client’s MAC address.

The Doomdark website appears to be down at present, but a Google cached version seems to indicate that the MAC address issue was fixed in 2004.

While googling for Doomdark, I also learned that JDK 1.5 now supports creation of a UUID using the java.util.UUID class. Of course, that doesn’t help those of us using older JDK versions.

The IBM/BEA sponsored WS-Addressing spec implies in its examples that WSA:MessageID elements should be UUID’s. As this spec gains wider acceptance, we would expect to see the need to generate UUID’s in webMethods IS and ServiceNet increase.


More on UUID generation. See the java.util.UUID mini-FAQ and the Jakarta Commons ID project.


Thank you all,

Adam’s solution worked perfectly, that’s great!


I think the simplest approach is to use the com.wm.util.UUID.generate() method.
This API is internal to webMethods and is used to publish/subscribe broker events.
May be deprecated in the future but by that time you should be able to use the java.util.UUID (Java 1.5) instead.

I have a question on the returned uuid of com.wm.util.UUID.generate():

See following “table”:

com.wm.util.UUID.generate(): 44e41390d2e62e2f10e911083b4
UUID normalized form: 350874A0-73D0-11DB-B4A0-F431978238AE
bizdoc internal id: 53e785001riukip0000003vj
broker publishable document uuid: 9715b530-73c7-11db-87e5-ae6963fb4cde

Does anyone know about the differences in generating those ids and how to generate them (especially not using jvm 1.5)?

Thanks in advance,