- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:27 AM
Hello all,
I'm writing a business rule to generate an outbound SOAP message to a third party.
I've generated a SOAP message function using the WSDL provided by the third party.
I want to use setStringParameter() to set the value of variables, but I can see that a number of variable names have been used multiple times at different places in the envelope (between different XML tags). My knowledge of XML is limited. How do I ascertain the full reference for these variables to use in my business rule? Similarly, how do I reference these variables to set SOAP Message Parameters (related list on SOAP message function) for testing?
Thank you
Jamie.
Solved! Go to Solution.
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:45 AM
Hi Jamie,
I think you can find out by hitting auto-generate variables and then Preview Script Usage
try {
var s = new sn_ws.SOAPMessageV2('Amazon', 'AWSECommerceServiceBinding.CartModify');
//override authentication profile
//authentication type ='basic'
//r.setAuthentication(authentication type,profile name);
s.setStringParameter('CartModify.Validate', '');
s.setStringParameter('Request.CartId', '');
s.setStringParameter('CartModify.MarketplaceDomain', '');
s.setStringParameter('Shared.MergeCart', '');
s.setStringParameter('Request.HMAC', '');
s.setStringParameter('Shared.CartId', '');
..
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 06:45 AM
Hi Jamie,
I think you can find out by hitting auto-generate variables and then Preview Script Usage
try {
var s = new sn_ws.SOAPMessageV2('Amazon', 'AWSECommerceServiceBinding.CartModify');
//override authentication profile
//authentication type ='basic'
//r.setAuthentication(authentication type,profile name);
s.setStringParameter('CartModify.Validate', '');
s.setStringParameter('Request.CartId', '');
s.setStringParameter('CartModify.MarketplaceDomain', '');
s.setStringParameter('Shared.MergeCart', '');
s.setStringParameter('Request.HMAC', '');
s.setStringParameter('Shared.CartId', '');
..
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 11:13 AM
Hi Tony,
Thanks for this. I didn't mention we're still on Eureka, which doesn't have 'auto-generate variables'. But fortunately I've upgraded one of our sub production instances to Geneva, so I was able to cheekily copy my SOAP message function there just to generate the list of variables.
Jamie.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2016 11:18 AM
Hi Jamie,
Good you have the solution you need.
Convenient you had a Geneva version to cheekily snarf the variables.
Otherwise you could have used a Personal Developer Instance, which would be even cheekier!
Best Regards
Tony