axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Elijah Snyder <elijah.snyd...@gmail.com>
Subject Re: Axis2C and SalesForce
Date Thu, 19 Jul 2012 15:21:35 GMT
Thanks for the tips.  Here's what I've managed to find out.

I have only found references to w3.org, xmlsoap.org, etc.  There
aren't any external references for Salesforce.

After opening a Salesforce support ticket (why not, right?) the answer
I have received back is that the schemaLocation should be completely
optional and that any import tool should not require it.  They refer
to all of the WSDLs from the sfdc platform as flattened with all types
defined inside the WSDL itself and no XSD necessary.

I do not receive the errors if I use "-d none" (no data binding), but
the source still doesn't compile reasonably.  I'm not sure if that
means this is an ADB issue?

The WSDLs work with the .NET tools as well as gSOAP.  I'm not really
sure what the next steps for Axis2C might be.

I searched in the WSDL for QName since the build errors with ADB all
seem to say that the classes are missing "qname" members.  The only
QName I can find in the WSDL is something like this:

<simpleType name="FaultCode">
  <restriction base="xsd:QName">
         <enumeration value="fns:APEX_TRIGGER_COUPLING_LIMIT"/>
         (many, many of these FaultCodes follow)

Could the "xsd:QName" be causing the error?

On Thu, Jul 19, 2012 at 9:26 AM, Douglas, Darren J
<Darren.Douglas@ca.com> wrote:
> I found that I had to edit the WDSL files and add the correct path
> information for the schema paths when I hit a similar problem with another
> service (not salesforce).
>
>
>
> You might want to review the files and filepaths in and change them to point
> to local copies etc.
>
>
>
> Darren Douglas
>
> ca technologies
>
> 508-628-8380
>
>
>
> From: George Loring [mailto:George.Loring@wal-mart.com]
> Sent: Thursday, July 19, 2012 10:23 AM
>
>
> To: Apache AXIS C User List
> Subject: RE: Axis2C and SalesForce
>
>
>
> What’s the URL in the namespace of the import tag?  Maybe the XSD is located
> there or something..
>
>
>
> From: Elijah Snyder [mailto:elijah.snyder1@gmail.com]
> Sent: Thursday, July 19, 2012 9:04 AM
> To: Apache AXIS C User List
> Subject: RE: Axis2C and SalesForce
>
>
>
> I do not.  The WSDL is from SalesForce and I cannot find any reference to a
> proper XSD to use for the schemaLocation in their API documentation.
>
> On Jul 19, 2012 8:45 AM, "George Loring" <George.Loring@wal-mart.com> wrote:
>
> Based on the warnings given from WSDL2C do you have a schemaLocation tag in
> the import section of your WSDL, similar to the structure given here?
>
> http://www.w3.org/2002/ws/databinding/examples/6/09/ImportSchema/
>
>
> -----Original Message-----
> From: Elijah Snyder [mailto:elijah.snyder1@gmail.com]
> Sent: Wednesday, July 18, 2012 8:53 PM
> To: c-user@axis.apache.org
> Subject: Axis2C and SalesForce
>
> Hi.
>
> I'm trying to use Axis2c to create some bindings for a C++ program
> that will work as a client to the SalesForce API.
>
> After many days of trying, I can't make anything that ever compiles.
> Neither the Enterprise or Partner WSDLs produce any useful output.
>
> The version of Axis2c is 1.6.0.
>
> Here is my call to WSDL2C:
> WSDL2C -uri SalesForce.Partner.wsdl -Eofv -g -uw -u -d adb
>
> That produces the following errors:
> Retrieving document at 'SalesForce.Partner.wsdl'.
> Jul 18, 2012 8:33:32 PM org.apache.axis2.schema.SchemaCompiler compile
> WARNING: No schemaLocation for import of urn:partner.soap.sforce.com;
> compilation may fail
> Jul 18, 2012 8:33:32 PM org.apache.axis2.schema.SchemaCompiler compile
> WARNING: No schemaLocation for import of
> urn:sobject.partner.soap.sforce.com; compilation may fail
> Jul 18, 2012 8:33:36 PM org.apache.axis2.schema.SchemaCompiler compile
> WARNING: No schemaLocation for import of
> urn:sobject.partner.soap.sforce.com; compilation may fail
>
> I attempt to compile with:
> gcc -I/usr/include -I/usr/include/axis2-1.6.0/ -L/usr/lib -laxutil
> -laxis2_axiom -laxis2_parser -laxis2_engine -lpthread
> -laxis2_http_sender -laxis2_http_receiver *.c -o out
>
> And then I receive pages of -
>
> adb_AllOrNoneHeader.c: In function 'adb_AllOrNoneHeader_free_obj':
> adb_AllOrNoneHeader.c:144:34: error: 'adb_AllOrNoneHeader_t' has no
> member named 'qname'
> adb_AllOrNoneHeader.c:146:54: error: 'adb_AllOrNoneHeader_t' has no
> member named 'qname'
> adb_AllOrNoneHeader.c:147:35: error: 'adb_AllOrNoneHeader_t' has no
> member named 'qname'
>
> For nearly every object in the entire output directory.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
> This email and any files transmitted with it are confidential and intended
> solely for the individual or entity to whom they are addressed. If you have
> received this email in error destroy it immediately. *** Walmart
> Confidential ***
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: c-user-help@axis.apache.org
>
> This email and any files transmitted with it are confidential and intended
> solely for the individual or entity to whom they are addressed. If you have
> received this email in error destroy it immediately. *** Walmart
> Confidential ***

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@axis.apache.org
For additional commands, e-mail: c-user-help@axis.apache.org


Mime
View raw message