How to use outbound SOAP? I have URL pulling wsdl data . I want to use those data in my custom application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2015 05:41 AM
How to use outbound SOAP? I have URL pulling wsdl data . I want to use those data in my custom application and How we can pass and save those data...
can anybody guide me. Should I have a script include to store and pass those parameters. Help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2015 06:15 AM
Help us by displaying the content of your 'Script Usage Preview', to do this, go to the SOAP record that you are working on, then go into the Soap Function you are executing.
That function should have a related list of parameters, on my instance the list is called: Variable Substitutions.
Are your parameters listed there? if not, add them based on the Wiki links provided by the first responder of this thread.
If so, click the Preview Script Usage UI Form Action, copy and past that into a reply here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2015 06:22 AM
Hey william Pls find the Preview Script Usage :
Variable Substitutions are listed in my SOAP.
try {
var s = new sn_ws.SOAPMessageV2('Currency Converter', 'CurrencyConvertorSoap12.ConversionRate');
//override authentication profile
//authentication type ='basic'
//r.setAuthentication(authentication type,profile name);
s.setStringParameter('ConversionRate.FromCurrency', '1');
s.setStringParameter('ConversionRate.ToCurrency', '2');
var response = s.execute();
var responseBody = response.getBody();
var status = response.getStatusCode();
}
catch(ex) {
var message = ex.getMessage();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2015 06:43 AM
That looks good. based on the error then, the endpoint is expecting a value other than '1'.
Check the documentation of the API you are connecting to, they should provide a list of acceptable values.
so instead of:
s.setStringParameter('ConversionRate.FromCurrency', '1');
s.setStringParameter('ConversionRate.ToCurrency', '2');
You would change it to 'SomethingElse':
s.setStringParameter('ConversionRate.FromCurrency', 'SomethingElse');
s.setStringParameter('ConversionRate.ToCurrency', 'SomethingElse2');