sanshelly / wsdl2objc

Automatically exported from code.google.com/p/wsdl2objc
MIT License
0 stars 0 forks source link

Can't handle xsd:anyType #16

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Parse a file that includes xsd:anyType (in this case for a
anyType2anyTypeMap)

What is the expected output?
1. Not exactly certain.... I don't know if this can map easily to id.

What do you see instead?
1. An error in the logs and the output that type was not parsed when it
gets to anyType.

Original issue reported on code.google.com by robnapier@gmail.com on 7 Jan 2009 at 2:10

GoogleCodeExporter commented 8 years ago
The more I dig into this, while it still seems that anyType isn't handled, the
problem seems deeper. The WSDL includes this. The complaint seems to be that 
the type
for 'entry' is nil.

<xsd:complexType name="anyType2anyTypeMap">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="entry">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="key" type="xsd:anyType"/>
<xsd:element maxOccurs="1" minOccurs="0" name="value" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>

Original comment by robnapier@gmail.com on 7 Jan 2009 at 2:21

GoogleCodeExporter commented 8 years ago
The problem here is that anything with a structure where there is no type 
attribute fails to properly parse.

Original comment by hasse...@gmail.com on 31 Aug 2009 at 8:22

GoogleCodeExporter commented 8 years ago
FWIW, I've got a fix for this bug amongst others. It's part of a wider-ranging 
fix where I've added the ability to 
import wsdls.

Original comment by hasse...@gmail.com on 1 Sep 2009 at 5:10

GoogleCodeExporter commented 8 years ago
I have the same problem with the anyTypes, I checked out the newest version and 
parsed my WSDL with it, but 
the problem persists, the generated code even has more errors now. 

Original comment by wero.shinoda@gmail.com on 2 Sep 2009 at 4:02

GoogleCodeExporter commented 8 years ago
Did you check out the branch version or the trunk? Personally I'm working of 
the branch.
For anyType, modify USWSDL.m and add near line 108 something like:

    [xsd addSimpleClassWithName:@"anyType" representationClass:@"NSString *"];
    [xsd addSimpleClassWithName:@"any" representationClass:@"NSString *"];

Let me know if it works.

Original comment by hasse...@gmail.com on 3 Sep 2009 at 8:48

GoogleCodeExporter commented 8 years ago

Original comment by hasse...@gmail.com on 5 Sep 2009 at 5:01

GoogleCodeExporter commented 8 years ago
anyType added in revision 104 on the iPhone branch.
Please check that it works as expected

Original comment by hasse...@gmail.com on 5 Sep 2009 at 6:14

GoogleCodeExporter commented 8 years ago
i am having same problem and found no solution yet

Original comment by fashf...@gmail.com on 23 Jul 2014 at 5:27