[jboss-user] [JBossWS] - Re: HalloWorld Problem

davideling do-not-reply at jboss.com
Thu Jul 5 03:36:00 EDT 2007


Can You try tu specify the same targetnamespace
both in your service interface and your service implementation?

example:

1) interface

  | @WebService( 
  | 		name="TheServicePortType",
  | 		targetNamespace="http://www.tai.it/TheService"
  | )
  | @SOAPBinding(
  | 		use=SOAPBinding.Use.LITERAL,
  | 		style=SOAPBinding.Style.DOCUMENT,
  | 		parameterStyle=SOAPBinding.ParameterStyle.WRAPPED
  | )
  | public interface TheService {
  | 
  | // bla bla ....
  | 	
  | }
  | 

2) Implementation


  | @WebService(
  | 		endpointInterface="mypackage.TheService",
  | 		targetNamespace="http://www.tai.it/TheService",
  | 		serviceName="TheService",
  | 		portName="TheServiceSOAP"
  | )
  | public class TheServiceImpl implements TheService {
  | 
  | //... bla bla implementation
  | 
  | }
  | 

Bye

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4060680#4060680

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060680



More information about the jboss-user mailing list