web service X3 V11 Cannot read property 'GRP' of undefined

SUGGESTED

Hi,

I see this question without solution posted 1 year ago.

On  X3 V11, i created a web service and published it

As you see, the groupe GRP is present.

X3 return "Cannot read property 'GRP' of undefined"

  • 0
    SUGGESTED

    Hello Alec. Click on the group tag "GRP" and manually change it to "GRP1". Then publish it. That should fix your problem.

  • 0 in reply to jake1

    I tried GRP on the 2 lines (ITMREF & ITMDES) and published it.

    Same error

  • 0 in reply to Alec6

    Did you change them to "GRP" or "GRP1"?

  • 0 in reply to jake1

    I have this

    I want to change to GRP. It refuses. I delete i tried once again. Same alert.

    Anyway, i tried another WS standard X3 ITMMASTER, same issue.

    Cannot read property 'GRP' of undefined when i try this request.

  • 0

    Change it GRP1. Publish it. Then restart your syracuse server. 

  • 0 in reply to ChrisCC

    I changed to GRP1 and published it.

    I stopped the pool TEST in administration > web services > Configuration pool classic SOAP.

    But i can still test my web service in administration > web services > Services web classic SOAP.

    I still have the message "Cannot read property 'GRP' of undefined when i try this request".

    I don't understand how can it works. I'm not sure of the process.

    As i understand, i can do some changes in the web services but X3 do not apply the changes when i publish.

    How do i restart syracuse server ?

  • 0 in reply to Alec6
    SUGGESTED

    I have the same issue and I believe it is not part of the actual mapping but the way the serializer is being read. The XML generation creates groups based on the parameters. 

    <ADXDOC PNA="RETPIH" TIM="20191122144433" PRG="ZLEVTEST" SPG="RETPIH" FOL="APOPROD" SOL="X3V11D" USER="ADMIN" VER="6.30" HEAD="1" WRP="WJRETPIH" C_ENG="Test for web services">
    <ADXDATA>
    <GRP PNA="GRP1" NAM="GRP1" DIM="1">
    <FLD NAM="ZFCY" IDX="1" TYP="Char" PAR="Value" MOD="Input" LEN="250"/>
    </GRP>
    <GRP PNA="GRP2" NAM="GRP2" DIM="100">
    <FLD NAM="RCPY" IDX="2" TYP="Char" PAR="Adr" MOD="Input" LEN="250"/>
    <FLD NAM="RNUM" IDX="3" TYP="Char" PAR="Adr" MOD="Input" LEN="250"/>
    </GRP>
    </ADXDATA>
    <ADXMEN> </ADXMEN>
    </ADXDOC>

    Restarting the Syracuse will only flush out the cache, it will leave with the same issue. 
  • 0 in reply to DewaldH

    Thank you.

    In fact, i developped a web service as sub-program, not object while i tried to test with the query (object).

    It could'nt work. My web service works if i test it correctly with the stub sup-program.

    A few days, i had an issue about GRP because of a mistake in dimensions when i created the web service.

    Everything's OK now