1 2 Previous Next 15 Replies Latest reply on Jul 8, 2017 4:04 AM by Viknesh PS

    problem output mapping web service

    Giorgos Stavropoulos
      Share:|

      hello to everyone,

      i am new to dev studio and i would like to ask a question. i call a web service but my output mapping is not happening for most of the fields.

      Is there any limitation on the depth of xml elements returned by the web service.

      As far as i can see in the arjavaplugin.log the response is sucefully received but values are not mapped to the form's fields. Note i have not included the whole message since this is not a public web service.

       

      2016-11-15 18:34:07,823 INFO  [pool-4-thread-5] com.bmc.arsys.pluginsvr.plugins.ARPluginContext (?:?) - <ARSYS.ARF.WEBSERVICE><?xml version="1.0" encoding="UTF-8"?>

      <ROOT><MOAttributes><getResponseSubscription xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><publicId>XXXXXXX</publicId><concurrency-control>5</concurrency-control><services>

      <common-data><area-code>211</area-code><country-code>30</country-code><service-profile-identity>XXXX</service-profile-identity>MORE FIELDS HERE</services></getResponseSubscription></MOAttributes></ROOT>

        • 1. Re: problem output mapping web service
          Giorgos Stavropoulos

          sorry the above has been submited incomplete.

          In the filter log only up to the <services> tag is mapped and the rest is ignored inside the filer log.

           

          /* Tue Nov 15 2016 18:26:43.0360 */     <Filter Level:0 Number Of Filters:1> Checking "WH:EMA:filter__3" (501)

          --> Passed -- perform actions

                0: Message

                      Web service will be called!!!!

                1: Set Fields

                      r_flags (536870922) = XXXvalue

                      r_enumZoneId (536870927) = YYYvalue

                2: Message

                      Web service called!!!!  !!! 85c195e085c195e0000000001479227086315

           

          Thanks in Advance

          • 2. Re: problem output mapping web service
            Ashwanth Padmanabhan

            during response the output mapping elements holding value in the logs ? but in the form it doesn't get stored?

            or during response in the arjavaplugin log you dont see the fields/attributes/elements at at first of all?

             

            when you access the wsdl in a browser do you see all the field mapping definition? may be through a SOAP UI client did you try to access the wsdl first and see if everything works as expected?

            • 3. Re: problem output mapping web service
              Giorgos Stavropoulos

              hello ashwanth and thank for the reply.

              well the web service has been tested using soap UI and it works fine.

              In the set fields web service response i map several form fields. After the web service is called the xml response can be found inside the log file.

              But only the top level elements are mapped to form values. For example the "publicId" and the "concurrency-control" are mapped corently(see xml above).

              When elements are nested deeper, the filter is not mapping the fields. for example the  "area-code" which are 2 level down the previous elements.

              • 4. Re: problem output mapping web service
                Ashwanth Padmanabhan

                may be it is a limitation ...but one basic question before we conclude is that the fields in your form are not display only right?

                • 5. Re: problem output mapping web service
                  Giorgos Stavropoulos

                  hello ashwanth i have only used normal character and integer data filelds in my form.

                  are you aware of such limitation in depth of nesting xml elements in web service reply?

                  if this is the case i suppose i m not the only one has ever come through  this.

                  thanks Giorgos

                  • 6. Re: problem output mapping web service
                    Giorgos Stavropoulos

                    anyone has faced the same issue?

                    BTW i am on version 8.1

                    Any help will be greatly appreciated.

                    • 7. Re: problem output mapping web service
                      LJ LongWing

                      Formatting for a slightly easier read

                       

                      <ARSYS.ARF.WEBSERVICE>

                          <?xml version="1.0" encoding="UTF-8"?>

                          <ROOT>

                              <MOAttributes>

                                  <getResponseSubscription

                                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

                                      <publicId>XXXXXXX</publicId>

                                      <concurrency-control>5</concurrency-control>

                                      <services>

                                          <common-data>

                                              <area-code>211</area-code>

                                              <country-code>30</country-code>

                                              <service-profile-identity>XXXX</service-profile-identity>

                                              MORE FIELDS HERE

                                          </common-data>

                                      </services>

                                  </getResponseSubscription>

                              </MOAttributes>

                          </ROOT>

                       

                      I see nothing wrong with the structure....and I'm not familiar with any 'limit' to the depth.

                       

                      Are you saying that you have the field mapped in the Filter, and the response is returning the elements that you have your fields mapped to, but the values don't show up in the record that's returned?

                       

                      Can you provide a screen shot of the filter?

                      • 8. Re: problem output mapping web service
                        Giorgos Stavropoulos

                        Hello Lj,

                         

                        So as you may see below, i have created the filter to execute on the form modify.

                        filter.jpg

                         

                        Please find also the form below.

                        form.JPG

                        when i click on the save button no values are populated on my form.

                         

                        Then i go to check the plugin log file, where the response of the web service can be found.

                        See the below.

                        arjavaplugin.log.jpg

                         

                        Thanks , Giorgos

                        • 9. Re: problem output mapping web service
                          Ashwanth Padmanabhan

                          the elements that is under services in the output mapping is not mapped to any of the form fields? right hand side it should have some form fields mapped..isn't it? why it is blank?

                           

                          like public id element is mapped to public id field of your form

                          likewise element under services should be mapped to some fields of your form in the output mapping right?

                          • 10. Re: problem output mapping web service
                            Giorgos Stavropoulos

                            hello again, thanx for you response. please find coments inline

                            "the elements that is under services in the output mapping is not mapped to any of the form fields? right hand side it should have some form fields mapped..isn't it? why it is blank?"

                            services contain different optional elements which most of the time they are not present in the response. Afterall if for example a web service returns 10 elements but we are only intrested for 1 of them, do we need to map them to 10 form fields?

                             

                            "like public id element is mapped to public id field of your form"

                            it is mapped but the form's public id doesnt even get a value, but it is still emtpy. how this is possible?

                            This is my actual problem

                             

                            thanks Giorgos

                            • 11. Re: problem output mapping web service
                              Giorgos Stavropoulos

                              hello again, is there any other log i can search for details of what has gone wrong during the mapping of web service to form fields?

                              Are there some kind of run-time validations happening behind the scenes (when the web service response received by the java plug-in), so at this stage something might fails and it won't proceed with fields mapping?

                              • 12. Re: problem output mapping web service
                                Giorgos Stavropoulos

                                Hello to everyone,

                                i finally find out what happened.

                                i was given a wsdl where the output field names (xml elements) were not correctly "capitalized" (i.e area-code instead of Area-Code).

                                 

                                BR Giorgos

                                1 of 1 people found this helpful
                                • 13. Re: problem output mapping web service
                                  Jason Miller

                                  Wonderful! Thank you for updating the thread with the resolution.

                                  • 14. Re: problem output mapping web service
                                    Giorgos Stavropoulos

                                    Hello,

                                    The most info found regarding the web service consuming was this document. (thanks Sylvain YVON.)

                                    I understand that the developer studio is meant to be friendly and help people do things quickly without any programming background.

                                    But correct me if i m wrong, we get too little info of what is happening in the background when :

                                    - we click the "Reload" wsdl file.

                                    - when response has arrived in plugin.

                                     

                                    Maybe if we could figure out what is happening behind the scenes that could save us also a lot of debugging effort.

                                     

                                    Thanks a lot, Giorgos

                                    1 2 Previous Next