On Friday 05 November 2010 4:13:59 am Fernando Avalos García wrote:
> Hi Daniel,
> 
> Thanks for your response, actually I found the problem but I have a
> question.
> 
> Why those urls get different files?
> 
> This doesn't have the schema.
> http://localhost:8080/pstWar/EmployeeService?wsd
> 
> This one has the schema on it.
> http://localhost:8080/pstWar/EmployeeService?wsdl=EmployeeService.wsdl
> 
> I appreciate your help.

You likely have the targetnamespace specified differently (or not at all) for 
the Impl and the itnerface.   The portType and messages (the 
wsdl=EmployeeService.wsdl above) come from the interface and the @WebService 
annotation on it.   The root wsdl comes from the Impl.   Normally, just 
putting a @WebService annotation on both with the same targetNamespace on it 
fixes it.

Dan



> 
> Fernando Avalos.
> 
> > From: [email protected]
> > To: [email protected]
> > Subject: Re: Not schema generated for object.
> > Date: Fri, 29 Oct 2010 16:42:21 -0400
> > CC: [email protected]
> > 
> > On Thursday 28 October 2010 8:04:29 pm Fernando Avalos García wrote:
> > > Hi there,
> > > 
> > > Maybe I am missing something but my generated WSDL looks as follows in
> > > the response:
> > > 
> > > <wsdl:output name="getById">
> > > <soap:body use="literal"/>
> > > </wsdl:output>
> > > 
> > > My response is suppose to be an object, but I don't know why it is not
> > > generating the schema for my object.
> > > 
> > > Could anyone give me a clue, please?
> > 
> > You would definitely need to provide more information.    The above is
> > from the wsd:binding, but the place where the response information would
> > be is in the portType, the message associated with that output in the
> > portType, and the elements in that message.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to