Apoorva6
9 years agoFrequent Contributor
How do i prepare requests with repeated blocks having unique number in each blocks ?
Hi All,
I have below XML request , where <oewInventoryDetails> block can repeat N number of times. and only unique value in all blocks is <oew:inventoryId>. How do i add number of blocks of my intention
with unique number in each block ?. For example, i need to create request with 10,000 blocks of oewInventoryDetails and each should have a unique <oew:inventoryId>.
My XML as below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:oew="http://oew.bt.com/webservice/order/oewsocnorderload">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>userid</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">pwd</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<oew:oewSOCNOrderLoadRequest>
<oew:oewSOCNOrderLoadRequestInfo>
<oew:oewOrderDetails>
<oew:oewSiteDetails>
<oew:transactionId>${=System.currentTimeMillis()}</oew:transactionId>
<oew:orderNumber>IAASDEM1012</oew:orderNumber>
<oew:orderType>N</oew:orderType>
<oew:serviceName>SOFTLAYER</oew:serviceName>
<oew:taskOrderNumber>To#2-Agency50-ATNTDEMO4</oew:taskOrderNumber>
<oew:subAccountNumber>8310000046091</oew:subAccountNumber>
<oew:effectiveDate>2017-04-30T10:58:17.687Z</oew:effectiveDate>
<oew:foreignAccountNumber>45612</oew:foreignAccountNumber>
<oew:oewInventoryDetails>
<oew:actionType>I</oew:actionType>
<oew:productName>NI</oew:productName>
<oew:inventoryId>NI1_JUL7</oew:inventoryId>
<oew:oewLocationDetails>
<oew:activityType>I</oew:activityType>
<oew:room>RM1</oew:room>
<oew:floor>FL01</oew:floor>
<oew:addressLine1>1 S DEARBORN ST</oew:addressLine1>
<oew:city>CHICAGO</oew:city>
<oew:state>IL</oew:state>
<oew:zip>60603</oew:zip>
<oew:geocode>0121510004001</oew:geocode>
<oew:countryCode>US</oew:countryCode>
<oew:buildingName>EGL</oew:buildingName>
<oew:outsideCityLimitIndicator>N</oew:outsideCityLimitIndicator>
</oew:oewLocationDetails>
<oew:oewServiceDetails>
<oew:activityType>I</oew:activityType>
<oew:serviceOrderProductCode>IA90002</oew:serviceOrderProductCode>
<oew:mappingType>ICB</oew:mappingType>
<oew:caseNumber>1</oew:caseNumber>
<oew:quantity>300</oew:quantity>
<oew:nrcWaiverIndicator>N</oew:nrcWaiverIndicator>
<oew:uniqueServiceIdentifier>UBISOFT_0372</oew:uniqueServiceIdentifier>
<oew:federalJurisdictionFrom>FJR</oew:federalJurisdictionFrom>
</oew:oewServiceDetails>
<oew:oewServiceDetails>
<oew:activityType>I</oew:activityType>
<oew:serviceOrderProductCode>IA90003</oew:serviceOrderProductCode>
<oew:mappingType>ICB</oew:mappingType>
<oew:caseNumber>368</oew:caseNumber>
<oew:quantity>300</oew:quantity>
<oew:nrcWaiverIndicator>N</oew:nrcWaiverIndicator>
<oew:uniqueServiceIdentifier>UBISOFT_0372</oew:uniqueServiceIdentifier>
<oew:federalJurisdictionFrom>FJR</oew:federalJurisdictionFrom>
</oew:oewServiceDetails>
<oew:oewServiceDetails>
<oew:activityType>I</oew:activityType>
<oew:serviceOrderProductCode>IA90003</oew:serviceOrderProductCode>
<oew:mappingType>ICB</oew:mappingType>
<oew:caseNumber>369</oew:caseNumber>
<oew:quantity>300</oew:quantity>
<oew:nrcWaiverIndicator>N</oew:nrcWaiverIndicator>
<oew:uniqueServiceIdentifier>UBISOFT_0372</oew:uniqueServiceIdentifier>
<oew:federalJurisdictionFrom>FJR</oew:federalJurisdictionFrom>
</oew:oewServiceDetails>
<oew:oewServiceDetails>
<oew:activityType>I</oew:activityType>
<oew:serviceOrderProductCode>IA90003</oew:serviceOrderProductCode>
<oew:mappingType>ICB</oew:mappingType>
<oew:caseNumber>370</oew:caseNumber>
<oew:quantity>300</oew:quantity>
<oew:nrcWaiverIndicator>N</oew:nrcWaiverIndicator>
<oew:uniqueServiceIdentifier>UBISOFT_0372</oew:uniqueServiceIdentifier>
<oew:federalJurisdictionFrom>FJR</oew:federalJurisdictionFrom>
</oew:oewServiceDetails>
<oew:oewServiceDetails>
<oew:activityType>I</oew:activityType>
<oew:serviceOrderProductCode>IA90003</oew:serviceOrderProductCode>
<oew:mappingType>ICB</oew:mappingType>
<oew:caseNumber>371</oew:caseNumber>
<oew:quantity>300</oew:quantity>
<oew:nrcWaiverIndicator>N</oew:nrcWaiverIndicator>
<oew:uniqueServiceIdentifier>UBISOFT_0372</oew:uniqueServiceIdentifier>
<oew:federalJurisdictionFrom>FJR</oew:federalJurisdictionFrom>
</oew:oewServiceDetails>
</oew:oewInventoryDetails>
</oew:oewSiteDetails>
</oew:oewOrderDetails>
</oew:oewSOCNOrderLoadRequestInfo>
</oew:oewSOCNOrderLoadRequest>
</soapenv:Body>
</soapenv:Envelope>