BookmarkSubscribeRSS Feed
ozgegroove
SAS Employee

Hi community,

 

I am new to SAS Web Services..

 

I have created a SAS web service using a stored process. This stored process uses numeric and char input parameters. I have not chosen "Requires a non blank value" while creating prompts. But when I try to set null value for numeric parameters, it gives an error. Attached, you can see the request and response files.

Here is an error when I submit the attached request(SUSPICIOUS_FLAG is missing). Also, attached you can see the SUSPICIOUS_FLAG prompt definition screenshots.

 

"A 'Client' type of exception occurred during execution of 'claim_info_ws1' service.  The exception follows: Exception occurred while parsing value for parameter 'SUSPICIOUS_FLAG'"

 

Additionally, even it is unrelated, I tried clicking "Missing Values" in Include Special Values in the second tab of the prompt, it still did not work.

 

It is likely to have some missing values for some numeric parameters. How could I define/submit the request file for such a situation? Urgent help is appreciated a lot. Thanks!!

 

Regards,

Özge


screenshot2.PNGscreenshot1.PNG
1 REPLY 1
boemskats
Lapis Lazuli | Level 10

Hi ozgegroove,

 

A bit late, but have a look at the standard way of passing null values via web services, as I assume this is axis2/axiom xml validation complaining.

 

Look at:

http://www.ibm.com/developerworks/library/ws-tip-null/

http://stackoverflow.com/questions/774192/what-is-the-correct-way-to-represent-null-xml-elements

 

I'd try two things: either omitting the empty elements from the request entirely, or using the xsi:nil="true" syntax.

 

What are you using to generate your envelope? Are you generating it yourself or is it output from another application?

 

 

Nik

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1251 views
  • 0 likes
  • 2 in conversation