You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mario-Leander Reimer <le...@vva-networks.de> on 2008/11/27 14:51:40 UTC

No Client interface method for "out-only mep" methods??

Hi Axsi2 users,

one of my webservice methods is declared as mep="http://www.w3.org/ns/wsdl/out-only"

I then use the wsdl2code maven2 plugin to generate the client side classes using ADB as databinding. But for my out-only method there is no matching method in either the stub nor the interface definition.

Am I doing something wrong? Do I need to invoke a out-only method differently in my client?

Or is this a know "bug"? I had a look at the InterfaceTemplate.xsl but there does not seem to be a matching section for out-only meps. Also nothing in the InterfaceImplementation.xsl

I am using Axis2 1.4.1

Thanks for your help,
Leander




VVA Networks GmbH

Mario-Leander Reimer
Dipl.-Inf. (FH)
Teamleitung Publishing Solutions
---------------------------------------------------------------------------
VVA Networks GmbH
: medien mit zukunft
Geisenhausenerstra?e 15-17
81379 M?nchen
Deutschland
---------------------------------------------------------------------------
Fon:    +49 89 2000375-610
Fax:    +49 89 2000375-699
Mobil:  +49 173 5883541
---------------------------------------------------------------------------
leander.reimer@vva-networks.de
www.vva-networks.de

-----------------------------------------------------------------------
HRB 33884 D?sseldorf
Gesch?ftsf?hrer Rolf Christian Kassel
-----------------------------------------------------------------------
Ein Unternehmen der VVA Kommunikation
http://www.vva.de
-----------------------------------------------------------------------
omnisuite(r) - integrate. automate. communicate.
http://www.omnisuite.de
-----------------------------------------------------------------------

Diese Nachricht (inklusive aller Anh?nge) ist vertraulich. Sie darf
ausschlie?lich durch den vorgesehenen Empf?nger und Adressaten gelesen,
kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich
erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon
unverz?glich zu informieren und die Nachricht zu l?schen. Jede unerlaubte
Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es vollst?ndig
oder teilweise, ist unzul?ssig.

This message (including any attachments) is confidential and may be
privileged. It may be read, copied and used only by the intended recipient.
If you have received it in error please contact the sender (by return
E-Mail) immediately and delete this message. Any unauthorised use or
dissemination of this message in whole or in part is strictly prohibited.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


AW: No Client interface method for "out-only mep" methods??

Posted by Mario-Leander Reimer <le...@vva-networks.de>.
Message to myself: Problem solved!

What I wanted to achieve is to have a method with no request parameters and with only a return value, e.g.

boolean logout();

After doing a little reading I realized that the out-only mep is not made for this kind of method.

Instead I use an empty wsdl:message as the wsdl:input for my wsdl:operation, and now wsdl2java works correct and generates the corresponding method in the client and server side interfaces and classes.

Sorry for the noise.

BR
Leander


> -----Ursprüngliche Nachricht-----
> Von: Mario-Leander Reimer [mailto:leander.reimer@vva-networks.de]
> Gesendet: Donnerstag, 27. November 2008 14:52
> An: axis-user@ws.apache.org
> Betreff: No Client interface method for "out-only mep" methods??
>
> Hi Axsi2 users,
>
> one of my webservice methods is declared as
> mep="http://www.w3.org/ns/wsdl/out-only"
>
> I then use the wsdl2code maven2 plugin to generate the client side
> classes using ADB as databinding. But for my out-only method there is
> no matching method in either the stub nor the interface definition.
>
> Am I doing something wrong? Do I need to invoke a out-only method
> differently in my client?
>
> Or is this a know "bug"? I had a look at the InterfaceTemplate.xsl but
> there does not seem to be a matching section for out-only meps. Also
> nothing in the InterfaceImplementation.xsl
>
> I am using Axis2 1.4.1
>
> Thanks for your help,
> Leander
>
>
>
>
> VVA Networks GmbH
>
> Mario-Leander Reimer
> Dipl.-Inf. (FH)
> Teamleitung Publishing Solutions
> -----------------------------------------------------------------------
> ----
> VVA Networks GmbH
> : medien mit zukunft
> Geisenhausenerstra?e 15-17
> 81379 M?nchen
> Deutschland
> -----------------------------------------------------------------------
> ----
> Fon:    +49 89 2000375-610
> Fax:    +49 89 2000375-699
> Mobil:  +49 173 5883541
> -----------------------------------------------------------------------
> ----
> leander.reimer@vva-networks.de
> www.vva-networks.de
>
> -----------------------------------------------------------------------
> HRB 33884 D?sseldorf
> Gesch?ftsf?hrer Rolf Christian Kassel
> -----------------------------------------------------------------------
> Ein Unternehmen der VVA Kommunikation
> http://www.vva.de
> -----------------------------------------------------------------------
> omnisuite(r) - integrate. automate. communicate.
> http://www.omnisuite.de
> -----------------------------------------------------------------------
>
> Diese Nachricht (inklusive aller Anh?nge) ist vertraulich. Sie darf
> ausschlie?lich durch den vorgesehenen Empf?nger und Adressaten gelesen,
> kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich
> erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon
> unverz?glich zu informieren und die Nachricht zu l?schen. Jede
> unerlaubte
> Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es
> vollst?ndig
> oder teilweise, ist unzul?ssig.
>
> This message (including any attachments) is confidential and may be
> privileged. It may be read, copied and used only by the intended
> recipient.
> If you have received it in error please contact the sender (by return
> E-Mail) immediately and delete this message. Any unauthorised use or
> dissemination of this message in whole or in part is strictly
> prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> VVA Networks GmbH
>
> Mario-Leander Reimer
> Dipl.-Inf. (FH)
> Teamleitung Publishing Solutions
> -----------------------------------------------------------------------
> ----
> VVA Networks GmbH
> : medien mit zukunft
> Geisenhausenerstraße 15-17
> 81379 München
> Deutschland
> -----------------------------------------------------------------------
> ----
> Fon:    +49 89 2000375-610
> Fax:    +49 89 2000375-699
> Mobil:  +49 173 5883541
> -----------------------------------------------------------------------
> ----
> leander.reimer@vva-networks.de
> www.vva-networks.de
>
> -----------------------------------------------------------------------
> HRB 33884 Düsseldorf
> Geschäftsführer Rolf Christian Kassel
> -----------------------------------------------------------------------
> Ein Unternehmen der VVA Kommunikation
> http://www.vva.de
> -----------------------------------------------------------------------
> omnisuite® - integrate. automate. communicate.
> http://www.omnisuite.de
> -----------------------------------------------------------------------
>
> Diese Nachricht (inklusive aller Anhänge) ist vertraulich. Sie darf
> ausschließlich durch den vorgesehenen Empfänger und Adressaten gelesen,
> kopiert oder genutzt werden. Sollten Sie diese Nachricht versehentlich
> erhalten haben, bitten wir, den Absender (durch Antwort-E-Mail) hiervon
> unverzüglich zu informieren und die Nachricht zu löschen. Jede
> unerlaubte
> Nutzung oder Weitergabe des Inhalts dieser Nachricht, sei es
> vollständig
> oder teilweise, ist unzulässig.
>
> This message (including any attachments) is confidential and may be
> privileged. It may be read, copied and used only by the intended
> recipient.
> If you have received it in error please contact the sender (by return
> E-Mail) immediately and delete this message. Any unauthorised use or
> dissemination of this message in whole or in part is strictly
> prohibited.