Replies: 1 comment 1 reply
-
Hello, Yes, building a custom HTTP middleware that dynamically changes the request would be the way to go here. I imagine siteId, appId and version are hardcoded? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi there,
i am trying to use this package for the ebay soap API.
the problem here is, that for each request, the request URL needs to be extended with some infos,
so the target request URL in the WSDL is useless because with each request, the request name for instance
has to be part of the URL.
after digging in the all the issues and documentation, I am aware, that there are plugins, middleware, and stuff like that,
I didn´t fully understand till now. so I - maybe - did understand, that I can do something like this:
don´t know if that construct is correct. but If i am not wrong, a "middleware" should be able to modify something here "on-the-fly", i hope.
so in my case, the base URL is:
https://api.ebay.com/wsapi
but when i use this soap-client with this function:$response = $client->geteBayOfficialTime(new GeteBayOfficialTimeRequestType());
the request URL has to be:
https://api.ebay.com/wsapi?callname=' . $method . '&siteid=' . $siteId . '&appid=' . $appid . '&version=' . $version . '&routing=new'
if the
__location
would be fixed, i could set it withExtSoapOptions::defaults
, but in my case, it has to change for each requesti do, but i have no clue how to achieve this ;(
and i would be very thankful if someone could point me to the right direction, how i can manage this somehow.
thanks !!!
Beta Was this translation helpful? Give feedback.
All reactions