title: How to use arquillian to test EJB calling webservices using @webserviceref annotation
body: <p>I'm trying to use arquillian to test one method of an EJB using a webservice through @WebServiceRef annotation</p>
  
  <p>In my method decorated by <code>@Deployment</code> I declared the resource</p>
  
  <pre><code> @Deployment
      public static JavaArchive createDeployment() {
          return ShrinkWrap.create(JavaArchive.class)
                  .addPackages(true, ....  PortType.class.getPackage())
                  .addAsResource("test-my.wsdl","my.wsdl")
                  .addAsManifestResource("META-INF/beans.xml", "beans.xml").addAsManifestResource("META-INF/test-persistence.xml", "persistence.xml");
  
      }
  </code></pre>
  
  <p>Then I coded the bean as following</p>
  
  <pre><code>@Stateless
  @LocalBean
  public class WSBean {
  
      @WebServiceRef(wsdlLocation = "/my.wsdl")
      PortType portType;
  
      public void test() throws Exception{
          portType.lireAdresseClient(null, null);
      }
  }
  </code></pre>
  
  <p>and the test</p>
  
  <pre><code>@RunWith(Arquillian.class)
  public class WSintegrationTest extends DefaultServicesIntegrationTest {
  
  @Deployment
  ....
  
      @Inject
      private WSBean wsBean;
  
      @Test
      public void testAppel() throws Exception {
          System.out.println("TEST APPEL");
          wsBean.test();
      }
  }
  </code></pre>
  
  <p>Can I do that with Arquillian ?
  How can I fix it ?</p>
  
  <p>Thanks
  Regards</p>