You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jose María Zaragoza <de...@gmail.com> on 2013/06/17 16:45:01 UTC
+ invoking ?wsdl URL
Hi:
I'm using Apache CXF 2.7.3
I created a <jaxws:client> bean (proxy client) to invoke a remote
webservice.
I've generated JAXB classes and endpoint interface with wsdl2java
I would like if this proxy client tries to getting wsdl from remote
endpoint .
I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
If it does, how can i avoid it ?
This is my code
<jaxws:client id="testclient"
serviceClass="com.foo.TestPortType"
address= "http://remote.com/myws/"
bindingId="http://schemas.xmlsoap.org/wsdl/soap/http">
<!-- WS-SECURITY -->
<jaxws:outInterceptors>
<ref bean="sign" />
</jaxws:outInterceptors>
</jaxws:client>
Thanks and regards
Re: + invoking ?wsdl URL
Posted by Jose María Zaragoza <de...@gmail.com>.
Thanks
I'm using WSS4J interceptors to sign outgoing messages
Could be this the cause what my <jaxws:client> bean is making calls to
<endpoint_url>?wsdl URL ?
I agree with you in all you said , but I don't understand my proxy client (
jaxws:client ) performs those calls ...
2013/6/17 Andrei Shakirin <as...@talend.com>
> >
> > Indeed, I don't understand why I would need to define a wsdlLocation for
> a
> > <jaxws:client> element Why ?
>
> You don't need it if you do not use policies in your WSDL. CXF builds
> service model on the base of annotations in generated code.
>
> Regards,
> Andrei.
>
> >
> >
> >
> >
> >
> > >>>>
> > >>>> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
> > >>>>
> > >>>> Hi:
> > >>>>>
> > >>>>> I'm using Apache CXF 2.7.3
> > >>>>>
> > >>>>> I created a <jaxws:client> bean (proxy client) to invoke a remote
> > >>>>> webservice.
> > >>>>> I've generated JAXB classes and endpoint interface with wsdl2java
> > >>>>>
> > >>>>> I would like if this proxy client tries to getting wsdl from
> > >>>>> remote endpoint .
> > >>>>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
> > >>>>> If it does, how can i avoid it ?
> > >>>>>
> > >>>>>
> > >>>>> This is my code
> > >>>>>
> > >>>>> <jaxws:client id="testclient"
> > >>>>> serviceClass="com.foo.****TestPortType"
> > >>>>> address= "http://remote.com/myws/"
> > >>>>>
> > >>>>>
> > bindingId="http://schemas.**xm**lsoap.org/wsdl/soap/http<http://xm
> > >>>>> lsoap.org/wsdl/soap/http>
> > >>>>>
> > <http:**//schemas.xmlsoap.org/wsdl/**soap/http<http://schemas.xmls
> > >>>>> oap.org/wsdl/soap/http>
> > >>>>> >
> > >>>>>
> > >>>>> ">
> > >>>>>
> > >>>>> <!-- WS-SECURITY -->
> > >>>>>
> > >>>>> <jaxws:outInterceptors>
> > >>>>> <ref bean="sign" />
> > >>>>> </jaxws:outInterceptors>
> > >>>>>
> > >>>>> </jaxws:client>
> > >>>>>
> > >>>>>
> > >>>>> Thanks and regards
> > >>>>>
> > >>>>>
> > >>>>>
> > >>
> > >
>
RE: + invoking ?wsdl URL
Posted by Andrei Shakirin <as...@talend.com>.
>
> Indeed, I don't understand why I would need to define a wsdlLocation for a
> <jaxws:client> element Why ?
You don't need it if you do not use policies in your WSDL. CXF builds service model on the base of annotations in generated code.
Regards,
Andrei.
>
>
>
>
>
> >>>>
> >>>> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
> >>>>
> >>>> Hi:
> >>>>>
> >>>>> I'm using Apache CXF 2.7.3
> >>>>>
> >>>>> I created a <jaxws:client> bean (proxy client) to invoke a remote
> >>>>> webservice.
> >>>>> I've generated JAXB classes and endpoint interface with wsdl2java
> >>>>>
> >>>>> I would like if this proxy client tries to getting wsdl from
> >>>>> remote endpoint .
> >>>>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
> >>>>> If it does, how can i avoid it ?
> >>>>>
> >>>>>
> >>>>> This is my code
> >>>>>
> >>>>> <jaxws:client id="testclient"
> >>>>> serviceClass="com.foo.****TestPortType"
> >>>>> address= "http://remote.com/myws/"
> >>>>>
> >>>>>
> bindingId="http://schemas.**xm**lsoap.org/wsdl/soap/http<http://xm
> >>>>> lsoap.org/wsdl/soap/http>
> >>>>>
> <http:**//schemas.xmlsoap.org/wsdl/**soap/http<http://schemas.xmls
> >>>>> oap.org/wsdl/soap/http>
> >>>>> >
> >>>>>
> >>>>> ">
> >>>>>
> >>>>> <!-- WS-SECURITY -->
> >>>>>
> >>>>> <jaxws:outInterceptors>
> >>>>> <ref bean="sign" />
> >>>>> </jaxws:outInterceptors>
> >>>>>
> >>>>> </jaxws:client>
> >>>>>
> >>>>>
> >>>>> Thanks and regards
> >>>>>
> >>>>>
> >>>>>
> >>
> >
Re: + invoking ?wsdl URL
Posted by Jose María Zaragoza <de...@gmail.com>.
Indeed, I don't understand why I would need to define a wsdlLocation for a
<jaxws:client> element
Why ?
>>>>
>>>> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
>>>>
>>>> Hi:
>>>>>
>>>>> I'm using Apache CXF 2.7.3
>>>>>
>>>>> I created a <jaxws:client> bean (proxy client) to invoke a remote
>>>>> webservice.
>>>>> I've generated JAXB classes and endpoint interface with wsdl2java
>>>>>
>>>>> I would like if this proxy client tries to getting wsdl from remote
>>>>> endpoint .
>>>>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
>>>>> If it does, how can i avoid it ?
>>>>>
>>>>>
>>>>> This is my code
>>>>>
>>>>> <jaxws:client id="testclient"
>>>>> serviceClass="com.foo.****TestPortType"
>>>>> address= "http://remote.com/myws/"
>>>>> bindingId="http://schemas.**xm**lsoap.org/wsdl/soap/http<http://xmlsoap.org/wsdl/soap/http>
>>>>> <http:**//schemas.xmlsoap.org/wsdl/**soap/http<http://schemas.xmlsoap.org/wsdl/soap/http>
>>>>> >
>>>>>
>>>>> ">
>>>>>
>>>>> <!-- WS-SECURITY -->
>>>>>
>>>>> <jaxws:outInterceptors>
>>>>> <ref bean="sign" />
>>>>> </jaxws:outInterceptors>
>>>>>
>>>>> </jaxws:client>
>>>>>
>>>>>
>>>>> Thanks and regards
>>>>>
>>>>>
>>>>>
>>
>
Re: + invoking ?wsdl URL
Posted by Jose María Zaragoza <de...@gmail.com>.
But I am not using a Service class as a client, but I inject it (
<jaxws:client> bean ) into my servlet instance
If I look for wsdl references in my code, there aren't anyone
Thanks
2013/6/17 Glen Mazza <gl...@gmail.com>
> That's what I'm talking about too. :) That string you see there gets put
> into the generated Service class so it checks the classpath for the WSDL
> and no longer makes the WSDL GET call.
>
> Glen
>
>
> On 06/17/2013 11:16 AM, Jose María Zaragoza wrote:
>
>> Thanks.
>>
>> But I talking about if proxy client invoke http://<endpoint_url>?wsdl
>> *in
>> runtime*, not when generating JAXB classes
>>
>> Regards
>>
>>
>>
>>
>> 2013/6/17 Glen Mazza <gl...@gmail.com>
>>
>> Hi Jose, I hope you're using Maven, you can switch to a classpath URL so
>>> it doesn't get the WSDL out from over the network, search on classpath:
>>> in
>>> the service's pom.xml in this blog article:
>>> http://www.jroller.com/gmazza/
>>> **entry/web_service_tutorial<h**ttp://www.jroller.com/gmazza/**
>>> entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_service_tutorial>
>>> >.
>>>
>>> I'm sure there's an equivalent command-line setting if you're using
>>> wsdl2java directly.
>>>
>>> HTH,
>>> Glen
>>>
>>>
>>> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
>>>
>>> Hi:
>>>>
>>>> I'm using Apache CXF 2.7.3
>>>>
>>>> I created a <jaxws:client> bean (proxy client) to invoke a remote
>>>> webservice.
>>>> I've generated JAXB classes and endpoint interface with wsdl2java
>>>>
>>>> I would like if this proxy client tries to getting wsdl from remote
>>>> endpoint .
>>>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
>>>> If it does, how can i avoid it ?
>>>>
>>>>
>>>> This is my code
>>>>
>>>> <jaxws:client id="testclient"
>>>> serviceClass="com.foo.****TestPortType"
>>>> address= "http://remote.com/myws/"
>>>> bindingId="http://schemas.**xm**lsoap.org/wsdl/soap/http<http://xmlsoap.org/wsdl/soap/http>
>>>> <http:**//schemas.xmlsoap.org/wsdl/**soap/http<http://schemas.xmlsoap.org/wsdl/soap/http>
>>>> >
>>>>
>>>> ">
>>>>
>>>> <!-- WS-SECURITY -->
>>>>
>>>> <jaxws:outInterceptors>
>>>> <ref bean="sign" />
>>>> </jaxws:outInterceptors>
>>>>
>>>> </jaxws:client>
>>>>
>>>>
>>>> Thanks and regards
>>>>
>>>>
>>>>
>
Re: + invoking ?wsdl URL
Posted by Glen Mazza <gl...@gmail.com>.
That's what I'm talking about too. :) That string you see there gets
put into the generated Service class so it checks the classpath for the
WSDL and no longer makes the WSDL GET call.
Glen
On 06/17/2013 11:16 AM, Jose María Zaragoza wrote:
> Thanks.
>
> But I talking about if proxy client invoke http://<endpoint_url>?wsdl *in
> runtime*, not when generating JAXB classes
>
> Regards
>
>
>
>
> 2013/6/17 Glen Mazza <gl...@gmail.com>
>
>> Hi Jose, I hope you're using Maven, you can switch to a classpath URL so
>> it doesn't get the WSDL out from over the network, search on classpath: in
>> the service's pom.xml in this blog article: http://www.jroller.com/gmazza/
>> **entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_service_tutorial>.
>> I'm sure there's an equivalent command-line setting if you're using
>> wsdl2java directly.
>>
>> HTH,
>> Glen
>>
>>
>> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
>>
>>> Hi:
>>>
>>> I'm using Apache CXF 2.7.3
>>>
>>> I created a <jaxws:client> bean (proxy client) to invoke a remote
>>> webservice.
>>> I've generated JAXB classes and endpoint interface with wsdl2java
>>>
>>> I would like if this proxy client tries to getting wsdl from remote
>>> endpoint .
>>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
>>> If it does, how can i avoid it ?
>>>
>>>
>>> This is my code
>>>
>>> <jaxws:client id="testclient"
>>> serviceClass="com.foo.**TestPortType"
>>> address= "http://remote.com/myws/"
>>> bindingId="http://schemas.**xmlsoap.org/wsdl/soap/http<http://schemas.xmlsoap.org/wsdl/soap/http>
>>> ">
>>>
>>> <!-- WS-SECURITY -->
>>>
>>> <jaxws:outInterceptors>
>>> <ref bean="sign" />
>>> </jaxws:outInterceptors>
>>>
>>> </jaxws:client>
>>>
>>>
>>> Thanks and regards
>>>
>>>
Re: + invoking ?wsdl URL
Posted by Jose María Zaragoza <de...@gmail.com>.
Thanls Andrei
How I can force don't use wsdl/schema validation?
2013/6/17 Andrei Shakirin <as...@talend.com>
> Hi,
>
> IMO client will not invoke http://<endpoint_url>?wsdl, if you do not
> specify it explicitly as wsdlLocation in jaxws:client or in proxy
> annotations.
> If the service doesn't use various policies (like WS-Security policies)
> and fine grained schema validation, then you can get away without the
> wsdlLocation at all in the runtime.
>
> Regards,
> Andrei.
>
> > -----Original Message-----
> > From: Jose María Zaragoza [mailto:demablogia@gmail.com]
> > Sent: Montag, 17. Juni 2013 17:16
> > To: users@cxf.apache.org
> > Subject: Re: <jaxws:client> + invoking ?wsdl URL
> >
> > Thanks.
> >
> > But I talking about if proxy client invoke http://<endpoint_url>?wsdl
> *in
> > runtime*, not when generating JAXB classes
> >
> > Regards
> >
> >
> >
> >
> > 2013/6/17 Glen Mazza <gl...@gmail.com>
> >
> > > Hi Jose, I hope you're using Maven, you can switch to a classpath URL
> > > so it doesn't get the WSDL out from over the network, search on
> > > classpath: in the service's pom.xml in this blog article:
> > > http://www.jroller.com/gmazza/
> > **entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_
> > service_tutorial>.
> > > I'm sure there's an equivalent command-line setting if you're using
> > > wsdl2java directly.
> > >
> > > HTH,
> > > Glen
> > >
> > >
> > > On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
> > >
> > >> Hi:
> > >>
> > >> I'm using Apache CXF 2.7.3
> > >>
> > >> I created a <jaxws:client> bean (proxy client) to invoke a remote
> > >> webservice.
> > >> I've generated JAXB classes and endpoint interface with wsdl2java
> > >>
> > >> I would like if this proxy client tries to getting wsdl from remote
> > >> endpoint .
> > >> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
> > >> If it does, how can i avoid it ?
> > >>
> > >>
> > >> This is my code
> > >>
> > >> <jaxws:client id="testclient"
> > >> serviceClass="com.foo.**TestPortType"
> > >> address= "http://remote.com/myws/"
> > >>
> > >>
> > bindingId="http://schemas.**xmlsoap.org/wsdl/soap/http<http://schemas
> > >> .xmlsoap.org/wsdl/soap/http>
> > >> ">
> > >>
> > >> <!-- WS-SECURITY -->
> > >>
> > >> <jaxws:outInterceptors>
> > >> <ref bean="sign" />
> > >> </jaxws:outInterceptors>
> > >>
> > >> </jaxws:client>
> > >>
> > >>
> > >> Thanks and regards
> > >>
> > >>
> > >
>
RE: + invoking ?wsdl URL
Posted by Andrei Shakirin <as...@talend.com>.
Hi,
IMO client will not invoke http://<endpoint_url>?wsdl, if you do not specify it explicitly as wsdlLocation in jaxws:client or in proxy annotations.
If the service doesn't use various policies (like WS-Security policies) and fine grained schema validation, then you can get away without the wsdlLocation at all in the runtime.
Regards,
Andrei.
> -----Original Message-----
> From: Jose María Zaragoza [mailto:demablogia@gmail.com]
> Sent: Montag, 17. Juni 2013 17:16
> To: users@cxf.apache.org
> Subject: Re: <jaxws:client> + invoking ?wsdl URL
>
> Thanks.
>
> But I talking about if proxy client invoke http://<endpoint_url>?wsdl *in
> runtime*, not when generating JAXB classes
>
> Regards
>
>
>
>
> 2013/6/17 Glen Mazza <gl...@gmail.com>
>
> > Hi Jose, I hope you're using Maven, you can switch to a classpath URL
> > so it doesn't get the WSDL out from over the network, search on
> > classpath: in the service's pom.xml in this blog article:
> > http://www.jroller.com/gmazza/
> **entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_
> service_tutorial>.
> > I'm sure there's an equivalent command-line setting if you're using
> > wsdl2java directly.
> >
> > HTH,
> > Glen
> >
> >
> > On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
> >
> >> Hi:
> >>
> >> I'm using Apache CXF 2.7.3
> >>
> >> I created a <jaxws:client> bean (proxy client) to invoke a remote
> >> webservice.
> >> I've generated JAXB classes and endpoint interface with wsdl2java
> >>
> >> I would like if this proxy client tries to getting wsdl from remote
> >> endpoint .
> >> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
> >> If it does, how can i avoid it ?
> >>
> >>
> >> This is my code
> >>
> >> <jaxws:client id="testclient"
> >> serviceClass="com.foo.**TestPortType"
> >> address= "http://remote.com/myws/"
> >>
> >>
> bindingId="http://schemas.**xmlsoap.org/wsdl/soap/http<http://schemas
> >> .xmlsoap.org/wsdl/soap/http>
> >> ">
> >>
> >> <!-- WS-SECURITY -->
> >>
> >> <jaxws:outInterceptors>
> >> <ref bean="sign" />
> >> </jaxws:outInterceptors>
> >>
> >> </jaxws:client>
> >>
> >>
> >> Thanks and regards
> >>
> >>
> >
Re: + invoking ?wsdl URL
Posted by Jose María Zaragoza <de...@gmail.com>.
Thanks.
But I talking about if proxy client invoke http://<endpoint_url>?wsdl *in
runtime*, not when generating JAXB classes
Regards
2013/6/17 Glen Mazza <gl...@gmail.com>
> Hi Jose, I hope you're using Maven, you can switch to a classpath URL so
> it doesn't get the WSDL out from over the network, search on classpath: in
> the service's pom.xml in this blog article: http://www.jroller.com/gmazza/
> **entry/web_service_tutorial<http://www.jroller.com/gmazza/entry/web_service_tutorial>.
> I'm sure there's an equivalent command-line setting if you're using
> wsdl2java directly.
>
> HTH,
> Glen
>
>
> On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
>
>> Hi:
>>
>> I'm using Apache CXF 2.7.3
>>
>> I created a <jaxws:client> bean (proxy client) to invoke a remote
>> webservice.
>> I've generated JAXB classes and endpoint interface with wsdl2java
>>
>> I would like if this proxy client tries to getting wsdl from remote
>> endpoint .
>> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
>> If it does, how can i avoid it ?
>>
>>
>> This is my code
>>
>> <jaxws:client id="testclient"
>> serviceClass="com.foo.**TestPortType"
>> address= "http://remote.com/myws/"
>> bindingId="http://schemas.**xmlsoap.org/wsdl/soap/http<http://schemas.xmlsoap.org/wsdl/soap/http>
>> ">
>>
>> <!-- WS-SECURITY -->
>>
>> <jaxws:outInterceptors>
>> <ref bean="sign" />
>> </jaxws:outInterceptors>
>>
>> </jaxws:client>
>>
>>
>> Thanks and regards
>>
>>
>
Re: + invoking ?wsdl URL
Posted by Glen Mazza <gl...@gmail.com>.
Hi Jose, I hope you're using Maven, you can switch to a classpath URL so
it doesn't get the WSDL out from over the network, search on classpath:
in the service's pom.xml in this blog article:
http://www.jroller.com/gmazza/entry/web_service_tutorial. I'm sure
there's an equivalent command-line setting if you're using wsdl2java
directly.
HTH,
Glen
On 06/17/2013 10:45 AM, Jose María Zaragoza wrote:
> Hi:
>
> I'm using Apache CXF 2.7.3
>
> I created a <jaxws:client> bean (proxy client) to invoke a remote
> webservice.
> I've generated JAXB classes and endpoint interface with wsdl2java
>
> I would like if this proxy client tries to getting wsdl from remote
> endpoint .
> I mean, is this proxy getting "http://<endpoint_url>?wsdl" URL?
> If it does, how can i avoid it ?
>
>
> This is my code
>
> <jaxws:client id="testclient"
> serviceClass="com.foo.TestPortType"
> address= "http://remote.com/myws/"
> bindingId="http://schemas.xmlsoap.org/wsdl/soap/http">
>
> <!-- WS-SECURITY -->
>
> <jaxws:outInterceptors>
> <ref bean="sign" />
> </jaxws:outInterceptors>
>
> </jaxws:client>
>
>
> Thanks and regards
>