L.S.,

Unsure about this because I've never used this myself, but...
Shouldn't the service and endpoint name of the HTTP endpoint match an
existing service/endpoint combination (the one you want to expose to the
outer world using HTTP/SOAP), in your case the service/endpoint name of your
JSR-181 POJO?

Regards,

Gert


Bummer wrote:
> 
> I have seen lots of questions and answers regarding the jsr181... but I
> still can't get it work.
> My error is same as others. I couldn't get the WSDL for my pojo
> service(jsr181)
> 
> * I want to go for class-first development since I have lot's of pojos and
> I don't want to
> create the wsdl for each of the classes.
> 
> Following is my xbean xml for http bc..
> 
> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>        xmlns:hello="http://servicemix.apache.org/samples/jsr181test";>
> 
>   <http:endpoint service="hello:HelloService"
>                  endpoint="soap"
>                  role="consumer" 
>                  locationURI="http://0.0.0.0:8192/HelloService/";
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                soap="true"
>                  />        
> 
> </beans>
> 
> and for the jsr181 xbean.xml is 
> 
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";>
> 
>    <jsr181:endpoint
> pojoClass="org.apache.servicemix.samples.jsr181test.HelloWorldSvc"
>                   endpoint="helloworld" />
> 
> 
> </beans>
> 
> 
> I get following error when I tried
> "http://lifegrapher:8192/HelloService/?wsdl"; 
> 
> HTTP ERROR: 404
> Unable to find requested resource
> RequestURI=/HelloService/main.wsdl
> 
> 
> My question is how these two xbean.xml setting can be related so that the
> "
> http://lifegrapher:8192/HelloService/?wsdl"; will generate proper wsdl ? I
> don't see any relation as far as the xbean setting is concerned. 
> 
> Also, I have loaded the jsr181 before the http bc ... 
> I guess my wsdl generation was failed but could't figure it out what went
> wrong...
> I was able to find wsdl using jconsole at the endpoint node but it was
> under the "internal" node.
> 
> I wish I could find clear example regarding pojo sample for the
> class-first development.
> 
> Thanks.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/JSR181%2C-POJO%2C-WSDL-question-again...-tf3650616s12049.html#a10198323
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to