Optional & not required Fields in webservice

Hi All,
I have published my webservice as orchestration,
Everything is good till now,
But user wants a couple of fields as optional & not required (the process should not break if the fields are not present in request xml),
so,i made that element name to nillable to true & minoccurs to 0, as shown
But in wsdl it creates minoccurs=1, not sure why it sets minoccurs=1, when the published schema has minoccurs=0 !!
the following is the wsdl screenshot.
Please let me know what can i do for making the fields optional & not required.
thanks,
Sarva.

First we will have to understand the issue.
Yes, this is an issue with BizTalk Web publishing wizard. But if you actual see it in practical terms, it’s not much of an issue. May be in some cases this could really cause
an issue when client just use WSDL.
The MSND URL which Rachit has shared may out of date. Because as mentioned in the MSDN blog ““If
you publish a schema that contains minOccurs or maxOccurs attributes
with specific values, these values may be different in schema exposed by the published Web service” – No. It’s not the exposed schema which will have different values
for minOccurs or maxOccurs attributes,
its only for the WSDL file which will have different values. If you
actually see the schema from the virtual directory, this will correct minOccurs or maxOccurs attributes. This is why when anyone who access/consume the web service by WSDL, will
also need to use schema while consuming. WSDL shall be used to access the operation name and data type (Schema) references whereas the actual definition for the data elements are accessed from schema.
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

Similar Messages

  • Not Required Field in Form

    I’m trying to create a registration form with required and not required fields, but I’m getting a data base error (Column 'city' cannot be null) in those fields that I leave in blank. I noticed that in the Data base palette (DW CS6) all the table’s rows it said “required”. How can I get around this issue?
    Thank you

    Set the 'city' field to NULL in the database. That will give the option of either filling in the information or leaving it blank

  • How to make the manufacture date as  not required field

    When upload initial stock, the manufacture date is made as a required field to enter but actually there are no related information for some materials.  Is there any configuration to disable this function and make manufacture date field as an optional field?
         Thanks a lot!

    Hi,
    Use t.code: OMJX and make  date of manufacture {field nameGOITEM-HSDAT} field as hide or display as you required and save.
    Now try ur trasnaction.
    Regards,
    Biju K

  • Not require field business area in t.code KS01

    Dear experts!
    Now, I'm getting some issue about using t.code KS01.
    When I use t.code KS01 (Create cost center) some fields require to enter as business area field. But I want to the fields do not require.
    How do I have to do? Help me, please.
    Best regards, Huy.

    Hi Huy
    Not only in cost center master, but you would also face this in other masters like Internal Order, Asset Masters etc
    Go to OBY6 and check if "Bus Area wise Financial Statements" indicator is on... If you really need, keep it on.. Else, switch it off
    Regards
    Ajay M

  • Not able to create conditional required fields at Tcode CJ20N Proj Systems

    Hello experts,
    I have a requirement to create a few custom fields under custom enhancement tab in CJ20N transaction, and depending on a particular value for one of the fields, another set of fields need to be set to required. (If FIELD1 = 'Y', FIELD2 & FIELD3 should be set to required)
    My approaches..
    1. Assign a screen group to FIELD2 and FIELD3. If FIELD1 = 'Y' then LOOP AT SCREEN, and set screen-required = 1 for that specific screen group.
    Problem with this approach is that, if I select FIELD1 = 'Y' (hit space or enter -> sy-ucomm = TOGGLE), the fields are successfully set to required. However, now if at this point I go and change value for FIELD1 = 'X' (hit space or enter), FIELD2 and FIELD3 still remain set to required, and keep requesting value.
    2. Do not set any fields to required. Instead set it to an information message in PAI, informing user that this field requires a value when FIELD1 = 'Y' on TOGGLE and SAVE.
    Problem with this approach is that even though during TOGGLE event user is provided with an informational message, if the user directly decides to SAVE (no change for TOGGLE event), in this case the same message is displayed, and the project screen itself is closed. I do not think it would be ideal for the user to see the entire project close on SAVE everytime they miss a conditionally required field.
    I am just not sure at this point how to handle this at SAVE so that I can still have the same control as I would when TOGGLE event is triggered.
    Experts please help if you have come across such a situation!!! Your insight would be greatly appreciated!
    Edited by: akkinair on Dec 16, 2011 1:25 AM

    Please find below the response.
    1. Assign a screen group to FIELD2 and FIELD3. If FIELD1 = 'Y' then LOOP AT SCREEN, and set screen-required = 1 for that specific screen group.
    Problem with this approach is that, if I select FIELD1 = 'Y' (hit space or enter -> sy-ucomm = TOGGLE), the fields are successfully set to required. However, now if at this point I go and change value for FIELD1 = 'X' (hit space or enter), FIELD2 and FIELD3 still remain set to required, and keep requesting value.
    --> When FIELD1 chnage used module with additon CHAIN-REQUEST and check its value if it is to be set to optional by using loop at screen and set screen-required =0.*_
    2. Do not set any fields to required. Instead set it to an information message in PAI, informing user that this field requires a value when FIELD1 = 'Y' on TOGGLE and SAVE.
    Problem with this approach is that even though during TOGGLE event user is provided with an informational message, if the user directly decides to SAVE (no change for TOGGLE event), in this case the same message is displayed, and the project screen itself is closed. I do not think it would be ideal for the user to see the entire project close on SAVE everytime they miss a conditionally required field.
    --> Can you please clarify it.
    Thanks
    Nabehet

  • Date field (not required) causing an error...Please assist!

    Hello, I am a beginner when it comes to ColdFusion could someone please assist with this issue?
    I have a date field in my application that is not required, I want users to have the choice to leave this field blank.
    Below is a breakdown of what I have going on:
    On Add/Edit page:
    <cfinvoke component="test"
               method="get"
               ReferenceNumber="#URL.RefIDNum#"
               returnvariable="record">
    <cfset ThisIsTheDateField=DateFormat(record.ThisIsTheDateField, "MM/DD/YYYY")>
    <cfform action="process.cfm">
       <cfinput type="Text"
                name="ThisIsTheDateField"
                value="#ThisIsTheDateField#"
                message="ThisIsTheDateField must be a valid date"
                required="no"
                                            validate="date"
                validateAt="onSubmit"
                size="50"
                maxlength="10">
    On process.cfm:
    <cfinvokeargument name="ThisIsTheDateField"
                       value="#DateFormat(FORM.ThisIsTheDateField)#">
    On CFC Page:
    <!--- Method arguments --->
    <cfargument name="ThisIsTheDateField"
                  type="date"
                  required="no"
                  hint="ThisIsTheDateField field">
    Query Value for this field:
    #CreateODBCDate(ARGUMENTS.ThisIsTheDateField)#,
    The error I get is:
    Error Occurred While Processing Request
    The THISISTHEDATEFIELD argument passed to the add function is not of type date. 
    If the component name is specified as a type of this argument, it is possible that either a definition file for the component cannot be found or is not accessible. 
    The error occurred in E:/site/test.cfc: line 56
    54 :
    55 :  <!--- Add a record --->
    56 :  <cffunction name="add"
    57 :              returntype="boolean"
    58 :              hint="Add a record">
    I need a way to make this field accept blank entries... when I leave it blank I get the above error!
    Thank you!

    The cfif does not surround the cfargument.  Put your cfargument for ThisIsTheDateField the same way you have it for your First/Second/Other Thing cfargument.  Then, understand that even though you have a cfargument tag that is named "ThisIsTheDataField", that the variable "arguments.ThisIsTheDataField" doesn't necessarily exist (because you have defined the argument as optional).  If it doesn't, you can't use it, otherwise you will get
    Element THISISTHEDATEFIELD is undefined in ARGUMENTS.
    So for the parts of your function where you will want to do something specific if the ThisIsTheDataField was passed to your function, you have to check using IsDefined("argument.ThisIsTheDataField") to determine if that variable exists or not.  SO, to summarize using the example you supplied above:
    <cffunction name="add"
                 returntype="boolean"
                 hint="Add a record">
      <!--- Method arguments --->
      <cfargument name="FirstThing"
                  type="string"
                  required="no"
                  hint="First Thing">
      <cfargument name="SecondThing"
                  type="string"
                  required="no"
                  hint="Second Thing">
      <cfargument name="ThisIsTheDateField"
                  type="date"
                  required="no"
                  hint="ThisIsTheDateField field">
      <cfargument name="Fourth Thing"
                  type="string"
                  required="no"
                  hint="Fourth Thing">
    <cfif IsDefined("arguments.ThisIsTheDateField")>
       <!--- operations that happen if ThisIsTheDateField was passed to the function
    <cfelse>
        <!--- operations that happen if ThisIsTheDateField was not passed to the function --->
    </cfif>
    As an example, let us say that you want to have the date be a default value (say, today's date), if the date isn't passed to the function.  You could do:
    <cfif IsDefined("arguments.ThisIsTheDataField")>
        <cfset TheDateField = arguments.ThisIsTheDataField" />
    <cfelse>
        <cfset TheDateField = Now() />
    </cfif>
    At the end of this code, the variable "TheDateField" will be guaranteed to have a date, and the date will be the date passed to the function if one was passed, or otherwise today's date if not.
    I hope that clarifies everything!

  • How to block the 'save' function when the required fields are not filled?

    Hello, Everyone
    I am new for this scripting. My question is:
    How to block the 'save' function when the required fields are not filled?
    I designed a PDF file with some required fields and I do not want the user to save the document until all required fields are filled. My idea is to write some scripts in Willsave method like:
    if (this.getField("Family Name").value == ""){
    app.alert('You should fill the Family Name field firstly!');
    But I do not think it works as finally the document is saved after all.
    Please help me on that!
    So much thanks.

    Dear Randybearwang,
    I am a Rocky myself and I know how though it is to establish some good codes. Since I created some forms with validation options myself I might have a code for you. The code also creates an alert box (Yes/no option) if the user chooses yes the form will be validatet, if he chooses "no" the alert window will be closed.If  everything is filled out correctly the form will be saved otherwise the textbox will be higlighted and gets focus.
    If you need further assistance , please let me know
    Have fun with the code.
    P.s I don´t know how to upload the "PDF" document. I wrote you an email, please get back to me if you still need the file.

  • Required Fields Not Working in LiveCycle Designer 7.0

    Hi, I'm new to LiveCycle Designer and scripting. I have created a 12 page form with "User Entered - Required" fields on the first 11 pages. My problem is that once information is entered in the required fields on page 1, the form is allowing the user to submit without completing the remaining required fields. I am using the "Email Submit" button at the end of my form. Any help would be appreciated.

    Hi Sudhir,
    May be script is not generating.  Can you find the follwoing piece of code in your Submit button click event:
         ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    Do one thing :
    open your form from Tcode: SFP in change mode.  And on top there is an option called Utilities.
    Under that select "Insert Webdynpro Script".  Activate your form.
    Regards,
    Ravi.D

  • Unchecking Required Field from Form Field is not working

    I am trying to un-check a field to a disable the required field function and it will not let me uncheck the box, its ghosted out. Upon filling out the form as-is > I enter text in the field as it requires and even after entering information it gives me an error and says its not filled out??!!!! I spent a lot of time on this form and do not have the time to recreate it just to risk getting the same result....

    Hi
    Did you rename the email field to Last Name? That's the only entry which will not let you uncheck this option.

  • NULL value not validated for a Required field

    Hi,
    I have added a MessageLovInput item to the expense header page (/oracle/apps/ap/oie/entry/header/webui/GeneralInformationPG), and have made the Required Value to True. But I do not get any error when I navigate to the next page without populating the field. If I enter in incorrect information, it validates it against the LOV, but not for null values.
    Any pointers to make the field validate NULL values?
    Thanks,
    Ashish

    Yeah.. I can see the Required field indicator (*) next to the field. I have tried with all the values (uiOnly, ValidatorOnly, Yes etc.), but it does not validate NULL values.
    I'll try to handle this in the controller, but would prefer if this can be done by personalization.
    Ashish

  • Power view in SharePoint - Required fields not working!!!

    Hi,
    We have SharePoint 2013 and SQL Server 2014 and SSRS in SharePoint integrated mode.
    We have a "Microsoft BI Semantic Model for Power View"-data connection in a document library and by clicking it users can create their own Power View reports.
    We have in the document library defined a couple of columns as required.
    When a user saves their Power View report(File->Save as) to the document library, the required fields are left blank. They are not checked!!!
    WHY?
    Does Power View use REST when saving to the document library?
    This question should be in SQL Server/Power View/SharePoint -forumns, but MSDN forces you to select only one.
    How can we enforce the checking of required columns???

    It might be the result of nested script tags.
    <script type="text/javascript">
    <!--
    <!--
    Remote one of those opening tags and remove the closing tag in between the scripts.
    Also, I'm not sure if you are aware, but your site looks completely broken in Firefox. Edges are ragged and the text runs off the page in places. This is the result of using a graphics program to create your html. Image ready slices are fine for prototyping, but not suitable for production work because they create code that is fragile and too rigid.
    I also would not use the Flash header you have used just to display imges. I suggest using a more accessible method.

  • My service provider's SMTP does not require a password but the option "non" does not appear on the IPOD Touch 5th gen. Fix?

    I have relay.skynet.be as my outgoing server and it does not require/allow password protection. When configuring mail on the Ipod the option of "non" is not given for the outgoing server. Is this a skynet issue or is there an Ipod solution?

    Google for:
    setup XX email on iphone
    to see if ony of the returned sites help.
    XX is you email provider.

  • How to display custom error message if the Required field is not entered?

    Hi,
    I have made one input field as required field in a view.
    I want to display one custom error message ,if the required input field is not entered.
    Please help me regarding this.
    Thanks,
    Deepika

    hi deepika....
    First go to message pool under webdynpro components.
    Create a new message there..of type error.
    Enter your text.
    Now to avoid null pointer exception , in wdDoInit(), initialise the value
    wdContext.currentDateTimeElement().setDate("");
    now create an action for submission of data. If field is empty, then within the button write:
      msg = wdComponentAPI.getComponent().getMessageManager();
        if(wdContext.currentDateTimeElement().getDate().equals(""))
        msg.raiseMessage(IMessageCompTodatDateTime.ERROR,new Object[]{""},true)     ;
    between begin others put:
    regards,
    pinki
      IWDMessageManager msg = null;

  • "iTunes can not run because some of the required fields are missing.  Please reinstall iTunes."  What the ****?!

    "iTunes can not run because some of the required fields are missing.  Please reinstall iTunes."  What the ****?  Please help me figure this out.  I already removed quicktime (as another thread suggested).  I can't get in!

    i get same error.
    I have uninstalled and reinstalled more times than i care to count. but still i get
    itunes cannot run because some of its required files are missing.

  • Using javaScript to change a field from required to not required

    Hi,
    I have what seems like a simple question .I would like to know if it is possible to have a function call from my jsf code to a javascript function which could change a text field input from required to not required .
    I can do this through the server but would prefer to do it in the front end .
    e.g . I have a pull down list and when I click on one of the values it calls a function in javascript which changes a text field from required to not required .
    Hope this is clear .
    Thanks for your help.

    Instead of having the field required on the component defeiniton, put that requirement on code.
    Either way you can't do that on javascript. If you could do that then you could fool the aplication...

Maybe you are looking for

  • How do I find a photo book that was made on a Mac I no longer haave?

    I am trying to print another copy of a photo book I made in iphoto on my brothers laptop several years ago. Is their an online account that would store the photo book?

  • Using oracle decode function in ssQueryText

    Hi, I am populating the values for ssQueryText, ssSortField etc from the fragment parameters. Then i am using these field values in fragment jsp, put those values in the serverbean and executing the service. I am getting the results, and the results

  • Can I replace the stock (MacMini) HD with an SSD?

    Hi there, I have a 2009 Mac Mini (early 2009 edition) and I'd like to pull the 320GB HD and replace it with a 256GB SSD that I can boot from. Anyone here done this? looking for advice. Thanks, GJS

  • Reporting Tools Comparison

    Can anyone tell me if there has been a comparative study of the different reporting tools available for RDBMS? E.g., I would be especially interested in the differences between Oracle Reports and Crystal Reports - advantages and disadvantages. Does a

  • Syncing calendars in iCloud.

    When a birthday is set in the address book on my MAC it is automatically picked up in iCal. However, when ical is synced in iCloud all Birthdays are missing. Is this just another problem with iCloud, or am I doing something wrong?