cancel
Showing results for 
Search instead for 
Did you mean: 

WSDL arrayType req and response

Former Member
0 Kudos

Hello Friends,

I have got a wsdl, which I need to consume for inbout syn interface.

The problem is wsdl req and response str contains elements with type arrayType.

I have imported and activated the wsdl, though wsdl is activated without error but fields are shown with red.

What I can do to fix this issue `?

Thanks and regards,

Accepted Solutions (0)

Answers (2)

Answers (2)

ernesto_cruz
Participant
0 Kudos

Hi Ali, could you test with this mapping:

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

<ns0:ProductsResponse xmlns:ns0="XXXXX">

<ns0:Consolidado_De_ProductosResult> -


>*Estruct RFC**

<ns0:PRODUCTS> // this type is Array -


> Map constant [] to---> PRODUCTS

<ns0:PRODUCT> //this data type is 0..unbounded----


> Map to -


> PRODUCT

................ ..........

.............. ........

............

</ns0:ProductsResponse>

Regards!

Edited by: ecruz2010 on Nov 17, 2011 3:11 PM

Edited by: ecruz2010 on Nov 17, 2011 3:12 PM

Edited by: ecruz2010 on Nov 17, 2011 3:13 PM

ernesto_cruz
Participant
0 Kudos

Hi Ali,

Could you update the thread, or tell us what was your experience with this issue?

Regards. from Argentina

Shabarish_Nair
Active Contributor
0 Kudos

>

> I have imported and activated the wsdl, though wsdl is activated without error but fields are shown with red.

where do you see this fields in RED? If it is in message mapping, then it could be due to incomplete mapping of those fields

Former Member
0 Kudos

HI Shabarish,

I have imported as Exeternal Definations, and under tab Messages, it shows in red under column type .

Regards,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Suggestion:

WSDL pretty much supports array of custom objects type or java lists or String arrays or so. I think WSDL has some missing reference elements pertaining to the array object. Please import the WSDL in XMLSPY and validate the WSDL. If XMLSpy validates as successful file then there is some issue in importing the file as external definition. you might want to reimport again after deleting the old one.

Former Member
0 Kudos

Hello Baskar,

Yes WSDL supports, but if SAP PI support too this is the question ?

when I import the wsdl, it shows elements with red but I can activate the wsdl without any error.

Kind regards,

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Yes PI supports too. I have imported wsdl with object type array in PI and activated successfully without error.

Former Member
0 Kudos

I can also import as said the WSDL, but it shows with red coloured teh type ( arrayType ) ??

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Did you test in the XMLSPY or similar tool to check whether your WSDL is valid?

Former Member
0 Kudos

Hello Baskar,

Yes, I have imported in SOAP UI and all looks fine.

I you like I can provide you with WSDL to look at ? Please drop me mail at hayder.syed at gmail.com

Regards,

Edited by: Ali Wala on Nov 18, 2011 10:06 AM

Former Member
0 Kudos

When I try to generate the proxy, I got an error.:

Cannot generate proxy (object <attribute name="arrayType"> missing in WSDL, see long text)

What I can do to fix this issue ? Any suggestions ?

regards,

Edited by: Ali Wala on Nov 21, 2011 10:57 AM