Can't get client to work (UnsatisfiedResolutionException) #719
-
Maybe this is similar to issue #408. But I can't map the solution to my problem (or I missunderstood it). I'm trying to follow the documentation on building a simple SOAP service and client. The service works like expected, but the client gives following error:
The complete error after [INFO] Scanning for projects... My resource looks like this:
And here the
The complete code can be found here (client and service): https://github.com/fledged/quarkus-soap-client Is there anybody who can tell me what I'm doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @fledged, it should work with some very simple tweaks to your client project ... diff --git a/pom.xml b/pom.xml
index a805d83..3ba8254 100755
--- a/pom.xml
+++ b/pom.xml
@@ -121,9 +121,11 @@
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
- <version>4.0.0</version>
+ <version>3.5.5</version>
<executions>
<execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
<goals>
<goal>wsdl2java</goal>
</goals>
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index 2fd725a..910e9e2 100755
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,4 +1,6 @@
+quarkus.http.port=8081
+
service.baseUri=http://localhost:8080
quarkus.cxf.client.myService.wsdl=${service.baseUri}/soap/myservice?wsdl
-quarkus.cxf.client.myService.client-endpoint-url=${service.baseUri}/soap/MyService
+quarkus.cxf.client.myService.client-endpoint-url=${service.baseUri}/soap/myservice
quarkus.cxf.client.myService.service-interface=org.fluegge.ws.service.MyService Once you fire up both projects, you should be able to run: curl 'http://localhost:8081/client/add?a=1&b=3'
4
curl 'http://localhost:8081/client/date'
Wednesday, February 22, 2023 at 7:53:22 PM Central European Standard Time |
Beta Was this translation helpful? Give feedback.
Hi @fledged, it should work with some very simple tweaks to your client project ...