Re: how to generate XML soap message
- From: anj patnaik <patna73@xxxxxxxxx>
- Date: Mon, 6 Feb 2012 12:27:25 -0800 (PST)
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<header xmlns:ns13="http://www.tmforum.org/mtop/rtm/xsd/ar/v1"
xmlns:ns12="http://www.tmforum.org/mtop/nrb/xsd/lay/v1"
xmlns:ns11="http://www.tmforum.org/mtop/rtm/xsd/ac/v1"
xmlns:ns10="http://www.tmforum.org/mtop/fmw/xsd/msg/v1"
xmlns:ns9="http://www.tmforum.org/mtop/fmw/xsd/cornot/v1"
xmlns:ns8="http://www.tmforum.org/mtop/nra/xsd/com/v1"
xmlns:ns7="http://www.tmforum.org/mtop/nra/xsd/prc/v1"
xmlns:ns6="http://www.tmforum.org/mtop/nra/xsd/alm/v1"
xmlns:ns5="http://www.tmforum.org/mtop/fmw/xsd/nam/v1"
xmlns:ns4="http://www.tmforum.org/mtop/fmw/xsd/ei/v1"
xmlns:ns3="http://www.tmforum.org/mtop/fmw/xsd/cei/v1"
xmlns:ns2="http://www.tmforum.org/mtop/fmw/xsd/gen/v1" xmlns="http://
www.tmforum.org/mtop/fmw/xsd/hdr/v1">
<activityName>getActiveAlarms</activityName>
<msgName>getActiveAlarmsResponse</msgName>
<msgType>RESPONSE</msgType>
<senderURI>http://wcars057:9006/mtosi/rtm/AlarmRetrieval</
senderURI>
<destinationURI>http://localhost:9009</destinationURI>
<activityStatus>SUCCESS</activityStatus>
<communicationPattern>MultipleBatchResponse</
communicationPattern>
<communicationStyle>RPC</communicationStyle>
<requestedBatchSize>2</requestedBatchSize>
<batchSequenceEndOfReply>false</batchSequenceEndOfReply>
<iteratorReferenceURI>http://wcars057:9006/mtosi/rtm/
AlarmRetrieval/32</iteratorReferenceURI>
<timestamp>2012-02-06T03:15:59.783-00:05</timestamp>
</header>
</S:Header>
<S:Body>
<ns13:getActiveAlarmsResponse xmlns:ns13="http://www.tmforum.org/
mtop/rtm/xsd/ar/v1" xmlns:ns12="http://www.tmforum.org/mtop/nrb/xsd/
lay/v1" xmlns:ns11="http://www.tmforum.org/mtop/rtm/xsd/ac/v1"
xmlns:ns10="http://www.tmforum.org/mtop/fmw/xsd/msg/v1"
xmlns:ns9="http://www.tmforum.org/mtop/fmw/xsd/cornot/v1"
xmlns:ns8="http://www.tmforum.org/mtop/nra/xsd/com/v1"
xmlns:ns7="http://www.tmforum.org/mtop/nra/xsd/prc/v1"
xmlns:ns6="http://www.tmforum.org/mtop/nra/xsd/alm/v1"
xmlns:ns5="http://www.tmforum.org/mtop/fmw/xsd/nam/v1"
xmlns:ns4="http://www.tmforum.org/mtop/fmw/xsd/ei/v1"
xmlns:ns3="http://www.tmforum.org/mtop/fmw/xsd/cei/v1"
xmlns:ns2="http://www.tmforum.org/mtop/fmw/xsd/gen/v1" xmlns="http://
www.tmforum.org/mtop/fmw/xsd/hdr/v1">
<ns6:alarm>
<ns3:notificationId>1630</ns3:notificationId>
<ns3:sourceTime>2012-01-30T10:19:59.633-00:05</
ns3:sourceTime>
<ns4:objectType>AID</ns4:objectType>
<ns4:objectName>
<ns5:rdn>
<ns5:type>OS</ns5:type>
<ns5:value>Ciena</ns5:value>
</ns5:rdn>
</ns4:objectName>
<ns4:osTime>2012-01-30T10:19:59.633-00:05</ns4:osTime>
<ns6:isClearable>true</ns6:isClearable>
<ns6:aliasNameList>
<ns2:alias>
<ns2:aliasName>nativeSrcEntityId</ns2:aliasName>
<ns2:aliasValue>Mediation</ns2:aliasValue>
</ns2:alias>
</ns6:aliasNameList>
<ns6:probableCause>
<ns7:probableCause>VENDOR_EXT</ns7:probableCause>
</ns6:probableCause>
<ns6:additionalText>Communication Failed with
ESM_umsint01</ns6:additionalText>
<ns6:perceivedSeverity>CLEARED</ns6:perceivedSeverity>
<ns6:serviceAffecting>NON_SERVICE_AFFECTING</
ns6:serviceAffecting>
</ns6:alarm>
<ns6:alarm>
<ns3:notificationId>1631</ns3:notificationId>
<ns3:sourceTime>2012-01-30T10:22:26.993-00:05</
ns3:sourceTime>
<ns4:objectType>AID</ns4:objectType>
<ns4:objectName>
<ns5:rdn>
<ns5:type>OS</ns5:type>
<ns5:value>Ciena</ns5:value>
</ns5:rdn>
</ns4:objectName>
<ns4:osTime>2012-01-30T10:22:26.993-00:05</ns4:osTime>
<ns6:isClearable>true</ns6:isClearable>
<ns6:aliasNameList>
<ns2:alias>
<ns2:aliasName>nativeSrcEntityId</ns2:aliasName>
<ns2:aliasValue>Synchronization Coordinator</
ns2:aliasValue>
</ns2:alias>
</ns6:aliasNameList>
<ns6:probableCause extension="Loss Of Synchronization">
<ns7:probableCause>VENDOR_EXT</ns7:probableCause>
</ns6:probableCause>
<ns6:nativeProbableCause>Loss Of Synchronization</
ns6:nativeProbableCause>
<ns6:additionalText>Synchronization
Failure:ALPHA_3930_3:PSM</ns6:additionalText>
<ns6:perceivedSeverity>CLEARED</ns6:perceivedSeverity>
<ns6:serviceAffecting>NON_SERVICE_AFFECTING</
ns6:serviceAffecting>
</ns6:alarm>
<ns6:alarm>
<ns3:notificationId>1632</ns3:notificationId>
<ns3:sourceTime>2012-01-30T10:22:27.493-00:05</
ns3:sourceTime>
<ns4:objectType>AID</ns4:objectType>
<ns4:objectName>
<ns5:rdn>
<ns5:type>OS</ns5:type>
<ns5:value>Ciena</ns5:value>
</ns5:rdn>
</ns4:objectName>
<ns4:osTime>2012-01-30T10:22:27.493-00:05</ns4:osTime>
<ns6:isClearable>true</ns6:isClearable>
<ns6:aliasNameList>
<ns2:alias>
<ns2:aliasName>nativeSrcEntityId</ns2:aliasName>
<ns2:aliasValue>Synchronization Coordinator</
ns2:aliasValue>
</ns2:alias>
</ns6:aliasNameList>
<ns6:probableCause extension="Loss Of Synchronization">
<ns7:probableCause>VENDOR_EXT</ns7:probableCause>
</ns6:probableCause>
<ns6:nativeProbableCause>Loss Of Synchronization</
ns6:nativeProbableCause>
<ns6:additionalText>Synchronization Failure:5410:PSM</
ns6:additionalText>
<ns6:perceivedSeverity>CLEARED</ns6:perceivedSeverity>
<ns6:serviceAffecting>NON_SERVICE_AFFECTING</
ns6:serviceAffecting>
</ns6:alarm>
</ns13:getActiveAlarmsResponse>
</S:Body>
</S:Envelope>
On Feb 6, 2:33 pm, Aric Bills <aric.bi...@xxxxxxxxx> wrote:
On Feb 6, 11:45 am, anj patnaik <patn...@xxxxxxxxx> wrote:
Hello,
I would like to be able to generate a XML message like the one below
dynamically, i,e from variables/list params. I briefly looked at
tclsoap and the basic example didn't work and still researching tclws.
The latter requires wsdl file parsing and the WSDL files I have are
quite complex and nested.
So, I was wondering about tdom, but the examples seem to be more DTD
oriented.
Any pointers appreciated! Thanks.
Here is a sample XML request that I need to be able generate from
variables.
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:v1="http://www.tmforum.org/mtop/fmw/xsd/hdr/v1"
xmlns:v11="http://www.tmforum.org/mtop/rtm/xsd/ar/v1"
xmlns:v12="http://www.tmforum.org/mtop/fmw/xsd/nam/v1"
xmlns:v13="http://www.tmforum.org/mtop/nra/xsd/com/v1"
xmlns:v14="http://www.tmforum.org/mtop/nra/xsd/prc/v1">
<soapenv:Header>
<v1:header>
<v1:destinationURI>http://localhost:9006/mtosi/rtm/
AlarmRetrieval</v1:destinationURI>
<v1:communicationStyle>RPC</v1:communicationStyle>
<v1:activityName>getActiveAlarms</v1:activityName>
<v1:msgName>GetActiveAlarmsRequest</v1:msgName>
<v1:senderURI>http://localhost:9009</v1:senderURI>
<v1:msgType>REQUEST</v1:msgType>
<v1:communicationPattern>MultipleBatchResponse</
v1:communicationPattern>
<v1:requestedBatchSize>1000</v1:requestedBatchSize>
</v1:header>
</soapenv:Header>
<soapenv:Body>
<v11:getActiveAlarmsRequest>
<v11:filter>
<v11:perceivedSeverityList>
<v13:perceivedSeverity>CLEARED</
v13:perceivedSeverity>
</v11:perceivedSeverityList>
</v11:filter>
</v11:getActiveAlarmsRequest>
</soapenv:Body>
</soapenv:Envelope>
Example output is helpful. Can you also give the example input that's
supposed to produce it?
.
- Follow-Ups:
- Re: how to generate XML soap message
- From: Alexandre Ferrieux
- Re: how to generate XML soap message
- References:
- how to generate XML soap message
- From: anj patnaik
- Re: how to generate XML soap message
- From: Aric Bills
- how to generate XML soap message
- Prev by Date: Re: how to generate XML soap message
- Next by Date: Re: calling "c" from TCL
- Previous by thread: Re: how to generate XML soap message
- Next by thread: Re: how to generate XML soap message
- Index(es):
Relevant Pages
|