Replies: 3 comments 4 replies
-
It's not completely clear to me what you are trying to achieve. Normally ext-soap does not take into account the name of the element in the type converters. It uses the content of them instead. |
Beta Was this translation helpful? Give feedback.
-
I try my best. Basically the soap api has method getAttendanceDate(dateFrom: DateTime, dateTo: DateTime, contractNumber: string) I used command to generate types, classmap, client, client factory. Then I create client with ClientFactory::factory($wsdl) I needed to change the generated factory to use default engine factory as: $engine = DefaultEngineFactory::create(
$options,
Psr18Transport::createForClient(
new PluginClient(
Psr18ClientDiscovery::find(),
[
new AuthenticationPlugin(new BasicAuth('login', 'pw'))
]
)
)
); to pass basic auth on server. Then I try to call: $client->getAttendanceDate(new MultiArgumentRequest([
'dateFrom' => new DateTime('2024-01-01'),
'dateTo' => new DateTime('2024-01-31'),
'contactNumber' => '42453453',
]); which gives me result something with error (don't remember, i believe it was like When I change the call like this: $client->getAttendanceDate(new MultiArgumentRequest([
'dateFrom' => '2024-01-01',
'dateTo' => '2024-01-31',
'contactNumber' => '42453453',
]); the request XML contains correct I hope you understand what am trying to say. Am I doing something wrong? |
Beta Was this translation helpful? Give feedback.
-
Hello there @RosskoDCA, I wanted to get back to this issue: We are eager to receive some early feedback on this new release.
|
Beta Was this translation helpful? Give feedback.
-
Hi, I struggle with this. We have soap api method, that has parameters dateFrom and dateTo and those are of type DateTime. The DateTimeTypeConverter converts this to
<date xsi:type="xsd:date">value</date>
which, of course, doesn't work.I thought about writing custom dt-converter, but there's no option to pass original option name so I can not encode it to
dateFrom
anddateTo
.Can someone help me resolve this?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions