cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy generation terminated: WSDL error (<union> not supported)

former_member192238
Participant
0 Kudos

Hello Experts,

I have created 2 external defnitions the same i have used in Inbound and outbound Message Interfaces .In PI every thing is fine object is activated

I am facing following  the error when using SPROXY in ECC to generate a proxy based on an XSD schema:

Proxy generation terminated: WSDL error (<union> not supported).

Please through some light on the issue any help is highly appreciated.

Regards

Praveen

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

as per this doc: http://scn.sap.com/docs/DOC-3558

union is not supported

Regards,

Michal Krawczyk

former_member192238
Participant
0 Kudos

Hi Michal,

I have imported XSD in to the external defnition in the WSDL tab i am able to see the union as below

<xsd:simpleType name="integer-or-empty">

    <xsd:union xmlns=http:/nXYZ.xxxxxx.XYZu memberTypes="xsd:integer empty-string" />

   </xsd:simpleType>

How can i overcome this issue if this is not supported by PI.Is it also depends on the version of PI ? iam using PI7.0

Regards

Praveen

former_member192238
Participant
0 Kudos

Hello Guys,

Can any one suggest me how to convert Schema type union to normal type so that PI can support that schema.

Regards

Praveen

iaki_vila
Active Contributor
0 Kudos

Hi Praveen,

You can obtain the expected goal using a regular expression.

Check this:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">

    <xs:element name="target">

        <xs:complexType>

            <xs:sequence>

                <xs:element name="Example">

                    <xs:simpleType>

                        <xs:restriction base="xs:string">

                            <xs:pattern value="\N?"/>

                        </xs:restriction>

                    </xs:simpleType>

                </xs:element>

            </xs:sequence>

        </xs:complexType>

    </xs:element>

</xs:schema>

With "/N" you point all numbers.

With "?" you allow the empty string.

Regards.

former_member192238
Participant
0 Kudos

Hi Micahl,

As per your document i have removed the there are many tags which are not supported by PI i have removed those tags in the XSD now SPROXY is not throughing any errors or warnings.

Regards

Praveen

Answers (0)