It is not like that you have to specify the same service and endpoint of both
HTTP and JSR.
You can also use other attributes like targetService and targetEndpoint.


Aurora82 wrote:
> 
> Hi,
> I'm new to ServiceMix and tried to get the following scenario working with
> ServiceMix 3.1.1:
> 
> -I have an HTTP-SU
> -I have a JSR181-SU for an annotated Pojo
> -I have a SA, that has both SUs as its dependencies
> 
> Now, my problem is that under the url specified
> (http://localhost:8192/test/main.wsdl) the annotated Pojo does not show
> its WSDL. Also, I cannot contact the service. Did I miss anything anywhere
> that prevents the WSDL from showing?
> 
> Here are my service units:
> 
> xbean.xml of test-http-SU:
> <beans xmlns:http="http://servicemix.apache.org/http/1.0";
>        xmlns:test="http://test.com/testService";>
> 
>   <http:endpoint service="test:TestService"
>                  endpoint="soap"
>                  role="consumer" 
>                  locationURI="http://localhost:8192/test/";
>                  defaultMep="http://www.w3.org/2004/08/wsdl/in-out";
>                  soap="true" />             
> 
> </beans>
> 
> xbean.xml of test-jsr181-SU:
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0";>
> 
>     <jsr181:endpoint pojoClass="group1.TestService" />
> 
> </beans>
> 
> annotated Pojo of test-jsr181-SU:
> package group1;
> 
> import javax.jws.WebMethod;
> import javax.jws.WebService;
> 
> @WebService(name = "TestService", targetNamespace =
> "http://test.com/testService";)
> public class TestService {
> 
>       @WebMethod
>       public String sayHello(String name) {
>               return "Hello "+name;
>       }
> }
> 
> 
> I also made sure I have both SUs mentioned as dependencies in the
> corresponding SA:
> .
> .
> .
>             <dependency>
>       <groupId>group1</groupId>
>       <artifactId>test-http-SU</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>group1</groupId>
>       <artifactId>test-jsr181-SU</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
> .
> .
> .
> 
> Any ideas are greatly appreciated =)
> Cheers,
> Aurora
> 

-- 
View this message in context: 
http://www.nabble.com/%28Newbie%29-Problem-with-annotated-Pojos-tp11749032s12049p14749344.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to