Questions tagged [soap-client]

An application that calls upon a SOAP server.

A SOAP client is any application that calls upon a server.

Example SOAP Clients

2272 questions
6
votes
2 answers

How to make a remote procedure call (SOAP client)?

I have never used SOAP before. Now someone has given me a link to WSDL file and told me to develop an application that makes remote procedure calls to web services which are defined by the WSDL file. I haven't a clue where to begin ... (XE2 starter…
Mawg says reinstate Monica
  • 38,334
  • 103
  • 306
  • 551
6
votes
4 answers

Can't get Spring SOAP Client to work: content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'

Hi, I am trying to make a simple soap client work using Spring-ws. The googling I've done on this error says I'm using Soap 1.1 and need to specify Soap 1.2. I've tried to do that. Am I doing it correctly below? If this is not the problem does…
Steve L
  • 783
  • 3
  • 8
  • 15
6
votes
2 answers

PHP SoapClient timeout error handler

I am calling some web services, using SoapClient. I am looking for a mechanism which will help me to display some errors to user, whenever web services goes offline or down. As I have to wait for some time(15 sec) before displaying any errors to…
Vinay
  • 2,564
  • 4
  • 26
  • 35
6
votes
1 answer

Debugging a jax-ws client in eclipse

I am writing a java client for a web service. I used wsimport to generate the proxies. Copied them over to my workspace project (in eclipse). Wrote a simple program using couple of ws calls. Now when I want to step into a soap call, eclipse says…
Hello World
5
votes
2 answers

Magento API error: Invalid data given. Details in error message. - Where is this "error message"?

I was trying to create a new product but some weird problem happened and it simply gave me this error: Invalid data given. Details in error message. Which was generated by $e -> getMessage() from this snippet: try { $result = $proxy ->…
datasn.io
  • 12,564
  • 28
  • 113
  • 154
5
votes
2 answers

"Typed property must not be accessed before initialization" error in PHP 7.4+

I'm using PHP 7.4 and property type hints. Let's say I have a class A, with a couple of private properties. When I use \SoapClient, Doctrine ORM, or any tool that instantiates a class bypassing the constructor and getting/setting properties directly…
Mikhail Prosalov
  • 4,155
  • 4
  • 29
  • 41
5
votes
2 answers

PHP SoapClient type mapping behaves differently

I've a web-service function which is returning an array of items to a PHP-Client. Depending on the number of items, the PHP return type is differently. If the function returns one item the PHP type is stdClass if the function returns more than one…
Christian Ammer
  • 7,464
  • 6
  • 51
  • 108
5
votes
2 answers

Extending php SoapClient for siteminder authentication

Short Version I want to extend SoapClient so it does this internally when accessing the WSDL: curl -L -E /location/of/cert.pem -c /tmp/location/of/cookie.jar https://web-service-provider/servicename?wsdl Long Version I've got a SOAP request similar…
denormalizer
  • 2,186
  • 3
  • 24
  • 36
5
votes
1 answer

What is the correct way to build a SOAP request for complexType sequence any using php:SoapClient?

I'm struggling to understand how SoapClient works. wdsl
Halcyon
  • 57,230
  • 10
  • 89
  • 128
5
votes
2 answers

PHP SoapClient removing element with name

I have a WSDL that has an element that requires an attribute: Claim Element
Richard Parnaby-King
  • 14,703
  • 11
  • 69
  • 129
5
votes
1 answer

Which is current / legacy: or

I have to tool to generate soap requests and it can do so in two ways. Either generating the request beginning with: or with:
Martin
  • 11,577
  • 16
  • 80
  • 110
5
votes
3 answers

Fatal error: Class 'SoapClient' not found after upgrading PHP from version 7.0 to 7.2

I upgraded PHP 7.0 to 7.2 in Ubuntu. After performing an upgrade, I installed Laravel 5.6. Before the upgrade, class 'SoapClient' is true, but after the upgrade, I encountered Fatal error: Class 'SoapClient' not found I checked php.ini in…
hadi
  • 85
  • 1
  • 1
  • 5
5
votes
2 answers

Calling multiple methods with same name using SoapClient

I have a SOAP webservice and in SOAP UI I see that there are methods with the same name. So, for example, there are 2 CreateNewContact methods, one of which takes 3 parameters and the other 4. Below are the stubs generated by SOAP UI Method 1…
Krt_Malta
  • 9,265
  • 18
  • 53
  • 91
5
votes
3 answers

How to consume a stateful Web Service using PHP's SoapClient class?

Noob question. I am developing a PHP Web site that consumes a stateful Web Service. Basically, the "flow of control" of my Web site is the following one: The user is shown a page. The user performs an action. The Web site's server does a request to…
isekaijin
  • 19,076
  • 18
  • 85
  • 153
5
votes
2 answers

Creating a SOAP client with angular 2

I'm looking for a way to send SOAP request to a web service, with a WSDL. Is it possible to do that with Typescript 2 and Angular 2 ? I've seen tutorials for Angular 1 but they used old angular methodes, like factory or controller. I would like if…
Couim
  • 735
  • 3
  • 12
  • 29