Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

REST-SOAP remove null parameters

Not applicable

I am using the REST-SOAP-REST proxy-api

My WSDL endpoint consist of 3 parameters, call them p1, p2, p3. All of them are optional and has [0-9A-Za-Z]{8} 8 characters constraint for validation.

After deploying my WSDL, I attempted the rest call by doing http://xxx.xxx/myendpoint?p1=xx&p3=xx

Unfortunately I get an error doing that because it is saying p2 is not passing validation. So the leads me to think that even though I did not pass that parameter in the REST call, the proxy is passing p2 as an empty string to the WSDL endpoint.

Is there a way for me to not include parameters that are null?

0 5 3,364
5 REPLIES 5