cancel
Showing results for 
Search instead for 
Did you mean: 

Problem of generated WSDL file for RFC

Former Member
0 Kudos

Hi Experts,

I found there is problem of generated WSDL file for RFC, I am not sure it is a defect of SAP netweaver system, do you guys know any solutions?

Problem Description:

I have a RFC which has TABLES parameters RETURNBL, because this parameter is optional, thus the generated schema in WSDL file should mark this element as optional, but the generated schema is the following:

- <xsd:element name="RETURNTBL">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="s0:BAPIRET2" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>

Thus, I have to pass RETURNBL when consuming web serivce, because the schema define it as a mandatory element, I think the right schema should be the following:

- <xsd:element name="RETURNTBL" minOccurs="0">
- <xsd:complexType>
- <xsd:sequence>
  <xsd:element name="item" minOccurs="0" maxOccurs="unbounded" type="s0:BAPIRET2" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:element>

DO you guys got this problem before? Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

i807822
Advisor
Advisor
0 Kudos

Hi,

The outbound message could empty.

You have to return something since 0..1 could be empty. Try a message Header or a Message Log with success or faliure.

I'm thinking like this:

MessageHeader 1..1

TableXyz 0..1 <-your table

Log 1..1 <- return number of entries ...

Hope this helps.

Nick.