This problem occurs when the WSDL is not standalone which is forbidden by JBI specs : § 5.5.2.2 Service Description SPI : « The document must not use the <wsdl:import> or <wsdl:include> elements (the document MUST be stand-alone). »
Guillaume Nodet already told this list about the problem (and I needed to look in the specs to proove my client it was not possible ;) ) Manuel On Thu, Jul 31, 2008 at 8:41 PM, Ridire123 <[EMAIL PROTECTED]> wrote: > > I've run into a problem using the HTTP binding component. I'm trying to > use > an external client to invoke the service, which will clearly require > accessing the WSDL and the associated imported schemas. Basically the > HTTP-BC just sits on top of an EIP endpoint, which just passes the message > on to do its thing. The WSDL does get exposed, as I can go to > http://localhost:9876/blah/?wsdl and view the WSDL, however I cannot view > the schemas (and my client tells me it cannot find them) -- > http://localhost:9876/blah/?xsd=common.xsd and essentially all similar > URLs > just return a 404. > > My xbean.xml for the HTTP BC looks something like this: > > <?xml version="1.0" encoding="UTF-8"?> > > <beans xmlns:http="http://servicemix.apache.org/http/1.0" > xmlns:blah="http://www.blah.com/blah"> > > <http:endpoint service="blah:BlahService" > endpoint="BlahEndpoint" > role="consumer" > locationURI="http://0.0.0.0:9876/blah/" > defaultMep="http://www.w3.org/2004/08/wsdl/in-out" > > > wsdlResource="file:/C:/apache-servicemix-3.2.2-SNAPSHOT/interfaces/blah/blah.wsdl" > soap="true" > soapVersion="1.1" /> > > </beans> > > And the import on the WSDL: > > <wsdl:types> > <xsd:schema xmlns:ns="blah:test:this:thing" > attributeFormDefault="qualified" elementFormDefault="qualified" > targetNamespace="blah:test:this:thing"> > <xsd:include schemaLocation="blah-blah.xsd" /> > </xsd:schema> > </wsdl:types> > > The targetNamespace on the WSDL and the endpoint/service names all match > up, > as does the binding address -- I have already checked this. In fact, I can > invoke the service and successfully receive a response using a simple > client > that does not require the WSDL (just sends in a preformatted message) > > Also, as you can see, I'm using the 3.2.2 SNAPSHOT, which I thought had > fixed this problem with import statements. > > Thanks for any help, > -Ridire123 > -- > View this message in context: > http://www.nabble.com/HTTP-BC-Exposing-WSDL-but-no-imported-schemas-tp18760895p18760895.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
