You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Diego Cando <dc...@jrelectric.com.ec> on 2013/05/20 21:47:36 UTC

Question

Hi, I wonder if you can help me, I'm trying to get a wsk type web service
with cxf, do you know how can I do that?

 

 

Saludos cordiales/kind regards,

Diego Cando

JR Electric Supply / Consorcio MTE Latinus

 


Re: Question

Posted by Glen Mazza <gl...@gmail.com>.
No, haven't done Kerberos--there's enough security specialists on this 
list though.

Glen

On 05/20/2013 06:04 PM, Diego Cando wrote:
> Hi Glen,  thanx for your answersI'll keep digging.
>
> Have you checked this link
> http://xml.coverpages.org/WS-Security-Kerberos200312.pdf
> In the 3rd page referring to the namespaces it's a wsk mentioned.
>
> Have you done an cxf kerberos example? I tought that may lead to an answer,
> but the tutorials I found on internet didn't worked 4 me.
>
> Saludos cordiales/kind regards,
> Diego Cando
> JR Electric Supply / Consorcio MTE Latinus
>
>
> -----Mensaje original-----
> De: Glen Mazza [mailto:glen.mazza@gmail.com]
> Enviado el: lunes, 20 de mayo de 2013 16:34
> Para: users@cxf.apache.org
> Asunto: Re: Question
>
> But even if your WSDL is published with ws:, that's just a namespace prefix,
> a client using wsk: should also work fine just so long as what the prefix
> maps to is correct.  (Still not understanding everything...)
>
> Glen
>
> On 05/20/2013 05:29 PM, Diego Cando wrote:
>> Hi, theorically it should, but the service is for an developed app
>> that calls the ws functions this way.
>>
>> //Ws para obtener login
>>       public String obtenerLogin(String psCedula, String psPassword) {
>>           String psUrlSalida = "<soapenv:Envelope
>> xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"
>> xmlns:wsk=\"http://www.randomweb.com/WStest/\"> "
>>                   + "<soapenv:Header/> "
>>                   + "<soapenv:Body> "
>>                   + " <wsk:EntradaObtenerLogin> "
>>                   + "<cedula>" + psCedula + "</cedula> "
>>                   + "<password>" + psPassword + "</password> "
>>                   + "</wsk:EntradaObtenerLogin> "
>>                   + "</soapenv:Body> "
>>                   + "</soapenv:Envelope> ";
>>
>>           return psUrlSalida;
>>       }
>>
>>
>>
>> Saludos cordiales/kind regards,
>> Diego Cando
>> JR Electric Supply / Consorcio MTE Latinus
>>
>>
>> -----Mensaje original-----
>> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de
>> mayo de 2013 15:30
>> Para: users@cxf.apache.org
>> Asunto: Re: Question
>>
>> The prefix used shouldn't matter (whether wsk: or ws:), all that
>> matters is that the namespace that it points to is correct (is it?)
>>
>> Glen
>>
>> On 05/20/2013 04:20 PM, Diego Cando wrote:
>>> Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that
>>> works like this (sample of a client call)
>>>
>>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>>> xmlns:wsk="http://www.randomweb.com/WStest/">
>>>                <soapenv:Header/>
>>>                <soapenv:Body>
>>>                 <wsk:EntradaObtenerLogin>
>>>
>>> I've done a regular WS with netbeans and glassfish and the only thing
>>> I'm not able to set is that wsk thing, mine is published with ws instead.
>>>
>>> Saludos cordiales/kind regards,
>>> Diego Cando
>>> JR Electric Supply / Consorcio MTE Latinus
>>>
>>>
>>> -----Mensaje original-----
>>> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de
>>> mayo de 2013 15:08
>>> Para: users@cxf.apache.org
>>> Asunto: Re: Question
>>>
>>> I guess you're referring to this:
>>> http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get"
>>> you mean make a SOAP client to be able to retrieve data from that web
>>> service?  I can't see the WSDL without a developer ID but the web
>>> site says its WSDL is Axis 1.x compliant which probably means it's
>>> the older RPC/encoded type WSDL, not well supported by modern JAX-WS
>>> implementations.  You may need to drag out the Axis 1.x (not Axis2)
>>> to get it working or use cumbersome JAX-WS hacks if you want to stay
>>> with
>>> CXF:
> http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.
>>> *Sometimes*, if you remove the 'encoded' attributes from the WSDL, if
>>> no encoding is actually occurring, you may be able to create a web
>>> service as normal with CXF:
>>> http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV
>>> though, and I'm not sure how reliable/safe that would be.
>>>
>>> Glen
>>>
>>> On 05/20/2013 03:47 PM, Diego Cando wrote:
>>>> Hi, I wonder if you can help me, I'm trying to get a wsk type web
>>>> service with cxf, do you know how can I do that?
>>>>
>>>>      
>>>>
>>>>      
>>>>
>>>> Saludos cordiales/kind regards,
>>>>
>>>> Diego Cando
>>>>
>>>> JR Electric Supply / Consorcio MTE Latinus
>>>>
>>>>      
>>>>
>>>>


RE: Question

Posted by Diego Cando <dc...@jrelectric.com.ec>.
Hi Glen,  thanx for your answersI'll keep digging.

Have you checked this link
http://xml.coverpages.org/WS-Security-Kerberos200312.pdf
In the 3rd page referring to the namespaces it's a wsk mentioned.

Have you done an cxf kerberos example? I tought that may lead to an answer,
but the tutorials I found on internet didn't worked 4 me.

Saludos cordiales/kind regards,
Diego Cando
JR Electric Supply / Consorcio MTE Latinus


-----Mensaje original-----
De: Glen Mazza [mailto:glen.mazza@gmail.com] 
Enviado el: lunes, 20 de mayo de 2013 16:34
Para: users@cxf.apache.org
Asunto: Re: Question

But even if your WSDL is published with ws:, that's just a namespace prefix,
a client using wsk: should also work fine just so long as what the prefix
maps to is correct.  (Still not understanding everything...)

Glen

On 05/20/2013 05:29 PM, Diego Cando wrote:
> Hi, theorically it should, but the service is for an developed app 
> that calls the ws functions this way.
>
> //Ws para obtener login
>      public String obtenerLogin(String psCedula, String psPassword) {
>          String psUrlSalida = "<soapenv:Envelope 
> xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"
> xmlns:wsk=\"http://www.randomweb.com/WStest/\"> "
>                  + "<soapenv:Header/> "
>                  + "<soapenv:Body> "
>                  + " <wsk:EntradaObtenerLogin> "
>                  + "<cedula>" + psCedula + "</cedula> "
>                  + "<password>" + psPassword + "</password> "
>                  + "</wsk:EntradaObtenerLogin> "
>                  + "</soapenv:Body> "
>                  + "</soapenv:Envelope> ";
>
>          return psUrlSalida;
>      }
>
>
>
> Saludos cordiales/kind regards,
> Diego Cando
> JR Electric Supply / Consorcio MTE Latinus
>
>
> -----Mensaje original-----
> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de 
> mayo de 2013 15:30
> Para: users@cxf.apache.org
> Asunto: Re: Question
>
> The prefix used shouldn't matter (whether wsk: or ws:), all that 
> matters is that the namespace that it points to is correct (is it?)
>
> Glen
>
> On 05/20/2013 04:20 PM, Diego Cando wrote:
>> Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that 
>> works like this (sample of a client call)
>>
>> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:wsk="http://www.randomweb.com/WStest/">
>>               <soapenv:Header/>
>>               <soapenv:Body>
>>                <wsk:EntradaObtenerLogin>
>>
>> I've done a regular WS with netbeans and glassfish and the only thing 
>> I'm not able to set is that wsk thing, mine is published with ws instead.
>>
>> Saludos cordiales/kind regards,
>> Diego Cando
>> JR Electric Supply / Consorcio MTE Latinus
>>
>>
>> -----Mensaje original-----
>> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de 
>> mayo de 2013 15:08
>> Para: users@cxf.apache.org
>> Asunto: Re: Question
>>
>> I guess you're referring to this:
>> http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get"
>> you mean make a SOAP client to be able to retrieve data from that web 
>> service?  I can't see the WSDL without a developer ID but the web 
>> site says its WSDL is Axis 1.x compliant which probably means it's 
>> the older RPC/encoded type WSDL, not well supported by modern JAX-WS 
>> implementations.  You may need to drag out the Axis 1.x (not Axis2) 
>> to get it working or use cumbersome JAX-WS hacks if you want to stay 
>> with
>> CXF:
http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.
>>
>> *Sometimes*, if you remove the 'encoded' attributes from the WSDL, if 
>> no encoding is actually occurring, you may be able to create a web 
>> service as normal with CXF:
>> http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV 
>> though, and I'm not sure how reliable/safe that would be.
>>
>> Glen
>>
>> On 05/20/2013 03:47 PM, Diego Cando wrote:
>>> Hi, I wonder if you can help me, I'm trying to get a wsk type web 
>>> service with cxf, do you know how can I do that?
>>>
>>>     
>>>
>>>     
>>>
>>> Saludos cordiales/kind regards,
>>>
>>> Diego Cando
>>>
>>> JR Electric Supply / Consorcio MTE Latinus
>>>
>>>     
>>>
>>>


Re: Question

Posted by Glen Mazza <gl...@gmail.com>.
But even if your WSDL is published with ws:, that's just a namespace 
prefix, a client using wsk: should also work fine just so long as what 
the prefix maps to is correct.  (Still not understanding everything...)

Glen

On 05/20/2013 05:29 PM, Diego Cando wrote:
> Hi, theorically it should, but the service is for an developed app that
> calls the ws functions this way.
>
> //Ws para obtener login
>      public String obtenerLogin(String psCedula, String psPassword) {
>          String psUrlSalida = "<soapenv:Envelope
> xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"
> xmlns:wsk=\"http://www.randomweb.com/WStest/\"> "
>                  + "<soapenv:Header/> "
>                  + "<soapenv:Body> "
>                  + " <wsk:EntradaObtenerLogin> "
>                  + "<cedula>" + psCedula + "</cedula> "
>                  + "<password>" + psPassword + "</password> "
>                  + "</wsk:EntradaObtenerLogin> "
>                  + "</soapenv:Body> "
>                  + "</soapenv:Envelope> ";
>
>          return psUrlSalida;
>      }
>
>
>
> Saludos cordiales/kind regards,
> Diego Cando
> JR Electric Supply / Consorcio MTE Latinus
>
>
> -----Mensaje original-----
> De: Glen Mazza [mailto:glen.mazza@gmail.com]
> Enviado el: lunes, 20 de mayo de 2013 15:30
> Para: users@cxf.apache.org
> Asunto: Re: Question
>
> The prefix used shouldn't matter (whether wsk: or ws:), all that matters is
> that the namespace that it points to is correct (is it?)
>
> Glen
>
> On 05/20/2013 04:20 PM, Diego Cando wrote:
>> Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that
>> works like this (sample of a client call)
>>
>> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:wsk="http://www.randomweb.com/WStest/">
>>               <soapenv:Header/>
>>               <soapenv:Body>
>>                <wsk:EntradaObtenerLogin>
>>
>> I've done a regular WS with netbeans and glassfish and the only thing
>> I'm not able to set is that wsk thing, mine is published with ws instead.
>>
>> Saludos cordiales/kind regards,
>> Diego Cando
>> JR Electric Supply / Consorcio MTE Latinus
>>
>>
>> -----Mensaje original-----
>> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de
>> mayo de 2013 15:08
>> Para: users@cxf.apache.org
>> Asunto: Re: Question
>>
>> I guess you're referring to this:
>> http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get"
>> you mean make a SOAP client to be able to retrieve data from that web
>> service?  I can't see the WSDL without a developer ID but the web site
>> says its WSDL is Axis 1.x compliant which probably means it's the
>> older RPC/encoded type WSDL, not well supported by modern JAX-WS
>> implementations.  You may need to drag out the Axis 1.x (not Axis2) to
>> get it working or use cumbersome JAX-WS hacks if you want to stay with
>> CXF: http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.
>>
>> *Sometimes*, if you remove the 'encoded' attributes from the WSDL, if
>> no encoding is actually occurring, you may be able to create a web
>> service as normal with CXF:
>> http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV
>> though, and I'm not sure how reliable/safe that would be.
>>
>> Glen
>>
>> On 05/20/2013 03:47 PM, Diego Cando wrote:
>>> Hi, I wonder if you can help me, I'm trying to get a wsk type web
>>> service with cxf, do you know how can I do that?
>>>
>>>     
>>>
>>>     
>>>
>>> Saludos cordiales/kind regards,
>>>
>>> Diego Cando
>>>
>>> JR Electric Supply / Consorcio MTE Latinus
>>>
>>>     
>>>
>>>


RE: Question

Posted by Diego Cando <dc...@jrelectric.com.ec>.
Hi, theorically it should, but the service is for an developed app that
calls the ws functions this way.

//Ws para obtener login
    public String obtenerLogin(String psCedula, String psPassword) {
        String psUrlSalida = "<soapenv:Envelope
xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\"
xmlns:wsk=\"http://www.randomweb.com/WStest/\"> "
                + "<soapenv:Header/> "
                + "<soapenv:Body> "
                + " <wsk:EntradaObtenerLogin> "
                + "<cedula>" + psCedula + "</cedula> "
                + "<password>" + psPassword + "</password> "
                + "</wsk:EntradaObtenerLogin> "
                + "</soapenv:Body> "
                + "</soapenv:Envelope> ";

        return psUrlSalida;
    }



Saludos cordiales/kind regards,
Diego Cando
JR Electric Supply / Consorcio MTE Latinus


-----Mensaje original-----
De: Glen Mazza [mailto:glen.mazza@gmail.com] 
Enviado el: lunes, 20 de mayo de 2013 15:30
Para: users@cxf.apache.org
Asunto: Re: Question

The prefix used shouldn't matter (whether wsk: or ws:), all that matters is
that the namespace that it points to is correct (is it?)

Glen

On 05/20/2013 04:20 PM, Diego Cando wrote:
> Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that 
> works like this (sample of a client call)
>
> <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsk="http://www.randomweb.com/WStest/">
>              <soapenv:Header/>
>              <soapenv:Body>
>               <wsk:EntradaObtenerLogin>
>
> I've done a regular WS with netbeans and glassfish and the only thing 
> I'm not able to set is that wsk thing, mine is published with ws instead.
>
> Saludos cordiales/kind regards,
> Diego Cando
> JR Electric Supply / Consorcio MTE Latinus
>
>
> -----Mensaje original-----
> De: Glen Mazza [mailto:glen.mazza@gmail.com] Enviado el: lunes, 20 de 
> mayo de 2013 15:08
> Para: users@cxf.apache.org
> Asunto: Re: Question
>
> I guess you're referring to this:
> http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get" 
> you mean make a SOAP client to be able to retrieve data from that web 
> service?  I can't see the WSDL without a developer ID but the web site 
> says its WSDL is Axis 1.x compliant which probably means it's the 
> older RPC/encoded type WSDL, not well supported by modern JAX-WS 
> implementations.  You may need to drag out the Axis 1.x (not Axis2) to 
> get it working or use cumbersome JAX-WS hacks if you want to stay with
> CXF: http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.
>
> *Sometimes*, if you remove the 'encoded' attributes from the WSDL, if 
> no encoding is actually occurring, you may be able to create a web 
> service as normal with CXF:
> http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV 
> though, and I'm not sure how reliable/safe that would be.
>
> Glen
>
> On 05/20/2013 03:47 PM, Diego Cando wrote:
>> Hi, I wonder if you can help me, I'm trying to get a wsk type web 
>> service with cxf, do you know how can I do that?
>>
>>    
>>
>>    
>>
>> Saludos cordiales/kind regards,
>>
>> Diego Cando
>>
>> JR Electric Supply / Consorcio MTE Latinus
>>
>>    
>>
>>


Re: Question

Posted by Glen Mazza <gl...@gmail.com>.
The prefix used shouldn't matter (whether wsk: or ws:), all that matters 
is that the namespace that it points to is correct (is it?)

Glen

On 05/20/2013 04:20 PM, Diego Cando wrote:
> Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that works
> like this (sample of a client call)
>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:wsk="http://www.randomweb.com/WStest/">
>              <soapenv:Header/>
>              <soapenv:Body>
>               <wsk:EntradaObtenerLogin>
>
> I've done a regular WS with netbeans and glassfish and the only thing I'm
> not able to set is that wsk thing, mine is published with ws instead.
>
> Saludos cordiales/kind regards,
> Diego Cando
> JR Electric Supply / Consorcio MTE Latinus
>
>
> -----Mensaje original-----
> De: Glen Mazza [mailto:glen.mazza@gmail.com]
> Enviado el: lunes, 20 de mayo de 2013 15:08
> Para: users@cxf.apache.org
> Asunto: Re: Question
>
> I guess you're referring to this:
> http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get" you mean
> make a SOAP client to be able to retrieve data from that web service?  I
> can't see the WSDL without a developer ID but the web site says its WSDL is
> Axis 1.x compliant which probably means it's the older RPC/encoded type
> WSDL, not well supported by modern JAX-WS implementations.  You may need to
> drag out the Axis 1.x (not Axis2) to get it working or use cumbersome JAX-WS
> hacks if you want to stay with
> CXF: http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.
>
> *Sometimes*, if you remove the 'encoded' attributes from the WSDL, if no
> encoding is actually occurring, you may be able to create a web service as
> normal with CXF:
> http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV though, and
> I'm not sure how reliable/safe that would be.
>
> Glen
>
> On 05/20/2013 03:47 PM, Diego Cando wrote:
>> Hi, I wonder if you can help me, I'm trying to get a wsk type web
>> service with cxf, do you know how can I do that?
>>
>>    
>>
>>    
>>
>> Saludos cordiales/kind regards,
>>
>> Diego Cando
>>
>> JR Electric Supply / Consorcio MTE Latinus
>>
>>    
>>
>>


RE: Question

Posted by Diego Cando <dc...@jrelectric.com.ec>.
Hi Glenn, thanx 4 ur answer , I'm trying to publish a webservice that works
like this (sample of a client call)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsk="http://www.randomweb.com/WStest/"> 
            <soapenv:Header/> 
            <soapenv:Body> 
             <wsk:EntradaObtenerLogin>

I've done a regular WS with netbeans and glassfish and the only thing I'm
not able to set is that wsk thing, mine is published with ws instead.

Saludos cordiales/kind regards,
Diego Cando
JR Electric Supply / Consorcio MTE Latinus


-----Mensaje original-----
De: Glen Mazza [mailto:glen.mazza@gmail.com] 
Enviado el: lunes, 20 de mayo de 2013 15:08
Para: users@cxf.apache.org
Asunto: Re: Question

I guess you're referring to this: 
http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get" you mean
make a SOAP client to be able to retrieve data from that web service?  I
can't see the WSDL without a developer ID but the web site says its WSDL is
Axis 1.x compliant which probably means it's the older RPC/encoded type
WSDL, not well supported by modern JAX-WS implementations.  You may need to
drag out the Axis 1.x (not Axis2) to get it working or use cumbersome JAX-WS
hacks if you want to stay with
CXF: http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.

*Sometimes*, if you remove the 'encoded' attributes from the WSDL, if no
encoding is actually occurring, you may be able to create a web service as
normal with CXF: 
http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV though, and
I'm not sure how reliable/safe that would be.

Glen

On 05/20/2013 03:47 PM, Diego Cando wrote:
> Hi, I wonder if you can help me, I'm trying to get a wsk type web 
> service with cxf, do you know how can I do that?
>
>   
>
>   
>
> Saludos cordiales/kind regards,
>
> Diego Cando
>
> JR Electric Supply / Consorcio MTE Latinus
>
>   
>
>


Re: Question

Posted by Glen Mazza <gl...@gmail.com>.
I guess you're referring to this: 
http://www.lexisnexis.com/webserviceskit/ ?  And when you say "get" you 
mean make a SOAP client to be able to retrieve data from that web 
service?  I can't see the WSDL without a developer ID but the web site 
says its WSDL is Axis 1.x compliant which probably means it's the older 
RPC/encoded type WSDL, not well supported by modern JAX-WS 
implementations.  You may need to drag out the Axis 1.x (not Axis2) to 
get it working or use cumbersome JAX-WS hacks if you want to stay with 
CXF: http://www.jroller.com/gmazza/entry/calling_rpc_encoded_web_services.

*Sometimes*, if you remove the 'encoded' attributes from the WSDL, if no 
encoding is actually occurring, you may be able to create a web service 
as normal with CXF: 
http://www.jroller.com/gmazza/entry/soap_client_tutorial.  YMMV though, 
and I'm not sure how reliable/safe that would be.

Glen

On 05/20/2013 03:47 PM, Diego Cando wrote:
> Hi, I wonder if you can help me, I'm trying to get a wsk type web service
> with cxf, do you know how can I do that?
>
>   
>
>   
>
> Saludos cordiales/kind regards,
>
> Diego Cando
>
> JR Electric Supply / Consorcio MTE Latinus
>
>   
>
>