You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Demetris <de...@ece.neu.edu> on 2010/02/13 06:40:32 UTC
wsdl 2 soap
Hi all,
is there a tool that can generate SOAP messages directly from a WSDL
files (without needing to
generate and execute stubs)?
Thanks
Re: wsdl 2 soap
Posted by D G <de...@ece.neu.edu>.
Thanks Hemant - I will check it out
On Feb 13, 2010, at 10:18 AM, Hemant Borole <he...@gmail.com>
wrote:
> soapui http://www.soapui.org/
>
>
> On Fri, Feb 12, 2010 at 9:40 PM, Demetris <de...@ece.neu.edu>
> wrote:
>
> Hi all,
>
> is there a tool that can generate SOAP messages directly from a
> WSDL files (without needing to
> generate and execute stubs)?
>
> Thanks
>
>
>
>
> --
> Hemant Borolé
>
Re: wsdl 2 soap
Posted by Hemant Borole <he...@gmail.com>.
soapui http://www.soapui.org/
On Fri, Feb 12, 2010 at 9:40 PM, Demetris <de...@ece.neu.edu> wrote:
>
> Hi all,
>
> is there a tool that can generate SOAP messages directly from a WSDL
> files (without needing to
> generate and execute stubs)?
>
> Thanks
>
>
--
Hemant Borolé
Re: wsdl 2 soap
Posted by Demetris <de...@ece.neu.edu>.
And if I recall, on the return (SOAP XML responses) I can reuse Axis's
response parsers
to parse the XML for the values - right? Unless I pre-specify to work
with text messages
alltogether.
Martin Gainty wrote:
> Good Evening Demetris
>
> the envelope comes from the MessageContext as seen here..
>
> public static AxisFault
> getInboundFaultFromMessageContext(MessageContext messageContext) {
> // Get the fault if it's already been extracted by a handler
> AxisFault result = (AxisFault)
> messageContext.getProperty(Constants.INBOUND_FAULT_OVERRIDE);
> // Else, extract it from the SOAPBody
> if (result == null) {
> SOAPEnvelope envelope = messageContext.getEnvelope();
>
> if you need a SOAPEnvelope you can acquire one from the SOAPFactory as
> seen here..
> SOAPFactory soapFactory = getSOAPFactory();
> SOAPEnvelope envelope = soapFactory.getDefaultEnvelope();
>
> where getSOAPFactory() is defined as
>
> private SOAPFactory getSOAPFactory() {
> String soapVersionURI = options.getSoapVersionURI();
> if
> (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapVersionURI)) {
> return OMAbstractFactory.getSOAP12Factory();
> } else {
> // make the SOAP 1.1 the default SOAP version
> return OMAbstractFactory.getSOAP11Factory();
> }
> }
>
> all of this is located in org.apache.axis2.cient.ServiceClient..
>
> does this help?
> Martin Gainty
> ______________________________________________
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük,
> hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy
> másolatának készítése nem megengedett. Ez az üzenet csak ismeret
> cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az
> electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi
> felelöség nem terhelhet ezen üzenet tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Sat, 13 Feb 2010 00:40:32 -0500
> > From: demetris@ece.neu.edu
> > To: axis-dev@ws.apache.org
> > Subject: wsdl 2 soap
> >
> >
> > Hi all,
> >
> > is there a tool that can generate SOAP messages directly from a WSDL
> > files (without needing to
> > generate and execute stubs)?
> >
> > Thanks
> >
>
> ------------------------------------------------------------------------
> Hotmail: Free, trusted and rich email service. Get it now.
> <http://clk.atdmt.com/GBL/go/201469228/direct/01/>
Re: wsdl 2 soap
Posted by Demetris <de...@ece.neu.edu>.
Hi Martin,
Good to hear from you again ...
Thanks very much for the detailed info below. I used Java clients to
access Axis services extensively
in past but the latest requirements I have call for building javascript
clients provided that the necessary
WSDL files are available. I need to build the envelope once I receive
the WSDL file and then send the
SOAP message out. One option may be to embed Java code in my scripts and
utilize the Axis
libs as you are showing below. I will look into this as well (I am also
looking into the SOAPUI to see if
that can help as well as the CXF and WSO2 projects) and let you know if
it helps.
Many regards
Martin Gainty wrote:
> Good Evening Demetris
>
> the envelope comes from the MessageContext as seen here..
>
> public static AxisFault
> getInboundFaultFromMessageContext(MessageContext messageContext) {
> // Get the fault if it's already been extracted by a handler
> AxisFault result = (AxisFault)
> messageContext.getProperty(Constants.INBOUND_FAULT_OVERRIDE);
> // Else, extract it from the SOAPBody
> if (result == null) {
> SOAPEnvelope envelope = messageContext.getEnvelope();
>
> if you need a SOAPEnvelope you can acquire one from the SOAPFactory as
> seen here..
> SOAPFactory soapFactory = getSOAPFactory();
> SOAPEnvelope envelope = soapFactory.getDefaultEnvelope();
>
> where getSOAPFactory() is defined as
>
> private SOAPFactory getSOAPFactory() {
> String soapVersionURI = options.getSoapVersionURI();
> if
> (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapVersionURI)) {
> return OMAbstractFactory.getSOAP12Factory();
> } else {
> // make the SOAP 1.1 the default SOAP version
> return OMAbstractFactory.getSOAP11Factory();
> }
> }
>
> all of this is located in org.apache.axis2.cient.ServiceClient..
>
> does this help?
> Martin Gainty
> ______________________________________________
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük,
> hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy
> másolatának készítése nem megengedett. Ez az üzenet csak ismeret
> cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az
> electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi
> felelöség nem terhelhet ezen üzenet tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede
> unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig.
> Diese Nachricht dient lediglich dem Austausch von Informationen und
> entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten
> Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den
> Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
>
>
>
>
>
> > Date: Sat, 13 Feb 2010 00:40:32 -0500
> > From: demetris@ece.neu.edu
> > To: axis-dev@ws.apache.org
> > Subject: wsdl 2 soap
> >
> >
> > Hi all,
> >
> > is there a tool that can generate SOAP messages directly from a WSDL
> > files (without needing to
> > generate and execute stubs)?
> >
> > Thanks
> >
>
> ------------------------------------------------------------------------
> Hotmail: Free, trusted and rich email service. Get it now.
> <http://clk.atdmt.com/GBL/go/201469228/direct/01/>
RE: wsdl 2 soap
Posted by Martin Gainty <mg...@hotmail.com>.
Good Evening Demetris
the envelope comes from the MessageContext as seen here..
public static AxisFault getInboundFaultFromMessageContext(MessageContext messageContext) {
// Get the fault if it's already been extracted by a handler
AxisFault result = (AxisFault) messageContext.getProperty(Constants.INBOUND_FAULT_OVERRIDE);
// Else, extract it from the SOAPBody
if (result == null) {
SOAPEnvelope envelope = messageContext.getEnvelope();
if you need a SOAPEnvelope you can acquire one from the SOAPFactory as seen here..
SOAPFactory soapFactory = getSOAPFactory();
SOAPEnvelope envelope = soapFactory.getDefaultEnvelope();
where getSOAPFactory() is defined as
private SOAPFactory getSOAPFactory() {
String soapVersionURI = options.getSoapVersionURI();
if (SOAP12Constants.SOAP_ENVELOPE_NAMESPACE_URI.equals(soapVersionURI)) {
return OMAbstractFactory.getSOAP12Factory();
} else {
// make the SOAP 1.1 the default SOAP version
return OMAbstractFactory.getSOAP11Factory();
}
}
all of this is located in org.apache.axis2.cient.ServiceClient..
does this help?
Martin Gainty
______________________________________________
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Ez az
üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának
készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és
semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek
könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet
ezen üzenet tartalma miatt.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> Date: Sat, 13 Feb 2010 00:40:32 -0500
> From: demetris@ece.neu.edu
> To: axis-dev@ws.apache.org
> Subject: wsdl 2 soap
>
>
> Hi all,
>
> is there a tool that can generate SOAP messages directly from a WSDL
> files (without needing to
> generate and execute stubs)?
>
> Thanks
>
_________________________________________________________________
Hotmail: Free, trusted and rich email service.
http://clk.atdmt.com/GBL/go/201469228/direct/01/