Comments (28)
is the file mentioned by the error accessible?
from soap-client.
Yes ,
http://ws.link.test.hotelresb2b.com/axis2/services/Link?xsd=login.xsd
from soap-client.
And when I wrap the xml with some headers like this:
How should I create the corresponding object in the headers?
Many thanks,
Victor
from soap-client.
is the file mentioned by the error accessible?
Can it be that the PHP client is not allowed to access the file for same reason? from what I know it is the only reason for that error
from soap-client.
How should I create the corresponding object in the headers?
you should use GoetasWebservices\SoapServices\SoapClient\Arguments\Headers\Header
, see
from soap-client.
Sorry for the response, I will not bother you anymore.
We have this in metadata and SoapContainer.
We need to execute the following request:
Following your example we create the corresponding object:
$client->getRooms($rq, new \GoetasWebservices\SoapServices\SoapClient\Arguments\Headers\Header($userValidation));
$rq is an instanceof of the RequestRooms php class.
And when call this process we have following error in ArgumentReader:
PHP Notice: Undefined index: requestRoomsHeader in /var/www/igm_client/vendor/igm/synergyclient/src/Arguments/ArgumentsReader.php on line 66 PHP Fatal error: Call to a member function setValue() on null in /var/www/igm_client/vendor/igm/synergyclient/src/Arguments/ArgumentsReader.php on line 67
It would be very helpful if you could give us some reason for the error.
Many thanks
from soap-client.
I guess you have forgot to register the Header handler as in
if you are suing SoapContainerBuilder::createSerializerBuilderFromContainer
You can do it via:
$serializer = SoapContainerBuilder::createSerializerBuilderFromContainer($container, function($registry) {
$registry->registerSubscribingHandler(new HeaderHandler());
})->build();
from soap-client.
No,
I think the problem is in ArgumentsReader when the serviceDefinition have many parts.
In method handleHeaders you set in envelope the instance of the headers and return the body.
So now we have this content:
In variable args:
So, always throw at this point in code:
from soap-client.
Hmm... may be a bug, but not sure about it.
from soap-client.
Can you copy/paste your soap operaton for this call? im confused by the "requestRoomsHeader" in the "parts" array.
from soap-client.
Is the header defined also at SOAP metadata level or not? does it look as something as
soap-client/tests/Fixtures/test.wsdl
Line 511 in 746570a
from soap-client.
Here is the wsdl if you want to check but is allright I think:
from soap-client.
It looks a bug. I did not find anything that tests that case in my test suite.
Can you try to without wrapping the header param in \GoetasWebservices\SoapServices\SoapClient\Arguments\Headers\Header
?:
$client->getRooms($rq, $userValidation);
from soap-client.
If I pass GetRoomsInput directly like:
I've another error:
PHP Fatal error: Call to a member function value() on string in /var/www/igm_client/vendor/jms/serializer/src/JMS/Serializer/Metadata/PropertyMetadata.php on line 105
And also call the function with your parameters like this:
from soap-client.
but you are still using \GoetasWebservices\SoapServices\SoapClient\Arguments\Headers\Header
. Can you try without?
from soap-client.
like $client->getRooms($rq, $hotel)
.
from soap-client.
Yes, if you pass like this:
$client->getRooms($rq, $userValidation);
I've this error:
PHP Notice: Undefined index: requestRoomsHeader in /var/www/igm_client/vendor/igm/synergyclient/src/Arguments/ArgumentsReader.php on line 71 PHP Fatal error: Call to a member function setValue() on null in /var/www/igm_client/vendor/igm/synergyclient/src/Arguments/ArgumentsReader.php on line 72
from soap-client.
:/
from soap-client.
But I don't understand if I create request and set the body and header manually like:
When I serialize to convert in XML it return followin error:
PHP Fatal error: Call to a member function value() on integer in /var/www/igm_client/vendor/jms/serializer/src/JMS/Serializer/Metadata/PropertyMetadata.php on line 104
from soap-client.
And in getRoomsInput I have this:
from soap-client.
If the problem if this header:
MyHandler is with o without namespace?
I want to do this to avoid the following:
from soap-client.
@riccardonar did you face an issue as this?
from soap-client.
Because this class:
type: 'GoetasWebservices\SoapServices\SoapEnvelope\Headers<''Igm\Synergy\Definitions\Hotusa\Login\UserValidation''>'
Doesn't exist. It's posible to fix this? I do anything wrong? How it works?
Many thanks for attention.
from soap-client.
Should be GoetasWebservices\SoapServices\SoapEnvelope2\Headers
.... @riccardonar ?
from soap-client.
did you face an issue as this?
Mmm, i check that in my SOAPs i haven't any header part in the operations, so i don't test it
from soap-client.
Where you construct this part of metadatas?
`'GoetasWebservices\SoapServices\SoapEnvelope\Headers<''Igm\Synergy\Definitions\Hotusa\Login\UserValidation''>'
Because If i extrat the part the namespace of the class in there that's work correctly.
`
from soap-client.
Because when you pass Header like you tell me:
$client->getRooms($rq, $userValidation);
In Arguments reader you set empty class HeaderPlaceHolder to envelope and it throws an error cause argument is not the correct instance.
Is that for something?
from soap-client.
We can do this but I'm not sure that if it's how you thought.
from soap-client.
Related Issues (20)
- CDATA HOT 8
- SoapFault HOT 2
- Problem defining multiple inline schemas with the same targetNamespace HOT 7
- Adding xmlns:xsi XMLSchema-instance HOT 5
- Soap Security Header HOT 15
- SOAP-Envelope
- Problems with Symfony 4.3 HOT 1
- Multiple xml_root_namespace HOT 1
- Find Element. HOT 3
- Generate soap client inside existing Symfony app container HOT 2
- Fault Header
- Bug in example HOT 4
- FAULTDETAIL
- Update JMS Serializer HOT 1
- Can't make anyType to work with soap-client HOT 1
- Is there a way to see/print the request and response messages? HOT 1
- HTML_ENTITY_DECODE
- How to pass credentials to client? HOT 2
- About credentials HOT 2
- Release request (0.2.12) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soap-client.