soap-client

Connecting to Magento API with SOAP

為{幸葍}努か 提交于 2019-12-01 01:18:27
问题 I'm trying to follow a tutorail on connecting to magento API with Soap, but am stuck already ? SOAP seems to be installed on my sever as i can browse to the ?wsld and it displays an xml file. I've setup the user and role in magento admin webservices. i'm confused by 2 things in the tutorial choosing a soap client, In this tutorial we will assume the usage of the PHP SoapClient. what is this where do i find it ? Logging with the SOAP client "So let's create a simple PHP-script that allows us

PHP SoapClient: SoapFault exception Could not connect to host

折月煮酒 提交于 2019-11-30 22:14:13
问题 using this code I make soap requests $client = new SoapClient('http://example.com/soap/wsdl'); try { $result = $client->myMethod(); } catch (Exception $e) { echo $e->getMessage(); } Sometimes (once out of ten), an exception is raised: SoapFault exception: [HTTP] Could not connect to host My attempts 1) I looked for solutions, and I read that this problem can be caused by wsdl cache, I disabled it in php.ini : soap.wsdl_cache_enabled = 0 soap.wsdl_cache_ttl = 0 raises fewer exceptions 2) I

SoapClient error fallback in PHP

对着背影说爱祢 提交于 2019-11-30 12:56:56
In PHP, if you try to instantiate a new SoapClient , and the WSDL is not accessible (server down or whatever), a PHP fatal error is thrown: Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from ' http://example.com/servlet/app/SomeService?wsdl ' : failed to load external entity " http://example.com/servlet/app/SomeService?wsdl " Fatal errors in PHP, as far as I know, are not recoverable. Is there any way to fallback from this? Can this fatal error somehow be avoided? Edit: I should say that I am running on PHP 5.2, if it makes any difference. This has already been discussed : https://bugs

Objective-C SOAP Client --Request Problem?

梦想与她 提交于 2019-11-30 10:31:53
I have generated code with WSDL2OBJC. I have big problem with request in my Objective C client: CatalogoPortBinding *binding = [[CatalogoSvc CatalogoPortBinding] initWithAddress:@"http://localhost:8080/WSServer/Catalogo_V1"]; binding.logXMLInOut = YES; // to get logging to the console. CatalogoSvc_hello *request = [[CatalogoSvc_hello alloc] init]; NSString *t = @"David"; request.name = t; NSLog(@"request: %@",request.name); CatalogoPortBindingResponse *response = [binding helloUsingParameters:request]; //NSLog(@"%@",resp.bodyParts); for (id mine in response.bodyParts) { NSLog(@"name: %@",[mine

WCF - Cannot find a token authenticator for X509SecurityToken

旧城冷巷雨未停 提交于 2019-11-30 09:59:46
问题 I'm trying to call a 3rd party webservice and I've gotten to the point where I can actually see a response from the server in the Service Trace Viewer. However, I keep getting an exception from .NET: Cannot find a token authenticator for the 'System.IdentityModel.Tokens.X509SecurityToken' token type. Tokens of that type cannot be accepted according to current security settings. My app.config looks like this (Thumbprints replaced by placeholders): <system.serviceModel> <behaviors>

A simple java SOAP client

放肆的年华 提交于 2019-11-30 09:13:11
I'm new to web services and I've been breaking my head trying to find a simple java SOAP client program on the Internet. All I want to do is send a SOAP message and receive back some response. There is a website which offers free web-services. http://www.webservicex.net/ws/WSDetails.aspx?WSID=17&CATID=7 You feed in the country name and it gives you the country's ISD code. It's as simple as that. I want to send the country name to the web service and get back its ISD code using only Javaand without any external jars. Try SoapUI - it's quite awesome and covers almost all aspects of working w/

SoapClient error fallback in PHP

允我心安 提交于 2019-11-29 18:23:01
问题 In PHP, if you try to instantiate a new SoapClient, and the WSDL is not accessible (server down or whatever), a PHP fatal error is thrown: Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://example.com/servlet/app/SomeService?wsdl' : failed to load external entity "http://example.com/servlet/app/SomeService?wsdl" Fatal errors in PHP, as far as I know, are not recoverable. Is there any way to fallback from this? Can this fatal error somehow be avoided? Edit: I should say that I

Objective-C SOAP Client --Request Problem?

匆匆过客 提交于 2019-11-29 15:48:29
问题 I have generated code with WSDL2OBJC. I have big problem with request in my Objective C client: CatalogoPortBinding *binding = [[CatalogoSvc CatalogoPortBinding] initWithAddress:@"http://localhost:8080/WSServer/Catalogo_V1"]; binding.logXMLInOut = YES; // to get logging to the console. CatalogoSvc_hello *request = [[CatalogoSvc_hello alloc] init]; NSString *t = @"David"; request.name = t; NSLog(@"request: %@",request.name); CatalogoPortBindingResponse *response = [binding helloUsingParameters

A simple java SOAP client

笑着哭i 提交于 2019-11-29 12:53:59
问题 I'm new to web services and I've been breaking my head trying to find a simple java SOAP client program on the Internet. All I want to do is send a SOAP message and receive back some response. There is a website which offers free web-services. http://www.webservicex.net/ws/WSDetails.aspx?WSID=17&CATID=7 You feed in the country name and it gives you the country's ISD code. It's as simple as that. I want to send the country name to the web service and get back its ISD code using only Javaand

Royal Mail Shipping API - SOAP connection & pem/certificates query

故事扮演 提交于 2019-11-29 08:59:04
I am trying to setup the Royal Mail Shipping API (if anyone has any experience of this i'd be grateful if you could assist). In the documentation they provide I need to download a certificate (a .p12 file) & import this onto my Windows machine - this is pretty straightforward using the 'Certificate Import Wizard'. Once it gets to the "Set Security Level' I must select High & this will request permission with a password each time this is used. In Internet Explorer in 'Internet Options' within the Content tab I can view the Certificates and can clearly see that this certificate has been imported