Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
daniel_guentner1
Explorer
Sometimes the receiver System needs specific SOAP Envelope Header information.

In case of static/fix values we can use SOAP adapter with module (AF_Modules/AddSOAPHeaderBean).

In case of UPS interfaces this will work.

<SOAP-ENV:Header><ns4:UPSSecurity><ns4:UsernameToken><ns4:Username>dani </ns4:Username><ns4:Password> sag ich nicht </ns4:Password>....

 

Create your graphical mapping from SAP format (IDOC/Proxy) to UPS XML structure (ShipmentRequest)



(minimum fields for request messaage you will find below)

 

Create the ICO and use SOAP Receiver to UPS



Add the fix parameter value 



Also you can activate the TraceHTTP option to see your whole SOAP request and the response in the Log viewer of NWA.



In the response message you will get the binary string for the label.



 

You can use Notepad++ and enter the string and convert it to jpg. (base64)



 

 

 

SalesForce needs a flexible/dynamic SOAP Header information for each call.
The standard SOAP adapter does not support this.

One way is to create the whole SOAP envelope in the Mapping time.
You have to use as SOAP Lookup during the OperationMapping steps to receive the required token from receiver.
In the next mapping step you can use XSLT to merge the information into the final SOAP Envelope.
The SOAP receiver setup is now without envelope.

The picture below shows the necessary steps for this solution:

 



 

 

Minimum Fields in UPS Mapping needed:

<?xml version="1.0" encoding="iso-8859-1"?>
<ns0:ShipmentRequest xmlns:ns0="http://www.ups.com/XMLSchema/XOLTWS/Ship/v1.0"><ns1:Request
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/Common/v1.0"><ns1:RequestOption>nonvalidate</ns1:RequestOption></ns1:Request><ns0:Shipment><ns0:Description>Ship WS
test</ns0:Description><ns0:Shipper><ns0:Name>dani</ns0:Name><ns0:AttentionName>ShipperName</ns0:AttentionName><ns0:CompanyDisplayableName>ShipperName</ns0:CompanyDisplayableName><ns0:TaxIde
ntificationNumber>993996</ns0:TaxIdentificationNumber><ns0:Phone><ns0:Number>9999999799</ns0:Number><ns0:Extension>9</ns0:Extension></ns0:Phone><ns0:ShipperNumber>939979</ns0:ShipperNumber>
<ns0:Address><ns0:AddressLine>9399 York
Rd</ns0:AddressLine><ns0:City>Timonium</ns0:City><ns0:StateProvinceCode>MD</ns0:StateProvinceCode><ns0:PostalCode>99093</ns0:PostalCode><ns0:CountryCode>US</ns0:CountryCode></ns0:Address></
ns0:Shipper><ns0:ShipTo><ns0:Name>Dani Dog Pet Supply</ns0:Name><ns0:AttentionName>Ship To Attention
Name</ns0:AttentionName><ns0:Phone><ns0:Number>9999377979</ns0:Number></ns0:Phone><ns0:Address><ns0:AddressLine>DaniSTR.9</ns0:AddressLine><ns0:City>Neuss</ns0:City><ns0:PostalCode>99996</n
s0:PostalCode><ns0:CountryCode>DE</ns0:CountryCode></ns0:Address><ns0:LocationID></ns0:LocationID></ns0:ShipTo><ns0:ShipFrom><ns0:Name>T and T
Designs</ns0:Name><ns0:AttentionName>9960b_79</ns0:AttentionName><ns0:Phone><ns0:Number>9939967990</ns0:Number></ns0:Phone><ns0:Address><ns0:AddressLine>9399 York
Rd</ns0:AddressLine><ns0:City>Timonium</ns0:City><ns0:StateProvinceCode>MD</ns0:StateProvinceCode><ns0:PostalCode>99093</ns0:PostalCode><ns0:CountryCode>US</ns0:CountryCode></ns0:Address></
ns0:ShipFrom><ns0:PaymentInformation><ns0:ShipmentCharge><ns0:Type>09</ns0:Type><ns0:BillShipper><ns0:CreditCard><ns0:Type>06</ns0:Type><ns0:Number>9796999997690699</ns0:Number><ns0:Expirat
ionDate>99/9093</ns0:ExpirationDate><ns0:SecurityCode>969</ns0:SecurityCode><ns0:Address><ns0:AddressLine>9090 warsaw
road</ns0:AddressLine><ns0:City>Dani</ns0:City><ns0:StateProvinceCode>GA</ns0:StateProvinceCode><ns0:PostalCode>30076</ns0:PostalCode><ns0:CountryCode>US</ns0:CountryCode></ns0:Address></ns
0:CreditCard></ns0:BillShipper></ns0:ShipmentCharge></ns0:PaymentInformation><ns0:Service><ns0:Code>09</ns0:Code><ns0:Description>Expedited</ns0:Description></ns0:Service><ns0:ShipmentServi
ceOptions><ns0:InternationalForms><ns1:FormType xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">09</ns1:FormType><ns1:Contacts
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:SoldTo><ns1:Name>Sold To Name</ns1:Name><ns1:AttentionName>Sold To Attn
Name</ns1:AttentionName><ns1:Phone><ns1:Number>99399</ns1:Number><ns1:Extension>9999</ns1:Extension></ns1:Phone><ns1:Option>09</ns1:Option><ns1:Address><ns1:AddressLine>39 Queen
St</ns1:AddressLine><ns1:City>Frankfurt</ns1:City><ns1:PostalCode>60997</ns1:PostalCode><ns1:CountryCode>DE</ns1:CountryCode></ns1:Address></ns1:SoldTo></ns1:Contacts><ns1:Product
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:Description>Product
9</ns1:Description><ns1:Unit><ns1:Number>997</ns1:Number><ns1:UnitOfMeasurement><ns1:Code>BOX</ns1:Code><ns1:Description>BOX</ns1:Description></ns1:UnitOfMeasurement><ns1:Value>979</ns1:Val
ue></ns1:Unit><ns1:CommodityCode>999999AA</ns1:CommodityCode><ns1:OriginCountryCode>US</ns1:OriginCountryCode><ns1:ProductWeight><ns1:UnitOfMeasurement><ns1:Code>LBS</ns1:Code><ns1:Descript
ion>LBS</ns1:Description></ns1:UnitOfMeasurement><ns1:Weight>90</ns1:Weight></ns1:ProductWeight></ns1:Product><ns1:InvoiceNumber
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">asdf993</ns1:InvoiceNumber><ns1:InvoiceDate
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">90999999</ns1:InvoiceDate><ns1:PurchaseOrderNumber
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">999jjj777</ns1:PurchaseOrderNumber><ns1:TermsOfShipment
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">CFR</ns1:TermsOfShipment><ns1:ReasonForExport
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">Sale</ns1:ReasonForExport><ns1:Comments xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">Your
Comments</ns1:Comments><ns1:DeclarationStatement xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">Your Declaration Statement</ns1:DeclarationStatement><ns1:Discount
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:MonetaryValue>900</ns1:MonetaryValue></ns1:Discount><ns1:FreightCharges
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:MonetaryValue>90</ns1:MonetaryValue></ns1:FreightCharges><ns1:InsuranceCharges
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:MonetaryValue>900</ns1:MonetaryValue></ns1:InsuranceCharges><ns1:OtherCharges
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0"><ns1:MonetaryValue>90</ns1:MonetaryValue><ns1:Description>Misc</ns1:Description></ns1:OtherCharges><ns1:CurrencyCode
xmlns:ns1="http://www.ups.com/XMLSchema/XOLTWS/IF/v1.0">USD</ns1:CurrencyCode></ns0:InternationalForms></ns0:ShipmentServiceOptions><ns0:Package><ns0:Description>
</ns0:Description><ns0:Packaging><ns0:Code>09</ns0:Code><ns0:Description>Nails</ns0:Description></ns0:Packaging><ns0:Dimensions><ns0:UnitOfMeasurement><ns0:Code>IN</ns0:Code><ns0:Descriptio
n>Inches</ns0:Description></ns0:UnitOfMeasurement><ns0:Length>7</ns0:Length><ns0:Width>9</ns0:Width><ns0:Height>9</ns0:Height></ns0:Dimensions><ns0:PackageWeight><ns0:UnitOfMeasurement><ns0
:Code>LBS</ns0:Code><ns0:Description>Pounds</ns0:Description></ns0:UnitOfMeasurement><ns0:Weight>90</ns0:Weight></ns0:PackageWeight></ns0:Package></ns0:Shipment></ns0:ShipmentRequest>
Labels in this area