Repository navigation
Creating a service mock for 3d party soap service #1795
Unanswered
FrankZeTank
asked this question in
Q&A
Replies: 1 comment 2 replies
I am not sure I understand what you mean. Could you please describe in more detail what does not meet your expectations? |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello everyone,
I was tasked with creating a service mock for a SOAP service provided by a 3rd party (government).
I know a little SOAP but am at a point where I am lost.
Naturally, seeing as I enjoy using Quarkus and it had an extension for CXF I thought it would be a effective way to get the job done.
I was only able to create the classes with WSDL2java as someone had the bright idea to move some of the locations to https and needed a catalogue to solve it.
The WSDL contains one service 'TheService' with three ports & bindings which become three WebServices. The WebServiceClient also provides methods to get these.
I can also publish these sevices and use them with the CXFClient. No Problem.
I have interceptors that add-in special handlings and it works great.
The only 'problem' is that what I get on the interface of my mock is not the same as the one from the original.
As I have the three endpoints configured in my application.properties, I get the three resource paths and three wsdl files.
F.i. the WebServiceClient's constructor uses the service name 'TheService' and then gets the ports/actual services.
I have no idea how to combine them under one service. Or do I pass back the original wsdl for each endpoint?
Cloned the sources and tests but could not find anything obvious.
Now I know to little if this is a problem or if I am on a fools errand.
Just running out of time and motivation for more trial-and-error solution seeking.
Thanks!
All reactions