Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: With version 2.10.01 some webservices functions invocation do not work  (Read 22806 times)
alessio p.
Posts: 11


« on: January 11, 2008, 01:06:04 pm »

USE CASE : we have some WebServices provided by GAS wich are consumed by JAVA client.
While with version 2.02.05 the functions work properly, with the version 2.10.01 GAS sends back the following error message :  XML Element '%': nextStax unexpected event.

The funcions where the problem occurs accept as input and ouptut parameters variables of "record of record" type.

Comparing the WSDL definitions of the same function generated by version 2.02.05 and version 2.10.01 there are some differences :
  Version 2.02.05
    <soap:operation soapAction="" style="document"/>

  Version 2.10.01
    <soap:operation soapAction=""/>

Could that be the cause of the problem ?

We use the following Platforms:
- Red Hat Enterprise Linux ES release 4 (Nahant Update 4) Kernel 2.6.9-42.0.10.ELsmp on an x86_64
- BDL 2.10.01 build-1138
- GWS 2.10.01

Thanks in advance,

Bye
Frank G.
Four Js
Posts: 48


« Reply #1 on: January 11, 2008, 02:40:12 pm »

Hi

  Could you provide a debug trace by setting FGLWSDEBUG=3.

  We also found a problem related to 4GL CHAR types where a workaround is to replace it by a VARCHAR. If you use CHAR types in your 4GL server, you can test changing CHAR to VARCHAR. Does this solve the problem ?  If not please send me a test case.

Thanks


alessio p.
Posts: 11


« Reply #2 on: January 15, 2008, 10:08:23 am »

here is the debug trace :

Event(Time='28953.689681', Type='VM error data') / \012WS-DEBUG (receive)\012POST /?ConnectorURI=%2Fgas210%2Ffglccgi%2F%40MTI3LjAuMC4xOjYzOTY%3D HTTP/1.1\015\012Host: aragorn\015\012Accept: text/xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2\015\012Connection: close\015\012Content-Length: 1733\015\012Content-Type: text/xml;charset="utf-8"\015\012Soapaction: ""\015\012User-Agent: JAX-WS RI 2.1.2-b05-RC1\015\012X-FourJs-Environment-Variable-0: CONTENT_LENGTH=1733\015\012X-FourJs-Environment-Variable-1: CONTENT_TYPE=text%2Fxml%3Bcharset%3D%22utf-8%22\015\012X-FourJs-Environment-Variable-10: PATH_INFO=%2Fws%2Fr%2FT7WebDoc\015\012X-FourJs-Environment-Variable-11: PATH_TRANSLATED=%2Fusr%2Flocal%2Fapache2%2Fhtdocs%2Fws%2Fr%2FT7WebDoc\015\012X-FourJs-Environment-Variable-12: QUERY_STRING=\015\012X-FourJs-Environment-Variable-13: REMOTE_ADDR=192.168.0.65\015\012X-FourJs-Environment-Variable-14: REMOTE_PORT=4560\015\012X-FourJs-Environment-Variable-15: REQUEST_METHOD=POST\015\012X-FourJs-Environment-Variable-16: REQUEST_URI=%2Fgas210%2Ffglccgi%2Fws%2Fr%2FT7WebDoc\015\012X-FourJs-Environment-Variable-17: SCRIPT_FILENAME=%2Fusr%2Flocal%2Fapache2%2Fcgi-bin%2Fgas.210%2Ffglccgi\015\012X-FourJs-Environment-Variable-18: SCRIPT_NAME=%2Fgas210%2Ffglccgi\015\012X-FourJs-Environment-Variable-19: SERVER_ADDR=192.168.0.7\015\012X-FourJs-Environment-Variable-2: DOCUMENT_ROOT=%2Fusr%2Flocal%2Fapache2%2Fhtdocs\015\012X-FourJs-Environment-Variable-20: SERVER_ADMIN=you%40example.com\015\012X-FourJs-Environment-Variable-21: SERVER_NAME=aragorn\015\012X-FourJs-Environment-Variable-22: SERVER_PORT=80\015\012X-FourJs-Environment-Variable-23: SERVER_PROTOCOL=HTTP%2F1.1\015\012X-FourJs-Environment-Variable-24: SERVER_SIGNATURE=\015\012X-FourJs-Environment-Variable-25: SERVER_SOFTWARE=Apache%2F2.2.4+%28Unix%29+PHP%2F5.2.1\015\012X-FourJs-Environment-Variable-3: GATEWAY_INTERFACE=CGI%2F1.1\015\012X-FourJs-Environment-Variable-4: HTTP_ACCEPT=text%2Fxml%2C+multipart%2Frelated%2C+text%2Fhtml%2C+image%2Fgif%2C+image%2Fjpeg%2C+%2A%3B+q%3D.2%2C+%2A%2F%2A%3B+q%3D.2\015\012X-FourJs-Environment-Variable-5: HTTP_CONNECTION=keep-alive\015\012X-FourJs-Environment-Variable-6: HTTP_HOST=aragorn\015\012X-FourJs-Environment-Variable-7: HTTP_SOAPACTION=%22%22\015\012X-FourJs-Environment-Variable-8: HTTP_USER_AGENT=JAX-WS+RI+2.1.2-b05-RC1\015\012X-FourJs-Environment-Variable-9: PATH=%2Fsbin%3A%2Fusr%2Fsbin%3A%2Fbin%3A%2Fusr%2Fbin%3A%2Fusr%2FX11R6%2Fbin\015\012\015\012\012WS-DEBUG END\012\012\012WS-DEBUG (receive)\012<?xml version="1.0" ?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><crea_documentoRequest xmlns="http://aragorn/T7_WEBSD"><cod_ditta>000</cod_ditta><tp_salvataggio>D</tp_salvataggio><sn_cancella_con_warning>N</sn_cancella_con_warning><cod_doc>ORC</cod_doc><cod_esestag></cod_esestag><n_documento>0</n_documento><id_soggetto>152</id_soggetto><id_destinatario>0</id_destinatario><destinatario_1></destinatario_1><destinatario_2></destinatario_2><destinatario_3></destinatario_3><destinatario_4></destinatario_4><rif_soggetto></rif_soggetto><riferimenti_sog><id_usufruttuario>0</id_usufruttuario><id_soggetto_fatt>0</id_soggetto_fatt></riferimenti_sog><cod_pagamento>RD05</cod_pagamento><note_testa><element></element></note_testa><note_soggetto><element></element></note_soggetto><d_in_consegna>2008-01-01+01:00</d_in_consegna><d_fi_consegna xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><cod_divisa></cod_divisa><righi_doc><element><tp_rigo>A</tp_rigo><tp_movimento>N</tp_movimento><sn_somma_totale></sn_somma_totale><id_articolo>220279</id_articolo><descrizione_1></descrizione_1><descrizione_2></descrizione_2><id_colore>11384</id_colore><id_variante>0</id_variante><cod_um>NR</cod_um><qta_rigo>1.0</qta_rigo><cod_um_2></cod_um_2><qta_rigo_2>0.0</qta_rigo_2><imp_unitario>100.0</imp_unitario><d_competenza xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/><d_consegna_ric>2008-01-01+01:00</d_consegna_ric><cod_causale_mag></cod_causale_mag><id_sconto>0</id_sconto><cod_deposito></cod_deposito><cod_iva></cod_iva><lmut_rigo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/></element></righi_doc></crea_documentoRequest></S:Body></S:Envelope>\012WS-DEBUG END\012\012\012WS-DEBUG (send)\012HTTP/1.1 500 OK\015\012Content-Type: text/xml; charset=UTF-8\015\012Server: Four J's Server (Build 568)\015\012Connection: close\015\012Content-Length: 306\015\012\015\012<?xml version="1.0" standalone="no"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>XML Element '%': nextStax unexpected event</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>\012WS-DEBUG END\012\012


We changed CHAR to VARCHAR but we get the same error, and even if we comment out the whole code inside.
The same function with Genero 2.02.05 worked fine.


Thanks in advance for your support.


Sisavanh S.
Four Js
Posts: 80


« Reply #3 on: January 16, 2008, 11:11:30 am »

Hi,


Thanks for the debug trace. A new issue has been registered #9406: "Fail to deserialize tags without any content".
Here is the description of the issue:
---
If a client sends a tag like "<MyTag></MyTag>", the server displays the
following error: "XML Element '%': nextStax unexpected event".
A workaround is to send the empty tag instead: "<MyTag/>".
---

This is already corrected in our development version and will be available in the next maintenance release.


Many regards,
alessio p.
Posts: 11


« Reply #4 on: January 16, 2008, 02:20:17 pm »

Ok, we'll looking for the next release.

Thank you for your help,

Alessio
alessio p.
Posts: 11


« Reply #5 on: January 16, 2008, 02:34:14 pm »

I forgot to ask one thing :

when will be available the next release ?


Thanks again,

Alessio
Sisavanh S.
Four Js
Posts: 80


« Reply #6 on: January 18, 2008, 03:01:31 pm »

Hi,

I forgot a rule of our Forum:
https://4js.com/fjs_forum/index.php?topic=7.0

For furhter information please contact your support center.


Sorry for the inconvenience.
« Last Edit: January 18, 2008, 04:35:34 pm »
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines