on 2005 Nov 28 12:00 PM
Hi,
I am getting the following error message while I am trying to generate an ABAP proxy:
Cannot generate proxy (object <element name="SubstanceComponent"> missing in WSDL, see long text)
I did the following steps:
<i>1) Import an External Definition from an XSD-File:</i>
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:simpleType name="Num4Dec">
<xs:annotation>
<xs:documentation>
Decimal Number with 4 fractional digits
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:decimal">
<xs:fractionDigits value="4" />
</xs:restriction>
</xs:simpleType>
<xs:element name="SubstanceComponent">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="SubstanceComponent" />
</xs:sequence>
<xs:attribute name="localIDRef" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>
Reference on details in ProductComponents
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="type" use="required">
<xs:annotation>
<xs:documentation>
Role of the item in the composition
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="default" />
<xs:enumeration value="rest" />
<xs:enumeration value="impurity" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="value" type="Num4Dec" />
<xs:attribute name="valueLower" type="Num4Dec" />
<xs:attribute name="valueUpper" type="Num4Dec" />
<xs:attribute name="isoUnit">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="%" />
<xs:enumeration value="ppm" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="description" type="xs:string">
<xs:annotation>
<xs:documentation>
Descritpive Name for visualization
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="intentionallyAdded" type="xs:boolean">
<xs:annotation>
<xs:documentation>
intentionally added according to JIG
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
<i>2) Create a Message Interface based on the External Definition
3) Trying to generate the ABAP proxy...
</i>
Do you have any idea why the proxy generation is not working in this case? Is it the recursive use of element "SubstanceComponent" that doesn't work?
<xs:element name="SubstanceComponent">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element ref="SubstanceComponent" />
</xs:sequence>
Thanks,
Andreas
Request clarification before answering.
Hi Andreas,
you CAN import external definition, but they make problems. It's easier to build the datatype, in ur case it's not much work.
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Udo,
thanks for your answer.
I wanted to avoid to build the datatype manually, since I have the complete description in a XML Schema.
Unfortunately the full description of the Message Interface will be much bigger. I just started with a small piece to find out if it works.
In the meanwhile, while importing the whole external definition I get the following error:
<i>"Proxy generation terminated: Recursions not supported"</i>
So it seems as if the proxy generation doesn't support the recursion at all and I have to work on the definition...
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
7 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.