.NET consumer til java-webservice
HejJeg ved godt at webservices kører efter internationale standarder, men jeg kan simpelthen ikke koble på Apple's java webservice. Deres "hjælp" er her:
http://gsx.info.apple.com/integration/WSFAQs.htm
Jeg skal - som jeg ser det - kort fortalt autoriseres med navn og brugernavn samt et certifikat:
http://gsx.info.apple.com/integration/WSReference/APIs/Authenticate.htm
"
How do I securely connect to the GSX Web Services Servers?
GSX Web Services Server is configured to run and accept responses over HTTPS. To be able to talk to the GSX Web Services server, your application must make HTTPS requests over the Internet, not http.
To connect to the GSX test server, use the attached CA Certificate (ist-cacert.der.zip). Download the file and unzip it. If you are working with a java client, add the following command to your client:
System.setProperty("javax.net.ssl.trustStore","Path To istcacert");
This command will instruct java to use istcacert for verifying SSL Certificates. The istcacert file can only be used for the sites that use the SSL certificate provided by Apple.
For non-java clients, use a similar command. This is not required for the GSX production server.
"
Med deres WDSL-fil har jeg nemt lavet en web-reference i .NET, og kan lave alle mulige instanser, men kan ikke bruge dem til noget. Jeg tror, og ønsker hjælp til, at kunne "logge ind" på deres webservice.
Her er hvad jeg har lavet:
applewebref.Address a = new WebApplication1.applewebref.Address();
a.Adressline1, a.Adressline2, a.firstname, a.lastname etc.