Hallo,
gibt es die Möglichkeit ein Codebeispiel für Java zu posten, in dem die Webschnittstelle angesprochen wird?
Mir wäre damit sehr geholfen
mfg
Markus Schneider
Hallo,
gibt es die Möglichkeit ein Codebeispiel für Java zu posten, in dem die Webschnittstelle angesprochen wird?
Mir wäre damit sehr geholfen
mfg
Markus Schneider
S.g. Hr. Schneider!
Anbei mein Example-Projekt.
Voraussetzungen:
* Mindestens Java 1.6
* Mindestens Maven 3.0.4
* Internetverbindung
Enthält auch Projekt Dateien für Eclipse 4
Es enthält sowohl den Code für Webservice 1.2 als auch den für Webservice 2.0
In den Dateien WS120UploadDemo.java bzw. WS200UploadDemo.java müssen die Konstanten für USP_WS_USERNAME sowie USP_WS_PASSWORD korrekt befüllt werden, damit die Beispiele funktionieren!
vg P. Helger
Update 23.10.2014: das Beispiel wurde so aktualisiert, dass nur noch Komponenten aus Maven Central verwendet werden.
Herzlichen Dank.
This is really a good help! (I was generating all SOAP conexion)
in the file WS200UploadDemo I got this execption
java.lang.ClassCastException Message: at.gv.brz.eproc.erb.ws.invoicedelivery._201306.WSInvoiceDeliveryBindingStub cannot be cast to javax.xml.ws.BindingProvider
The exception occurss when we do the cast
final BindingProvider aBP = (BindingProvider) aPort;
Any idea why?
Hi!
What IDE are you using?
Did the error occur inside the IDE or on the commandline???
// Philip
With Eclipse 3.3 and java 1.6, but I have also tried with Spring Tool Suite and java 1.6 and also occurs.
Since I got a java cast exception, does it matter if a run with an IDE or the commandline?
Eclipse should be fine. Even though a new version would be preferable, as 3.3 is rather old. Especially the Maven support was heavily improved in newer versions. Do you have the Eclipse-Maven-Plugin installed?
And yes it matters, because the POM does not ship with a shade or assembly plugin, so a commandline build would require some additional configuration.
BR P. Helger
Hi all!
I started an Open Source project on GitHub that contains Webservice clients for the ER>B-Webservice 1.2 and 2.0
https://github.com/phax/erechnung.gv.at-webservice-client
License: Apache 2
Today I released the first version, and the artifacts are already on Maven central. See the project page for further details.
BR, P. Helger
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!