[jboss-user] [JBossWS] - Re: WebServiceContext injection. Was it fixed or not?

rishabh2u do-not-reply at jboss.com
Tue Oct 21 22:22:54 EDT 2008


ggary so did it work for you finally then ???
I am using jboss423 on java 5 and cant seem to get it to work.
Then because of the hug u mentioned, i also tried using 421 and jbossws 201 but still it  does not work.


@WebService(name = "CreditCard", serviceName = "CreditCard", 
  | 		wsdlLocation = "/WEB-INF/wsdl/CreditCard.wsdl", 
  | 		targetNamespace = "http://aig.al.com/APCWebServices/CreditCardService/", 
  | 		endpointInterface = "com.al.aig.apc.ws.creditcard.server.generated.CreditCard")
  | @SOAPBinding(style = Style.DOCUMENT)		
  | public class CreditCardService_Impl implements CreditCard{
  | 
  | 	@Resource
  | 	WebServiceContext wsContext;
  | 
  | 	Logger log = Logger.getLogger(CreditCardService_Impl.class);
  | 
  | 	@WebMethod(operationName = "createCreditCard")
  | 	public CreateCreditCardResponse createCreditCard(
  | 			@WebParam(name = "parameters") CreateCreditCardInput parameters) {
  | 
  | 		log.debug("createCreditCard:entering.");
  | 		CreateCreditCardResponse drResp = new CreateCreditCardResponse();
  | 		System.out.println("addSecondaryMsisdn() called..................");
  | 
  | 		if (wsContext == null) {
  | 			System.out.println("its NULLL..");
  | 		} else {
  | 			System.out.println("ITS NOT NULL");
  | 		}
  | 
  | 		log.debug("createCreditCard:exiting.");
  | 		return drResp;
  | 	}
  | 
This is the code that i ahve got, nothing special here.  I have handwritten the WSDL for this webservice. 
Does the WebServiceContext injection depend on the binding type or something.

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

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



More information about the jboss-user mailing list