zhangjixing / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Unable to find schema for element while importing wsdl #51

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am trying to generate Apex classes from a wsdl file.but i am facing a 
problem...

Apex Generation Failed Unable to find schema for element; 
{http://www.w3.org/2001/XMLSchema}string

Can you please help on that.

Wsdl Sample : 

<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions 
targetNamespace="http://eapisws.cbp.dhs.gov/ws/manifest1_0/" 
xmlns:mns="http://eapisws.cbp.dhs.gov/ws/manifest1_0/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <wsdl:types> 
<xs:schema targetNamespace="http://eapisws.cbp.dhs.gov/ws/manifest1_0/" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:mns="http://eapisws.cbp.dhs.gov/ws/manifest1_0/" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" elementFormDefault="qualified" 
attributeFormDefault="unqualified" version="1_0"> <xs:annotation> 
<xs:documentation xml:lang="en"> This is the first release of WSDL file for the 
APIS FlightManifest Batch Web Service and it is subject to change. 
</xs:documentation> </xs:annotation> <xs:element name="flightManifest" 
nillable="false"> <xs:annotation> <xs:documentation xml:lang="en">Valid 
UN-EDIFACT document</xs:documentation> </xs:annotation> <xs:simpleType> 
<xs:restriction base="xs:string"> <xs:maxLength value="2097152"/> 
</xs:restriction> </xs:simpleType> </xs:element> <xs:element 
name="certificationFlightManifest" nillable="false"> <xs:annotation> 
<xs:documentation xml:lang="en">Valid UN-EDIFACT document to be 
certified/validated</xs:documentation> </xs:annotation> <xs:simpleType> 
<xs:restriction base="xs:string"> <xs:maxLength value="2097152"/> 
</xs:restriction> </xs:simpleType> </xs:element> <xs:element 
name="submissionResponse" nillable="true" type="xs:string"/> </xs:schema> 

Original issue reported on code.google.com by vivekbar...@gmail.com on 24 Feb 2012 at 10:47

GoogleCodeExporter commented 8 years ago
com.sforce.ws.bin.NameMapper does not provide generic support for URI namespace 
mappings to java package names. Instead, the implementation of getPackageName() 
assumes a more limited use case specific to sfdc.

} else if (targetNamespace.startsWith("http://") || 
targetNamespace.startsWith("https://") ){
           packageName = new StringBuilder(24).append("com.sforce.soap.");
...

I've fixed this in my local sandbox in order to support the uri namespace 
declarations found in my own wsdl resource. Can you guys suggest the easiest 
way for me to submit this and a few other minor fixes for your review?

Original comment by martin.h...@gmail.com on 25 Feb 2012 at 6:45

GoogleCodeExporter commented 8 years ago
i am also facing this error but slightly change..
Unable to find schema for element; 
{http://schemas.xmlsoap.org/soap/encoding/}Array
 do you know how to resolve it..

i ahve attached my documents..

Original comment by prashant...@saasfocus.in on 8 Aug 2012 at 11:28

Attachments:

GoogleCodeExporter commented 8 years ago
no

Original comment by sijuvar2...@gmail.com on 7 Mar 2013 at 4:55