You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Dan Connelly <da...@comcast.net> on 2007/05/13 18:46:34 UTC
@BindingType(value="http://www.w3.org/2004/08/wsdl/http")
I am bootstrapping myself into CXF 2.0 using the Spring/HelloWorld
example. The binding type appears to be soap/http (by default).
Virtual wsdl has:
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
This works fine running the published server code on Tomcat.
However, I am bit surprised that when I add this @BindingType annotation
to the SEI it does not appear change anything in the virtual wsdl.
What I an expecting to see is a non-soap binding such as:
<http:binding verb="GET" />
but I still see
<soap:binding .../>
Are my expectations wrong? Do I need to provide a different value string?
-- Dan
RE: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
Posted by Jim Ma <ji...@iona.com>.
Hi Dan ,
This is another issue .Could you fill a jira issue for this with your test
case ?
Thanks
Jim
> -----Original Message-----
> From: Dan Connelly [mailto:daniel.s.connelly@comcast.net]
> Sent: Tuesday, May 15, 2007 5:46 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
>
>
> Thanks Jim:
>
> However, this did not work. Spring HelloWorld still fails
> ignores/fails for the http binding type.
>
> a) When I put this
> @BindingType(value=http://apache.org/cxf/binding/http) in the HelloWorld
> SEI, it is ignored. The binding type remains at the default: soap,
> doclit.
> b) When I put it, instead, in the implementation code, then I get a
> listener startup error (severe) from Tomcat. This is the same problem
> I reported on another thread ("Please demo Spring-ified
> restful_dispatch").
>
> BTW, the standard javax.xml.ws.soap.SOAPBinding values all work fine for
> @BindingType values in demo.spring.HelloWorldImpl.java on Tomcat.
> But using javax.xml.ws.http.HTTPBinding.HTTP_BINDING in this code fails.
>
> -- Dan
>
>
> Jim Ma wrote:
>
> >Hi Dan ,
> >
> >The CXF http binding id is "http://apache.org/cxf/binding/http" .
> >Try this one, @BindingType(value="http://apache.org/cxf/binding/http").
> >
> >Regards
> >
> >Jim
> >
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: Dan Connelly [mailto:daniel.s.connelly@comcast.net]
> >>Sent: Monday, May 14, 2007 12:47 AM
> >>To: cxf-user@incubator.apache.org
> >>Subject: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
> >>
> >>
> >>I am bootstrapping myself into CXF 2.0 using the Spring/HelloWorld
> >>example. The binding type appears to be soap/http (by default).
> >>
> >>Virtual wsdl has:
> >><soap:binding style="document"
> >>transport="http://schemas.xmlsoap.org/soap/http"/>
> >>
> >>This works fine running the published server code on Tomcat.
> >>
> >>However, I am bit surprised that when I add this @BindingType
> annotation
> >>to the SEI it does not appear change anything in the virtual wsdl.
> >>
> >>What I an expecting to see is a non-soap binding such as:
> >><http:binding verb="GET" />
> >>but I still see
> >><soap:binding .../>
> >>
> >>Are my expectations wrong? Do I need to provide a different
> >>value string?
> >>
> >> -- Dan
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>
Re: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
Posted by Dan Connelly <da...@comcast.net>.
Thanks Jim:
However, this did not work. Spring HelloWorld still fails
ignores/fails for the http binding type.
a) When I put this
@BindingType(value=http://apache.org/cxf/binding/http) in the HelloWorld
SEI, it is ignored. The binding type remains at the default: soap,
doclit.
b) When I put it, instead, in the implementation code, then I get a
listener startup error (severe) from Tomcat. This is the same problem
I reported on another thread ("Please demo Spring-ified restful_dispatch").
BTW, the standard javax.xml.ws.soap.SOAPBinding values all work fine for
@BindingType values in demo.spring.HelloWorldImpl.java on Tomcat.
But using javax.xml.ws.http.HTTPBinding.HTTP_BINDING in this code fails.
-- Dan
Jim Ma wrote:
>Hi Dan ,
>
>The CXF http binding id is "http://apache.org/cxf/binding/http" .
>Try this one, @BindingType(value="http://apache.org/cxf/binding/http").
>
>Regards
>
>Jim
>
>
>
>
>
>>-----Original Message-----
>>From: Dan Connelly [mailto:daniel.s.connelly@comcast.net]
>>Sent: Monday, May 14, 2007 12:47 AM
>>To: cxf-user@incubator.apache.org
>>Subject: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
>>
>>
>>I am bootstrapping myself into CXF 2.0 using the Spring/HelloWorld
>>example. The binding type appears to be soap/http (by default).
>>
>>Virtual wsdl has:
>><soap:binding style="document"
>>transport="http://schemas.xmlsoap.org/soap/http"/>
>>
>>This works fine running the published server code on Tomcat.
>>
>>However, I am bit surprised that when I add this @BindingType annotation
>>to the SEI it does not appear change anything in the virtual wsdl.
>>
>>What I an expecting to see is a non-soap binding such as:
>><http:binding verb="GET" />
>>but I still see
>><soap:binding .../>
>>
>>Are my expectations wrong? Do I need to provide a different
>>value string?
>>
>> -- Dan
>>
>>
>>
>>
>>
>
>
>
RE: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
Posted by Jim Ma <ji...@iona.com>.
Hi Dan ,
The CXF http binding id is "http://apache.org/cxf/binding/http" .
Try this one, @BindingType(value="http://apache.org/cxf/binding/http").
Regards
Jim
> -----Original Message-----
> From: Dan Connelly [mailto:daniel.s.connelly@comcast.net]
> Sent: Monday, May 14, 2007 12:47 AM
> To: cxf-user@incubator.apache.org
> Subject: @BindingType(value="http://www.w3.org/2004/08/wsdl/http")
>
>
> I am bootstrapping myself into CXF 2.0 using the Spring/HelloWorld
> example. The binding type appears to be soap/http (by default).
>
> Virtual wsdl has:
> <soap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>
> This works fine running the published server code on Tomcat.
>
> However, I am bit surprised that when I add this @BindingType annotation
> to the SEI it does not appear change anything in the virtual wsdl.
>
> What I an expecting to see is a non-soap binding such as:
> <http:binding verb="GET" />
> but I still see
> <soap:binding .../>
>
> Are my expectations wrong? Do I need to provide a different
> value string?
>
> -- Dan
>
>
>