Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 97931 invoked from network); 14 May 2008 20:14:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 20:14:55 -0000 Received: (qmail 72152 invoked by uid 500); 14 May 2008 20:14:56 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 72111 invoked by uid 500); 14 May 2008 20:14:55 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Delivered-To: moderator for users@cxf.apache.org Received: (qmail 67920 invoked by uid 99); 14 May 2008 20:11:57 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Date: Wed, 14 May 2008 16:11:19 -0400 (EDT) Subject: Re: Java First problems with Infopath From: "Dave Brosius" To: dbrosius@mebigfatguy.com Cc: users@cxf.apache.org Reply-To: dbrosius@mebigfatguy.com MIME-Version: 1.0 Content-Type: text/plain;charset=UTF-8 Content-Transfer-Encoding: quoted-printable Importance: Normal X-Priority: 3 (Normal) X-Type: 1 Message-ID: <59015.192.168.1.70.1210795879.webmail@192.168.1.70> X-Mailer: webmail6.6.1 X-Virus-Checked: Checked by ClamAV on apache.org OK, i figured out the problem.=0A=0ACXF generates this:=0A=0A =0A = =0A =0A =0A =0A =0A =0A =0A = =0A =0A =0A =0A=0A=0Awhich by = the way seems odd to me that the complexType name wasn't qualified with tns= , but anyway, InfoPath only accepts=0A=0A =0A= =09 =0A=09 =0A=09 =0A=09 = =0A=09 =0A=09=0A =0A=09 =0A=09 =0A=09 =0A=09 =0A=09 =0A=09=0A=0A=0AWhen i create a file, and point InfoPath to = it, it works. So now i want to get CXF to return this 'canned' wsdl, as opp= osed to generating one. So i did this:=0A=0A=0A@WebService(endpointInterfac= e =3D "com.primavera.echo.ws.EchoService", serviceName =3D "EchoService", w= sdlLocation=3D"META-INF/echo.wsdl")=0Apublic class EchoServiceImpl implemen= ts EchoService {=0A=0A=09public String echo(String message) {=0A=09=09retur= n "W00T: " + message;=0A=09}=0A=0A}=0A=0Aand placed the wsdl at META-INF/ec= ho.wsdl. But no luck, CXF just keeps generating new ones. I've tried /META-= INF/echo.wsdl, and file:///META-INF/echo.wsdl, but nothing i do can get CXF= to NOT dynamically generate the wsdl.=0A=0AAny ideas?=0A=0A=0A-----Origina= l Message-----=0AFrom: Dave Brosius =0ASent: Wedn= esday, May 14, 2008 1:25pm=0ATo: users@cxf.apache.org=0ASubject: Re: Java F= irst problems with Infopath=0A=0AInfoPath is a basic component in the Micro= soft Office suite, and is probably a very common partner to sharepoint. Whi= le i don't argue that probably microsoft is wacked here, it is most likely = one of the biggest players from a penetration point of view in the market.= =0A=0AI did try what you suggested and that is the message i got.=0A=0AI'm = guessing that this message =0A=0Ahttp://groups.google.com/group/microsoft.p= ublic.infopath/browse_thread/thread/b7af1940f6c0ecc1=0A=0Ais related to the= problem i'm having. And thus i have to write my own wsdls from now on.=0A= =0A=0ASo to do this, i just capture the wsdl and save it to a file, modify = it and then add a wsdlLocation attribute to my @WebService, right?=0A=0A=0A= =0A-----Original Message-----=0AFrom: Daniel Kulp =0ASent= : Wednesday, May 14, 2008 12:35pm=0ATo: users@cxf.apache.org=0ASubject: Re:= Java First problems with Infopath=0A=0A=0ANot having ever used or even see= n InfoPath, I'm not sure how much help =0AI can be here, but I'll try. (= and I don't even have a windows box to =0Aeven try.=0A=0AEven in java firs= t, a contract is available. You can get the wsdl =0Acontract just by bro= wsing to the URL with ?wsdl appended. I guess =0AI would try downloadi= ng that wsdl and pointing InfoPath at it and =0Aseeing what it says.=0A=0A= Dan=0A=0A=0A=0AOn May 13, 2008, at 4:40 PM, Dave Brosius wrote:=0A=0A> I us= ed the sample echo and generated a java first webservice. When =0A> access= ed by soapUI it works fine. when used from InfoPath, it fails =0A> with me= ssage "InfoPath cannot use the selected Web service method =0A> for receiv= ing data because the method does not provide valid XML =0A> data."=0A>=0A>= =0A> Am I to understand that one can only use contract first ws?=0A>=0A=0A-= --=0ADaniel Kulp=0Adkulp@apache.org=0Ahttp://www.dankulp.com/blog=0A=0A=0A= =0A=0A=0A=0A