Skip to main content
October 26, 2015
Question

Coding for Soap API authentication

  • October 26, 2015
  • 1 reply
  • 1110 views

I am trying to use the soap API to authenticate.  I am using Progress OpenEdge to write my program.  I am having problems figuring out both the url to use and syntax for passing the authentication header.  In looking at the java, php and ruby examples they all have slight differences that quite frankly are confusing me in terms of the url that is being used.

In OpenEdge the basic concept for a connnection is as follows:

CREATE SERVER hWebService.

hWebService:CONNECT("-WSDL 'urlToConnectTo?WSDL'" + parm1 + parm2).

Should I be using marketo.com/mktows/ as the url or should I be using the endpoint url from the Admin, Web Service settings? Also I'm not sure how to pass the parameters.  All the examples use different syntax so it's not clear as to how I would pass them on a url.  I've created a parameter with the full header in xml format but that isn't working.  The Ruby example seems to be the closest in syntax to what I want to do but in that example the url is completely different (see below).

Ruby example:

client = Savon.client(wsdl: 'app.marketo.com/soap/mktows/2_3?WSDL', soap_header: headers, endpoint: marketoSoapEndPoint, open_timeout: 90, read_timeout: 90, namespace_identifier: :ns1, env_namespace: 'SOAP-ENV')

Any insight would be appreciated.

...Wes

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Kenny_Elkington
Adobe Employee
Adobe Employee
October 26, 2015

You should always obtain the WSDL from the following pattern: Your SOAP API URL from Admin->Web Services + "?WSDL"  The other URLs are only available for legacy reasons.