Error making a soap call within a custom form


#1

Hello,

I’m trying to call a web service via the “make soap call” inside a custom form.

It was working when i originally set it up, but now it returns “Server was unable to process request. —> There is no row at position 0.”.

If I parse static data in the soap action parameters, the web service works as expected and returns the appropriate information in the body copy using the global soap keyword %globals_session_soap_METHODRESPONSE%.

I’ve added a line to my web service that output’s the response values from the custom form fields and they are being parsed to my web service as %response_123456_q1%, so the soap action isn’t posting the response values from the form but is posting the keywords in the parameters.

This is what is being used as the request:
<root>
<field1>_%response_154532_q1%</field1>
<field2>_%response_154532_q2%<field2>
</root>

Instead, it should be sending this request (or similar):
<root>
<field1>user input value 1</field1>
<field2>user input value 2<field2>
</root>

Has anyone come across this before and more importantly a found a fix for this?

Thanks in advance for any help on this.

Update:
This is now working! I unchecked the “run test” box and then it started to work on the web page!
Awesome!


#2

Looks like you are missing the first underscore, try %response_154532_q1%


#3

Hi Petri, thanks for your response, that was just me typing this out, the keywords were OK in Squiz.

I’ve managed to get it to work by simply unchecking the “run test” box! Bit odd but it seems to have fixed it.

Thanks for coming back to me though.