How can I select a specific service / port? #557
Replies: 3 comments 12 replies
-
Hello, This will become easier in v4, since it will be possible to specify it from the Factory options instead. See:
Currently, the only way to filter ports is by using a preferred soap version, but I suppose filtering by port name / address or something like that would be rather easy to implement as well: See: |
Beta Was this translation helpful? Give feedback.
-
Thank you. Do you mean it will be possible to do so in the stable release of v4? I don't see a simple way to pick a specific port under 4.0.0-alpha3. Filtering by SOAP version is not an option for me, since all ports are SOAP 1.1. Adding a |
Beta Was this translation helpful? Give feedback.
-
Hi, I had the same problem as you. I hope this helps :) |
Beta Was this translation helpful? Give feedback.
-
Hello.
I am currently using a WSDL with two services, each consisting of four ports. After generating all the required code with
vendor/bin/soap-client wizard
, all the requests are using the first endpoint (1st service / 1st port).I guess I could achieve this by overriding code such as
CodeGeneratorEngineFactory
, creating aWsdl1MetadataProvider
instance with a differentServiceSelectionCriteria
. Is there an easier way to do this and prevent so much duplicate code?I'm quite new to both this library and SOAP, so I'm not sure if all of this make sense.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions