Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using Web Services with carbon



Sorry for the second mail on this.

Does anyone has idea about the comments "/* Complex type http://version.localhost.com|GetAPIVersion */", what does this signifies here. I suspect I am not calling this function with approprite argument & that is why this is not working for me. Please throw some light on this.

CFTypeRef VersionService::GetAPIVersionImmediate (CFTypeRef /* Complex type http://version.localhost.com|GetAPIVersion */ in_parameters)

There is hardly any documentation available on this. So kind of stuck with this. Please help me out.

Cheers!

---------- Forwarded message ----------
From: Dan Ribe <email@hidden>
Date: Thu, Apr 3, 2008 at 11:40 AM
Subject: Using Web Services with carbon
To: email@hidden


Hi,

I am new to Web Services & need some help on it.

I have a server which is providing SOAP based services using WSDL. I have used WSMakeStubs to generate the corresponding C++ code & integrated this code with the Core Services framework (For Web Services). Now I want to call the server service from my test application & there I am facing some problems. WSMakeStubs has generated a function like (static function) :

/*-
 * VersionService::GetAPIVersion
 */
CFTypeRef VersionService::GetAPIVersionImmediate(CFTypeRef /* Complex type http://version.localhost.com|GetAPIVersion */ in_parameters)
{
    VersionService::GetAPIVersion _invocation;   
    _invocation.setParameters(in_parameters);   
    return _invocation.copyResultValue();   
}

Basically this is a version service. I am expecting return value a string like : "1.0". For that I am calling above function like :

CFTypeRef versionRef = VersionService::GetAPIVersionImmediate(CFSTR("https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl"));

https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl is the location of the wsdl file. i am able to browse this in firefox without any problem, but I am always getting my versionRef as NULL. I am not able to figure out what is going wrong here.

Can you please have a look at above code & point out if it has any issues.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Web-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/web-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.