[jboss-user] [JBossWS] - Re: creating new targetnamespace for complex types

khelenek do-not-reply at jboss.com
Mon May 14 16:47:13 EDT 2007


Thanks for writing back. 

That's actually the first technique I tried which also did not seem to work.  Here is an example of a my web service bean:


  | @Stateless(name="VerificationWs")
  | @WebService(
  | 	name="VerificationWs",
  | 	targetNamespace = VerificationWsBean.DEFAULT_NS)
  | @SOAPBinding
  | public class VerificationWsBean {
  | 
  | @TransactionAttribute(value=TransactionAttributeType.REQUIRES_NEW)
  | @WebMethod
  | @WebResult(targetNamespace=VerificationWsBean.DEFAULT_NS)
  | public VerificationResponse verify(
  |     @WebParam(targetNamespace=VerificationWsBean.DEFAULT_NS) VerificationRequest request
  |     ) throws Exception {
  | 	return verifyDirect(request);
  | }
  | }
  | 

And then in my VerificationRequest.java class I have:


  | @XmlType(namespace="http://verification.studentuniverse.com/ws/client")
  | public class VerificationRequest implements Serializable {
  | 


But in my wsdl I still get VerificationRequest mapped as complex types under a schema with the package namespace:

  | <schema elementFormDefault="qualified" targetNamespace="http://package.mycompany.com/jaws">
  | 

(The methods map as complex types under the correct namespace as defined by the @WebService annotation, though. 

Any ideas what to try next? 
Thanks in advance, 

kris


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

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



More information about the jboss-user mailing list