Also, I checked and I used XmlSchema 1.3.2. I deployed my webservices to jboss 4.2.1.
ML On Thu, Oct 23, 2008 at 9:41 PM, Michael Lewis <[EMAIL PROTECTED]>wrote: > I'm somewhat new to CXF myself, although I did some reading and the only > thing that I can come up with is to add the following annotation to you > ServiceEndpoint Interface under your @Webservice annotation. > > @SOAPBinding(style = SOAPBinding.Style.DOCUMENT, > use=SOAPBinding.Use.LITERAL, parameterStyle = > SOAPBinding.ParameterStyle.WRAPPED) > > I write webservices that are consumed by .net and I updated one of my > parameters to use header = true, mode = > WebParam.Mode.IN<http://webparam.mode.in/>, > then imported the web service without problem in VS 2005. > > The actual annotation that I used in my project was: @SOAPBinding(style = > SOAPBinding.Style.RPC, parameterStyle = SOAPBinding.ParameterStyle.WRAPPED), > but I read that you need to have DOC/Literal to use the soap header. > > Hope it helps. > > ML > > > On Thu, Oct 23, 2008 at 2:24 AM, Bjørn T Johansen <[EMAIL PROTECTED]> wrote: > >> On Wed, 22 Oct 2008 13:42:01 -0400 >> Daniel Kulp <[EMAIL PROTECTED]> wrote: >> >> > >> > Quick questions: >> > >> > 1) What version of CXF? >> >> Was using 2.1.2 and now I tried with 2.1.3 with the same result.. >> >> > >> > 2) What version of the XmlSchema jar? >> >> 1.4.2 >> >> > >> > 3) Can you include the wsdl generated from that interface as well? >> >> Attached... >> >> > >> > Jarek found a very similar error while integrating CXF 2.1.x into >> Geronimo. >> > It turned out it was due to picking up XmlSchema 1.3.3 instead of >> 1.4.2. >> > Once he managed to get maven to pick up the 1.4.2 version, it all worked >> > fine. >> > >> > Dan >> > >> > >> > On Wednesday 22 October 2008 3:08:03 am Bjørn T Johansen wrote: >> > > I am trying to develop some web services using Java and CXF and the >> > > clients that are going to use these are written in .Net. >> > > But I am having a problem... When I add SOAP headers like this..: >> > > >> > > LogonServiceResponse logon(@WebParam(name = "userId") String userId, >> > > @WebParam(name = "password") String password, @WebParam(name = >> > > "soap_username", header = true, mode = WebParam.Mode.IN) String >> > > soap_username, @WebParam(name = "soap_password", header = true, mode = >> > > WebParam.Mode.IN) String soap_password); >> > > >> > > >> > > (i.e the two last arguments), I get the following error from Visual >> > > Studio when trying to add the web reference..: >> > > >> > > Custom tool error: Unable to import WebService/Schema. Unable to >> > > import binding 'serviceSoapBinding' from namespace >> > > 'http://webservices.domainservice.as.asp.no/'. Unable to import >> > > operation 'logonService'. Part 'soap_username' from message >> > > 'logonService' in namespace >> > > 'http://webservices.domainservice.as.asp.no/' is missing the element >> > > attribute. The element attribute is required for headers when >> > > Use=Literal. >> > > >> > > >> > > Can someone help me, this is my first try to make web services.... >> > > >> > > >> > > >> > > Regards, >> > > >> > > BTJ >> > >> > >> > >> >> >
