Forum Discussion

sadika's avatar
sadika
Contributor
14 years ago

How To parametrized End point in every AMF request

Hi All,

I am working in SOAP UI, handling AMF request can any one please elaborate how could I parametrized the AMF Endpoints from an external file or any other way.
I set the property value(endpoint URL, AMF domain) at the Project level and pass the Endpoint url in AMF request like (${#Project#URL#AMF}) sometime it RUNs successfully but sometime it throws errors.

For the Login method I am getting positive response but for second request I throws "Decoding failed: Syntax error" message, even through I pass the cookie value as the parameter for second Method.

Below is the Groovy Method which I am using to get the Cookie value from first method response header and passing it into second method 's parameter:

def cookie_vals = testRunner.testCase.getTestStepByName("LoginRequest").testRequest.response.responseHeaders["Set-Cookie"]
def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
groovyUtils.setPropertyValue("UserService", "PHPSESSID", cookie_vals.toString())

Please respond me ASAP.

Thanks,
Sadik Ali.

5 Replies

  • Thanks for your quick reply.

    I have no exception but getting failure message "<faultString>Please Authenticate</faultString>" witout sending cookie as a parameter.

    When I send cookie as I previous post then getting " <faultString>Decoding failed: Syntax error</faultString>.

    Please respond me ASAP.

    Thanks,
    Sadik Ali.
  • Thanks RJanecek for your quick reply.

    can you suggest me on following.

    1. I have successfully getting response of Login method.
    2. How to send request for next method which is after login (Save.Service) method.
    3. My Third method in LogOut

    advance thanks,
    Sadik Ali
  • Thanks RJanecek for reply,

    Finally I have parametrized End point at project level and pass it into every endpoint text box.

    using code ${#Project#parameter_name}