Banner
View RSS Feed

josephliang

Testing Web Services for Automation Agents using XML Transmitter

Rate this Entry
by on November 5th, 2010 at 16:35 (23623 Views)
                  
    Bookmark and Share    
   
1. Download XML Transmitter from EPO Consulting GmbH

2. Retrieve WSDLs via Business Process Automation > Integration > Integration Manager > Retrieve WSDLs

For example, obtain Destination from /definitions/service/port/soap:address/@location of ShipmentService WSDL

3. Prepare payload XML

For example, set Shipment Indicator as shown in Integration Guide page 11-3

<s1:ShipmentActionMessage xmlns="http://xmlns.oracle.com/apps/otm/ser...nt/shipment/v1"
xmlns:svc="http://xmlns.oracle.com/apps/otm/service"
xmlns:s1="http://xmlns.oracle.com/apps/otm/ser...nt/shipment/v1"
xmlns:s2="http://xmlns.oracle.com/apps/otm/agent/shipment/v1"
schemaVersion="1.0">
<svc:ServiceHeader>
<svc:UserName>TEST.ADMIN</svc:UserName>
<svc:Password>CHANGEME</svc:Password>
<svc:Processing>
<svc:Mode>PUBLISH</svc:Mode>
<svc:Results>RESULTS_NONE</svc:Results>
</svc:Processing>
</svc:ServiceHeader>
<svc:BusinessObjectPks>
<svc:ShipmentPk>
<DomainName>TEST</DomainName>
<Xid>01550</Xid>
</svc:ShipmentPk>
</svc:BusinessObjectPks>
<s2:SetIndicator>
<s2: DtaGid />
<s2:Fields>
<s2:IndicatorValue>Y</s2:IndicatorValue>
</s2:Fields>
</s2:SetIndicator>
</s1:ShipmentActionMessage>
Wrap with SOAP Envelope becomes
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="XML Schema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>


<s1:ShipmentActionMessage xmlns="http://xmlns.oracle.com/apps/otm/ser...nt/shipment/v1"
xmlns:svc="http://xmlns.oracle.com/apps/otm/service"
xmlns:s1="http://xmlns.oracle.com/apps/otm/ser...nt/shipment/v1"
xmlns:s2="http://xmlns.oracle.com/apps/otm/agent/shipment/v1"
schemaVersion="1.0">
<svc:ServiceHeader>
<svc:UserName>TEST.ADMIN</svc:UserName>
<svc:Password>CHANGEME</svc:Password>
<svc:Processing>
<svc:Mode>PUBLISH</svc:Mode>
<svc:Results>RESULTS_NONE</svc:Results>
</svc:Processing>
</svc:ServiceHeader>
<svc:BusinessObjectPks>
<svc:ShipmentPk>
<DomainName>TEST</DomainName>
<Xid>01550</Xid>
</svc:ShipmentPk>
</svc:BusinessObjectPks>
<s2:SetIndicator>
<s2: DtaGid />
<s2:Fields>
<s2:IndicatorValue>Y</s2:IndicatorValue>
</s2:Fields>
</s2:SetIndicator>
</s1:ShipmentActionMessage>


</soap:Body>
</soap:Envelope>
4. In XML Transmitter, specify service endpoint (obtained from step 2) as Destination, and place payload XML (from step 3) in Request, and then click "Post" button to send to OTM.


Note: the sample message only works for 6.0 and 6.1. For 6.2, please refer to Testing 6.2 Web Services for Automation Agents using XML Transmitter - Blogs - Oracle OTM / GTM / FTI Community Support site
Attached Thumbnails Attached Thumbnails blogs/josephliang/attachments/824-testing-web-services-automation-agents-using-xml-transmitter-wsdl.jpg   blogs/josephliang/attachments/825-testing-web-services-automation-agents-using-xml-transmitter-xml-transmitter.jpg   blogs/josephliang/attachments/826-testing-web-services-automation-agents-using-xml-transmitter-retrieve-wsdl.jpg  

Submit "Testing Web Services for Automation Agents using XML Transmitter" to Digg Submit "Testing Web Services for Automation Agents using XML Transmitter" to del.icio.us Submit "Testing Web Services for Automation Agents using XML Transmitter" to StumbleUpon Submit "Testing Web Services for Automation Agents using XML Transmitter" to Google

Updated October 19th, 2012 at 16:56 by josephliang (Added note for 6.2)

Categories
Uncategorized

Comments

Trackbacks

Total Trackbacks 0
Trackback URL:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56