# Problem with ComplexTypes (XML RPC Server )

**URL:** <https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473>\
**Category:** Forum\
**Tags:** Mainframe-Integration, EntireX\
**Created:** [September 21, 2012, 3:35pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473 "2012-09-21T15:35:29Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [September 21, 2012, 3:35pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/1 "2012-09-21T15:35:29Z")

</div>

Hi Friends,

Can anyone help me solve a problem with ComplexType elements using EntireX XML RPC Server?

When testing the service under XML Tester, the sample code declare the array type variable as bellow:

stringAN stringII stringIV stringKA stringIN

The JBoss server are replying this fault string:

org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: {[XML Schema](http://www.w3.org/2001/XMLSchema)}string type of element dtFimRestricoes should be complex and contain string as a child element.

If i manually set the array to a complex type form, it work fine. See the declaration bellow:

stringAN  
stringII  
stringIV  
stringKA  
stringIN

When i publish the XMM file at the server, the communication did not work returning the message:

NAT6977 EntireX RPC error on Server, reason 10010007

How can i solve this problem? Can i force the XMM mapping file to work with a complex types?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [September 21, 2012, 3:51pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/2 "2012-09-21T15:51:33Z")

</div>

My XML RPX Server is running EntireX version 8.2 and the server where the services are located is running JBOSS 5.1.0

---

<div class="post-metadata">

**Author:** ![Shmuel\_Coller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shmuel_coller/32/370_2.png) [@Shmuel\_Coller](https://techcommunity.softwareag.com/u/Shmuel_Coller)\
**Post date:** [September 21, 2012, 6:11pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/3 "2012-09-21T18:11:36Z")

</div>

Hi Andre, suggest to look at this as SOAP InterOperability  
The question is if SOAP client (aka XML RPC Server) emits a SOAP request according to WSDL.

Perhaps XMLSPY or other tool can check if SOAP request is compliant with WSDL.

You can also load the WSDL is SOAPUI - and see what kind of Request is SOAPUI generating.

If you think SOAP reequest is not conformant to WSDL - suggest to contact Global Support.

BTW - it is recommended to use the latest entirex.jar (fix 28 I think)

regards, Shmuel Coller

---

<div class="post-metadata">

**Author:** ![Shmuel\_Coller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shmuel_coller/32/370_2.png) [@Shmuel\_Coller](https://techcommunity.softwareag.com/u/Shmuel_Coller)\
**Post date:** [September 21, 2012, 7:20pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/4 "2012-09-21T19:20:30Z")

</div>

and it is recommended to use latest Designer fix for EntireX plugin (fix 24) to consume WSDL

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [September 24, 2012, 3:20pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/5 "2012-09-24T15:20:24Z")

</div>

Hi Shmuel, thanks for the reply.

I’ve updated the version of all plugins into eclipse and got all in the latest versions.

Here are the IDL declaration imported from WSDL:

```
program 'WEBS0106':'atualizarVeiculoSemOnus' is
	define data parameter
	1 VeiculoDetranTO_1 In
		2 cdCategoria (A2)
		2 cdChassi (A21)
		2 cdCombustivel (A2)
		2 cdFormaCalculo (A2)
		2 cdModelo (A6)
		2 cdMunicipio (A5)
		2 cdPlaca (A7)
		2 cdRenavam (A11)
		2 cnpjFinanceira (A14)
		2 cpfCnpjProprietario (A14)
		2 dtFimRestricoes (A8/5)
		2 dtInicioRestricoes (A8/5)
		2 dtLeilao (A8)
		2 dtPagamento (A8)
		2 dtPassagemPosto (A8)
		2 dtTransacao (A8)
		2 flConsulta (A1)
		2 flOutroRenavam (A1)
		2 nmProprietario (A50)
		2 nrAnoExercicio (A4)
		2 nrAnoFabricacao (A4)
		2 nrDua (A30)
		2 nrNotaFiscal (A7)
		2 tpVeiculo (A2)
		2 ufEmissaoNF (A2)
		2 ufJurisdicao (A2)
		2 vlCilindradas (A4)
		2 vlNFCarroceria (A11)
		2 vlNotaFiscal (A11)
	1 result Out
		2 cdRenavam (A11)
		2 cdRetorno (A3)
	end-define

```

Take a look to the array declarations:

```
		2 dtFimRestricoes (A8/5)
		2 dtInicioRestricoes (A8/5)

```

Then, look for the SOAP request generated by the XML Tester:

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

\<SOAP-ENV:Envelope xmlns:SOAP-ENV=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)” xmlns:xmm=“[http://namespace.softwareag.com/entirex/xml/mapping](http://namespace.softwareag.com/entirex/xml/mapping)” xmlns:xsd=“[XML Schema](http://www.w3.org/2001/XMLSchema)” xmlns:SOAP-ENC=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)”\>  
SOAP-ENV:Header  
  
\</SOAP-ENV:Header\>  
SOAP-ENV:Body  
\<m:atualizarVeiculoSemOnus xmlns:m=“[http://it.ipva.sae.sefaz.se.gov.br/](http://it.ipva.sae.sefaz.se.gov.br/)”\>  
\<VeiculoDetranTO\_1\>  
QT  
cdChassicdChassiYYEMT  
BX  
LO  
SUBJTC  
KMUIG  
cdPlaca  
cdRenavamHZ  
cnpjFinanceira  
WCTJYKEZMUPXSP  
  
stringAQ  
stringOQ  
stringFP  
stringMP  
stringVP  
  
  
stringFO  
stringJV  
stringVU  
stringMV  
stringIQ  
  
dtLeilao  
WECOBZZZ  
OJNNRWVJ  
XKSCZYFW  
G  
D  
nmProprietarionmProprietarionmProprietarioHDHGNMMU  
LMQO  
BYER  
nrDuanrDuanrDuanrDuanrDuanrDua  
GCYQJSH  
YE  
RW  
ET  
XMQC  
TLBDBKYMYTB  
DCJVHOZDHHE  
\</VeiculoDetranTO\_1\>  
\</m:atualizarVeiculoSemOnus\>  
\</SOAP-ENV:Body\>  
\</SOAP-ENV:Envelope\>

Then, when i try to run the tester with self generated SOAP, this return a fault string bellow:

org.jboss.ws.core.binding.BindingException: org.jboss.ws.core.jaxrpc.binding.jbossxb.UnmarshalException: Failed to parse source: {[XML Schema](http://www.w3.org/2001/XMLSchema)}string type of element dtFimRestricoes should be complex and contain string as a child element.

----- Next Step, using the XML Spy ------------------------------------------

Using the XML Spy, the tool generated different SOAP Request envelope (see bellow):

\<SOAP-ENV:Envelope xmlns:SOAP-ENV=“[http://schemas.xmlsoap.org/soap/envelope/](http://schemas.xmlsoap.org/soap/envelope/)” xmlns:SOAP-ENC=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” xmlns:xsi=“[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)” xmlns:xsd=“[XML Schema](http://www.w3.org/2001/XMLSchema)”\>  
SOAP-ENV:Body  
\<m:atualizarVeiculoSemOnus xmlns:m=“[http://it.ipva.sae.sefaz.se.gov.br/](http://it.ipva.sae.sefaz.se.gov.br/)”\>  
\<VeiculoDetranTO\_1\>  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
String  
\</VeiculoDetranTO\_1\>  
\</m:atualizarVeiculoSemOnus\>  
\</SOAP-ENV:Body\>  
\</SOAP-ENV:Envelope\>

Then, when i try to run the tester this SOAP Env from XML Spy the response envelope returns well !!!

---

<div class="post-metadata">

**Author:** ![Shmuel\_Coller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shmuel_coller/32/370_2.png) [@Shmuel\_Coller](https://techcommunity.softwareag.com/u/Shmuel_Coller)\
**Post date:** [September 24, 2012, 3:42pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/6 "2012-09-24T15:42:17Z")

</div>

Hi Andre,  
There is BIG difference between two SOAP requests regarding:

The question is compliance of SOAP request to WSDL, there were past EntireX fixes in this respect.  
Can you share the WSDL?

I leave tonight for a vacation, not sure how much I will help.

regards, Shmuel

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [September 25, 2012, 6:35pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/7 "2012-09-25T18:35:51Z")

</div>

Hi Shmuel,

I asked the service provider to change the declaration of the elements, then now are using an array of the class “restricao” who solved the questions about the elements declaration .

Now we have:  
2 restricoes (/5)  
3 dataFim (A8)  
3 dataInicio (A8)

And now, the problem is another…

On the XML Tester is running all well, but on my XML RPC Server the return values are taking invalid positions and showing invalid values.

See the example return values writed on the screen by Natural:

```
           ,0MA2,0MA 6, 0M A5,0MA 7,0MA 11,0MA1                             

```

4,0MA14,0MA 8,0MA8,0MA8,0M A1,0MA1,0MA50, 0MA4,0MA 4,0MA30, 0MA7,0MA 8  
, 0,5MA8,0,5MA2,0MA2,0MA2,0MA4,0MA11,0MA11,0MA11,0MA 3,0.

Ive changed the version of the entirex.jar from the server with the version on my development machine but the problem persists.  
[wsSefaz.xmm](https://techcommunity.softwareag.com/uploads/short-url/pXxuiLmmwyMz7gta11JndetJSD8.xmm) (113 KB)  
[WSSefazIPVAPort.xml](https://techcommunity.softwareag.com/uploads/short-url/zuE22Krp515yhOIDhLmJCxVJ1C8.xml) (17 KB)  
[wsSefaz.idl](https://techcommunity.softwareag.com/uploads/short-url/vWoEq8WgjrYk8M8UA5BzDb6rrFk.idl) (6.64 KB)

---

<div class="post-metadata">

**Author:** ![Shmuel\_Coller](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/shmuel_coller/32/370_2.png) [@Shmuel\_Coller](https://techcommunity.softwareag.com/u/Shmuel_Coller)\
**Post date:** [September 25, 2012, 8:53pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/8 "2012-09-25T20:53:38Z")

</div>

Hi andre, i am now in genoa italy cannot see your wsdl in my ipad  
The xml tester is to be used only when you expose rpc program as wsstack based web service  
I prefer not to involve it in you original xml rpc server scenario which is opposite direction

I suggest to go back to original discussion  
Entirex should consume your wsdl, and generate soap compliant to wsdl.  
Even if not sure you can open a ticket with global support and discuss suspicion that soap is not compliant  
Please point to the fimrestricoes and inciorestricoes to be analyzed  
Regards shmuel

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [October 9, 2012, 5:52pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/9 "2012-10-09T17:52:47Z")

</div>

Hi Shmuel, thanks for your reply.

I dont know whats happening anymore. We have changed the declarations at Java Application (JBOSS) removing the array types declaring flat parameters as you can see bellow:

```
		2 restricaoDtFim1 (A8)
		2 restricaoDtFim2 (A8)
		2 restricaoDtFim3 (A8)
		2 restricaoDtFim4 (A8)
		2 restricaoDtFim5 (A8)
		2 restricaoDtInicio1 (A8)
		2 restricaoDtInicio2 (A8)
		2 restricaoDtInicio3 (A8)
		2 restricaoDtInicio4 (A8)
		2 restricaoDtInicio5 (A8)

```

And for my surprise, the problem continues.

Then, now im thinking that the problem occours with a great number of parameters, because in the other short programs it work well.

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [October 9, 2012, 6:30pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/10 "2012-10-09T18:30:39Z")

</div>

I have created one test program to call the Webservice, and here are the variables content before and after the webservice call:

BEFORE WEBSERVICE CALL

INPUT PARM: 9C2JC2501SRS10782 2 0 2803 31410 HZG4607 633172103  
87839849504 20110620 20100620 1 0  
JOAO AMAURY JR 2010 1995  
0 0NF1825  
4 SE SE 124  
0.00

OUTPUT PARM:

* * *

AFTER WEBSERVICE CALL

INPUT PARM: 63 3172103 999,0MA2,0MA 6, 0M A5,0MA 7,0MA 11,0MA1 4,0MA14,0MA  
8,0MA8,0MA8,0M A8,0MA1,0MA1,0 MA50,0MA 4,0MA4,0 MA30,0MA 7,0MA8,0 M A  
8,0MA8,0MA8,0MA8,0MA8,0MA8,0MA8,0MA8,0MA8,0MA2,0MA 2,0M A2,0  
MA4,0MA11,0MA11,0MA11,0MA3,0. 9C2JC2 501SRS10 782 2 0 2803 31410HZ  
G4607633 172103 87 83984950 4 20 1106 20 2  
010062010JO

OUTPUT PARM: AO AMAURY J R

---

<div class="post-metadata">

**Author:** ![Guilherme\_Andre1](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guilherme_andre1/32/16187_2.png) [@Guilherme\_Andre1](https://techcommunity.softwareag.com/u/Guilherme_Andre1)\
**Post date:** [October 9, 2012, 8:34pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/11 "2012-10-09T20:34:44Z")

</div>

Problem Found: A bug inside Natural SYSRPC module

When i mount the parameters into the SYSRPC using the IG (Interface Object Generation) option, i write all “I” for input and “O” for output parameters, then i save it with no problem.

If i open the saved object the letters “I” and “O” was changed to “M” as INOUT parameters, then when i call the webservice with specific input and output parameters the XML RPC Server cannot put the return on correct position.

Solution: Fill the parameters into SYSRPC with “I” and “O” letters on each change will save the STUB file in the correct form.

---

<div class="post-metadata">

**Author:** ![Bernhard\_Fricke1](https://avatars.discourse-cdn.com/v4/letter/b/a9a28c/32.png) [@Bernhard\_Fricke1](https://techcommunity.softwareag.com/u/Bernhard_Fricke1)\
**Post date:** [October 10, 2012, 2:47pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/12 "2012-10-10T14:47:09Z")

</div>

Do you know there is a Natural Wrapper plugin in the Designer where you can easily create a Natural interface object out of an Software AG IDL file. Manual input as it is required for SYSRPC is not needed …

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/problem-with-complextypes-xml-rpc-server/101473/13 "2021-04-02T15:02:26Z")

</div>


